@colijnit/extendedcomponents 12.0.3 → 12.0.4

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@syncfusion/ej2-angular-kanban'), require('@syncfusion/ej2-angular-schedule'), require('@angular/forms'), require('@syncfusion/ej2-angular-grids'), require('rxjs'), require('@syncfusion/ej2-angular-pivotview'), require('echarts/core'), require('echarts/components'), require('echarts/charts'), require('echarts/features'), require('echarts/renderers')) :
3
- typeof define === 'function' && define.amd ? define('@colijnit/extendedcomponents', ['exports', '@angular/core', '@angular/common', '@syncfusion/ej2-angular-kanban', '@syncfusion/ej2-angular-schedule', '@angular/forms', '@syncfusion/ej2-angular-grids', 'rxjs', '@syncfusion/ej2-angular-pivotview', 'echarts/core', 'echarts/components', 'echarts/charts', 'echarts/features', 'echarts/renderers'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.extendedcomponents = {}), global.ng.core, global.ng.common, global.i1, global.i1$1, global.ng.forms, global.i1$2, global.rxjs, global.i1$3, global.echarts, global.components, global.charts, global.features, global.renderers));
5
- })(this, (function (exports, i0, common, i1, i1$1, forms, i1$2, rxjs, i1$3, echarts, components, charts, features, renderers) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@syncfusion/ej2-angular-kanban'), require('@syncfusion/ej2-angular-schedule'), require('@angular/forms'), require('@syncfusion/ej2-angular-grids'), require('rxjs'), require('@syncfusion/ej2-angular-pivotview'), require('ngx-echarts')) :
3
+ typeof define === 'function' && define.amd ? define('@colijnit/extendedcomponents', ['exports', '@angular/core', '@angular/common', '@syncfusion/ej2-angular-kanban', '@syncfusion/ej2-angular-schedule', '@angular/forms', '@syncfusion/ej2-angular-grids', 'rxjs', '@syncfusion/ej2-angular-pivotview', 'ngx-echarts'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.extendedcomponents = {}), global.ng.core, global.ng.common, global.i1, global.i1$1, global.ng.forms, global.i1$2, global.rxjs, global.i1$3, global.i1$4));
5
+ })(this, (function (exports, i0, common, i1, i1$1, forms, i1$2, rxjs, i1$3, i1$4) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -27,7 +27,7 @@
27
27
  var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
28
28
  var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
29
29
  var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
30
- var echarts__namespace = /*#__PURE__*/_interopNamespace(echarts);
30
+ var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
31
31
 
32
32
  var CoKanbanComponent = /** @class */ (function () {
33
33
  function CoKanbanComponent() {
@@ -1287,7 +1287,8 @@
1287
1287
  this.chartData = [];
1288
1288
  this.chartLegend = [];
1289
1289
  this.chartXAxis = [];
1290
- this.chartHeight = 600;
1290
+ this.chartHeight = "auto";
1291
+ this.chartWidth = "auto";
1291
1292
  this.chartOptions = {
1292
1293
  title: {},
1293
1294
  tooltip: {
@@ -1316,21 +1317,6 @@
1316
1317
  return true;
1317
1318
  };
1318
1319
  StackedLineChartComponent.prototype.ngOnInit = function () {
1319
- echarts__namespace.use([
1320
- components.TitleComponent,
1321
- components.ToolboxComponent,
1322
- components.TooltipComponent,
1323
- components.GridComponent,
1324
- components.LegendComponent,
1325
- charts.LineChart,
1326
- renderers.CanvasRenderer,
1327
- features.UniversalTransition
1328
- ]);
1329
- var chartDom = document.getElementById('chart-container');
1330
- var myChart = echarts__namespace.init(chartDom, undefined, {
1331
- width: this.chartWidth,
1332
- height: this.chartHeight
1333
- });
1334
1320
  this.chartOptions.title['text'] = this.chartName;
1335
1321
  this.chartOptions.series = this.chartData;
1336
1322
  this.chartOptions.xAxis = {
@@ -1339,17 +1325,16 @@
1339
1325
  data: this.chartXAxis
1340
1326
  };
1341
1327
  this.chartOptions.legend['data'] = this.chartLegend;
1342
- this.chartOptions && myChart.setOption(this.chartOptions);
1343
1328
  };
1344
1329
  return StackedLineChartComponent;
1345
1330
  }());
1346
1331
  StackedLineChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1347
- StackedLineChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: StackedLineChartComponent, selector: "co-stacked-line-chart", inputs: { chartName: "chartName", chartData: "chartData", chartLegend: "chartLegend", chartXAxis: "chartXAxis", chartHeight: "chartHeight", chartWidth: "chartWidth", chartOptions: "chartOptions" }, host: { properties: { "class.co-co-stacked-line-chart": "this.showClass" } }, ngImport: i0__namespace, template: "\n\n <div id=\"chart-container\" class=\"component-wrapper\">\n </div>\n\n ", isInline: true, encapsulation: i0__namespace.ViewEncapsulation.None });
1332
+ StackedLineChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: StackedLineChartComponent, selector: "co-stacked-line-chart", inputs: { chartName: "chartName", chartData: "chartData", chartLegend: "chartLegend", chartXAxis: "chartXAxis", chartHeight: "chartHeight", chartWidth: "chartWidth", chartOptions: "chartOptions" }, host: { properties: { "class.co-co-stacked-line-chart": "this.showClass" } }, ngImport: i0__namespace, template: "\n\n <div echarts [options]=\"chartOptions\" [initOpts]=\"{\n width: chartWidth,\n height: chartHeight}\" class=\"chart\"></div>\n\n ", isInline: true, directives: [{ type: i1__namespace$4.NgxEchartsDirective, selector: "echarts, [echarts]", inputs: ["autoResize", "loadingType", "options", "theme", "loading", "initOpts", "merge", "loadingOpts"], outputs: ["chartInit", "optionsError", "chartClick", "chartDblClick", "chartMouseDown", "chartMouseMove", "chartMouseUp", "chartMouseOver", "chartMouseOut", "chartGlobalOut", "chartContextMenu", "chartLegendSelectChanged", "chartLegendSelected", "chartLegendUnselected", "chartLegendScroll", "chartDataZoom", "chartDataRangeSelected", "chartTimelineChanged", "chartTimelinePlayChanged", "chartRestore", "chartDataViewChanged", "chartMagicTypeChanged", "chartPieSelectChanged", "chartPieSelected", "chartPieUnselected", "chartMapSelectChanged", "chartMapSelected", "chartMapUnselected", "chartAxisAreaSelected", "chartFocusNodeAdjacency", "chartUnfocusNodeAdjacency", "chartBrush", "chartBrushEnd", "chartBrushSelected", "chartRendered", "chartFinished"], exportAs: ["echarts"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
1348
1333
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartComponent, decorators: [{
1349
1334
  type: i0.Component,
1350
1335
  args: [{
1351
1336
  selector: "co-stacked-line-chart",
1352
- template: "\n\n <div id=\"chart-container\" class=\"component-wrapper\">\n </div>\n\n ",
1337
+ template: "\n\n <div echarts [options]=\"chartOptions\" [initOpts]=\"{\n width: chartWidth,\n height: chartHeight}\" class=\"chart\"></div>\n\n ",
1353
1338
  encapsulation: i0.ViewEncapsulation.None
1354
1339
  }]
1355
1340
  }], propDecorators: { showClass: [{
@@ -1377,15 +1362,21 @@
1377
1362
  return StackedLineChartModule;
1378
1363
  }());
1379
1364
  StackedLineChartModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1380
- StackedLineChartModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartModule, declarations: [StackedLineChartComponent], imports: [common.CommonModule], exports: [StackedLineChartComponent] });
1365
+ StackedLineChartModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartModule, declarations: [StackedLineChartComponent], imports: [common.CommonModule, i1__namespace$4.NgxEchartsModule], exports: [StackedLineChartComponent] });
1381
1366
  StackedLineChartModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartModule, imports: [[
1382
- common.CommonModule
1367
+ common.CommonModule,
1368
+ i1$4.NgxEchartsModule.forRoot({
1369
+ echarts: function () { return import('echarts'); }
1370
+ })
1383
1371
  ]] });
1384
1372
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartModule, decorators: [{
1385
1373
  type: i0.NgModule,
1386
1374
  args: [{
1387
1375
  imports: [
1388
- common.CommonModule
1376
+ common.CommonModule,
1377
+ i1$4.NgxEchartsModule.forRoot({
1378
+ echarts: function () { return import('echarts'); }
1379
+ })
1389
1380
  ],
1390
1381
  declarations: [
1391
1382
  StackedLineChartComponent