@bizy/core 21.1.0 → 21.3.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.
- package/fesm2022/bizy-core.mjs +982 -375
- package/fesm2022/bizy-core.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/variables.css +12 -2
- package/types/bizy-core.d.ts +128 -20
package/fesm2022/bizy-core.mjs
CHANGED
|
@@ -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$
|
|
79
|
+
const COMPONENTS$B = [
|
|
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$
|
|
85
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyAccordionModule, imports: [COMPONENTS$B] });
|
|
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$
|
|
91
|
-
exports: COMPONENTS$
|
|
90
|
+
imports: COMPONENTS$B,
|
|
91
|
+
exports: COMPONENTS$B
|
|
92
92
|
}]
|
|
93
93
|
}] });
|
|
94
94
|
|
|
@@ -7659,7 +7659,7 @@ var muteAnimation = {
|
|
|
7659
7659
|
markers: markers
|
|
7660
7660
|
};
|
|
7661
7661
|
|
|
7662
|
-
const DEFAULT_DOWNLOAD$
|
|
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$
|
|
7709
|
+
this._showDownload = download.show ?? DEFAULT_DOWNLOAD$5.show;
|
|
7710
7710
|
this._downloadURL = download.url ?? null;
|
|
7711
|
-
this._downloadFileName = download.name ?? DEFAULT_DOWNLOAD$
|
|
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$
|
|
7772
|
+
_showDownload = DEFAULT_DOWNLOAD$5.show;
|
|
7773
7773
|
_downloadURL = null;
|
|
7774
|
-
_downloadFileName = DEFAULT_DOWNLOAD$
|
|
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$
|
|
8381
|
+
const COMPONENTS$A = [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$
|
|
8391
|
-
exports: COMPONENTS$
|
|
8390
|
+
imports: COMPONENTS$A,
|
|
8391
|
+
exports: COMPONENTS$A
|
|
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$
|
|
8629
|
+
const COMPONENTS$z = [
|
|
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$
|
|
8641
|
-
exports: COMPONENTS$
|
|
8640
|
+
imports: COMPONENTS$z,
|
|
8641
|
+
exports: COMPONENTS$z
|
|
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$
|
|
10059
|
+
const COMPONENTS$y = [
|
|
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$
|
|
10068
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyPopupModule, providers: [BizyPopupService], imports: [COMPONENTS$y] });
|
|
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$
|
|
10074
|
-
exports: COMPONENTS$
|
|
10073
|
+
imports: COMPONENTS$y,
|
|
10074
|
+
exports: COMPONENTS$y,
|
|
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$
|
|
10144
|
-
const DEFAULT_DOWNLOAD$
|
|
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$
|
|
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$
|
|
10160
|
-
download = DEFAULT_DOWNLOAD$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
10461
|
-
const height = minHeight ? minHeight : elementHeight ? `${elementHeight}px` : DEFAULT_CHART_SIZE$
|
|
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$
|
|
10522
|
+
const COMPONENTS$x = [
|
|
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$
|
|
10537
|
-
exports: COMPONENTS$
|
|
10536
|
+
imports: COMPONENTS$x,
|
|
10537
|
+
exports: COMPONENTS$x
|
|
10538
10538
|
}]
|
|
10539
10539
|
}] });
|
|
10540
10540
|
|
|
@@ -10582,30 +10582,30 @@ class BizyBreadcrumbComponent {
|
|
|
10582
10582
|
return this.#elementRef.nativeElement;
|
|
10583
10583
|
}
|
|
10584
10584
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10585
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: BizyBreadcrumbComponent, isStandalone: true, selector: "bizy-breadcrumb", inputs: { breadcrumbs: "breadcrumbs" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<ul class=\"bizy-breadcrumb\">\n @for (breadcrumb of _breadcrumbs; track
|
|
10585
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: BizyBreadcrumbComponent, isStandalone: true, selector: "bizy-breadcrumb", inputs: { breadcrumbs: "breadcrumbs" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: "<ul class=\"bizy-breadcrumb\">\n @for (breadcrumb of _breadcrumbs; track i; let last = $last; let i = $index) {\n @if (breadcrumb.label) {\n <li>\n <button\n class=\"bizy-breadcrumb__link\"\n [ngClass]=\"{'bizy-breadcrumb__link--skip': breadcrumb.skip || last}\"\n type=\"button\"\n (click)=\"goTo(breadcrumb)\">\n {{breadcrumb.label}}\n </button>\n @if (last && showGoBack) {\n <button\n type=\"button\"\n class=\"bizy-breadcrumb__go-back\"\n (click)=\"goBack()\">\n <svg\n class=\"bizy-breadcrumb__go-back__icon\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M0 0h24v24H0z\" fill=\"none\" stroke=\"none\"/>\n <path d=\"M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1\"/>\n </svg>\n </button>\n }\n </li>\n }\n }\n</ul>\n", styles: [":host{font-size:1rem}.bizy-breadcrumb{list-style:none;margin:0;padding:0}.bizy-breadcrumb li{display:inline}.bizy-breadcrumb li:before{content:\"/\";margin:0 .3rem}.bizy-breadcrumb li:first-child:before{content:\"\";margin:0}.bizy-breadcrumb__link{cursor:pointer;border:none;background-color:transparent;color:var(--bizy-breadcrumb-link-color)}.bizy-breadcrumb__link:hover{filter:brightness(95%)}.bizy-breadcrumb__link--skip{cursor:default;color:var(--bizy-breadcrumb-path-color)}.bizy-breadcrumb__link--skip:hover{color:var(--bizy-breadcrumb-path-color)}.bizy-breadcrumb__go-back{cursor:pointer;margin-left:.4rem;position:relative;top:.5rem;background-color:transparent;border:none}.bizy-breadcrumb__go-back__icon{color:var(--bizy-breadcrumb-link-color);height:1rem;position:relative;bottom:.3rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10586
10586
|
}
|
|
10587
10587
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyBreadcrumbComponent, decorators: [{
|
|
10588
10588
|
type: Component,
|
|
10589
|
-
args: [{ selector: 'bizy-breadcrumb', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ul class=\"bizy-breadcrumb\">\n @for (breadcrumb of _breadcrumbs; track
|
|
10589
|
+
args: [{ selector: 'bizy-breadcrumb', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ul class=\"bizy-breadcrumb\">\n @for (breadcrumb of _breadcrumbs; track i; let last = $last; let i = $index) {\n @if (breadcrumb.label) {\n <li>\n <button\n class=\"bizy-breadcrumb__link\"\n [ngClass]=\"{'bizy-breadcrumb__link--skip': breadcrumb.skip || last}\"\n type=\"button\"\n (click)=\"goTo(breadcrumb)\">\n {{breadcrumb.label}}\n </button>\n @if (last && showGoBack) {\n <button\n type=\"button\"\n class=\"bizy-breadcrumb__go-back\"\n (click)=\"goBack()\">\n <svg\n class=\"bizy-breadcrumb__go-back__icon\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M0 0h24v24H0z\" fill=\"none\" stroke=\"none\"/>\n <path d=\"M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1\"/>\n </svg>\n </button>\n }\n </li>\n }\n }\n</ul>\n", styles: [":host{font-size:1rem}.bizy-breadcrumb{list-style:none;margin:0;padding:0}.bizy-breadcrumb li{display:inline}.bizy-breadcrumb li:before{content:\"/\";margin:0 .3rem}.bizy-breadcrumb li:first-child:before{content:\"\";margin:0}.bizy-breadcrumb__link{cursor:pointer;border:none;background-color:transparent;color:var(--bizy-breadcrumb-link-color)}.bizy-breadcrumb__link:hover{filter:brightness(95%)}.bizy-breadcrumb__link--skip{cursor:default;color:var(--bizy-breadcrumb-path-color)}.bizy-breadcrumb__link--skip:hover{color:var(--bizy-breadcrumb-path-color)}.bizy-breadcrumb__go-back{cursor:pointer;margin-left:.4rem;position:relative;top:.5rem;background-color:transparent;border:none}.bizy-breadcrumb__go-back__icon{color:var(--bizy-breadcrumb-link-color);height:1rem;position:relative;bottom:.3rem}\n"] }]
|
|
10590
10590
|
}], propDecorators: { onSelect: [{
|
|
10591
10591
|
type: Output
|
|
10592
10592
|
}], breadcrumbs: [{
|
|
10593
10593
|
type: Input
|
|
10594
10594
|
}] } });
|
|
10595
10595
|
|
|
10596
|
-
const COMPONENTS$
|
|
10596
|
+
const COMPONENTS$w = [
|
|
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$
|
|
10602
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyBreadcrumbModule, imports: [COMPONENTS$w] });
|
|
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$
|
|
10608
|
-
exports: COMPONENTS$
|
|
10607
|
+
imports: COMPONENTS$w,
|
|
10608
|
+
exports: COMPONENTS$w
|
|
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$
|
|
10645
|
+
const COMPONENTS$v = [
|
|
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$
|
|
10651
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyButtonModule, imports: [COMPONENTS$v] });
|
|
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$
|
|
10657
|
-
exports: COMPONENTS$
|
|
10656
|
+
imports: COMPONENTS$v,
|
|
10657
|
+
exports: COMPONENTS$v
|
|
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$
|
|
10928
|
+
const COMPONENTS$u = [
|
|
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$
|
|
10934
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCalendarModule, imports: [COMPONENTS$u] });
|
|
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$
|
|
10940
|
-
exports: COMPONENTS$
|
|
10939
|
+
imports: COMPONENTS$u,
|
|
10940
|
+
exports: COMPONENTS$u
|
|
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$
|
|
10976
|
+
const COMPONENTS$t = [
|
|
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$
|
|
10982
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCardModule, imports: [COMPONENTS$t] });
|
|
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$
|
|
10988
|
-
exports: COMPONENTS$
|
|
10987
|
+
imports: COMPONENTS$t,
|
|
10988
|
+
exports: COMPONENTS$t
|
|
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$
|
|
11029
|
+
const COMPONENTS$s = [
|
|
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$
|
|
11035
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCheckboxModule, imports: [COMPONENTS$s] });
|
|
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$
|
|
11041
|
-
exports: COMPONENTS$
|
|
11040
|
+
imports: COMPONENTS$s,
|
|
11041
|
+
exports: COMPONENTS$s
|
|
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$
|
|
11056
|
+
const COMPONENTS$r = [
|
|
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$
|
|
11068
|
-
exports: COMPONENTS$
|
|
11067
|
+
imports: COMPONENTS$r,
|
|
11068
|
+
exports: COMPONENTS$r
|
|
11069
11069
|
}]
|
|
11070
11070
|
}] });
|
|
11071
11071
|
|
|
@@ -11573,98 +11573,519 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
11573
11573
|
type: Input
|
|
11574
11574
|
}] } });
|
|
11575
11575
|
|
|
11576
|
-
const COMPONENTS$
|
|
11576
|
+
const COMPONENTS$q = [
|
|
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$
|
|
11582
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDatePickerModule, imports: [COMPONENTS$q] });
|
|
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$
|
|
11588
|
-
exports: COMPONENTS$
|
|
11587
|
+
imports: COMPONENTS$q,
|
|
11588
|
+
exports: COMPONENTS$q
|
|
11589
11589
|
}]
|
|
11590
11590
|
}] });
|
|
11591
11591
|
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
|
|
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
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
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
|
-
|
|
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
|
-
#
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
|
|
11622
|
-
|
|
11623
|
-
|
|
11624
|
-
|
|
11625
|
-
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
|
|
11630
|
-
|
|
11631
|
-
|
|
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
|
-
|
|
11641
|
-
|
|
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
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
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$p = [
|
|
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$p,
|
|
12009
|
+
exports: COMPONENTS$p,
|
|
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
|
|
11668
12089
|
})
|
|
11669
12090
|
.use(XHRUpload, {
|
|
11670
12091
|
endpoint: '',
|
|
@@ -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$
|
|
12351
|
+
const COMPONENTS$o = [
|
|
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$
|
|
11942
|
-
exports: COMPONENTS$
|
|
12362
|
+
imports: COMPONENTS$o,
|
|
12363
|
+
exports: COMPONENTS$o,
|
|
11943
12364
|
providers: [BizyFileUploaderService]
|
|
11944
12365
|
}]
|
|
11945
12366
|
}] });
|
|
@@ -11962,7 +12383,6 @@ class BizyFilterSectionRangeOptionComponent {
|
|
|
11962
12383
|
minValue: [null],
|
|
11963
12384
|
maxValue: [null]
|
|
11964
12385
|
});
|
|
11965
|
-
;
|
|
11966
12386
|
set min(min) {
|
|
11967
12387
|
if (typeof min === 'undefined' || min === null) {
|
|
11968
12388
|
this.minValue.setValue(null);
|
|
@@ -12545,7 +12965,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
12545
12965
|
}]
|
|
12546
12966
|
}] });
|
|
12547
12967
|
|
|
12548
|
-
const COMPONENTS$
|
|
12968
|
+
const COMPONENTS$n = [
|
|
12549
12969
|
BizyFilterComponent,
|
|
12550
12970
|
BizyFilterSectionComponent,
|
|
12551
12971
|
BizyFilterContentComponent,
|
|
@@ -12584,8 +13004,8 @@ class BizyFilterModule {
|
|
|
12584
13004
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFilterModule, decorators: [{
|
|
12585
13005
|
type: NgModule,
|
|
12586
13006
|
args: [{
|
|
12587
|
-
imports: COMPONENTS$
|
|
12588
|
-
exports: COMPONENTS$
|
|
13007
|
+
imports: COMPONENTS$n.concat(PIPES$1),
|
|
13008
|
+
exports: COMPONENTS$n.concat(PIPES$1),
|
|
12589
13009
|
providers: PIPES$1
|
|
12590
13010
|
}]
|
|
12591
13011
|
}] });
|
|
@@ -12818,19 +13238,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
12818
13238
|
type: Input
|
|
12819
13239
|
}] } });
|
|
12820
13240
|
|
|
12821
|
-
const COMPONENTS$
|
|
13241
|
+
const COMPONENTS$m = [
|
|
12822
13242
|
BizyFormComponent,
|
|
12823
13243
|
];
|
|
12824
13244
|
class BizyFormModule {
|
|
12825
13245
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12826
13246
|
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$
|
|
13247
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormModule, imports: [COMPONENTS$m] });
|
|
12828
13248
|
}
|
|
12829
13249
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormModule, decorators: [{
|
|
12830
13250
|
type: NgModule,
|
|
12831
13251
|
args: [{
|
|
12832
|
-
imports: COMPONENTS$
|
|
12833
|
-
exports: COMPONENTS$
|
|
13252
|
+
imports: COMPONENTS$m,
|
|
13253
|
+
exports: COMPONENTS$m,
|
|
12834
13254
|
}]
|
|
12835
13255
|
}] });
|
|
12836
13256
|
|
|
@@ -13212,7 +13632,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
13212
13632
|
type: Input
|
|
13213
13633
|
}] } });
|
|
13214
13634
|
|
|
13215
|
-
const COMPONENTS$
|
|
13635
|
+
const COMPONENTS$l = [
|
|
13216
13636
|
BizyGaugeChartComponent,
|
|
13217
13637
|
BizyGaugeChartPopupComponent
|
|
13218
13638
|
];
|
|
@@ -13226,8 +13646,8 @@ class BizyGaugeChartModule {
|
|
|
13226
13646
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyGaugeChartModule, decorators: [{
|
|
13227
13647
|
type: NgModule,
|
|
13228
13648
|
args: [{
|
|
13229
|
-
imports: COMPONENTS$
|
|
13230
|
-
exports: COMPONENTS$
|
|
13649
|
+
imports: COMPONENTS$l,
|
|
13650
|
+
exports: COMPONENTS$l,
|
|
13231
13651
|
}]
|
|
13232
13652
|
}] });
|
|
13233
13653
|
|
|
@@ -13380,9 +13800,6 @@ class BizyGridComponent {
|
|
|
13380
13800
|
this.itemRows = itemRows;
|
|
13381
13801
|
this.#ref.detectChanges();
|
|
13382
13802
|
};
|
|
13383
|
-
trackById(index, item) {
|
|
13384
|
-
return item?.id ?? index;
|
|
13385
|
-
}
|
|
13386
13803
|
scrollTo(index, behavior = 'smooth') {
|
|
13387
13804
|
this.virtualScroll.scrollToIndex(index, behavior);
|
|
13388
13805
|
}
|
|
@@ -13397,11 +13814,11 @@ class BizyGridComponent {
|
|
|
13397
13814
|
}
|
|
13398
13815
|
getNativeElement = () => this.#elementRef?.nativeElement;
|
|
13399
13816
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13400
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: BizyGridComponent, isStandalone: true, selector: "bizy-grid", inputs: { resizeRef: "resizeRef" }, queries: [{ propertyName: "gridDirective", first: true, predicate: BizyGridForDirective, descendants: true }], viewQueries: [{ propertyName: "virtualScroll", first: true, predicate: ["cdkVirtualScroll"], descendants: true }, { propertyName: "content", first: true, predicate: ["gridScrollingContent"], descendants: true }], ngImport: i0, template: "<div class=\"bizy-grid\" [ngClass]=\"{'bizy-grid--empty': items && items.length === 0}\">\n\n <cdk-virtual-scroll-viewport\n #cdkVirtualScroll\n class=\"bizy-grid__rows\"\n [itemSize]=\"rowHeight\"\n [minBufferPx]=\"rowHeight + (rowHeight * 5)\"\n [maxBufferPx]=\"rowHeight + (rowHeight * 10)\">\n\n <ng-content></ng-content>\n\n <ng-template #gridScrollingContent>\n <ng-template\n let-item\n let-index=\"index\"\n let-first=\"first\"\n let-last=\"last\"\n let-even=\"even\"\n let-odd=\"odd\"\n cdkVirtualFor\n [cdkVirtualForOf]=\"itemRows\">\n <bizy-grid-row [rowHeight]=\"rowHeight\" [itemsPerRow]=\"itemsPerRow\">\n @for (it of item; track
|
|
13817
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: BizyGridComponent, isStandalone: true, selector: "bizy-grid", inputs: { resizeRef: "resizeRef" }, queries: [{ propertyName: "gridDirective", first: true, predicate: BizyGridForDirective, descendants: true }], viewQueries: [{ propertyName: "virtualScroll", first: true, predicate: ["cdkVirtualScroll"], descendants: true }, { propertyName: "content", first: true, predicate: ["gridScrollingContent"], descendants: true }], ngImport: i0, template: "<div class=\"bizy-grid\" [ngClass]=\"{'bizy-grid--empty': items && items.length === 0}\">\n\n <cdk-virtual-scroll-viewport\n #cdkVirtualScroll\n class=\"bizy-grid__rows\"\n [itemSize]=\"rowHeight\"\n [minBufferPx]=\"rowHeight + (rowHeight * 5)\"\n [maxBufferPx]=\"rowHeight + (rowHeight * 10)\">\n\n <ng-content></ng-content>\n\n <ng-template #gridScrollingContent>\n <ng-template\n let-item\n let-index=\"index\"\n let-first=\"first\"\n let-last=\"last\"\n let-even=\"even\"\n let-odd=\"odd\"\n cdkVirtualFor\n [cdkVirtualForOf]=\"itemRows\">\n <bizy-grid-row [rowHeight]=\"rowHeight\" [itemsPerRow]=\"itemsPerRow\">\n @for (it of item; track it.id ?? i; let i = $index) {\n <ng-template\n *ngTemplateOutlet=\"itemTemplate;\n context: { \n $implicit: it,\n index: index * itemsPerRow + i,\n rowIndex: index,\n rowFirst: first,\n rowLast: last,\n rowEven: even,\n rowOdd: odd\n }\"></ng-template>\n }\n </bizy-grid-row>\n </ng-template>\n </ng-template>\n </cdk-virtual-scroll-viewport>\n\n</div>\n", styles: [":host{display:inline-block!important;min-height:var(--bizy-grid-min-height);max-height:var(--bizy-grid-max-height);height:var(--bizy-grid-height);width:var(--bizy-grid-width);flex:1;overflow-x:auto;overflow-y:hidden;font-size:1rem}:host:has(.bizy-grid--empty){height:0!important;min-height:0!important;max-height:0!important}.bizy-grid{width:inherit;height:inherit;min-width:fit-content;display:flex;flex-direction:column;row-gap:.3rem;overflow-x:clip;background-color:var(--bizy-grid-background-color)}.bizy-grid__rows{width:100%;display:flex;flex-direction:column;min-width:fit-content;overflow-x:hidden}::ng-deep .cdk-virtual-scrollable{height:100%;width:100%;overflow-y:auto!important;overflow-x:hidden!important;contain:inline-size!important}::ng-deep .cdk-virtual-scroll-content-wrapper{min-width:100%;max-width:100%}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar{width:.5rem;height:.5rem}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-grid-scroll-bar-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-grid-scroll-bar-hover-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-button{height:1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i2$2.ɵɵCdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i2$2.ɵɵCdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i2$2.ɵɵCdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: BizyGridRowComponent, selector: "bizy-grid-row", inputs: ["rowHeight", "itemsPerRow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13401
13818
|
}
|
|
13402
13819
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyGridComponent, decorators: [{
|
|
13403
13820
|
type: Component,
|
|
13404
|
-
args: [{ selector: 'bizy-grid', imports: [CommonModule, ScrollingModule, BizyGridRowComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bizy-grid\" [ngClass]=\"{'bizy-grid--empty': items && items.length === 0}\">\n\n <cdk-virtual-scroll-viewport\n #cdkVirtualScroll\n class=\"bizy-grid__rows\"\n [itemSize]=\"rowHeight\"\n [minBufferPx]=\"rowHeight + (rowHeight * 5)\"\n [maxBufferPx]=\"rowHeight + (rowHeight * 10)\">\n\n <ng-content></ng-content>\n\n <ng-template #gridScrollingContent>\n <ng-template\n let-item\n let-index=\"index\"\n let-first=\"first\"\n let-last=\"last\"\n let-even=\"even\"\n let-odd=\"odd\"\n cdkVirtualFor\n [cdkVirtualForOf]=\"itemRows\">\n <bizy-grid-row [rowHeight]=\"rowHeight\" [itemsPerRow]=\"itemsPerRow\">\n @for (it of item; track
|
|
13821
|
+
args: [{ selector: 'bizy-grid', imports: [CommonModule, ScrollingModule, BizyGridRowComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bizy-grid\" [ngClass]=\"{'bizy-grid--empty': items && items.length === 0}\">\n\n <cdk-virtual-scroll-viewport\n #cdkVirtualScroll\n class=\"bizy-grid__rows\"\n [itemSize]=\"rowHeight\"\n [minBufferPx]=\"rowHeight + (rowHeight * 5)\"\n [maxBufferPx]=\"rowHeight + (rowHeight * 10)\">\n\n <ng-content></ng-content>\n\n <ng-template #gridScrollingContent>\n <ng-template\n let-item\n let-index=\"index\"\n let-first=\"first\"\n let-last=\"last\"\n let-even=\"even\"\n let-odd=\"odd\"\n cdkVirtualFor\n [cdkVirtualForOf]=\"itemRows\">\n <bizy-grid-row [rowHeight]=\"rowHeight\" [itemsPerRow]=\"itemsPerRow\">\n @for (it of item; track it.id ?? i; let i = $index) {\n <ng-template\n *ngTemplateOutlet=\"itemTemplate;\n context: { \n $implicit: it,\n index: index * itemsPerRow + i,\n rowIndex: index,\n rowFirst: first,\n rowLast: last,\n rowEven: even,\n rowOdd: odd\n }\"></ng-template>\n }\n </bizy-grid-row>\n </ng-template>\n </ng-template>\n </cdk-virtual-scroll-viewport>\n\n</div>\n", styles: [":host{display:inline-block!important;min-height:var(--bizy-grid-min-height);max-height:var(--bizy-grid-max-height);height:var(--bizy-grid-height);width:var(--bizy-grid-width);flex:1;overflow-x:auto;overflow-y:hidden;font-size:1rem}:host:has(.bizy-grid--empty){height:0!important;min-height:0!important;max-height:0!important}.bizy-grid{width:inherit;height:inherit;min-width:fit-content;display:flex;flex-direction:column;row-gap:.3rem;overflow-x:clip;background-color:var(--bizy-grid-background-color)}.bizy-grid__rows{width:100%;display:flex;flex-direction:column;min-width:fit-content;overflow-x:hidden}::ng-deep .cdk-virtual-scrollable{height:100%;width:100%;overflow-y:auto!important;overflow-x:hidden!important;contain:inline-size!important}::ng-deep .cdk-virtual-scroll-content-wrapper{min-width:100%;max-width:100%}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar{width:.5rem;height:.5rem}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-grid-scroll-bar-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-grid-scroll-bar-hover-color)}::ng-deep .cdk-virtual-scrollable::-webkit-scrollbar-button{height:1rem}\n"] }]
|
|
13405
13822
|
}], propDecorators: { virtualScroll: [{
|
|
13406
13823
|
type: ViewChild,
|
|
13407
13824
|
args: ['cdkVirtualScroll']
|
|
@@ -13415,7 +13832,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
13415
13832
|
type: Input
|
|
13416
13833
|
}] } });
|
|
13417
13834
|
|
|
13418
|
-
const COMPONENTS$
|
|
13835
|
+
const COMPONENTS$k = [
|
|
13419
13836
|
BizyGridComponent,
|
|
13420
13837
|
BizyGridRowComponent
|
|
13421
13838
|
];
|
|
@@ -13432,8 +13849,8 @@ class BizyGridModule {
|
|
|
13432
13849
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyGridModule, decorators: [{
|
|
13433
13850
|
type: NgModule,
|
|
13434
13851
|
args: [{
|
|
13435
|
-
imports: COMPONENTS$
|
|
13436
|
-
exports: COMPONENTS$
|
|
13852
|
+
imports: COMPONENTS$k.concat(DIRECTIVES$2),
|
|
13853
|
+
exports: COMPONENTS$k.concat(DIRECTIVES$2),
|
|
13437
13854
|
}]
|
|
13438
13855
|
}] });
|
|
13439
13856
|
|
|
@@ -13931,7 +14348,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
13931
14348
|
type: Input
|
|
13932
14349
|
}] } });
|
|
13933
14350
|
|
|
13934
|
-
const COMPONENTS$
|
|
14351
|
+
const COMPONENTS$j = [
|
|
13935
14352
|
BizyHeatMapChartComponent,
|
|
13936
14353
|
];
|
|
13937
14354
|
class BizyHeatMapChartModule {
|
|
@@ -13942,12 +14359,12 @@ class BizyHeatMapChartModule {
|
|
|
13942
14359
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyHeatMapChartModule, decorators: [{
|
|
13943
14360
|
type: NgModule,
|
|
13944
14361
|
args: [{
|
|
13945
|
-
imports: COMPONENTS$
|
|
13946
|
-
exports: COMPONENTS$
|
|
14362
|
+
imports: COMPONENTS$j,
|
|
14363
|
+
exports: COMPONENTS$j,
|
|
13947
14364
|
}]
|
|
13948
14365
|
}] });
|
|
13949
14366
|
|
|
13950
|
-
const COMPONENTS$
|
|
14367
|
+
const COMPONENTS$i = [
|
|
13951
14368
|
BizyInputComponent,
|
|
13952
14369
|
BizyInputOptionComponent
|
|
13953
14370
|
];
|
|
@@ -13956,13 +14373,13 @@ class BizyInputModule {
|
|
|
13956
14373
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyInputModule, imports: [BizyInputComponent,
|
|
13957
14374
|
BizyInputOptionComponent], exports: [BizyInputComponent,
|
|
13958
14375
|
BizyInputOptionComponent] });
|
|
13959
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyInputModule, imports: [COMPONENTS$
|
|
14376
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyInputModule, imports: [COMPONENTS$i] });
|
|
13960
14377
|
}
|
|
13961
14378
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyInputModule, decorators: [{
|
|
13962
14379
|
type: NgModule,
|
|
13963
14380
|
args: [{
|
|
13964
|
-
imports: COMPONENTS$
|
|
13965
|
-
exports: COMPONENTS$
|
|
14381
|
+
imports: COMPONENTS$i,
|
|
14382
|
+
exports: COMPONENTS$i,
|
|
13966
14383
|
}]
|
|
13967
14384
|
}] });
|
|
13968
14385
|
|
|
@@ -13982,7 +14399,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
13982
14399
|
type: Input
|
|
13983
14400
|
}] } });
|
|
13984
14401
|
|
|
13985
|
-
const COMPONENTS$
|
|
14402
|
+
const COMPONENTS$h = [
|
|
13986
14403
|
BizyListComponent,
|
|
13987
14404
|
];
|
|
13988
14405
|
class BizyListModule {
|
|
@@ -13993,8 +14410,8 @@ class BizyListModule {
|
|
|
13993
14410
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyListModule, decorators: [{
|
|
13994
14411
|
type: NgModule,
|
|
13995
14412
|
args: [{
|
|
13996
|
-
imports: COMPONENTS$
|
|
13997
|
-
exports: COMPONENTS$
|
|
14413
|
+
imports: COMPONENTS$h,
|
|
14414
|
+
exports: COMPONENTS$h,
|
|
13998
14415
|
}]
|
|
13999
14416
|
}] });
|
|
14000
14417
|
|
|
@@ -14140,7 +14557,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
14140
14557
|
type: Input
|
|
14141
14558
|
}] } });
|
|
14142
14559
|
|
|
14143
|
-
const COMPONENTS$
|
|
14560
|
+
const COMPONENTS$g = [
|
|
14144
14561
|
BizyMenuComponent,
|
|
14145
14562
|
BizyMenuOptionComponent,
|
|
14146
14563
|
BizyMenuTitleComponent
|
|
@@ -14158,8 +14575,8 @@ class BizyMenuModule {
|
|
|
14158
14575
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyMenuModule, decorators: [{
|
|
14159
14576
|
type: NgModule,
|
|
14160
14577
|
args: [{
|
|
14161
|
-
imports: COMPONENTS$
|
|
14162
|
-
exports: COMPONENTS$
|
|
14578
|
+
imports: COMPONENTS$g,
|
|
14579
|
+
exports: COMPONENTS$g,
|
|
14163
14580
|
}]
|
|
14164
14581
|
}] });
|
|
14165
14582
|
|
|
@@ -14274,7 +14691,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
14274
14691
|
type: Input
|
|
14275
14692
|
}] } });
|
|
14276
14693
|
|
|
14277
|
-
const COMPONENTS$
|
|
14694
|
+
const COMPONENTS$f = [
|
|
14278
14695
|
BizyMenuBarComponent,
|
|
14279
14696
|
BizyMenuBarOptionComponent,
|
|
14280
14697
|
];
|
|
@@ -14288,8 +14705,8 @@ class BizyMenuBarModule {
|
|
|
14288
14705
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyMenuBarModule, decorators: [{
|
|
14289
14706
|
type: NgModule,
|
|
14290
14707
|
args: [{
|
|
14291
|
-
imports: COMPONENTS$
|
|
14292
|
-
exports: COMPONENTS$
|
|
14708
|
+
imports: COMPONENTS$f,
|
|
14709
|
+
exports: COMPONENTS$f,
|
|
14293
14710
|
}]
|
|
14294
14711
|
}] });
|
|
14295
14712
|
|
|
@@ -14391,20 +14808,32 @@ const DEFAULT_EXPAND = {
|
|
|
14391
14808
|
const DEFAULT_TOOLTIP = {
|
|
14392
14809
|
show: true
|
|
14393
14810
|
};
|
|
14811
|
+
const DEFAULT_LEGEND = {
|
|
14812
|
+
show: false,
|
|
14813
|
+
orient: 'vertical',
|
|
14814
|
+
position: {
|
|
14815
|
+
x: 'auto',
|
|
14816
|
+
y: 'auto'
|
|
14817
|
+
}
|
|
14818
|
+
};
|
|
14819
|
+
const DEFAULT_LABEL = {
|
|
14820
|
+
show: true,
|
|
14821
|
+
overflow: 'break',
|
|
14822
|
+
line: true
|
|
14823
|
+
};
|
|
14394
14824
|
class BizyPieChartComponent {
|
|
14395
14825
|
#elementRef = inject(ElementRef);
|
|
14396
|
-
#document = inject(DOCUMENT
|
|
14826
|
+
#document = inject(DOCUMENT);
|
|
14397
14827
|
#ref = inject(ChangeDetectorRef);
|
|
14398
14828
|
#renderer = inject(Renderer2);
|
|
14399
14829
|
#popup = inject(BizyPopupService);
|
|
14400
14830
|
resizeRef = null;
|
|
14401
|
-
type = 'pie';
|
|
14402
14831
|
centerLabel = null;
|
|
14403
14832
|
tooltip = DEFAULT_TOOLTIP;
|
|
14404
14833
|
legend = null;
|
|
14405
14834
|
download = DEFAULT_DOWNLOAD;
|
|
14406
14835
|
expand = DEFAULT_EXPAND;
|
|
14407
|
-
label =
|
|
14836
|
+
label = DEFAULT_LABEL;
|
|
14408
14837
|
onSelect = new EventEmitter();
|
|
14409
14838
|
onDownload = new EventEmitter();
|
|
14410
14839
|
#echarts = null;
|
|
@@ -14433,190 +14862,182 @@ class BizyPieChartComponent {
|
|
|
14433
14862
|
}
|
|
14434
14863
|
async #setChartData(data) {
|
|
14435
14864
|
this.#afterViewInitSubscription.add(this.#afterViewInit.pipe(filter$1(value => value === true), take(1)).subscribe(() => {
|
|
14436
|
-
|
|
14437
|
-
|
|
14438
|
-
|
|
14439
|
-
|
|
14440
|
-
|
|
14441
|
-
this.#
|
|
14442
|
-
|
|
14443
|
-
|
|
14444
|
-
|
|
14445
|
-
|
|
14446
|
-
|
|
14447
|
-
_d.
|
|
14448
|
-
|
|
14449
|
-
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
itemStyle
|
|
14865
|
+
/**
|
|
14866
|
+
* setTimeout fix angular render problem
|
|
14867
|
+
*/
|
|
14868
|
+
setTimeout(() => {
|
|
14869
|
+
this.#createChartContainer();
|
|
14870
|
+
if (!this.#chartContainer) {
|
|
14871
|
+
return;
|
|
14872
|
+
}
|
|
14873
|
+
if (data && data.length > 0 && data[0] !== 0) {
|
|
14874
|
+
this.#data = [];
|
|
14875
|
+
data.forEach(_d => {
|
|
14876
|
+
if (!_d.value) {
|
|
14877
|
+
_d.value = 0;
|
|
14878
|
+
}
|
|
14879
|
+
if (!_d.name) {
|
|
14880
|
+
_d.name = '---';
|
|
14881
|
+
}
|
|
14882
|
+
const itemStyle = _d.color ? { color: _d.color } : {};
|
|
14883
|
+
this.#data.push({
|
|
14884
|
+
name: _d.name,
|
|
14885
|
+
value: _d.value,
|
|
14886
|
+
itemStyle,
|
|
14887
|
+
metadata: _d.metadata
|
|
14888
|
+
});
|
|
14454
14889
|
});
|
|
14455
|
-
}
|
|
14456
|
-
|
|
14457
|
-
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
|
|
14462
|
-
borderRadius: 10,
|
|
14463
|
-
borderColor: '#fff',
|
|
14464
|
-
borderWidth: 2
|
|
14465
|
-
} : {};
|
|
14466
|
-
const label = this.label ?
|
|
14467
|
-
{
|
|
14468
|
-
show: this.label.show ?? true,
|
|
14469
|
-
overflow: this.label.overflow ?? 'break',
|
|
14890
|
+
}
|
|
14891
|
+
else {
|
|
14892
|
+
this.#data = EMPTY_CHART;
|
|
14893
|
+
}
|
|
14894
|
+
const label = {
|
|
14895
|
+
show: this.label?.show ?? DEFAULT_LABEL.show,
|
|
14896
|
+
overflow: this.label?.overflow ?? DEFAULT_LABEL.overflow,
|
|
14470
14897
|
formatter: this.label?.formatter
|
|
14471
|
-
}
|
|
14472
|
-
|
|
14473
|
-
|
|
14474
|
-
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
|
|
14503
|
-
|
|
14504
|
-
|
|
14505
|
-
|
|
14506
|
-
html2canvas(this.#chartContainer).then(canvas => {
|
|
14507
|
-
var link = this.#renderer.createElement('a');
|
|
14508
|
-
link.href = canvas.toDataURL('image/png');
|
|
14509
|
-
link.download = `${this.download.name ?? DEFAULT_DOWNLOAD.name}.png`;
|
|
14510
|
-
this.#renderer.appendChild(this.#document.body, link);
|
|
14511
|
-
link.click();
|
|
14512
|
-
this.#renderer.removeChild(this.#document.body, link);
|
|
14513
|
-
this.onDownload.emit();
|
|
14898
|
+
};
|
|
14899
|
+
const labelLine = {
|
|
14900
|
+
show: this.label?.line ?? true
|
|
14901
|
+
};
|
|
14902
|
+
const series = [{
|
|
14903
|
+
type: 'pie',
|
|
14904
|
+
radius: '50%',
|
|
14905
|
+
center: ['50%', '50%'],
|
|
14906
|
+
data: this.#data,
|
|
14907
|
+
label,
|
|
14908
|
+
labelLine
|
|
14909
|
+
}];
|
|
14910
|
+
const textColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-pie-chart-tooltip-color');
|
|
14911
|
+
const textBackgroundColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-pie-chart-tooltip-background-color');
|
|
14912
|
+
const borderColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-pie-chart-tooltip-border-color');
|
|
14913
|
+
const toolbox = {
|
|
14914
|
+
show: true,
|
|
14915
|
+
feature: {
|
|
14916
|
+
mySaveAsImage: {
|
|
14917
|
+
show: this.download.show ?? DEFAULT_DOWNLOAD.show,
|
|
14918
|
+
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',
|
|
14919
|
+
title: this.download.label ?? DEFAULT_DOWNLOAD.label,
|
|
14920
|
+
onclick: () => {
|
|
14921
|
+
setTimeout(() => {
|
|
14922
|
+
import('html2canvas').then(module => {
|
|
14923
|
+
const html2canvas = module.default;
|
|
14924
|
+
html2canvas(this.#chartContainer).then(canvas => {
|
|
14925
|
+
var link = this.#renderer.createElement('a');
|
|
14926
|
+
link.href = canvas.toDataURL('image/png');
|
|
14927
|
+
link.download = `${this.download.name ?? DEFAULT_DOWNLOAD.name}.png`;
|
|
14928
|
+
this.#renderer.appendChild(this.#document.body, link);
|
|
14929
|
+
link.click();
|
|
14930
|
+
this.#renderer.removeChild(this.#document.body, link);
|
|
14931
|
+
this.onDownload.emit();
|
|
14932
|
+
});
|
|
14514
14933
|
});
|
|
14934
|
+
}, 500);
|
|
14935
|
+
}
|
|
14936
|
+
},
|
|
14937
|
+
myExpandChart: {
|
|
14938
|
+
show: this.expand.show ?? DEFAULT_EXPAND.show,
|
|
14939
|
+
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',
|
|
14940
|
+
title: this.expand.label ?? DEFAULT_EXPAND.label,
|
|
14941
|
+
onclick: () => {
|
|
14942
|
+
this.#popup.open({
|
|
14943
|
+
component: BizyPieChartPopupComponent,
|
|
14944
|
+
data: {
|
|
14945
|
+
download: {
|
|
14946
|
+
show: this.download?.show ?? DEFAULT_DOWNLOAD.show,
|
|
14947
|
+
label: this.download?.label ?? DEFAULT_DOWNLOAD.label,
|
|
14948
|
+
name: this.download?.name ?? DEFAULT_DOWNLOAD.name,
|
|
14949
|
+
},
|
|
14950
|
+
option: this.#echarts.getOption()
|
|
14951
|
+
}
|
|
14515
14952
|
});
|
|
14516
|
-
}
|
|
14953
|
+
}
|
|
14517
14954
|
}
|
|
14518
14955
|
},
|
|
14519
|
-
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
|
|
14525
|
-
|
|
14526
|
-
data: {
|
|
14527
|
-
download: {
|
|
14528
|
-
show: this.download?.show ?? DEFAULT_DOWNLOAD.show,
|
|
14529
|
-
label: this.download?.label ?? DEFAULT_DOWNLOAD.label,
|
|
14530
|
-
name: this.download?.name ?? DEFAULT_DOWNLOAD.name,
|
|
14531
|
-
},
|
|
14532
|
-
option: this.#echarts.getOption()
|
|
14533
|
-
}
|
|
14534
|
-
});
|
|
14956
|
+
emphasis: {
|
|
14957
|
+
iconStyle: {
|
|
14958
|
+
color: textColor,
|
|
14959
|
+
borderColor,
|
|
14960
|
+
borderWidth: 1,
|
|
14961
|
+
textBackgroundColor,
|
|
14962
|
+
textPadding: 5,
|
|
14535
14963
|
}
|
|
14536
14964
|
}
|
|
14537
|
-
},
|
|
14538
|
-
emphasis: {
|
|
14539
|
-
iconStyle: {
|
|
14540
|
-
color: textColor,
|
|
14541
|
-
borderColor,
|
|
14542
|
-
borderWidth: 1,
|
|
14543
|
-
textBackgroundColor,
|
|
14544
|
-
textPadding: 5,
|
|
14545
|
-
}
|
|
14546
|
-
}
|
|
14547
|
-
};
|
|
14548
|
-
const tooltip = {
|
|
14549
|
-
show: this.tooltip?.show ?? DEFAULT_TOOLTIP.show,
|
|
14550
|
-
trigger: 'item',
|
|
14551
|
-
appendToBody: true,
|
|
14552
|
-
formatter: this.tooltip?.formatter
|
|
14553
|
-
};
|
|
14554
|
-
let legend = {};
|
|
14555
|
-
if (this.legend) {
|
|
14556
|
-
legend.show = this.legend.show;
|
|
14557
|
-
legend.orient = this.legend.orient;
|
|
14558
|
-
legend.left = this.legend.position ? this.legend.position.x : 'auto';
|
|
14559
|
-
legend.top = this.legend.position ? this.legend.position.y : 'auto';
|
|
14560
|
-
}
|
|
14561
|
-
else {
|
|
14562
|
-
legend = this.type === 'pie' ? { show: false } : {
|
|
14563
|
-
show: true,
|
|
14564
|
-
orient: 'vertical',
|
|
14565
|
-
left: 'left'
|
|
14566
14965
|
};
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
14570
|
-
|
|
14571
|
-
|
|
14572
|
-
let base = Math.min(width, height);
|
|
14573
|
-
let fontSize = base / 6;
|
|
14574
|
-
graphic = {
|
|
14575
|
-
type: 'text',
|
|
14576
|
-
left: 'center',
|
|
14577
|
-
top: 'center',
|
|
14578
|
-
style: {
|
|
14579
|
-
text: String(this.centerLabel.value),
|
|
14580
|
-
fill: this.centerLabel.color || centerLabelColor,
|
|
14581
|
-
textAlign: 'center',
|
|
14582
|
-
fontSize,
|
|
14583
|
-
fontWeight: 'bold'
|
|
14584
|
-
}
|
|
14966
|
+
const tooltip = {
|
|
14967
|
+
show: this.tooltip?.show ?? DEFAULT_TOOLTIP.show,
|
|
14968
|
+
trigger: 'item',
|
|
14969
|
+
appendToBody: true,
|
|
14970
|
+
formatter: this.tooltip?.formatter
|
|
14585
14971
|
};
|
|
14586
|
-
|
|
14587
|
-
|
|
14588
|
-
|
|
14589
|
-
|
|
14590
|
-
|
|
14591
|
-
|
|
14592
|
-
graphic
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14599
|
-
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
|
|
14603
|
-
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
14607
|
-
|
|
14608
|
-
this.#createChartContainer();
|
|
14609
|
-
if (!this.#chartContainer) {
|
|
14610
|
-
return;
|
|
14972
|
+
let legend = {
|
|
14973
|
+
show: this.legend?.show ?? DEFAULT_LEGEND.show,
|
|
14974
|
+
orient: this.legend?.orient ?? DEFAULT_LEGEND.orient,
|
|
14975
|
+
left: this.legend?.position ? this.legend?.position.x : DEFAULT_LEGEND.position.x,
|
|
14976
|
+
top: this.legend?.position ? this.legend?.position.y : DEFAULT_LEGEND.position.y,
|
|
14977
|
+
};
|
|
14978
|
+
let graphic;
|
|
14979
|
+
if (this.centerLabel) {
|
|
14980
|
+
let centerLabelColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-pie-chart-center-label-color');
|
|
14981
|
+
let { width, height } = this.#chartContainer.getBoundingClientRect();
|
|
14982
|
+
let base = Math.min(width, height);
|
|
14983
|
+
let fontSize = base / 6;
|
|
14984
|
+
graphic = {
|
|
14985
|
+
type: 'text',
|
|
14986
|
+
left: 'center',
|
|
14987
|
+
top: 'center',
|
|
14988
|
+
style: {
|
|
14989
|
+
text: this.centerLabel,
|
|
14990
|
+
fill: centerLabelColor,
|
|
14991
|
+
textAlign: 'center',
|
|
14992
|
+
fontSize,
|
|
14993
|
+
fontWeight: 'bold'
|
|
14611
14994
|
}
|
|
14612
|
-
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
|
|
14995
|
+
};
|
|
14996
|
+
}
|
|
14997
|
+
const option = {
|
|
14998
|
+
tooltip,
|
|
14999
|
+
toolbox,
|
|
15000
|
+
legend,
|
|
15001
|
+
series,
|
|
15002
|
+
graphic
|
|
15003
|
+
};
|
|
15004
|
+
import('echarts').then(echarts => {
|
|
15005
|
+
this.#echarts = echarts.init(this.#chartContainer);
|
|
15006
|
+
Promise.resolve().then(() => {
|
|
15007
|
+
this.#echarts.setOption(option);
|
|
15008
|
+
this.#echarts.on('click', (params) => {
|
|
15009
|
+
this.onSelect.emit({
|
|
15010
|
+
name: params.data.name,
|
|
15011
|
+
value: params.data.value,
|
|
15012
|
+
color: params.data.itemStyle.color,
|
|
15013
|
+
metadata: params.data.metadata || {}
|
|
14617
15014
|
});
|
|
14618
15015
|
});
|
|
14619
|
-
|
|
15016
|
+
this.#resizeSubscription.unsubscribe();
|
|
15017
|
+
this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
|
|
15018
|
+
const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
|
|
15019
|
+
this.#resizeObserver.observe(resizeRef);
|
|
15020
|
+
this.#resizeSubscription = new Subscription();
|
|
15021
|
+
this.#resizeSubscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
|
|
15022
|
+
this.#deleteChartContainer();
|
|
15023
|
+
this.#createChartContainer();
|
|
15024
|
+
if (!this.#chartContainer) {
|
|
15025
|
+
return;
|
|
15026
|
+
}
|
|
15027
|
+
this.#echarts = echarts.init(this.#chartContainer);
|
|
15028
|
+
Promise.resolve().then(() => {
|
|
15029
|
+
this.#echarts.setOption({ ...option, series: option.series.map(_serie => { return { ..._serie, data: this.#data }; }) });
|
|
15030
|
+
this.#echarts.on('click', (params) => {
|
|
15031
|
+
this.onSelect.emit({
|
|
15032
|
+
name: params.data.name,
|
|
15033
|
+
value: params.data.value,
|
|
15034
|
+
color: params.data.itemStyle.color,
|
|
15035
|
+
metadata: params.data.metadata || {}
|
|
15036
|
+
});
|
|
15037
|
+
});
|
|
15038
|
+
});
|
|
15039
|
+
}));
|
|
15040
|
+
});
|
|
14620
15041
|
});
|
|
14621
15042
|
});
|
|
14622
15043
|
}));
|
|
@@ -14629,7 +15050,7 @@ class BizyPieChartComponent {
|
|
|
14629
15050
|
let elementHeight = this.#elementRef.nativeElement.offsetHeight;
|
|
14630
15051
|
let minWidth = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-pie-chart-width');
|
|
14631
15052
|
let minHeight = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-pie-chart-height');
|
|
14632
|
-
const width = minWidth ? minWidth : elementWidth ? `${elementWidth}px` : DEFAULT_CHART_SIZE;
|
|
15053
|
+
const width = minWidth ? minWidth : elementWidth ? `${elementWidth * 0.99}px` : DEFAULT_CHART_SIZE;
|
|
14633
15054
|
const height = minHeight ? minHeight : elementHeight ? `${elementHeight}px` : DEFAULT_CHART_SIZE;
|
|
14634
15055
|
this.#chartContainer = this.#renderer.createElement('div');
|
|
14635
15056
|
this.#renderer.setStyle(this.#chartContainer, 'width', width);
|
|
@@ -14668,15 +15089,13 @@ class BizyPieChartComponent {
|
|
|
14668
15089
|
}
|
|
14669
15090
|
}
|
|
14670
15091
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyPieChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14671
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.5", type: BizyPieChartComponent, isStandalone: true, selector: "bizy-pie-chart", inputs: { resizeRef: "resizeRef",
|
|
15092
|
+
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 });
|
|
14672
15093
|
}
|
|
14673
15094
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyPieChartComponent, decorators: [{
|
|
14674
15095
|
type: Component,
|
|
14675
|
-
args: [{ selector: 'bizy-pie-chart', template: '',
|
|
15096
|
+
args: [{ selector: 'bizy-pie-chart', template: '', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:flex;justify-content:center}\n"] }]
|
|
14676
15097
|
}], propDecorators: { resizeRef: [{
|
|
14677
15098
|
type: Input
|
|
14678
|
-
}], type: [{
|
|
14679
|
-
type: Input
|
|
14680
15099
|
}], centerLabel: [{
|
|
14681
15100
|
type: Input
|
|
14682
15101
|
}], tooltip: [{
|
|
@@ -14697,7 +15116,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
14697
15116
|
type: Input
|
|
14698
15117
|
}] } });
|
|
14699
15118
|
|
|
14700
|
-
const COMPONENTS$
|
|
15119
|
+
const COMPONENTS$e = [
|
|
14701
15120
|
BizyPieChartComponent,
|
|
14702
15121
|
BizyPieChartPopupComponent
|
|
14703
15122
|
];
|
|
@@ -14711,8 +15130,8 @@ class BizyPieChartModule {
|
|
|
14711
15130
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyPieChartModule, decorators: [{
|
|
14712
15131
|
type: NgModule,
|
|
14713
15132
|
args: [{
|
|
14714
|
-
imports: COMPONENTS$
|
|
14715
|
-
exports: COMPONENTS$
|
|
15133
|
+
imports: COMPONENTS$e,
|
|
15134
|
+
exports: COMPONENTS$e,
|
|
14716
15135
|
}]
|
|
14717
15136
|
}] });
|
|
14718
15137
|
|
|
@@ -14735,19 +15154,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
14735
15154
|
type: Input
|
|
14736
15155
|
}] } });
|
|
14737
15156
|
|
|
14738
|
-
const COMPONENTS$
|
|
15157
|
+
const COMPONENTS$d = [
|
|
14739
15158
|
BizyProgressBarComponent,
|
|
14740
15159
|
];
|
|
14741
15160
|
class BizyProgressBarModule {
|
|
14742
15161
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14743
15162
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyProgressBarModule, imports: [BizyProgressBarComponent], exports: [BizyProgressBarComponent] });
|
|
14744
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyProgressBarModule, imports: [COMPONENTS$
|
|
15163
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyProgressBarModule, imports: [COMPONENTS$d] });
|
|
14745
15164
|
}
|
|
14746
15165
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyProgressBarModule, decorators: [{
|
|
14747
15166
|
type: NgModule,
|
|
14748
15167
|
args: [{
|
|
14749
|
-
imports: COMPONENTS$
|
|
14750
|
-
exports: COMPONENTS$
|
|
15168
|
+
imports: COMPONENTS$d,
|
|
15169
|
+
exports: COMPONENTS$d,
|
|
14751
15170
|
}]
|
|
14752
15171
|
}] });
|
|
14753
15172
|
|
|
@@ -14787,19 +15206,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
14787
15206
|
type: Output
|
|
14788
15207
|
}] } });
|
|
14789
15208
|
|
|
14790
|
-
const COMPONENTS$
|
|
15209
|
+
const COMPONENTS$c = [
|
|
14791
15210
|
BizyRadioComponent,
|
|
14792
15211
|
];
|
|
14793
15212
|
class BizyRadioModule {
|
|
14794
15213
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14795
15214
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyRadioModule, imports: [BizyRadioComponent], exports: [BizyRadioComponent] });
|
|
14796
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyRadioModule, imports: [COMPONENTS$
|
|
15215
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyRadioModule, imports: [COMPONENTS$c] });
|
|
14797
15216
|
}
|
|
14798
15217
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyRadioModule, decorators: [{
|
|
14799
15218
|
type: NgModule,
|
|
14800
15219
|
args: [{
|
|
14801
|
-
imports: COMPONENTS$
|
|
14802
|
-
exports: COMPONENTS$
|
|
15220
|
+
imports: COMPONENTS$c,
|
|
15221
|
+
exports: COMPONENTS$c,
|
|
14803
15222
|
}]
|
|
14804
15223
|
}] });
|
|
14805
15224
|
|
|
@@ -14867,7 +15286,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
14867
15286
|
type: Input
|
|
14868
15287
|
}] } });
|
|
14869
15288
|
|
|
14870
|
-
const COMPONENTS$
|
|
15289
|
+
const COMPONENTS$b = [
|
|
14871
15290
|
BizySectionComponent,
|
|
14872
15291
|
BizySectionStartComponent,
|
|
14873
15292
|
BizySectionCenterComponent,
|
|
@@ -14887,12 +15306,12 @@ class BizySectionModule {
|
|
|
14887
15306
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySectionModule, decorators: [{
|
|
14888
15307
|
type: NgModule,
|
|
14889
15308
|
args: [{
|
|
14890
|
-
imports: COMPONENTS$
|
|
14891
|
-
exports: COMPONENTS$
|
|
15309
|
+
imports: COMPONENTS$b,
|
|
15310
|
+
exports: COMPONENTS$b,
|
|
14892
15311
|
}]
|
|
14893
15312
|
}] });
|
|
14894
15313
|
|
|
14895
|
-
const COMPONENTS$
|
|
15314
|
+
const COMPONENTS$a = [
|
|
14896
15315
|
BizySelectComponent,
|
|
14897
15316
|
BizySelectOptionComponent
|
|
14898
15317
|
];
|
|
@@ -14901,13 +15320,13 @@ class BizySelectModule {
|
|
|
14901
15320
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizySelectModule, imports: [BizySelectComponent,
|
|
14902
15321
|
BizySelectOptionComponent], exports: [BizySelectComponent,
|
|
14903
15322
|
BizySelectOptionComponent] });
|
|
14904
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySelectModule, imports: [COMPONENTS$
|
|
15323
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySelectModule, imports: [COMPONENTS$a] });
|
|
14905
15324
|
}
|
|
14906
15325
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySelectModule, decorators: [{
|
|
14907
15326
|
type: NgModule,
|
|
14908
15327
|
args: [{
|
|
14909
|
-
imports: COMPONENTS$
|
|
14910
|
-
exports: COMPONENTS$
|
|
15328
|
+
imports: COMPONENTS$a,
|
|
15329
|
+
exports: COMPONENTS$a,
|
|
14911
15330
|
}]
|
|
14912
15331
|
}] });
|
|
14913
15332
|
|
|
@@ -15260,7 +15679,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
15260
15679
|
type: Input
|
|
15261
15680
|
}] } });
|
|
15262
15681
|
|
|
15263
|
-
const COMPONENTS$
|
|
15682
|
+
const COMPONENTS$9 = [
|
|
15264
15683
|
BizySidebarComponent,
|
|
15265
15684
|
BizySidebarFloatingOptionComponent,
|
|
15266
15685
|
BizySidebarFloatingOptionTitleComponent,
|
|
@@ -15282,8 +15701,8 @@ class BizySidebarModule {
|
|
|
15282
15701
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySidebarModule, decorators: [{
|
|
15283
15702
|
type: NgModule,
|
|
15284
15703
|
args: [{
|
|
15285
|
-
imports: COMPONENTS$
|
|
15286
|
-
exports: COMPONENTS$
|
|
15704
|
+
imports: COMPONENTS$9,
|
|
15705
|
+
exports: COMPONENTS$9,
|
|
15287
15706
|
}]
|
|
15288
15707
|
}] });
|
|
15289
15708
|
|
|
@@ -15328,7 +15747,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
15328
15747
|
type: Input
|
|
15329
15748
|
}] } });
|
|
15330
15749
|
|
|
15331
|
-
const COMPONENTS$
|
|
15750
|
+
const COMPONENTS$8 = [
|
|
15332
15751
|
BizySkeletonComponent,
|
|
15333
15752
|
];
|
|
15334
15753
|
class BizySkeletonModule {
|
|
@@ -15339,8 +15758,8 @@ class BizySkeletonModule {
|
|
|
15339
15758
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySkeletonModule, decorators: [{
|
|
15340
15759
|
type: NgModule,
|
|
15341
15760
|
args: [{
|
|
15342
|
-
imports: COMPONENTS$
|
|
15343
|
-
exports: COMPONENTS$
|
|
15761
|
+
imports: COMPONENTS$8,
|
|
15762
|
+
exports: COMPONENTS$8,
|
|
15344
15763
|
}]
|
|
15345
15764
|
}] });
|
|
15346
15765
|
|
|
@@ -15412,15 +15831,203 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
15412
15831
|
type: Input
|
|
15413
15832
|
}] } });
|
|
15414
15833
|
|
|
15415
|
-
const COMPONENTS$
|
|
15834
|
+
const COMPONENTS$7 = [
|
|
15416
15835
|
BizySliderComponent,
|
|
15417
15836
|
];
|
|
15418
15837
|
class BizySliderModule {
|
|
15419
15838
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
15420
15839
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizySliderModule, imports: [BizySliderComponent], exports: [BizySliderComponent] });
|
|
15421
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySliderModule, imports: [COMPONENTS$
|
|
15840
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySliderModule, imports: [COMPONENTS$7] });
|
|
15422
15841
|
}
|
|
15423
15842
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySliderModule, decorators: [{
|
|
15843
|
+
type: NgModule,
|
|
15844
|
+
args: [{
|
|
15845
|
+
imports: COMPONENTS$7,
|
|
15846
|
+
exports: COMPONENTS$7,
|
|
15847
|
+
}]
|
|
15848
|
+
}] });
|
|
15849
|
+
|
|
15850
|
+
class BizyStackedBarChartSegmentComponent {
|
|
15851
|
+
#document = inject(DOCUMENT);
|
|
15852
|
+
#elementRef = inject(ElementRef);
|
|
15853
|
+
id = `bizy-stacked-bar-chart-segment-${Math.random()}`;
|
|
15854
|
+
disabled = false;
|
|
15855
|
+
name = null;
|
|
15856
|
+
onSelect = new EventEmitter();
|
|
15857
|
+
onLegendSelect = new EventEmitter();
|
|
15858
|
+
_width = '100%';
|
|
15859
|
+
#color = new BehaviorSubject('');
|
|
15860
|
+
get color$() {
|
|
15861
|
+
return this.#color.asObservable();
|
|
15862
|
+
}
|
|
15863
|
+
#value = new BehaviorSubject(0);
|
|
15864
|
+
get value$() {
|
|
15865
|
+
return this.#value.asObservable();
|
|
15866
|
+
}
|
|
15867
|
+
set value(value) {
|
|
15868
|
+
if (typeof value === 'undefined' || value === null) {
|
|
15869
|
+
return;
|
|
15870
|
+
}
|
|
15871
|
+
this.#value.next(value);
|
|
15872
|
+
}
|
|
15873
|
+
ngAfterViewChecked() {
|
|
15874
|
+
this.#color.next(this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-stacked-bar-chart-color'));
|
|
15875
|
+
}
|
|
15876
|
+
getNativeElement = () => this.#elementRef?.nativeElement;
|
|
15877
|
+
_onSelect(event) {
|
|
15878
|
+
if (this.disabled) {
|
|
15879
|
+
return;
|
|
15880
|
+
}
|
|
15881
|
+
this.onSelect.emit(event);
|
|
15882
|
+
}
|
|
15883
|
+
_setWidth(width) {
|
|
15884
|
+
this._width = width;
|
|
15885
|
+
}
|
|
15886
|
+
_getValue = () => this.#value.value;
|
|
15887
|
+
#getClosestCssVariable = (element, cssVariable) => {
|
|
15888
|
+
while (element) {
|
|
15889
|
+
const value = getComputedStyle(element).getPropertyValue(cssVariable).trim();
|
|
15890
|
+
if (value) {
|
|
15891
|
+
return value;
|
|
15892
|
+
}
|
|
15893
|
+
element = element.parentElement;
|
|
15894
|
+
}
|
|
15895
|
+
const rootValue = getComputedStyle(this.#document.documentElement).getPropertyValue(cssVariable).trim();
|
|
15896
|
+
return rootValue || null;
|
|
15897
|
+
};
|
|
15898
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyStackedBarChartSegmentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15899
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.5", type: BizyStackedBarChartSegmentComponent, isStandalone: true, selector: "bizy-stacked-bar-chart-segment", inputs: { id: "id", disabled: "disabled", name: "name", value: "value" }, outputs: { onSelect: "onSelect", onLegendSelect: "onLegendSelect" }, host: { properties: { "id": "id", "style.width": "this._width" } }, ngImport: i0, template: "<button \n type=\"button\"\n class=\"bizy-stacked-bar-chart-segment\"\n [class.bizy-stacked-bar-chart-segment--disabled]=\"disabled\"\n [class.bizy-stacked-bar-chart-segment--empty]=\"!(value$ | async)\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n</button>", styles: [":host{font-size:1rem;display:flex}.bizy-stacked-bar-chart-segment{flex:1;transition:width .3s ease;border:none;cursor:pointer;background-color:var(--bizy-stacked-bar-chart-color)}.bizy-stacked-bar-chart-segment--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}.bizy-stacked-bar-chart-segment--empty{background-color:var(--bizy-stacked-bar-chart-background-color)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15900
|
+
}
|
|
15901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyStackedBarChartSegmentComponent, decorators: [{
|
|
15902
|
+
type: Component,
|
|
15903
|
+
args: [{ selector: 'bizy-stacked-bar-chart-segment', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule], host: {
|
|
15904
|
+
'[id]': 'id',
|
|
15905
|
+
'[style.width]': 'this._width',
|
|
15906
|
+
}, template: "<button \n type=\"button\"\n class=\"bizy-stacked-bar-chart-segment\"\n [class.bizy-stacked-bar-chart-segment--disabled]=\"disabled\"\n [class.bizy-stacked-bar-chart-segment--empty]=\"!(value$ | async)\"\n (click)=\"_onSelect($event)\"\n (keyup.enter)=\"_onSelect($event)\">\n</button>", styles: [":host{font-size:1rem;display:flex}.bizy-stacked-bar-chart-segment{flex:1;transition:width .3s ease;border:none;cursor:pointer;background-color:var(--bizy-stacked-bar-chart-color)}.bizy-stacked-bar-chart-segment--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}.bizy-stacked-bar-chart-segment--empty{background-color:var(--bizy-stacked-bar-chart-background-color)!important}\n"] }]
|
|
15907
|
+
}], propDecorators: { id: [{
|
|
15908
|
+
type: Input
|
|
15909
|
+
}], disabled: [{
|
|
15910
|
+
type: Input
|
|
15911
|
+
}], name: [{
|
|
15912
|
+
type: Input
|
|
15913
|
+
}], onSelect: [{
|
|
15914
|
+
type: Output
|
|
15915
|
+
}], onLegendSelect: [{
|
|
15916
|
+
type: Output
|
|
15917
|
+
}], value: [{
|
|
15918
|
+
type: Input
|
|
15919
|
+
}] } });
|
|
15920
|
+
|
|
15921
|
+
var ANURA_STACKED_BAR_CHART_LEGEND_POSITION;
|
|
15922
|
+
(function (ANURA_STACKED_BAR_CHART_LEGEND_POSITION) {
|
|
15923
|
+
ANURA_STACKED_BAR_CHART_LEGEND_POSITION["TOP"] = "top";
|
|
15924
|
+
ANURA_STACKED_BAR_CHART_LEGEND_POSITION["BOTTOM"] = "bottom";
|
|
15925
|
+
})(ANURA_STACKED_BAR_CHART_LEGEND_POSITION || (ANURA_STACKED_BAR_CHART_LEGEND_POSITION = {}));
|
|
15926
|
+
|
|
15927
|
+
const DEFAULT_LEGENDS = {
|
|
15928
|
+
show: true,
|
|
15929
|
+
position: ANURA_STACKED_BAR_CHART_LEGEND_POSITION.BOTTOM
|
|
15930
|
+
};
|
|
15931
|
+
class BizyStackedBarChartComponent {
|
|
15932
|
+
#elementRef = inject(ElementRef);
|
|
15933
|
+
id = `bizy-stacked-bar-chart-${Math.random()}`;
|
|
15934
|
+
segments = null;
|
|
15935
|
+
_total = 0;
|
|
15936
|
+
_forcedTotal = 0;
|
|
15937
|
+
_legends = DEFAULT_LEGENDS;
|
|
15938
|
+
#segmentSubscription = new Subscription();
|
|
15939
|
+
#segmentValueSubscription = new Subscription();
|
|
15940
|
+
ANURA_STACKED_BAR_CHART_LEGEND_POSITION = ANURA_STACKED_BAR_CHART_LEGEND_POSITION;
|
|
15941
|
+
getNativeElement = () => this.#elementRef?.nativeElement;
|
|
15942
|
+
ngAfterContentInit() {
|
|
15943
|
+
if (!this.segments || this.segments.length === 0) {
|
|
15944
|
+
return;
|
|
15945
|
+
}
|
|
15946
|
+
this.#segmentSubscription = new Subscription();
|
|
15947
|
+
this.#segmentSubscription.add(this.segments.changes.subscribe(_segments => {
|
|
15948
|
+
this.#segmentValueSubscription.unsubscribe();
|
|
15949
|
+
this.#segmentValueSubscription = new Subscription();
|
|
15950
|
+
_segments.forEach(_segment => {
|
|
15951
|
+
this.#segmentValueSubscription.add(_segment.value$.subscribe(_value => {
|
|
15952
|
+
this.#calculateWidth();
|
|
15953
|
+
}));
|
|
15954
|
+
});
|
|
15955
|
+
}));
|
|
15956
|
+
this.segments.forEach(_segment => {
|
|
15957
|
+
this.#segmentValueSubscription.add(_segment.value$.subscribe(_value => {
|
|
15958
|
+
this.#calculateWidth();
|
|
15959
|
+
}));
|
|
15960
|
+
});
|
|
15961
|
+
}
|
|
15962
|
+
set legends(legends) {
|
|
15963
|
+
if (!legends) {
|
|
15964
|
+
return;
|
|
15965
|
+
}
|
|
15966
|
+
this._legends = {
|
|
15967
|
+
...legends,
|
|
15968
|
+
show: typeof legends.show !== 'undefined' && legends.show !== null ? legends.show : DEFAULT_LEGENDS.show,
|
|
15969
|
+
position: legends.position || DEFAULT_LEGENDS.position
|
|
15970
|
+
};
|
|
15971
|
+
}
|
|
15972
|
+
set total(total) {
|
|
15973
|
+
if (!total) {
|
|
15974
|
+
return;
|
|
15975
|
+
}
|
|
15976
|
+
this._forcedTotal = total;
|
|
15977
|
+
this.#calculateWidth();
|
|
15978
|
+
}
|
|
15979
|
+
#calculateWidth() {
|
|
15980
|
+
if (!this.segments) {
|
|
15981
|
+
return;
|
|
15982
|
+
}
|
|
15983
|
+
let _total = this._forcedTotal || this.total || 0;
|
|
15984
|
+
if (!_total) {
|
|
15985
|
+
_total = 0;
|
|
15986
|
+
for (let i = 0; i < this.segments.length; i++) {
|
|
15987
|
+
_total += this.segments.get(i)._getValue() || 0;
|
|
15988
|
+
}
|
|
15989
|
+
}
|
|
15990
|
+
if (_total) {
|
|
15991
|
+
for (let i = 0; i < this.segments.length; i++) {
|
|
15992
|
+
this.segments.get(i)._setWidth(`${(this.segments.get(i)._getValue() / _total) * 100}%`);
|
|
15993
|
+
}
|
|
15994
|
+
}
|
|
15995
|
+
}
|
|
15996
|
+
ngOnDestroy() {
|
|
15997
|
+
this.#segmentSubscription.unsubscribe();
|
|
15998
|
+
this.#segmentValueSubscription.unsubscribe();
|
|
15999
|
+
}
|
|
16000
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyStackedBarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16001
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: BizyStackedBarChartComponent, isStandalone: true, selector: "bizy-stacked-bar-chart", inputs: { id: "id", legends: "legends", total: "total" }, host: { properties: { "id": "id" } }, queries: [{ propertyName: "segments", predicate: BizyStackedBarChartSegmentComponent }], ngImport: i0, template: "@if(segments && _legends.show && _legends.position === ANURA_STACKED_BAR_CHART_LEGEND_POSITION.TOP) {\n <div class=\"bizy-stacked-bar-chart__legends\">\n @for (segment of segments; track segment.id ?? i; let i = $index) {\n <button \n type=\"button\"\n class=\"bizy-stacked-bar-chart__legends__legend\"\n [class.bizy-button--disabled]=\"segment.disabled\"\n (click)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\"\n (keyup.enter)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\">\n <span class=\"bizy-stacked-bar-chart__legends__legend__bullet\"[style.backgroundColor]=\"(segment.color$ | async)\"></span>\n <h6>{{segment.name}} <strong>{{(segment.value$ | async) || 0}}</strong></h6>\n </button>\n }\n </div>\n}\n\n<div class=\"bizy-stacked-bar-chart\">\n <ng-content select=\"bizy-stacked-bar-chart-segment\"></ng-content>\n</div>\n\n\n@if(segments && _legends.show && _legends.position === ANURA_STACKED_BAR_CHART_LEGEND_POSITION.BOTTOM) {\n <div class=\"bizy-stacked-bar-chart__legends\">\n @for (segment of segments; track segment.id ?? i; let i = $index) {\n <button \n type=\"button\"\n class=\"bizy-stacked-bar-chart__legends__legend\"\n [class.bizy-button--disabled]=\"segment.disabled\"\n (click)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\"\n (keyup.enter)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\">\n <span class=\"bizy-stacked-bar-chart__legends__legend__bullet\"[style.backgroundColor]=\"(segment.color$ | async)\"></span>\n <h6>{{segment.name}} <strong>{{(segment.value$ | async) || 0}}</strong></h6>\n </button>\n }\n </div>\n}\n", styles: [":host{font-size:1rem;display:flex;flex-direction:column;row-gap:.3rem;height:fit-content;width:var(--bizy-stacked-bar-chart-width)}.bizy-stacked-bar-chart{display:flex;width:100%;height:var(--bizy-stacked-bar-chart-height);border-top:var(--bizy-stacked-bar-chart-border-top, var(--bizy-stacked-bar-chart-border, none));border-right:var(--bizy-stacked-bar-chart-border-right, var(--bizy-stacked-bar-chart-border, none));border-bottom:var(--bizy-stacked-bar-chart-border-bottom, var(--bizy-stacked-bar-chart-border, none));border-left:var(--bizy-stacked-bar-chart-border-left, var(--bizy-stacked-bar-chart-border, none));border-radius:var(--bizy-stacked-bar-chart-border-radius);overflow:hidden;background-color:var(--bizy-stacked-bar-chart-background-color)}.bizy-stacked-bar-chart__legends{width:100%;display:flex;align-items:center;column-gap:.5rem;flex-wrap:wrap}.bizy-stacked-bar-chart__legends__legend{display:flex;align-items:center;column-gap:.3rem;border:none;background-color:transparent;padding:0;margin:0;cursor:pointer}.bizy-stacked-bar-chart__legends__legend__bullet{border-radius:50%;width:.5rem;height:.5rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
16002
|
+
}
|
|
16003
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyStackedBarChartComponent, decorators: [{
|
|
16004
|
+
type: Component,
|
|
16005
|
+
args: [{ selector: 'bizy-stacked-bar-chart', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
16006
|
+
'[id]': 'id',
|
|
16007
|
+
}, template: "@if(segments && _legends.show && _legends.position === ANURA_STACKED_BAR_CHART_LEGEND_POSITION.TOP) {\n <div class=\"bizy-stacked-bar-chart__legends\">\n @for (segment of segments; track segment.id ?? i; let i = $index) {\n <button \n type=\"button\"\n class=\"bizy-stacked-bar-chart__legends__legend\"\n [class.bizy-button--disabled]=\"segment.disabled\"\n (click)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\"\n (keyup.enter)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\">\n <span class=\"bizy-stacked-bar-chart__legends__legend__bullet\"[style.backgroundColor]=\"(segment.color$ | async)\"></span>\n <h6>{{segment.name}} <strong>{{(segment.value$ | async) || 0}}</strong></h6>\n </button>\n }\n </div>\n}\n\n<div class=\"bizy-stacked-bar-chart\">\n <ng-content select=\"bizy-stacked-bar-chart-segment\"></ng-content>\n</div>\n\n\n@if(segments && _legends.show && _legends.position === ANURA_STACKED_BAR_CHART_LEGEND_POSITION.BOTTOM) {\n <div class=\"bizy-stacked-bar-chart__legends\">\n @for (segment of segments; track segment.id ?? i; let i = $index) {\n <button \n type=\"button\"\n class=\"bizy-stacked-bar-chart__legends__legend\"\n [class.bizy-button--disabled]=\"segment.disabled\"\n (click)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\"\n (keyup.enter)=\"segment.disabled ? null : segment.onLegendSelect.emit($event)\">\n <span class=\"bizy-stacked-bar-chart__legends__legend__bullet\"[style.backgroundColor]=\"(segment.color$ | async)\"></span>\n <h6>{{segment.name}} <strong>{{(segment.value$ | async) || 0}}</strong></h6>\n </button>\n }\n </div>\n}\n", styles: [":host{font-size:1rem;display:flex;flex-direction:column;row-gap:.3rem;height:fit-content;width:var(--bizy-stacked-bar-chart-width)}.bizy-stacked-bar-chart{display:flex;width:100%;height:var(--bizy-stacked-bar-chart-height);border-top:var(--bizy-stacked-bar-chart-border-top, var(--bizy-stacked-bar-chart-border, none));border-right:var(--bizy-stacked-bar-chart-border-right, var(--bizy-stacked-bar-chart-border, none));border-bottom:var(--bizy-stacked-bar-chart-border-bottom, var(--bizy-stacked-bar-chart-border, none));border-left:var(--bizy-stacked-bar-chart-border-left, var(--bizy-stacked-bar-chart-border, none));border-radius:var(--bizy-stacked-bar-chart-border-radius);overflow:hidden;background-color:var(--bizy-stacked-bar-chart-background-color)}.bizy-stacked-bar-chart__legends{width:100%;display:flex;align-items:center;column-gap:.5rem;flex-wrap:wrap}.bizy-stacked-bar-chart__legends__legend{display:flex;align-items:center;column-gap:.3rem;border:none;background-color:transparent;padding:0;margin:0;cursor:pointer}.bizy-stacked-bar-chart__legends__legend__bullet{border-radius:50%;width:.5rem;height:.5rem}\n"] }]
|
|
16008
|
+
}], propDecorators: { id: [{
|
|
16009
|
+
type: Input
|
|
16010
|
+
}], segments: [{
|
|
16011
|
+
type: ContentChildren,
|
|
16012
|
+
args: [BizyStackedBarChartSegmentComponent]
|
|
16013
|
+
}], legends: [{
|
|
16014
|
+
type: Input
|
|
16015
|
+
}], total: [{
|
|
16016
|
+
type: Input
|
|
16017
|
+
}] } });
|
|
16018
|
+
|
|
16019
|
+
const COMPONENTS$6 = [
|
|
16020
|
+
BizyStackedBarChartComponent,
|
|
16021
|
+
BizyStackedBarChartSegmentComponent
|
|
16022
|
+
];
|
|
16023
|
+
class BizyStackedBarChartModule {
|
|
16024
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyStackedBarChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16025
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyStackedBarChartModule, imports: [BizyStackedBarChartComponent,
|
|
16026
|
+
BizyStackedBarChartSegmentComponent], exports: [BizyStackedBarChartComponent,
|
|
16027
|
+
BizyStackedBarChartSegmentComponent] });
|
|
16028
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyStackedBarChartModule, imports: [COMPONENTS$6] });
|
|
16029
|
+
}
|
|
16030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyStackedBarChartModule, decorators: [{
|
|
15424
16031
|
type: NgModule,
|
|
15425
16032
|
args: [{
|
|
15426
16033
|
imports: COMPONENTS$6,
|
|
@@ -17997,5 +18604,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
|
|
|
17997
18604
|
* Generated bundle index. Do not edit.
|
|
17998
18605
|
*/
|
|
17999
18606
|
|
|
18000
|
-
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, 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 };
|
|
18607
|
+
export { ANURA_STACKED_BAR_CHART_LEGEND_POSITION, 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, BizyStackedBarChartComponent, BizyStackedBarChartModule, BizyStackedBarChartSegmentComponent, 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 };
|
|
18001
18608
|
//# sourceMappingURL=bizy-core.mjs.map
|