shirkasoft-ui-components 1.0.21 → 1.0.22
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.
|
@@ -2800,8 +2800,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
2800
2800
|
args: ['mouseenter']
|
|
2801
2801
|
}] } });
|
|
2802
2802
|
|
|
2803
|
-
Chart.register(...registerables);
|
|
2804
2803
|
class ChartComponent {
|
|
2804
|
+
static registered = false;
|
|
2805
2805
|
type = input('bar', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
2806
2806
|
data = input({ datasets: [] }, ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
2807
2807
|
options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
@@ -2826,6 +2826,10 @@ class ChartComponent {
|
|
|
2826
2826
|
});
|
|
2827
2827
|
}
|
|
2828
2828
|
constructor() {
|
|
2829
|
+
if (!ChartComponent.registered) {
|
|
2830
|
+
Chart.register(...registerables);
|
|
2831
|
+
ChartComponent.registered = true;
|
|
2832
|
+
}
|
|
2829
2833
|
effect(() => {
|
|
2830
2834
|
const t = this.type();
|
|
2831
2835
|
const d = this.data();
|