@colijnit/extendedcomponents 12.0.1 → 12.0.3

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.
@@ -12,6 +12,11 @@ import { __awaiter } from 'tslib';
12
12
  import { Observable, Subscription, fromEvent } from 'rxjs';
13
13
  import * as i1$3 from '@syncfusion/ej2-angular-pivotview';
14
14
  import { GroupingBarService, GroupingService, ToolbarService as ToolbarService$1, ConditionalFormattingService, FieldListService, NumberFormattingService, PivotViewModule } from '@syncfusion/ej2-angular-pivotview';
15
+ import * as echarts from 'echarts/core';
16
+ import { TitleComponent, ToolboxComponent, TooltipComponent, GridComponent, LegendComponent } from 'echarts/components';
17
+ import { LineChart } from 'echarts/charts';
18
+ import { UniversalTransition } from 'echarts/features';
19
+ import { CanvasRenderer } from 'echarts/renderers';
15
20
 
16
21
  class CoKanbanComponent {
17
22
  constructor() {
@@ -192,35 +197,35 @@ CoScheduleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
192
197
  MonthAgendaService,
193
198
  TimelineViewsService,
194
199
  TimelineMonthService
195
- ], viewQueries: [{ propertyName: "scheduleObj", first: true, predicate: ["ejsSchedule"], descendants: true, static: true }], ngImport: i0, template: `
196
- <ejs-schedule
197
- #ejsSchedule
198
- [selectedDate]="selectedDate"
199
- [currentView]="currentView"
200
- [eventSettings]="eventSettings"
201
- [enablePersistence]="enablePersistence"
202
- (actionBegin)="onActionBegin($event)"
203
- (actionComplete)="onActionComplete($event)"
204
- (actionFailure)="onActionFailure($event)"
205
- ><ng-content></ng-content>
206
- </ejs-schedule>
200
+ ], viewQueries: [{ propertyName: "scheduleObj", first: true, predicate: ["ejsSchedule"], descendants: true, static: true }], ngImport: i0, template: `
201
+ <ejs-schedule
202
+ #ejsSchedule
203
+ [selectedDate]="selectedDate"
204
+ [currentView]="currentView"
205
+ [eventSettings]="eventSettings"
206
+ [enablePersistence]="enablePersistence"
207
+ (actionBegin)="onActionBegin($event)"
208
+ (actionComplete)="onActionComplete($event)"
209
+ (actionFailure)="onActionFailure($event)"
210
+ ><ng-content></ng-content>
211
+ </ejs-schedule>
207
212
  `, isInline: true, components: [{ type: i1$1.ScheduleComponent, selector: "ejs-schedule", inputs: ["agendaDaysCount", "allowDragAndDrop", "allowInline", "allowKeyboardInteraction", "allowMultiCellSelection", "allowMultiDrag", "allowMultiRowSelection", "allowResizing", "allowSwiping", "calendarMode", "cellHeaderTemplate", "cellTemplate", "cssClass", "currentView", "dateFormat", "dateHeaderTemplate", "dateRangeTemplate", "dayHeaderTemplate", "editorTemplate", "enableAdaptiveUI", "enableAllDayScroll", "enableHtmlSanitizer", "enablePersistence", "enableRecurrenceValidation", "enableRtl", "endHour", "eventDragArea", "eventSettings", "firstDayOfWeek", "firstMonthOfYear", "group", "headerIndentTemplate", "headerRows", "height", "hideEmptyAgendaDays", "locale", "maxDate", "minDate", "monthHeaderTemplate", "monthsCount", "quickInfoOnSelectionEnd", "quickInfoTemplates", "readonly", "resourceHeaderTemplate", "resources", "rowAutoHeight", "selectedDate", "showHeaderBar", "showQuickInfo", "showTimeIndicator", "showWeekNumber", "showWeekend", "startHour", "timeFormat", "timeScale", "timezone", "timezoneDataSource", "views", "weekRule", "width", "workDays", "workHours"], outputs: ["actionBegin", "actionComplete", "actionFailure", "cellClick", "cellDoubleClick", "created", "dataBinding", "dataBound", "destroyed", "drag", "dragStart", "dragStop", "eventClick", "eventRendered", "hover", "moreEventsClick", "navigating", "popupClose", "popupOpen", "renderCell", "resizeStart", "resizeStop", "resizing", "select", "currentViewChange", "selectedDateChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
208
213
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoScheduleComponent, decorators: [{
209
214
  type: Component,
210
215
  args: [{
211
216
  selector: 'co-schedule',
212
- template: `
213
- <ejs-schedule
214
- #ejsSchedule
215
- [selectedDate]="selectedDate"
216
- [currentView]="currentView"
217
- [eventSettings]="eventSettings"
218
- [enablePersistence]="enablePersistence"
219
- (actionBegin)="onActionBegin($event)"
220
- (actionComplete)="onActionComplete($event)"
221
- (actionFailure)="onActionFailure($event)"
222
- ><ng-content></ng-content>
223
- </ejs-schedule>
217
+ template: `
218
+ <ejs-schedule
219
+ #ejsSchedule
220
+ [selectedDate]="selectedDate"
221
+ [currentView]="currentView"
222
+ [eventSettings]="eventSettings"
223
+ [enablePersistence]="enablePersistence"
224
+ (actionBegin)="onActionBegin($event)"
225
+ (actionComplete)="onActionComplete($event)"
226
+ (actionFailure)="onActionFailure($event)"
227
+ ><ng-content></ng-content>
228
+ </ejs-schedule>
224
229
  `,
225
230
  providers: [
226
231
  DayService,
@@ -832,67 +837,67 @@ class CoPivotComponent {
832
837
  }
833
838
  }
834
839
  CoPivotComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoPivotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
835
- CoPivotComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CoPivotComponent, selector: "co-pivot", inputs: { dataSourceSettings: "dataSourceSettings", gridSettings: "gridSettings", toolbarOptions: "toolbarOptions", showGroupingBar: "showGroupingBar", allowGrouping: "allowGrouping", enablePersistence: "enablePersistence", showFieldList: "showFieldList", showToolbar: "showToolbar", allowExcelExport: "allowExcelExport", allowPdfExport: "allowPdfExport", allowConditionalFormatting: "allowConditionalFormatting", allowNumberFormatting: "allowNumberFormatting", allowCalculatedField: "allowCalculatedField", height: "height" }, outputs: { saveReportClick: "saveReportClick", loadReportClick: "loadReportClick", fetchReportClick: "fetchReportClick", renameReportClick: "renameReportClick", removeReportClick: "removeReportClick", newReportClick: "newReportClick", beforeToolbarRenderClick: "beforeToolbarRenderClick", enginePopulated: "enginePopulated" }, host: { properties: { "class.co-pivot": "this.showClass" } }, providers: [GroupingBarService, GroupingService, ToolbarService$1, ConditionalFormattingService, FieldListService, NumberFormattingService], viewQueries: [{ propertyName: "pivot", first: true, predicate: ["pivot"], descendants: true }], ngImport: i0, template: `
836
- <ejs-pivotview
837
- #pivot
838
- id="Pivot"
839
- [dataSourceSettings]="dataSourceSettings"
840
- [gridSettings]="gridSettings"
841
- [showGroupingBar]="showGroupingBar"
842
- [allowGrouping]="allowGrouping"
843
- [enablePersistence]="enablePersistence"
844
- [showFieldList]="showFieldList"
845
- [showToolbar]="showToolbar"
846
- [toolbar]="toolbarOptions"
847
- [allowExcelExport]="allowExcelExport"
848
- [allowConditionalFormatting]="allowConditionalFormatting"
849
- [allowNumberFormatting]="allowNumberFormatting"
850
- [allowPdfExport]="allowPdfExport"
851
- [allowCalculatedField]="allowCalculatedField"
852
- [height]="height"
853
- (saveReport)="saveReport($event)"
854
- (loadReport)="loadReport($event)"
855
- (fetchReport)="fetchReport($event)"
856
- (renameReport)="renameReport($event)"
857
- (removeReport)="removeReport($event)"
858
- (newReport)="newReport()"
859
- (toolbarRender)="beforeToolbarRender($event)"
860
- (enginePopulated)="hanldeEnginePopulated($event)"
861
- >
862
- </ejs-pivotview>
840
+ CoPivotComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CoPivotComponent, selector: "co-pivot", inputs: { dataSourceSettings: "dataSourceSettings", gridSettings: "gridSettings", toolbarOptions: "toolbarOptions", showGroupingBar: "showGroupingBar", allowGrouping: "allowGrouping", enablePersistence: "enablePersistence", showFieldList: "showFieldList", showToolbar: "showToolbar", allowExcelExport: "allowExcelExport", allowPdfExport: "allowPdfExport", allowConditionalFormatting: "allowConditionalFormatting", allowNumberFormatting: "allowNumberFormatting", allowCalculatedField: "allowCalculatedField", height: "height" }, outputs: { saveReportClick: "saveReportClick", loadReportClick: "loadReportClick", fetchReportClick: "fetchReportClick", renameReportClick: "renameReportClick", removeReportClick: "removeReportClick", newReportClick: "newReportClick", beforeToolbarRenderClick: "beforeToolbarRenderClick", enginePopulated: "enginePopulated" }, host: { properties: { "class.co-pivot": "this.showClass" } }, providers: [GroupingBarService, GroupingService, ToolbarService$1, ConditionalFormattingService, FieldListService, NumberFormattingService], viewQueries: [{ propertyName: "pivot", first: true, predicate: ["pivot"], descendants: true }], ngImport: i0, template: `
841
+ <ejs-pivotview
842
+ #pivot
843
+ id="Pivot"
844
+ [dataSourceSettings]="dataSourceSettings"
845
+ [gridSettings]="gridSettings"
846
+ [showGroupingBar]="showGroupingBar"
847
+ [allowGrouping]="allowGrouping"
848
+ [enablePersistence]="enablePersistence"
849
+ [showFieldList]="showFieldList"
850
+ [showToolbar]="showToolbar"
851
+ [toolbar]="toolbarOptions"
852
+ [allowExcelExport]="allowExcelExport"
853
+ [allowConditionalFormatting]="allowConditionalFormatting"
854
+ [allowNumberFormatting]="allowNumberFormatting"
855
+ [allowPdfExport]="allowPdfExport"
856
+ [allowCalculatedField]="allowCalculatedField"
857
+ [height]="height"
858
+ (saveReport)="saveReport($event)"
859
+ (loadReport)="loadReport($event)"
860
+ (fetchReport)="fetchReport($event)"
861
+ (renameReport)="renameReport($event)"
862
+ (removeReport)="removeReport($event)"
863
+ (newReport)="newReport()"
864
+ (toolbarRender)="beforeToolbarRender($event)"
865
+ (enginePopulated)="hanldeEnginePopulated($event)"
866
+ >
867
+ </ejs-pivotview>
863
868
  `, isInline: true, components: [{ type: i1$3.PivotViewComponent, selector: "ejs-pivotview", inputs: ["aggregateTypes", "allowCalculatedField", "allowConditionalFormatting", "allowDataCompression", "allowDeferLayoutUpdate", "allowDrillThrough", "allowExcelExport", "allowGrouping", "allowNumberFormatting", "allowPdfExport", "cellTemplate", "chartSettings", "chartTypes", "cssClass", "dataSourceSettings", "displayOption", "editSettings", "enableFieldSearching", "enableHtmlSanitizer", "enablePaging", "enablePersistence", "enableRtl", "enableValueSorting", "enableVirtualization", "exportAllPages", "gridSettings", "groupingBarSettings", "height", "hyperlinkSettings", "loadOnDemandInMemberEditor", "locale", "maxNodeLimitInMemberEditor", "maxRowsInDrillThrough", "pageSettings", "pagerSettings", "pivotValues", "showFieldList", "showGroupingBar", "showToolbar", "showTooltip", "showValuesButton", "spinnerTemplate", "toolbar", "toolbarTemplate", "tooltipTemplate", "width"], outputs: ["actionBegin", "actionComplete", "actionFailure", "aggregateCellInfo", "aggregateMenuOpen", "beforeExport", "beforeServiceInvoke", "beginDrillThrough", "calculatedFieldCreate", "cellClick", "cellSelected", "cellSelecting", "chartSeriesCreated", "conditionalFormatting", "created", "dataBound", "destroyed", "drill", "drillThrough", "editCompleted", "enginePopulated", "enginePopulating", "exportComplete", "fetchReport", "fieldDragStart", "fieldDrop", "fieldListRefreshed", "fieldRemove", "hyperlinkCellClick", "load", "loadReport", "memberEditorOpen", "memberFiltering", "newReport", "numberFormatting", "onFieldDropped", "onHeadersSort", "onPdfCellRender", "removeReport", "renameReport", "saveReport", "toolbarClick", "toolbarRender"] }], encapsulation: i0.ViewEncapsulation.None });
864
869
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoPivotComponent, decorators: [{
865
870
  type: Component,
866
871
  args: [{
867
872
  selector: 'co-pivot',
868
- template: `
869
- <ejs-pivotview
870
- #pivot
871
- id="Pivot"
872
- [dataSourceSettings]="dataSourceSettings"
873
- [gridSettings]="gridSettings"
874
- [showGroupingBar]="showGroupingBar"
875
- [allowGrouping]="allowGrouping"
876
- [enablePersistence]="enablePersistence"
877
- [showFieldList]="showFieldList"
878
- [showToolbar]="showToolbar"
879
- [toolbar]="toolbarOptions"
880
- [allowExcelExport]="allowExcelExport"
881
- [allowConditionalFormatting]="allowConditionalFormatting"
882
- [allowNumberFormatting]="allowNumberFormatting"
883
- [allowPdfExport]="allowPdfExport"
884
- [allowCalculatedField]="allowCalculatedField"
885
- [height]="height"
886
- (saveReport)="saveReport($event)"
887
- (loadReport)="loadReport($event)"
888
- (fetchReport)="fetchReport($event)"
889
- (renameReport)="renameReport($event)"
890
- (removeReport)="removeReport($event)"
891
- (newReport)="newReport()"
892
- (toolbarRender)="beforeToolbarRender($event)"
893
- (enginePopulated)="hanldeEnginePopulated($event)"
894
- >
895
- </ejs-pivotview>
873
+ template: `
874
+ <ejs-pivotview
875
+ #pivot
876
+ id="Pivot"
877
+ [dataSourceSettings]="dataSourceSettings"
878
+ [gridSettings]="gridSettings"
879
+ [showGroupingBar]="showGroupingBar"
880
+ [allowGrouping]="allowGrouping"
881
+ [enablePersistence]="enablePersistence"
882
+ [showFieldList]="showFieldList"
883
+ [showToolbar]="showToolbar"
884
+ [toolbar]="toolbarOptions"
885
+ [allowExcelExport]="allowExcelExport"
886
+ [allowConditionalFormatting]="allowConditionalFormatting"
887
+ [allowNumberFormatting]="allowNumberFormatting"
888
+ [allowPdfExport]="allowPdfExport"
889
+ [allowCalculatedField]="allowCalculatedField"
890
+ [height]="height"
891
+ (saveReport)="saveReport($event)"
892
+ (loadReport)="loadReport($event)"
893
+ (fetchReport)="fetchReport($event)"
894
+ (renameReport)="renameReport($event)"
895
+ (removeReport)="removeReport($event)"
896
+ (newReport)="newReport()"
897
+ (toolbarRender)="beforeToolbarRender($event)"
898
+ (enginePopulated)="hanldeEnginePopulated($event)"
899
+ >
900
+ </ejs-pivotview>
896
901
  `,
897
902
  providers: [GroupingBarService, GroupingService, ToolbarService$1, ConditionalFormattingService, FieldListService, NumberFormattingService],
898
903
  encapsulation: ViewEncapsulation.None
@@ -974,6 +979,126 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
974
979
  }]
975
980
  }] });
976
981
 
982
+ class StackedLineChartComponent {
983
+ constructor() {
984
+ this.chartData = [];
985
+ this.chartLegend = [];
986
+ this.chartXAxis = [];
987
+ this.chartHeight = 600;
988
+ this.chartOptions = {
989
+ title: {},
990
+ tooltip: {
991
+ trigger: 'axis'
992
+ },
993
+ legend: {},
994
+ grid: {
995
+ left: '3%',
996
+ right: '4%',
997
+ bottom: '3%',
998
+ containLabel: true
999
+ },
1000
+ toolbox: {
1001
+ feature: {
1002
+ saveAsImage: {}
1003
+ }
1004
+ },
1005
+ xAxis: {},
1006
+ yAxis: {
1007
+ type: 'value'
1008
+ },
1009
+ series: {}
1010
+ };
1011
+ }
1012
+ showClass() {
1013
+ return true;
1014
+ }
1015
+ ngOnInit() {
1016
+ echarts.use([
1017
+ TitleComponent,
1018
+ ToolboxComponent,
1019
+ TooltipComponent,
1020
+ GridComponent,
1021
+ LegendComponent,
1022
+ LineChart,
1023
+ CanvasRenderer,
1024
+ UniversalTransition
1025
+ ]);
1026
+ let chartDom = document.getElementById('chart-container');
1027
+ let myChart = echarts.init(chartDom, undefined, {
1028
+ width: this.chartWidth,
1029
+ height: this.chartHeight
1030
+ });
1031
+ this.chartOptions.title['text'] = this.chartName;
1032
+ this.chartOptions.series = this.chartData;
1033
+ this.chartOptions.xAxis = {
1034
+ type: 'category',
1035
+ boundaryGap: false,
1036
+ data: this.chartXAxis
1037
+ };
1038
+ this.chartOptions.legend['data'] = this.chartLegend;
1039
+ this.chartOptions && myChart.setOption(this.chartOptions);
1040
+ }
1041
+ }
1042
+ StackedLineChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: StackedLineChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1043
+ StackedLineChartComponent.ɵcmp = i0.ɵɵ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, template: `
1044
+
1045
+ <div id="chart-container" class="component-wrapper">
1046
+ </div>
1047
+
1048
+ `, isInline: true, encapsulation: i0.ViewEncapsulation.None });
1049
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: StackedLineChartComponent, decorators: [{
1050
+ type: Component,
1051
+ args: [{
1052
+ selector: "co-stacked-line-chart",
1053
+ template: `
1054
+
1055
+ <div id="chart-container" class="component-wrapper">
1056
+ </div>
1057
+
1058
+ `,
1059
+ encapsulation: ViewEncapsulation.None
1060
+ }]
1061
+ }], propDecorators: { showClass: [{
1062
+ type: HostBinding,
1063
+ args: ["class.co-co-stacked-line-chart"]
1064
+ }], chartName: [{
1065
+ type: Input
1066
+ }], chartData: [{
1067
+ type: Input
1068
+ }], chartLegend: [{
1069
+ type: Input
1070
+ }], chartXAxis: [{
1071
+ type: Input
1072
+ }], chartHeight: [{
1073
+ type: Input
1074
+ }], chartWidth: [{
1075
+ type: Input
1076
+ }], chartOptions: [{
1077
+ type: Input
1078
+ }] } });
1079
+
1080
+ class StackedLineChartModule {
1081
+ }
1082
+ StackedLineChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: StackedLineChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1083
+ StackedLineChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: StackedLineChartModule, declarations: [StackedLineChartComponent], imports: [CommonModule], exports: [StackedLineChartComponent] });
1084
+ StackedLineChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: StackedLineChartModule, imports: [[
1085
+ CommonModule
1086
+ ]] });
1087
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: StackedLineChartModule, decorators: [{
1088
+ type: NgModule,
1089
+ args: [{
1090
+ imports: [
1091
+ CommonModule
1092
+ ],
1093
+ declarations: [
1094
+ StackedLineChartComponent
1095
+ ],
1096
+ exports: [
1097
+ StackedLineChartComponent
1098
+ ]
1099
+ }]
1100
+ }] });
1101
+
977
1102
  // The localization service, providing peers with text translation functionality.
978
1103
  class DictionaryService {
979
1104
  constructor() {
@@ -1082,5 +1207,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
1082
1207
  * Generated bundle index. Do not edit.
1083
1208
  */
1084
1209
 
1085
- export { CoGridComponent, CoGridModule, CoKanbanComponent, CoKanbanModule, CoPivotComponent, CoPivotModule, CoScheduleComponent, CoScheduleModule, ExtendedComponentsTranslationModule, ExtendedComponentsTranslationService };
1210
+ export { CoGridComponent, CoGridModule, CoKanbanComponent, CoKanbanModule, CoPivotComponent, CoPivotModule, CoScheduleComponent, CoScheduleModule, ExtendedComponentsTranslationModule, ExtendedComponentsTranslationService, StackedLineChartComponent, StackedLineChartModule };
1086
1211
  //# sourceMappingURL=colijnit-extendedcomponents.js.map