@bizy/core 20.0.0 → 20.1.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 +91 -63
- package/fesm2022/bizy-core.mjs.map +1 -1
- package/index.d.ts +12 -1
- package/package.json +1 -1
- package/styles/variables.css +3 -0
package/fesm2022/bizy-core.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import * as i1 from '@angular/common';
|
|
|
4
4
|
import { CommonModule, registerLocaleData, DatePipe } from '@angular/common';
|
|
5
5
|
import { Subject, Subscription, BehaviorSubject, filter, take, skip, auditTime, throttleTime, debounceTime as debounceTime$1, interval, fromEvent, merge } from 'rxjs';
|
|
6
6
|
import { debounceTime, distinctUntilChanged, takeUntil, map, filter as filter$1, take as take$1 } from 'rxjs/operators';
|
|
7
|
-
import * as echarts from 'echarts';
|
|
8
7
|
import html2canvas from 'html2canvas';
|
|
9
8
|
import * as i2 from 'angular-calendar';
|
|
10
9
|
import { CalendarNativeDateFormatter, CalendarModule, CalendarUtils, CalendarA11y, CalendarEventTitleFormatter, DateAdapter, CalendarDateFormatter } from 'angular-calendar';
|
|
@@ -82,19 +81,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
82
81
|
type: Output
|
|
83
82
|
}] } });
|
|
84
83
|
|
|
85
|
-
const COMPONENTS$
|
|
84
|
+
const COMPONENTS$u = [
|
|
86
85
|
BizyAccordionComponent,
|
|
87
86
|
];
|
|
88
87
|
class BizyAccordionModule {
|
|
89
88
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
90
89
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionModule, imports: [BizyAccordionComponent], exports: [BizyAccordionComponent] });
|
|
91
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionModule, imports: [COMPONENTS$
|
|
90
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionModule, imports: [COMPONENTS$u] });
|
|
92
91
|
}
|
|
93
92
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionModule, decorators: [{
|
|
94
93
|
type: NgModule,
|
|
95
94
|
args: [{
|
|
96
|
-
imports: COMPONENTS$
|
|
97
|
-
exports: COMPONENTS$
|
|
95
|
+
imports: COMPONENTS$u,
|
|
96
|
+
exports: COMPONENTS$u
|
|
98
97
|
}]
|
|
99
98
|
}] });
|
|
100
99
|
|
|
@@ -136,19 +135,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
136
135
|
type: Output
|
|
137
136
|
}] } });
|
|
138
137
|
|
|
139
|
-
const COMPONENTS$
|
|
138
|
+
const COMPONENTS$t = [
|
|
140
139
|
BizyButtonComponent,
|
|
141
140
|
];
|
|
142
141
|
class BizyButtonModule {
|
|
143
142
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
144
143
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyButtonModule, imports: [BizyButtonComponent], exports: [BizyButtonComponent] });
|
|
145
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyButtonModule, imports: [COMPONENTS$
|
|
144
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyButtonModule, imports: [COMPONENTS$t] });
|
|
146
145
|
}
|
|
147
146
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyButtonModule, decorators: [{
|
|
148
147
|
type: NgModule,
|
|
149
148
|
args: [{
|
|
150
|
-
imports: COMPONENTS$
|
|
151
|
-
exports: COMPONENTS$
|
|
149
|
+
imports: COMPONENTS$t,
|
|
150
|
+
exports: COMPONENTS$t
|
|
152
151
|
}]
|
|
153
152
|
}] });
|
|
154
153
|
|
|
@@ -298,19 +297,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
298
297
|
type: Input
|
|
299
298
|
}] } });
|
|
300
299
|
|
|
301
|
-
const COMPONENTS$
|
|
300
|
+
const COMPONENTS$s = [
|
|
302
301
|
BizyAudioPlayerComponent,
|
|
303
302
|
];
|
|
304
303
|
class BizyAudioPlayerModule {
|
|
305
304
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAudioPlayerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
306
305
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyAudioPlayerModule, imports: [BizyAudioPlayerComponent], exports: [BizyAudioPlayerComponent] });
|
|
307
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAudioPlayerModule, imports: [COMPONENTS$
|
|
306
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAudioPlayerModule, imports: [COMPONENTS$s] });
|
|
308
307
|
}
|
|
309
308
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAudioPlayerModule, decorators: [{
|
|
310
309
|
type: NgModule,
|
|
311
310
|
args: [{
|
|
312
|
-
imports: COMPONENTS$
|
|
313
|
-
exports: COMPONENTS$
|
|
311
|
+
imports: COMPONENTS$s,
|
|
312
|
+
exports: COMPONENTS$s
|
|
314
313
|
}]
|
|
315
314
|
}] });
|
|
316
315
|
|
|
@@ -571,26 +570,28 @@ class BizyBarLineChartComponent {
|
|
|
571
570
|
toolbox,
|
|
572
571
|
series
|
|
573
572
|
};
|
|
574
|
-
|
|
575
|
-
this.#echarts.setOption(option);
|
|
576
|
-
this.#echarts.on('click', params => {
|
|
577
|
-
this.onSelect.emit(params.name);
|
|
578
|
-
});
|
|
579
|
-
this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
|
|
580
|
-
const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
|
|
581
|
-
this.#resizeObserver.observe(resizeRef);
|
|
582
|
-
this.#subscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
|
|
583
|
-
this.#deleteChartContainer();
|
|
584
|
-
this.#createChartContainer();
|
|
585
|
-
if (!this.#chartContainer) {
|
|
586
|
-
return;
|
|
587
|
-
}
|
|
573
|
+
import('echarts').then(echarts => {
|
|
588
574
|
this.#echarts = echarts.init(this.#chartContainer);
|
|
589
575
|
this.#echarts.setOption(option);
|
|
590
576
|
this.#echarts.on('click', params => {
|
|
591
577
|
this.onSelect.emit(params.name);
|
|
592
578
|
});
|
|
593
|
-
|
|
579
|
+
this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
|
|
580
|
+
const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
|
|
581
|
+
this.#resizeObserver.observe(resizeRef);
|
|
582
|
+
this.#subscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
|
|
583
|
+
this.#deleteChartContainer();
|
|
584
|
+
this.#createChartContainer();
|
|
585
|
+
if (!this.#chartContainer) {
|
|
586
|
+
return;
|
|
587
|
+
}
|
|
588
|
+
this.#echarts = echarts.init(this.#chartContainer);
|
|
589
|
+
this.#echarts.setOption(option);
|
|
590
|
+
this.#echarts.on('click', params => {
|
|
591
|
+
this.onSelect.emit(params.name);
|
|
592
|
+
});
|
|
593
|
+
}));
|
|
594
|
+
});
|
|
594
595
|
}));
|
|
595
596
|
}
|
|
596
597
|
#createChartContainer = () => {
|
|
@@ -683,19 +684,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
683
684
|
type: Input
|
|
684
685
|
}] } });
|
|
685
686
|
|
|
686
|
-
const COMPONENTS$
|
|
687
|
+
const COMPONENTS$r = [
|
|
687
688
|
BizyBarLineChartComponent,
|
|
688
689
|
];
|
|
689
690
|
class BizyBarLineChartModule {
|
|
690
691
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
691
692
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartModule, imports: [BizyBarLineChartComponent], exports: [BizyBarLineChartComponent] });
|
|
692
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartModule, imports: [COMPONENTS$
|
|
693
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartModule, imports: [COMPONENTS$r] });
|
|
693
694
|
}
|
|
694
695
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartModule, decorators: [{
|
|
695
696
|
type: NgModule,
|
|
696
697
|
args: [{
|
|
697
|
-
imports: COMPONENTS$
|
|
698
|
-
exports: COMPONENTS$
|
|
698
|
+
imports: COMPONENTS$r,
|
|
699
|
+
exports: COMPONENTS$r
|
|
699
700
|
}]
|
|
700
701
|
}] });
|
|
701
702
|
|
|
@@ -756,19 +757,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
756
757
|
type: Input
|
|
757
758
|
}] } });
|
|
758
759
|
|
|
759
|
-
const COMPONENTS$
|
|
760
|
+
const COMPONENTS$q = [
|
|
760
761
|
BizyBreadcrumbComponent,
|
|
761
762
|
];
|
|
762
763
|
class BizyBreadcrumbModule {
|
|
763
764
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
764
765
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbModule, imports: [BizyBreadcrumbComponent], exports: [BizyBreadcrumbComponent] });
|
|
765
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbModule, imports: [COMPONENTS$
|
|
766
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbModule, imports: [COMPONENTS$q] });
|
|
766
767
|
}
|
|
767
768
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbModule, decorators: [{
|
|
768
769
|
type: NgModule,
|
|
769
770
|
args: [{
|
|
770
|
-
imports: COMPONENTS$
|
|
771
|
-
exports: COMPONENTS$
|
|
771
|
+
imports: COMPONENTS$q,
|
|
772
|
+
exports: COMPONENTS$q
|
|
772
773
|
}]
|
|
773
774
|
}] });
|
|
774
775
|
|
|
@@ -1037,19 +1038,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
1037
1038
|
type: Input
|
|
1038
1039
|
}] } });
|
|
1039
1040
|
|
|
1040
|
-
const COMPONENTS$
|
|
1041
|
+
const COMPONENTS$p = [
|
|
1041
1042
|
BizyCalendarComponent,
|
|
1042
1043
|
];
|
|
1043
1044
|
class BizyCalendarModule {
|
|
1044
1045
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1045
1046
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyCalendarModule, imports: [BizyCalendarComponent], exports: [BizyCalendarComponent] });
|
|
1046
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCalendarModule, imports: [COMPONENTS$
|
|
1047
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCalendarModule, imports: [COMPONENTS$p] });
|
|
1047
1048
|
}
|
|
1048
1049
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCalendarModule, decorators: [{
|
|
1049
1050
|
type: NgModule,
|
|
1050
1051
|
args: [{
|
|
1051
|
-
imports: COMPONENTS$
|
|
1052
|
-
exports: COMPONENTS$
|
|
1052
|
+
imports: COMPONENTS$p,
|
|
1053
|
+
exports: COMPONENTS$p
|
|
1053
1054
|
}]
|
|
1054
1055
|
}] });
|
|
1055
1056
|
|
|
@@ -1083,19 +1084,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
1083
1084
|
type: Output
|
|
1084
1085
|
}] } });
|
|
1085
1086
|
|
|
1086
|
-
const COMPONENTS$
|
|
1087
|
+
const COMPONENTS$o = [
|
|
1087
1088
|
BizyCardComponent,
|
|
1088
1089
|
];
|
|
1089
1090
|
class BizyCardModule {
|
|
1090
1091
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1091
1092
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyCardModule, imports: [BizyCardComponent], exports: [BizyCardComponent] });
|
|
1092
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCardModule, imports: [COMPONENTS$
|
|
1093
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCardModule, imports: [COMPONENTS$o] });
|
|
1093
1094
|
}
|
|
1094
1095
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCardModule, decorators: [{
|
|
1095
1096
|
type: NgModule,
|
|
1096
1097
|
args: [{
|
|
1097
|
-
imports: COMPONENTS$
|
|
1098
|
-
exports: COMPONENTS$
|
|
1098
|
+
imports: COMPONENTS$o,
|
|
1099
|
+
exports: COMPONENTS$o
|
|
1099
1100
|
}]
|
|
1100
1101
|
}] });
|
|
1101
1102
|
|
|
@@ -1131,15 +1132,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
1131
1132
|
type: Output
|
|
1132
1133
|
}] } });
|
|
1133
1134
|
|
|
1134
|
-
const COMPONENTS$
|
|
1135
|
+
const COMPONENTS$n = [
|
|
1135
1136
|
BizyCheckboxComponent,
|
|
1136
1137
|
];
|
|
1137
1138
|
class BizyCheckboxModule {
|
|
1138
1139
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1139
1140
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyCheckboxModule, imports: [BizyCheckboxComponent], exports: [BizyCheckboxComponent] });
|
|
1140
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCheckboxModule, imports: [COMPONENTS$
|
|
1141
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCheckboxModule, imports: [COMPONENTS$n] });
|
|
1141
1142
|
}
|
|
1142
1143
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCheckboxModule, decorators: [{
|
|
1144
|
+
type: NgModule,
|
|
1145
|
+
args: [{
|
|
1146
|
+
imports: COMPONENTS$n,
|
|
1147
|
+
exports: COMPONENTS$n
|
|
1148
|
+
}]
|
|
1149
|
+
}] });
|
|
1150
|
+
|
|
1151
|
+
class BizyContentComponent {
|
|
1152
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1153
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyContentComponent, isStandalone: true, selector: "bizy-content", ngImport: i0, template: "<ng-content></ng-content>", styles: [":host{flex:1;padding:var(--bizy-content-padding);height:100%;width:100%;overflow:auto;display:flex;flex-direction:column;row-gap:var(--bizy-content-row-gap)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
1154
|
+
}
|
|
1155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyContentComponent, decorators: [{
|
|
1156
|
+
type: Component,
|
|
1157
|
+
args: [{ selector: 'bizy-content', imports: [CommonModule], template: "<ng-content></ng-content>", styles: [":host{flex:1;padding:var(--bizy-content-padding);height:100%;width:100%;overflow:auto;display:flex;flex-direction:column;row-gap:var(--bizy-content-row-gap)}\n"] }]
|
|
1158
|
+
}] });
|
|
1159
|
+
|
|
1160
|
+
const COMPONENTS$m = [
|
|
1161
|
+
BizyContentComponent,
|
|
1162
|
+
];
|
|
1163
|
+
class BizyContentModule {
|
|
1164
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1165
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyContentModule, imports: [BizyContentComponent], exports: [BizyContentComponent] });
|
|
1166
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyContentModule, imports: [COMPONENTS$m] });
|
|
1167
|
+
}
|
|
1168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyContentModule, decorators: [{
|
|
1143
1169
|
type: NgModule,
|
|
1144
1170
|
args: [{
|
|
1145
1171
|
imports: COMPONENTS$m,
|
|
@@ -3522,26 +3548,28 @@ class BizyPieChartComponent {
|
|
|
3522
3548
|
legend,
|
|
3523
3549
|
series
|
|
3524
3550
|
};
|
|
3525
|
-
|
|
3526
|
-
this.#echarts.setOption(option);
|
|
3527
|
-
this.#echarts.on('click', params => {
|
|
3528
|
-
this.onSelect.emit(params.name);
|
|
3529
|
-
});
|
|
3530
|
-
this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
|
|
3531
|
-
const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
|
|
3532
|
-
this.#resizeObserver.observe(resizeRef);
|
|
3533
|
-
this.#subscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
|
|
3534
|
-
this.#deleteChartContainer();
|
|
3535
|
-
this.#createChartContainer();
|
|
3536
|
-
if (!this.#chartContainer) {
|
|
3537
|
-
return;
|
|
3538
|
-
}
|
|
3551
|
+
import('echarts').then(echarts => {
|
|
3539
3552
|
this.#echarts = echarts.init(this.#chartContainer);
|
|
3540
|
-
this.#echarts.setOption(
|
|
3553
|
+
this.#echarts.setOption(option);
|
|
3541
3554
|
this.#echarts.on('click', params => {
|
|
3542
3555
|
this.onSelect.emit(params.name);
|
|
3543
3556
|
});
|
|
3544
|
-
|
|
3557
|
+
this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
|
|
3558
|
+
const resizeRef = this.resizeRef ? this.resizeRef : this.renderer.parentNode(this.elementRef.nativeElement) ? this.renderer.parentNode(this.elementRef.nativeElement) : this.elementRef.nativeElement;
|
|
3559
|
+
this.#resizeObserver.observe(resizeRef);
|
|
3560
|
+
this.#subscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
|
|
3561
|
+
this.#deleteChartContainer();
|
|
3562
|
+
this.#createChartContainer();
|
|
3563
|
+
if (!this.#chartContainer) {
|
|
3564
|
+
return;
|
|
3565
|
+
}
|
|
3566
|
+
this.#echarts = echarts.init(this.#chartContainer);
|
|
3567
|
+
this.#echarts.setOption({ ...option, series: option.series.map(_serie => { return { ..._serie, data: this.#data }; }) });
|
|
3568
|
+
this.#echarts.on('click', params => {
|
|
3569
|
+
this.onSelect.emit(params.name);
|
|
3570
|
+
});
|
|
3571
|
+
}));
|
|
3572
|
+
});
|
|
3545
3573
|
}));
|
|
3546
3574
|
}
|
|
3547
3575
|
#createChartContainer = () => {
|
|
@@ -8179,5 +8207,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
8179
8207
|
* Generated bundle index. Do not edit.
|
|
8180
8208
|
*/
|
|
8181
8209
|
|
|
8182
|
-
export { BIZY_ANIMATION, BIZY_CALENDAR_DAY, BIZY_CALENDAR_EVENT_ACTION, BIZY_CALENDAR_LANGUAGE, BIZY_CALENDAR_MODE, BIZY_FORMAT_SECONDS_FORMAT, BIZY_FORMAT_SECONDS_LANGUAGE, BIZY_SKELETON_SHAPE, BIZY_TAG_TYPE, BizyAccordionComponent, BizyAccordionModule, BizyAnimationService, BizyAudioPlayerComponent, BizyAudioPlayerModule, BizyAutoFocusDirective, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, BizyBreadcrumbComponent, BizyBreadcrumbModule, BizyButtonComponent, BizyButtonModule, BizyCacheService, BizyCalendarComponent, BizyCalendarModule, BizyCardComponent, BizyCardModule, BizyCheckboxComponent, BizyCheckboxModule, BizyCopyToClipboardDirective, BizyCopyToClipboardService, BizyCurrencyFormatDirective, BizyDatePickerComponent, BizyDatePickerModule, BizyDeviceService, BizyDirectivesModule, BizyEnumToArrayPipe, BizyExportToCSVService, BizyExtractNumbersPipe, BizyFileUploaderComponent, BizyFileUploaderModule, BizyFileUploaderService, BizyFilterComponent, BizyFilterContentComponent, BizyFilterModule, BizyFilterPipe, BizyFilterSectionCheckboxOptionComponent, BizyFilterSectionComponent, BizyFilterSectionRangeOptionComponent, BizyFilterSectionSearchOptionComponent, BizyFilterSectionsComponent, BizyFormComponent, BizyFormModule, BizyFormatSecondsPipe, BizyFormatSecondsService, BizyFullScreenPopupWrapperComponent, BizyGridComponent, BizyGridForDirective, BizyGridModule, BizyGridRowComponent, BizyInputComponent, BizyInputModule, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyListModule, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyReloadDirective, BizyRepeatPipe, BizyRouterService, BizySafePipe, BizySearchPipe, BizySectionCenterComponent, BizySectionComponent, BizySectionEndComponent, BizySectionModule, BizySectionStartComponent, BizySelectComponent, BizySelectModule, BizySelectOptionComponent, BizyServicesModule, BizySetToArrayPipe, BizySidebarComponent, BizySidebarFloatingOptionComponent, BizySidebarFloatingOptionTitleComponent, BizySidebarModule, BizySidebarOptionComponent, BizySkeletonComponent, BizySkeletonModule, BizySliderComponent, BizySliderModule, BizyStorageService, BizyTabComponent, BizyTableColumnArrowsComponent, BizyTableColumnComponent, BizyTableColumnFixedDirective, BizyTableComponent, BizyTableFooterComponent, BizyTableHeaderComponent, BizyTableModule, BizyTableRowComponent, BizyTableRowExpandContentComponent, BizyTableScrollingComponent, BizyTableScrollingDirective, BizyTabsComponent, BizyTabsModule, BizyTagComponent, BizyTagModule, BizyTextEllipsisDirective, BizyTimelineComponent, BizyTimelineEventComponent, BizyTimelineModule, BizyToastModule, BizyToastService, BizyToastWrapperComponent, BizyToggleComponent, BizyToggleModule, BizyToolbarComponent, BizyToolbarModule, BizyTooltipDirective, BizyTrackByIdDirective, BizyTranslateModule, BizyTranslatePipe, BizyTranslateService, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE };
|
|
8210
|
+
export { BIZY_ANIMATION, BIZY_CALENDAR_DAY, BIZY_CALENDAR_EVENT_ACTION, BIZY_CALENDAR_LANGUAGE, BIZY_CALENDAR_MODE, BIZY_FORMAT_SECONDS_FORMAT, BIZY_FORMAT_SECONDS_LANGUAGE, BIZY_SKELETON_SHAPE, BIZY_TAG_TYPE, BizyAccordionComponent, BizyAccordionModule, BizyAnimationService, BizyAudioPlayerComponent, BizyAudioPlayerModule, BizyAutoFocusDirective, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, BizyBreadcrumbComponent, BizyBreadcrumbModule, BizyButtonComponent, BizyButtonModule, BizyCacheService, BizyCalendarComponent, BizyCalendarModule, BizyCardComponent, BizyCardModule, BizyCheckboxComponent, BizyCheckboxModule, BizyContentComponent, BizyContentModule, BizyCopyToClipboardDirective, BizyCopyToClipboardService, BizyCurrencyFormatDirective, BizyDatePickerComponent, BizyDatePickerModule, BizyDeviceService, BizyDirectivesModule, BizyEnumToArrayPipe, BizyExportToCSVService, BizyExtractNumbersPipe, BizyFileUploaderComponent, BizyFileUploaderModule, BizyFileUploaderService, BizyFilterComponent, BizyFilterContentComponent, BizyFilterModule, BizyFilterPipe, BizyFilterSectionCheckboxOptionComponent, BizyFilterSectionComponent, BizyFilterSectionRangeOptionComponent, BizyFilterSectionSearchOptionComponent, BizyFilterSectionsComponent, BizyFormComponent, BizyFormModule, BizyFormatSecondsPipe, BizyFormatSecondsService, BizyFullScreenPopupWrapperComponent, BizyGridComponent, BizyGridForDirective, BizyGridModule, BizyGridRowComponent, BizyInputComponent, BizyInputModule, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyListModule, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyReloadDirective, BizyRepeatPipe, BizyRouterService, BizySafePipe, BizySearchPipe, BizySectionCenterComponent, BizySectionComponent, BizySectionEndComponent, BizySectionModule, BizySectionStartComponent, BizySelectComponent, BizySelectModule, BizySelectOptionComponent, BizyServicesModule, BizySetToArrayPipe, BizySidebarComponent, BizySidebarFloatingOptionComponent, BizySidebarFloatingOptionTitleComponent, BizySidebarModule, BizySidebarOptionComponent, BizySkeletonComponent, BizySkeletonModule, BizySliderComponent, BizySliderModule, BizyStorageService, BizyTabComponent, BizyTableColumnArrowsComponent, BizyTableColumnComponent, BizyTableColumnFixedDirective, BizyTableComponent, BizyTableFooterComponent, BizyTableHeaderComponent, BizyTableModule, BizyTableRowComponent, BizyTableRowExpandContentComponent, BizyTableScrollingComponent, BizyTableScrollingDirective, BizyTabsComponent, BizyTabsModule, BizyTagComponent, BizyTagModule, BizyTextEllipsisDirective, BizyTimelineComponent, BizyTimelineEventComponent, BizyTimelineModule, BizyToastModule, BizyToastService, BizyToastWrapperComponent, BizyToggleComponent, BizyToggleModule, BizyToolbarComponent, BizyToolbarModule, BizyTooltipDirective, BizyTrackByIdDirective, BizyTranslateModule, BizyTranslatePipe, BizyTranslateService, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE };
|
|
8183
8211
|
//# sourceMappingURL=bizy-core.mjs.map
|