intelica-library-ui 0.1.80 → 0.1.82

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.
@@ -1718,8 +1718,8 @@ class TableComponent {
1718
1718
  else
1719
1719
  element.removeAttribute("class");
1720
1720
  }
1721
- OnRowsPerPageChange(event) {
1722
- this.RowsPerPage = Number(event.target.value);
1721
+ OnRowsPerPageChange(value) {
1722
+ this.RowsPerPage = Number(value);
1723
1723
  this.ResetTable();
1724
1724
  }
1725
1725
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -2515,8 +2515,8 @@ class EchartComponent {
2515
2515
  config;
2516
2516
  id;
2517
2517
  containerStyle = {
2518
- width: "100%",
2519
- height: "400px",
2518
+ width: '100%',
2519
+ height: '400px',
2520
2520
  };
2521
2521
  event = new EventEmitter();
2522
2522
  chart;
@@ -2527,13 +2527,13 @@ class EchartComponent {
2527
2527
  ngAfterViewInit() {
2528
2528
  const chartElement = this.el.nativeElement.querySelector(`#${this.id}_plot`);
2529
2529
  if (!this.config) {
2530
- throw new Error("Chart configuration is not set");
2530
+ throw new Error('Chart configuration is not set');
2531
2531
  }
2532
2532
  if (!isPlatformBrowser(this.platformId)) {
2533
- throw new Error("Platform is not browser");
2533
+ throw new Error('Platform is not browser');
2534
2534
  }
2535
2535
  if (!chartElement) {
2536
- throw new Error("Plot area not found");
2536
+ throw new Error('Plot area not found');
2537
2537
  }
2538
2538
  this.initChart(chartElement);
2539
2539
  }
@@ -2541,18 +2541,22 @@ class EchartComponent {
2541
2541
  this.chart.setOption(this.config);
2542
2542
  }
2543
2543
  initChart(chartElement) {
2544
+ const observer = new ResizeObserver(() => {
2545
+ this.chart.resize();
2546
+ });
2544
2547
  this.chart = echarts.init(chartElement);
2545
2548
  this.chart.setOption(this.config);
2546
- this.chart.on("click", params => {
2549
+ this.chart.on('click', (params) => {
2547
2550
  this.event.emit(params);
2548
2551
  });
2552
+ observer.observe(chartElement);
2549
2553
  }
2550
2554
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EchartComponent, deps: [{ token: i0.ElementRef }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component });
2551
2555
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.1", type: EchartComponent, isStandalone: true, selector: "intelica-echart", inputs: { config: "config", id: "id", containerStyle: "containerStyle" }, outputs: { event: "event" }, ngImport: i0, template: "<div [id]=\"id + '_plot'\" class=\"chart\" [ngStyle]=\"containerStyle\"></div>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
2552
2556
  }
2553
2557
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EchartComponent, decorators: [{
2554
2558
  type: Component,
2555
- args: [{ selector: "intelica-echart", imports: [CommonModule], template: "<div [id]=\"id + '_plot'\" class=\"chart\" [ngStyle]=\"containerStyle\"></div>\r\n" }]
2559
+ args: [{ selector: 'intelica-echart', imports: [CommonModule], template: "<div [id]=\"id + '_plot'\" class=\"chart\" [ngStyle]=\"containerStyle\"></div>\r\n" }]
2556
2560
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: Object, decorators: [{
2557
2561
  type: Inject,
2558
2562
  args: [PLATFORM_ID]