@colijnit/extendedcomponents 12.0.3 → 12.0.5

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.
Files changed (67) hide show
  1. package/README.md +24 -24
  2. package/bundles/colijnit-extendedcomponents.umd.js +119 -981
  3. package/bundles/colijnit-extendedcomponents.umd.js.map +1 -1
  4. package/esm2015/lib/components/stacked-line-chart/co-stacked-line-chart.component.js +12 -29
  5. package/esm2015/lib/components/stacked-line-chart/co-stacked-line-chart.module.js +12 -4
  6. package/esm2015/public-api.js +1 -9
  7. package/fesm2015/colijnit-extendedcomponents.js +23 -1005
  8. package/fesm2015/colijnit-extendedcomponents.js.map +1 -1
  9. package/lib/components/stacked-line-chart/co-stacked-line-chart.component.d.ts +4 -4
  10. package/lib/components/stacked-line-chart/co-stacked-line-chart.module.d.ts +2 -1
  11. package/lib/style/_variables.scss +0 -27
  12. package/lib/style/extendedcomponents-globals.scss +0 -40
  13. package/package.json +4 -10
  14. package/public-api.d.ts +0 -8
  15. package/esm2015/lib/components/grid/base/base-grid.component.js +0 -71
  16. package/esm2015/lib/components/grid/base/base-inline-edit-grid.component.js +0 -86
  17. package/esm2015/lib/components/grid/base/base-selection-grid.component.js +0 -100
  18. package/esm2015/lib/components/grid/base/base-toolbar-grid.component.js +0 -74
  19. package/esm2015/lib/components/grid/co-grid.component.js +0 -102
  20. package/esm2015/lib/components/grid/co-grid.module.js +0 -59
  21. package/esm2015/lib/components/grid/enum/grid-lines.enum.js +0 -9
  22. package/esm2015/lib/components/grid/interface/grid-menu-event-args.js +0 -2
  23. package/esm2015/lib/components/grid/interface/grid-row-drag-event-args.js +0 -2
  24. package/esm2015/lib/components/grid/interface/grid-row-drop-event-args.js +0 -2
  25. package/esm2015/lib/components/kanban/co-kanban.component.js +0 -127
  26. package/esm2015/lib/components/kanban/co-kanban.module.js +0 -30
  27. package/esm2015/lib/components/pivot/co-pivot.component.js +0 -195
  28. package/esm2015/lib/components/pivot/co-pivot.module.js +0 -30
  29. package/esm2015/lib/components/schedule/co-schedule.component.js +0 -99
  30. package/esm2015/lib/components/schedule/co-schedule.module.js +0 -30
  31. package/esm2015/lib/components/stacked-line-chart/model/co-stacked-line-chart-options.js +0 -2
  32. package/esm2015/lib/core/enum/schedule-view.enum.js +0 -16
  33. package/lib/bin/postinstall.js +0 -3
  34. package/lib/components/grid/base/base-grid.component.d.ts +0 -30
  35. package/lib/components/grid/base/base-inline-edit-grid.component.d.ts +0 -21
  36. package/lib/components/grid/base/base-selection-grid.component.d.ts +0 -34
  37. package/lib/components/grid/base/base-toolbar-grid.component.d.ts +0 -20
  38. package/lib/components/grid/co-grid.component.d.ts +0 -9
  39. package/lib/components/grid/co-grid.module.d.ts +0 -10
  40. package/lib/components/grid/enum/grid-lines.enum.d.ts +0 -7
  41. package/lib/components/grid/interface/grid-menu-event-args.d.ts +0 -3
  42. package/lib/components/grid/interface/grid-row-drag-event-args.d.ts +0 -3
  43. package/lib/components/grid/interface/grid-row-drop-event-args.d.ts +0 -3
  44. package/lib/components/grid/style/_layout.scss +0 -36
  45. package/lib/components/grid/style/_material-definition.scss +0 -8
  46. package/lib/components/grid/style/_theme.scss +0 -3
  47. package/lib/components/grid/style/material.scss +0 -4
  48. package/lib/components/kanban/co-kanban.component.d.ts +0 -31
  49. package/lib/components/kanban/co-kanban.module.d.ts +0 -9
  50. package/lib/components/kanban/style/_layout.scss +0 -52
  51. package/lib/components/kanban/style/_material-definition.scss +0 -27
  52. package/lib/components/kanban/style/_theme.scss +0 -3
  53. package/lib/components/kanban/style/material.scss +0 -5
  54. package/lib/components/pivot/co-pivot.component.d.ts +0 -43
  55. package/lib/components/pivot/co-pivot.module.d.ts +0 -9
  56. package/lib/components/pivot/style/_layout.scss +0 -92
  57. package/lib/components/pivot/style/_material-definition.scss +0 -1
  58. package/lib/components/pivot/style/_theme.scss +0 -3
  59. package/lib/components/pivot/style/material.scss +0 -4
  60. package/lib/components/schedule/co-schedule.component.d.ts +0 -22
  61. package/lib/components/schedule/co-schedule.module.d.ts +0 -9
  62. package/lib/components/schedule/style/_layout.scss +0 -4
  63. package/lib/components/schedule/style/_material-definition.scss +0 -0
  64. package/lib/components/schedule/style/_theme.scss +0 -4
  65. package/lib/components/schedule/style/material.scss +0 -4
  66. package/lib/components/stacked-line-chart/model/co-stacked-line-chart-options.d.ts +0 -4
  67. package/lib/core/enum/schedule-view.enum.d.ts +0 -14
@@ -1,990 +1,16 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, ViewEncapsulation, ViewChild, Input, Output, HostBinding, NgModule, ChangeDetectionStrategy, Directive, Injectable, Pipe } from '@angular/core';
2
+ import { Component, ViewEncapsulation, HostBinding, Input, NgModule, Injectable, Pipe } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
- import * as i1 from '@syncfusion/ej2-angular-kanban';
5
- import { KanbanModule } from '@syncfusion/ej2-angular-kanban';
6
- import * as i1$1 from '@syncfusion/ej2-angular-schedule';
7
- import { DayService, WeekService, WorkWeekService, MonthService, AgendaService, MonthAgendaService, TimelineViewsService, TimelineMonthService, ScheduleModule } from '@syncfusion/ej2-angular-schedule';
8
- import { FormsModule } from '@angular/forms';
9
- import * as i1$2 from '@syncfusion/ej2-angular-grids';
10
- import { RowDDService, GridModule, PageService, SortService, FilterService, GroupService, ReorderService, ResizeService, ExcelExportService, PdfExportService, EditService, ToolbarService, ColumnChooserService, ColumnMenuService, ContextMenuService } from '@syncfusion/ej2-angular-grids';
11
- import { __awaiter } from 'tslib';
12
- import { Observable, Subscription, fromEvent } from 'rxjs';
13
- import * as i1$3 from '@syncfusion/ej2-angular-pivotview';
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';
20
-
21
- class CoKanbanComponent {
22
- constructor() {
23
- this.allowDragAndDrop = true;
24
- this.allowKeyboard = true;
25
- this.enablePersistence = false;
26
- this.enableTooltip = false;
27
- this.keyField = "";
28
- this.showEmptyColumn = false;
29
- this.cardClickEvent = new EventEmitter();
30
- this.cardDoubleClickEvent = new EventEmitter();
31
- this.dragStartEvent = new EventEmitter();
32
- this.dragStopEvent = new EventEmitter();
33
- }
34
- showClass() {
35
- return true;
36
- }
37
- ngOnInit() {
38
- }
39
- ngAfterViewInit() {
40
- if (this.columns) {
41
- this.kanban.columns = this.columns;
42
- }
43
- }
44
- dialogOpen(args) {
45
- args.cancel = true;
46
- }
47
- handleCardClick(args) {
48
- this.cardClickEvent.next(args);
49
- }
50
- handleCardDoubleClick(args) {
51
- this.cardDoubleClickEvent.next(args);
52
- }
53
- handleDragStart(args) {
54
- this.dragStartEvent.next(args);
55
- }
56
- handleDragStop(args) {
57
- this.dragStopEvent.next(args);
58
- }
59
- }
60
- CoKanbanComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoKanbanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
61
- CoKanbanComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CoKanbanComponent, selector: "co-kanban", inputs: { allowDragAndDrop: "allowDragAndDrop", allowKeyboard: "allowKeyboard", cardSettings: "cardSettings", enablePersistence: "enablePersistence", enableTooltip: "enableTooltip", keyField: "keyField", showEmptyColumn: "showEmptyColumn", swimlaneSettings: "swimlaneSettings", columns: "columns", data: "data" }, outputs: { cardClickEvent: "cardClickEvent", cardDoubleClickEvent: "cardDoubleClickEvent", dragStartEvent: "dragStartEvent", dragStopEvent: "dragStopEvent" }, host: { properties: { "class.co-kanban": "this.showClass" } }, viewQueries: [{ propertyName: "kanban", first: true, predicate: ["kanban"], descendants: true }], ngImport: i0, template: `
62
- <ejs-kanban
63
- #kanban
64
- id="kanban"
65
- [allowDragAndDrop]="allowDragAndDrop"
66
- [allowKeyboard]="allowKeyboard"
67
- [cardSettings]="cardSettings"
68
- [enablePersistence]="enablePersistence"
69
- [enableTooltip]="enableTooltip"
70
- [keyField]="keyField"
71
- [showEmptyColumn]="showEmptyColumn"
72
- [swimlaneSettings]="swimlaneSettings"
73
- [dataSource]="data"
74
- (cardClick)="handleCardClick($event)"
75
- (cardDoubleClick)="handleCardDoubleClick($event)"
76
- (dialogOpen)="dialogOpen($event)"
77
- (dragStart)="handleDragStart($event)"
78
- (dragStop)="handleDragStop($event)"
79
- >
80
- </ejs-kanban>
81
- `, isInline: true, components: [{ type: i1.KanbanComponent, selector: "ejs-kanban", inputs: ["allowDragAndDrop", "allowKeyboard", "cardSettings", "columns", "constraintType", "cssClass", "dataSource", "dialogSettings", "enableHtmlSanitizer", "enablePersistence", "enableRtl", "enableTooltip", "externalDropId", "height", "keyField", "locale", "query", "showEmptyColumn", "sortSettings", "stackedHeaders", "swimlaneSettings", "tooltipTemplate", "width"], outputs: ["actionBegin", "actionComplete", "actionFailure", "cardClick", "cardDoubleClick", "cardRendered", "created", "dataBinding", "dataBound", "dataSourceChanged", "dataStateChange", "dialogClose", "dialogOpen", "drag", "dragStart", "dragStop", "queryCellInfo"] }], encapsulation: i0.ViewEncapsulation.None });
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoKanbanComponent, decorators: [{
83
- type: Component,
84
- args: [{
85
- selector: 'co-kanban',
86
- template: `
87
- <ejs-kanban
88
- #kanban
89
- id="kanban"
90
- [allowDragAndDrop]="allowDragAndDrop"
91
- [allowKeyboard]="allowKeyboard"
92
- [cardSettings]="cardSettings"
93
- [enablePersistence]="enablePersistence"
94
- [enableTooltip]="enableTooltip"
95
- [keyField]="keyField"
96
- [showEmptyColumn]="showEmptyColumn"
97
- [swimlaneSettings]="swimlaneSettings"
98
- [dataSource]="data"
99
- (cardClick)="handleCardClick($event)"
100
- (cardDoubleClick)="handleCardDoubleClick($event)"
101
- (dialogOpen)="dialogOpen($event)"
102
- (dragStart)="handleDragStart($event)"
103
- (dragStop)="handleDragStop($event)"
104
- >
105
- </ejs-kanban>
106
- `,
107
- encapsulation: ViewEncapsulation.None
108
- }]
109
- }], ctorParameters: function () { return []; }, propDecorators: { kanban: [{
110
- type: ViewChild,
111
- args: ['kanban', { static: false }]
112
- }], allowDragAndDrop: [{
113
- type: Input
114
- }], allowKeyboard: [{
115
- type: Input
116
- }], cardSettings: [{
117
- type: Input
118
- }], enablePersistence: [{
119
- type: Input
120
- }], enableTooltip: [{
121
- type: Input
122
- }], keyField: [{
123
- type: Input
124
- }], showEmptyColumn: [{
125
- type: Input
126
- }], swimlaneSettings: [{
127
- type: Input
128
- }], columns: [{
129
- type: Input
130
- }], data: [{
131
- type: Input
132
- }], cardClickEvent: [{
133
- type: Output
134
- }], cardDoubleClickEvent: [{
135
- type: Output
136
- }], dragStartEvent: [{
137
- type: Output
138
- }], dragStopEvent: [{
139
- type: Output
140
- }], showClass: [{
141
- type: HostBinding,
142
- args: ["class.co-kanban"]
143
- }] } });
144
-
145
- class CoKanbanModule {
146
- }
147
- CoKanbanModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoKanbanModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
148
- CoKanbanModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoKanbanModule, declarations: [CoKanbanComponent], imports: [CommonModule,
149
- KanbanModule], exports: [CoKanbanComponent] });
150
- CoKanbanModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoKanbanModule, imports: [[
151
- CommonModule,
152
- KanbanModule
153
- ]] });
154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoKanbanModule, decorators: [{
155
- type: NgModule,
156
- args: [{
157
- imports: [
158
- CommonModule,
159
- KanbanModule
160
- ],
161
- declarations: [
162
- CoKanbanComponent
163
- ],
164
- exports: [
165
- CoKanbanComponent
166
- ]
167
- }]
168
- }] });
169
-
170
- class CoScheduleComponent {
171
- constructor() {
172
- this.enablePersistence = false;
173
- this.actionBegin = new EventEmitter();
174
- this.actionComplete = new EventEmitter();
175
- this.actionFailure = new EventEmitter();
176
- this.showClass = true;
177
- }
178
- ngOnInit() {
179
- }
180
- onActionBegin(args) {
181
- this.actionBegin.emit(args);
182
- }
183
- onActionComplete(args) {
184
- this.actionComplete.emit(args);
185
- }
186
- onActionFailure(args) {
187
- this.actionFailure.emit(args);
188
- }
189
- }
190
- CoScheduleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoScheduleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
191
- CoScheduleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CoScheduleComponent, selector: "co-schedule", inputs: { selectedDate: "selectedDate", currentView: "currentView", eventSettings: "eventSettings", enablePersistence: "enablePersistence" }, outputs: { actionBegin: "actionBegin", actionComplete: "actionComplete", actionFailure: "actionFailure" }, host: { properties: { "class.co-schedule": "this.showClass" } }, providers: [
192
- DayService,
193
- WeekService,
194
- WorkWeekService,
195
- MonthService,
196
- AgendaService,
197
- MonthAgendaService,
198
- TimelineViewsService,
199
- TimelineMonthService
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>
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 });
213
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoScheduleComponent, decorators: [{
214
- type: Component,
215
- args: [{
216
- selector: 'co-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>
229
- `,
230
- providers: [
231
- DayService,
232
- WeekService,
233
- WorkWeekService,
234
- MonthService,
235
- AgendaService,
236
- MonthAgendaService,
237
- TimelineViewsService,
238
- TimelineMonthService
239
- ],
240
- encapsulation: ViewEncapsulation.None,
241
- changeDetection: ChangeDetectionStrategy.OnPush
242
- }]
243
- }], ctorParameters: function () { return []; }, propDecorators: { scheduleObj: [{
244
- type: ViewChild,
245
- args: ['ejsSchedule', { static: true }]
246
- }], selectedDate: [{
247
- type: Input
248
- }], currentView: [{
249
- type: Input
250
- }], eventSettings: [{
251
- type: Input
252
- }], enablePersistence: [{
253
- type: Input
254
- }], actionBegin: [{
255
- type: Output
256
- }], actionComplete: [{
257
- type: Output
258
- }], actionFailure: [{
259
- type: Output
260
- }], showClass: [{
261
- type: HostBinding,
262
- args: ['class.co-schedule']
263
- }] } });
264
-
265
- class CoScheduleModule {
266
- }
267
- CoScheduleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoScheduleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
268
- CoScheduleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoScheduleModule, declarations: [CoScheduleComponent], imports: [CommonModule,
269
- ScheduleModule], exports: [CoScheduleComponent] });
270
- CoScheduleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoScheduleModule, imports: [[
271
- CommonModule,
272
- ScheduleModule
273
- ]] });
274
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoScheduleModule, decorators: [{
275
- type: NgModule,
276
- args: [{
277
- declarations: [
278
- CoScheduleComponent
279
- ],
280
- imports: [
281
- CommonModule,
282
- ScheduleModule
283
- ],
284
- exports: [
285
- CoScheduleComponent
286
- ]
287
- }]
288
- }] });
289
-
290
- var GridLines;
291
- (function (GridLines) {
292
- GridLines["None"] = "None";
293
- GridLines["Horizontal"] = "Horizontal";
294
- GridLines["Vertical"] = "Vertical";
295
- GridLines["Both"] = "Both";
296
- GridLines["Default"] = "Default";
297
- })(GridLines || (GridLines = {}));
298
-
299
- class BaseGridComponent {
300
- constructor(element) {
301
- this.element = element;
302
- this.gridLines = GridLines.None;
303
- this.contextMenuItems = [];
304
- this.sortingEnabled = false;
305
- this.filteringEnabled = false;
306
- this.pagingEnabled = false;
307
- this.groupingEnabled = false;
308
- this.reorderingEnabled = false;
309
- this.rowDragAndDropEnabled = false;
310
- this.resizingEnabled = false;
311
- this.showColumnMenu = false;
312
- this.pageSettings = {};
313
- }
314
- set maxNumberOfRows(value) {
315
- if (value) {
316
- this.pageSettings.pageSize = value;
317
- }
318
- }
319
- set columns(value) {
320
- this._columns = value;
321
- }
322
- get columns() {
323
- return this._columns;
324
- }
325
- }
326
- BaseGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseGridComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
327
- BaseGridComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseGridComponent, inputs: { data: "data", gridLines: "gridLines", contextMenuItems: "contextMenuItems", frozenColumns: "frozenColumns", frozenRows: "frozenRows", sortingEnabled: "sortingEnabled", filteringEnabled: "filteringEnabled", pagingEnabled: "pagingEnabled", groupingEnabled: "groupingEnabled", reorderingEnabled: "reorderingEnabled", rowDragAndDropEnabled: "rowDragAndDropEnabled", rowDropSettings: "rowDropSettings", resizingEnabled: "resizingEnabled", showColumnMenu: "showColumnMenu", maxNumberOfRows: "maxNumberOfRows", columns: "columns" }, viewQueries: [{ propertyName: "grid", first: true, predicate: ["grid"], descendants: true }], ngImport: i0 });
328
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseGridComponent, decorators: [{
329
- type: Directive
330
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { grid: [{
331
- type: ViewChild,
332
- args: ['grid', { static: false }]
333
- }], data: [{
334
- type: Input
335
- }], gridLines: [{
336
- type: Input
337
- }], contextMenuItems: [{
338
- type: Input
339
- }], frozenColumns: [{
340
- type: Input
341
- }], frozenRows: [{
342
- type: Input
343
- }], sortingEnabled: [{
344
- type: Input
345
- }], filteringEnabled: [{
346
- type: Input
347
- }], pagingEnabled: [{
348
- type: Input
349
- }], groupingEnabled: [{
350
- type: Input
351
- }], reorderingEnabled: [{
352
- type: Input
353
- }], rowDragAndDropEnabled: [{
354
- type: Input
355
- }], rowDropSettings: [{
356
- type: Input
357
- }], resizingEnabled: [{
358
- type: Input
359
- }], showColumnMenu: [{
360
- type: Input
361
- }], maxNumberOfRows: [{
362
- type: Input
363
- }], columns: [{
364
- type: Input
365
- }] } });
366
-
367
- class BaseToolbarGridComponent extends BaseGridComponent {
368
- constructor() {
369
- super(...arguments);
370
- this._exportExcelEnabled = false;
371
- this._exportPdfEnabled = false;
372
- this._showColumnChooser = false;
373
- }
374
- set showColumnChooser(value) {
375
- this._showColumnChooser = value;
376
- this.updateToolbar("ColumnChooser", this._showColumnChooser);
377
- }
378
- get showColumnChooser() {
379
- return this._showColumnChooser;
380
- }
381
- set exportExcelEnabled(value) {
382
- this._exportExcelEnabled = value;
383
- this.updateToolbar("ExcelExport", this._exportExcelEnabled);
384
- }
385
- get exportExcelEnabled() {
386
- return this._exportExcelEnabled;
387
- }
388
- set exportPdfEnabled(value) {
389
- this._exportPdfEnabled = value;
390
- this.updateToolbar("PdfExport", this._exportPdfEnabled);
391
- }
392
- get exportPdfEnabled() {
393
- return this._exportPdfEnabled;
394
- }
395
- toolbarClick(args) {
396
- if (this.grid) {
397
- if (args.item.id === 'grid_excelexport') {
398
- this.grid.excelExport();
399
- }
400
- else if (args.item.id === 'grid_pdfexport') {
401
- this.grid.pdfExport();
402
- }
403
- }
404
- }
405
- updateToolbar(option, add) {
406
- if (add) {
407
- if (!this.toolbarOptions) {
408
- this.toolbarOptions = [];
409
- }
410
- this.toolbarOptions.push(option);
411
- }
412
- else {
413
- if (this.toolbarOptions) {
414
- let index = this.toolbarOptions.indexOf(option);
415
- this.toolbarOptions.splice(index, 1);
416
- }
417
- }
418
- if (this.toolbarOptions && this.toolbarOptions.length > 0) {
419
- this.toolbarOptions = this.toolbarOptions.slice();
420
- }
421
- else {
422
- this.toolbarOptions = undefined;
423
- }
424
- }
425
- }
426
- BaseToolbarGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseToolbarGridComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
427
- BaseToolbarGridComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseToolbarGridComponent, inputs: { showColumnChooser: "showColumnChooser", exportExcelEnabled: "exportExcelEnabled", exportPdfEnabled: "exportPdfEnabled" }, usesInheritance: true, ngImport: i0 });
428
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseToolbarGridComponent, decorators: [{
429
- type: Directive
430
- }], propDecorators: { showColumnChooser: [{
431
- type: Input
432
- }], exportExcelEnabled: [{
433
- type: Input
434
- }], exportPdfEnabled: [{
435
- type: Input
436
- }] } });
437
-
438
- class BaseInlineEditGridComponent extends BaseToolbarGridComponent {
439
- constructor() {
440
- super(...arguments);
441
- this.rowSaved = new EventEmitter();
442
- this.beforeRowDelete = new EventEmitter(false);
443
- this.rowDeleted = new EventEmitter();
444
- this.actionBeginObservable$ = new Observable();
445
- this.actionBeginObservableSub = new Subscription();
446
- }
447
- set inlineEdit(value) {
448
- if (value) {
449
- this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true };
450
- }
451
- else {
452
- this.editSettings = {};
453
- }
454
- this.updateToolbar("Add", value);
455
- this.updateToolbar("Edit", value);
456
- this.updateToolbar("Delete", value);
457
- this.updateToolbar("Update", value);
458
- this.updateToolbar("Cancel", value);
459
- }
460
- ngAfterViewInit() {
461
- if (this.grid) {
462
- this.actionBeginObservable$ = fromEvent(this.grid, 'actionBegin');
463
- this.actionBeginObservableSub = this.actionBeginObservable$.subscribe((action) => {
464
- this.handleActionBegin(action);
465
- });
466
- }
467
- }
468
- ngOnDestroy() {
469
- this.actionBeginObservableSub.unsubscribe();
470
- }
471
- handleActionBegin(action) {
472
- return __awaiter(this, void 0, void 0, function* () {
473
- if (action) {
474
- if (action.requestType === "delete") {
475
- yield this.waitForBeforeDelete(action);
476
- }
477
- if (action.requestType === "save") {
478
- this.rowSaved.next(action.data);
479
- }
480
- }
481
- });
482
- }
483
- handleActionComplete(action) {
484
- if (action) {
485
- if (action.requestType === "delete") {
486
- this.rowDeleted.next(action.data);
487
- }
488
- if (action.requestType === "save") {
489
- this.rowSaved.next(action.data);
490
- }
491
- }
492
- }
493
- waitForBeforeDelete(action) {
494
- // @ts-ignore
495
- const beforeRowDelete$ = fromEvent(this.element, 'beforeRowDelete');
496
- return new Promise((resolve) => {
497
- beforeRowDelete$.subscribe((result) => {
498
- action = result;
499
- return resolve(action);
500
- }).unsubscribe();
501
- this.beforeRowDelete.next(action);
502
- });
503
- }
504
- }
505
- BaseInlineEditGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseInlineEditGridComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
506
- BaseInlineEditGridComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseInlineEditGridComponent, inputs: { inlineEdit: "inlineEdit" }, outputs: { rowSaved: "rowSaved", beforeRowDelete: "beforeRowDelete", rowDeleted: "rowDeleted" }, usesInheritance: true, ngImport: i0 });
507
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseInlineEditGridComponent, decorators: [{
508
- type: Directive
509
- }], propDecorators: { inlineEdit: [{
510
- type: Input
511
- }], rowSaved: [{
512
- type: Output
513
- }], beforeRowDelete: [{
514
- type: Output
515
- }], rowDeleted: [{
516
- type: Output
517
- }] } });
518
-
519
- const defaultColumn = `<div class="detail-wrapper"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><polygon points="34.55 26.18 34.55 37.49 12.44 37.49 12.44 15.38 24.68 15.38 25.59 14.48 24.05 12.94 10 12.94 10 39.94 36.99 39.94 36.99 25.88 35.92 24.81 34.55 26.18" fill="#484f60"/><polygon points="40 10.4 27.92 10.4 32 14.48 22.24 26.23 24.16 28.15 35.92 18.4 40 22.48 40 10.4" fill="#484f60"/></svg></div>`;
520
- class BaseSelectionGridComponent extends BaseInlineEditGridComponent {
521
- constructor() {
522
- super(...arguments);
523
- this.includeDetailColumn = false;
524
- this.rowsSelected = new EventEmitter();
525
- this.rowDoubleClick = new EventEmitter();
526
- this.detailColumnClick = new EventEmitter();
527
- this.contextMenuItemClick = new EventEmitter();
528
- this.rowDragStartEvent = new EventEmitter();
529
- this.rowDropEvent = new EventEmitter();
530
- this.beforeRowsDelete = new EventEmitter();
531
- this.rowsDeleted = new EventEmitter();
532
- this.selectionOptions = { type: "Single" };
533
- }
534
- set multipleSelect(value) {
535
- this.selectionOptions = { type: value ? "Multiple" : "Single" };
536
- }
537
- ngOnInit() {
538
- if (this.includeDetailColumn) {
539
- this.columns.unshift({
540
- field: "", headerText: "", lockColumn: true, maxWidth: 30, width: 30,
541
- allowFiltering: false, allowResizing: false, allowReordering: false, allowEditing: false, allowSearching: false,
542
- showColumnMenu: false, showInColumnChooser: false,
543
- template: this.detailColumnTemplate ? this.detailColumnTemplate : defaultColumn,
544
- headerTemplate: this.detailColumnTemplate ? this.detailColumnTemplate : defaultColumn
545
- });
546
- }
547
- }
548
- handleRowSelected(rowData) {
549
- if (this.grid) {
550
- const rows = this.grid.getSelectedRecords();
551
- this.rowsSelected.next(rows);
552
- }
553
- }
554
- handleDoubleClick(clickData) {
555
- this.rowDoubleClick.next(clickData.rowData);
556
- }
557
- handleRecordClick(clickData) {
558
- if (clickData && this.includeDetailColumn && clickData.cellIndex === 0) {
559
- this.detailColumnClick.next(clickData.rowData);
560
- }
561
- }
562
- selectRow(index) {
563
- if (this.grid) {
564
- const rowIndexes = [];
565
- rowIndexes.push(index);
566
- this.grid.selectionModule.selectRows(rowIndexes);
567
- }
568
- }
569
- contextMenuClick(args) {
570
- this.contextMenuItemClick.next(args);
571
- }
572
- rowDragStartClick(args) {
573
- this.rowDragStartEvent.next(args);
574
- }
575
- rowDropClick(args) {
576
- this.rowDropEvent.next(args);
577
- }
578
- handleBeforeBatchDelete(args) {
579
- this.beforeRowsDelete.next(args);
580
- }
581
- handleBatchDelete(rows) {
582
- this.rowsDeleted.next(rows);
583
- }
584
- }
585
- BaseSelectionGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseSelectionGridComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
586
- BaseSelectionGridComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseSelectionGridComponent, inputs: { multipleSelect: "multipleSelect", includeDetailColumn: "includeDetailColumn", detailColumnTemplate: "detailColumnTemplate" }, outputs: { rowsSelected: "rowsSelected", rowDoubleClick: "rowDoubleClick", detailColumnClick: "detailColumnClick", contextMenuItemClick: "contextMenuItemClick", rowDragStartEvent: "rowDragStartEvent", rowDropEvent: "rowDropEvent", beforeRowsDelete: "beforeRowsDelete", rowsDeleted: "rowsDeleted" }, host: { properties: { "class.detail-column": "this.includeDetailColumn" } }, usesInheritance: true, ngImport: i0 });
587
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseSelectionGridComponent, decorators: [{
588
- type: Directive
589
- }], propDecorators: { multipleSelect: [{
590
- type: Input
591
- }], includeDetailColumn: [{
592
- type: HostBinding,
593
- args: ["class.detail-column"]
594
- }, {
595
- type: Input
596
- }], detailColumnTemplate: [{
597
- type: Input
598
- }], rowsSelected: [{
599
- type: Output
600
- }], rowDoubleClick: [{
601
- type: Output
602
- }], detailColumnClick: [{
603
- type: Output
604
- }], contextMenuItemClick: [{
605
- type: Output
606
- }], rowDragStartEvent: [{
607
- type: Output
608
- }], rowDropEvent: [{
609
- type: Output
610
- }], beforeRowsDelete: [{
611
- type: Output
612
- }], rowsDeleted: [{
613
- type: Output
614
- }] } });
615
-
616
- class CoGridComponent extends BaseSelectionGridComponent {
617
- showClass() {
618
- return true;
619
- }
620
- ngOnInit() {
621
- super.ngOnInit();
622
- }
623
- }
624
- CoGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoGridComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
625
- CoGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CoGridComponent, selector: "co-grid", host: { properties: { "class.co-grid": "this.showClass" } }, providers: [
626
- RowDDService
627
- ], usesInheritance: true, ngImport: i0, template: `
628
- <ejs-grid #grid id="grid"
629
- [dataSource]="data"
630
- [columns]="columns"
631
- [contextMenuItems]="contextMenuItems"
632
- [pageSettings]="pageSettings"
633
- [toolbar]="toolbarOptions"
634
- [gridLines]="gridLines"
635
- [frozenColumns]="frozenColumns"
636
- [frozenRows]="frozenRows"
637
- [selectionSettings]="selectionOptions"
638
- [editSettings]="editSettings"
639
- [allowPaging]="pagingEnabled"
640
- [allowSorting]="sortingEnabled"
641
- [allowFiltering]="filteringEnabled"
642
- [allowGrouping]="groupingEnabled"
643
- [allowReordering]="reorderingEnabled"
644
- [allowResizing]="resizingEnabled"
645
- [allowRowDragAndDrop]="rowDragAndDropEnabled"
646
- [showColumnMenu]="showColumnMenu"
647
- [showColumnChooser]="showColumnChooser"
648
- [allowExcelExport]="exportExcelEnabled"
649
- [allowPdfExport]="exportPdfEnabled"
650
- (toolbarClick)="toolbarClick($event)"
651
- (rowSelected)="handleRowSelected($event)"
652
- (recordDoubleClick)="handleDoubleClick($event)"
653
- (recordClick)="handleRecordClick($event)"
654
- (actionComplete)="handleActionComplete($event)"
655
- (contextMenuClick)="contextMenuClick($event)"
656
- (rowDragStart)="rowDragStartClick($event)"
657
- (rowDrop)="rowDropClick($event)"
658
- (beforeBatchDelete)="handleBeforeBatchDelete($event)"
659
- (batchDelete)="handleBatchDelete($event)"
660
- >
661
- </ejs-grid>
662
- `, isInline: true, components: [{ type: i1$2.GridComponent, selector: "ejs-grid", inputs: ["aggregates", "allowExcelExport", "allowFiltering", "allowGrouping", "allowKeyboard", "allowMultiSorting", "allowPaging", "allowPdfExport", "allowReordering", "allowResizing", "allowRowDragAndDrop", "allowSelection", "allowSorting", "allowTextWrap", "autoFit", "childGrid", "clipMode", "columnChooserSettings", "columnMenuItems", "columnQueryMode", "columns", "contextMenuItems", "cssClass", "currencyCode", "currentAction", "currentViewData", "dataSource", "detailTemplate", "editSettings", "ej2StatePersistenceVersion", "enableAdaptiveUI", "enableAltRow", "enableAutoFill", "enableColumnVirtualization", "enableHeaderFocus", "enableHover", "enableHtmlSanitizer", "enableImmutableMode", "enableInfiniteScrolling", "enablePersistence", "enableRtl", "enableStickyHeader", "enableVirtualMaskRow", "enableVirtualization", "filterSettings", "frozenColumns", "frozenRows", "gridLines", "groupSettings", "height", "hierarchyPrintMode", "infiniteScrollSettings", "loadingIndicator", "locale", "pageSettings", "pagerTemplate", "parentDetails", "printMode", "query", "queryString", "resizeSettings", "rowDropSettings", "rowHeight", "rowRenderingMode", "rowTemplate", "searchSettings", "selectedRowIndex", "selectionSettings", "showColumnChooser", "showColumnMenu", "showHider", "sortSettings", "textWrapSettings", "toolbar", "toolbarTemplate", "width"], outputs: ["actionBegin", "actionComplete", "actionFailure", "batchAdd", "batchCancel", "batchDelete", "beforeAutoFill", "beforeBatchAdd", "beforeBatchDelete", "beforeBatchSave", "beforeCopy", "beforeDataBound", "beforeExcelExport", "beforeOpenAdaptiveDialog", "beforeOpenColumnChooser", "beforePaste", "beforePdfExport", "beforePrint", "beginEdit", "cellDeselected", "cellDeselecting", "cellEdit", "cellSave", "cellSaved", "cellSelected", "cellSelecting", "checkBoxChange", "columnDataStateChange", "columnDeselected", "columnDeselecting", "columnDrag", "columnDragStart", "columnDrop", "columnMenuClick", "columnMenuOpen", "columnSelected", "columnSelecting", "commandClick", "contextMenuClick", "contextMenuOpen", "created", "dataBound", "dataSourceChanged", "dataStateChange", "destroyed", "detailDataBound", "excelAggregateQueryCellInfo", "excelExportComplete", "excelHeaderQueryCellInfo", "excelQueryCellInfo", "exportDetailDataBound", "exportGroupCaption", "headerCellInfo", "keyPressed", "lazyLoadGroupCollapse", "lazyLoadGroupExpand", "load", "pdfAggregateQueryCellInfo", "pdfExportComplete", "pdfHeaderQueryCellInfo", "pdfQueryCellInfo", "printComplete", "queryCellInfo", "recordClick", "recordDoubleClick", "resizeStart", "resizeStop", "resizing", "rowDataBound", "rowDeselected", "rowDeselecting", "rowDrag", "rowDragStart", "rowDragStartHelper", "rowDrop", "rowSelected", "rowSelecting", "toolbarClick", "dataSourceChange"] }], encapsulation: i0.ViewEncapsulation.None });
663
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoGridComponent, decorators: [{
664
- type: Component,
665
- args: [{
666
- selector: 'co-grid',
667
- template: `
668
- <ejs-grid #grid id="grid"
669
- [dataSource]="data"
670
- [columns]="columns"
671
- [contextMenuItems]="contextMenuItems"
672
- [pageSettings]="pageSettings"
673
- [toolbar]="toolbarOptions"
674
- [gridLines]="gridLines"
675
- [frozenColumns]="frozenColumns"
676
- [frozenRows]="frozenRows"
677
- [selectionSettings]="selectionOptions"
678
- [editSettings]="editSettings"
679
- [allowPaging]="pagingEnabled"
680
- [allowSorting]="sortingEnabled"
681
- [allowFiltering]="filteringEnabled"
682
- [allowGrouping]="groupingEnabled"
683
- [allowReordering]="reorderingEnabled"
684
- [allowResizing]="resizingEnabled"
685
- [allowRowDragAndDrop]="rowDragAndDropEnabled"
686
- [showColumnMenu]="showColumnMenu"
687
- [showColumnChooser]="showColumnChooser"
688
- [allowExcelExport]="exportExcelEnabled"
689
- [allowPdfExport]="exportPdfEnabled"
690
- (toolbarClick)="toolbarClick($event)"
691
- (rowSelected)="handleRowSelected($event)"
692
- (recordDoubleClick)="handleDoubleClick($event)"
693
- (recordClick)="handleRecordClick($event)"
694
- (actionComplete)="handleActionComplete($event)"
695
- (contextMenuClick)="contextMenuClick($event)"
696
- (rowDragStart)="rowDragStartClick($event)"
697
- (rowDrop)="rowDropClick($event)"
698
- (beforeBatchDelete)="handleBeforeBatchDelete($event)"
699
- (batchDelete)="handleBatchDelete($event)"
700
- >
701
- </ejs-grid>
702
- `,
703
- providers: [
704
- RowDDService
705
- ],
706
- encapsulation: ViewEncapsulation.None
707
- }]
708
- }], propDecorators: { showClass: [{
709
- type: HostBinding,
710
- args: ['class.co-grid']
711
- }] } });
712
-
713
- class CoGridModule {
714
- }
715
- CoGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
716
- CoGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoGridModule, declarations: [CoGridComponent], imports: [CommonModule,
717
- FormsModule,
718
- GridModule], exports: [CoGridComponent] });
719
- CoGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoGridModule, providers: [
720
- PageService,
721
- SortService,
722
- FilterService,
723
- GroupService,
724
- ReorderService,
725
- ResizeService,
726
- ExcelExportService,
727
- PdfExportService,
728
- EditService,
729
- ToolbarService,
730
- ColumnChooserService,
731
- ColumnMenuService,
732
- ContextMenuService
733
- ], imports: [[
734
- CommonModule,
735
- FormsModule,
736
- GridModule
737
- ]] });
738
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoGridModule, decorators: [{
739
- type: NgModule,
740
- args: [{
741
- imports: [
742
- CommonModule,
743
- FormsModule,
744
- GridModule
745
- ],
746
- declarations: [CoGridComponent],
747
- exports: [CoGridComponent],
748
- providers: [
749
- PageService,
750
- SortService,
751
- FilterService,
752
- GroupService,
753
- ReorderService,
754
- ResizeService,
755
- ExcelExportService,
756
- PdfExportService,
757
- EditService,
758
- ToolbarService,
759
- ColumnChooserService,
760
- ColumnMenuService,
761
- ContextMenuService
762
- ]
763
- }]
764
- }] });
765
-
766
- class CoPivotComponent {
767
- constructor() {
768
- this.showGroupingBar = false;
769
- this.allowGrouping = false;
770
- this.enablePersistence = false;
771
- this.showFieldList = false;
772
- this.showToolbar = false;
773
- this.allowExcelExport = false;
774
- this.allowPdfExport = false;
775
- this.allowConditionalFormatting = true;
776
- this.allowNumberFormatting = true;
777
- this.allowCalculatedField = false;
778
- this.height = "100%";
779
- this.saveReportClick = new EventEmitter();
780
- this.loadReportClick = new EventEmitter();
781
- this.fetchReportClick = new EventEmitter();
782
- this.renameReportClick = new EventEmitter();
783
- this.removeReportClick = new EventEmitter();
784
- this.newReportClick = new EventEmitter();
785
- this.beforeToolbarRenderClick = new EventEmitter();
786
- this.enginePopulated = new EventEmitter();
787
- }
788
- showClass() {
789
- return true;
790
- }
791
- ngOnInit() {
792
- }
793
- ngAfterViewInit() {
794
- setTimeout(() => {
795
- this.pivot.refresh();
796
- this.pivot.refreshData();
797
- this.pivot.layoutRefresh();
798
- }, 3000);
799
- }
800
- saveReport(args) {
801
- if (args) {
802
- this.saveReportClick.next(args);
803
- }
804
- }
805
- loadReport(args) {
806
- if (args) {
807
- this.loadReportClick.next(args);
808
- }
809
- }
810
- fetchReport(args) {
811
- if (args) {
812
- this.fetchReportClick.next(args);
813
- }
814
- }
815
- renameReport(args) {
816
- if (args) {
817
- this.renameReportClick.next(args);
818
- }
819
- }
820
- removeReport(args) {
821
- if (args) {
822
- this.removeReportClick.next(args);
823
- }
824
- }
825
- newReport() {
826
- this.newReportClick.next();
827
- }
828
- beforeToolbarRender(args) {
829
- if (args) {
830
- this.beforeToolbarRenderClick.next(args);
831
- }
832
- }
833
- hanldeEnginePopulated(args) {
834
- if (args) {
835
- this.enginePopulated.next(args);
836
- }
837
- }
838
- }
839
- CoPivotComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoPivotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
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>
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 });
869
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoPivotComponent, decorators: [{
870
- type: Component,
871
- args: [{
872
- selector: 'co-pivot',
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>
901
- `,
902
- providers: [GroupingBarService, GroupingService, ToolbarService$1, ConditionalFormattingService, FieldListService, NumberFormattingService],
903
- encapsulation: ViewEncapsulation.None
904
- }]
905
- }], ctorParameters: function () { return []; }, propDecorators: { pivot: [{
906
- type: ViewChild,
907
- args: ['pivot', { static: false }]
908
- }], dataSourceSettings: [{
909
- type: Input
910
- }], gridSettings: [{
911
- type: Input
912
- }], toolbarOptions: [{
913
- type: Input
914
- }], showGroupingBar: [{
915
- type: Input
916
- }], allowGrouping: [{
917
- type: Input
918
- }], enablePersistence: [{
919
- type: Input
920
- }], showFieldList: [{
921
- type: Input
922
- }], showToolbar: [{
923
- type: Input
924
- }], allowExcelExport: [{
925
- type: Input
926
- }], allowPdfExport: [{
927
- type: Input
928
- }], allowConditionalFormatting: [{
929
- type: Input
930
- }], allowNumberFormatting: [{
931
- type: Input
932
- }], allowCalculatedField: [{
933
- type: Input
934
- }], height: [{
935
- type: Input
936
- }], saveReportClick: [{
937
- type: Output
938
- }], loadReportClick: [{
939
- type: Output
940
- }], fetchReportClick: [{
941
- type: Output
942
- }], renameReportClick: [{
943
- type: Output
944
- }], removeReportClick: [{
945
- type: Output
946
- }], newReportClick: [{
947
- type: Output
948
- }], beforeToolbarRenderClick: [{
949
- type: Output
950
- }], enginePopulated: [{
951
- type: Output
952
- }], showClass: [{
953
- type: HostBinding,
954
- args: ["class.co-pivot"]
955
- }] } });
956
-
957
- class CoPivotModule {
958
- }
959
- CoPivotModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoPivotModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
960
- CoPivotModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoPivotModule, declarations: [CoPivotComponent], imports: [CommonModule,
961
- PivotViewModule], exports: [CoPivotComponent] });
962
- CoPivotModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoPivotModule, imports: [[
963
- CommonModule,
964
- PivotViewModule
965
- ]] });
966
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CoPivotModule, decorators: [{
967
- type: NgModule,
968
- args: [{
969
- imports: [
970
- CommonModule,
971
- PivotViewModule
972
- ],
973
- declarations: [
974
- CoPivotComponent
975
- ],
976
- exports: [
977
- CoPivotComponent
978
- ]
979
- }]
980
- }] });
4
+ import * as i1 from 'ngx-echarts';
5
+ import { NgxEchartsModule } from 'ngx-echarts';
981
6
 
982
7
  class StackedLineChartComponent {
983
8
  constructor() {
984
9
  this.chartData = [];
985
10
  this.chartLegend = [];
986
11
  this.chartXAxis = [];
987
- this.chartHeight = 600;
12
+ this.chartHeight = "auto";
13
+ this.chartWidth = "auto";
988
14
  this.chartOptions = {
989
15
  title: {},
990
16
  tooltip: {
@@ -1013,21 +39,6 @@ class StackedLineChartComponent {
1013
39
  return true;
1014
40
  }
1015
41
  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
42
  this.chartOptions.title['text'] = this.chartName;
1032
43
  this.chartOptions.series = this.chartData;
1033
44
  this.chartOptions.xAxis = {
@@ -1036,26 +47,27 @@ class StackedLineChartComponent {
1036
47
  data: this.chartXAxis
1037
48
  };
1038
49
  this.chartOptions.legend['data'] = this.chartLegend;
1039
- this.chartOptions && myChart.setOption(this.chartOptions);
1040
50
  }
1041
51
  }
1042
52
  StackedLineChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: StackedLineChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1043
53
  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
54
 
1045
- <div id="chart-container" class="component-wrapper">
1046
- </div>
55
+ <div echarts [options]="chartOptions" [initOpts]="{
56
+ width: chartWidth,
57
+ height: chartHeight}" class="chart"></div>
1047
58
 
1048
- `, isInline: true, encapsulation: i0.ViewEncapsulation.None });
59
+ `, isInline: true, directives: [{ type: i1.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.ViewEncapsulation.None });
1049
60
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: StackedLineChartComponent, decorators: [{
1050
61
  type: Component,
1051
62
  args: [{
1052
63
  selector: "co-stacked-line-chart",
1053
64
  template: `
1054
65
 
1055
- <div id="chart-container" class="component-wrapper">
1056
- </div>
66
+ <div echarts [options]="chartOptions" [initOpts]="{
67
+ width: chartWidth,
68
+ height: chartHeight}" class="chart"></div>
1057
69
 
1058
- `,
70
+ `,
1059
71
  encapsulation: ViewEncapsulation.None
1060
72
  }]
1061
73
  }], propDecorators: { showClass: [{
@@ -1080,15 +92,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
1080
92
  class StackedLineChartModule {
1081
93
  }
1082
94
  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] });
95
+ StackedLineChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: StackedLineChartModule, declarations: [StackedLineChartComponent], imports: [CommonModule, i1.NgxEchartsModule], exports: [StackedLineChartComponent] });
1084
96
  StackedLineChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: StackedLineChartModule, imports: [[
1085
- CommonModule
97
+ CommonModule,
98
+ NgxEchartsModule.forRoot({
99
+ echarts: () => import('echarts')
100
+ })
1086
101
  ]] });
1087
102
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: StackedLineChartModule, decorators: [{
1088
103
  type: NgModule,
1089
104
  args: [{
1090
105
  imports: [
1091
- CommonModule
106
+ CommonModule,
107
+ NgxEchartsModule.forRoot({
108
+ echarts: () => import('echarts')
109
+ })
1092
110
  ],
1093
111
  declarations: [
1094
112
  StackedLineChartComponent
@@ -1207,5 +225,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
1207
225
  * Generated bundle index. Do not edit.
1208
226
  */
1209
227
 
1210
- export { CoGridComponent, CoGridModule, CoKanbanComponent, CoKanbanModule, CoPivotComponent, CoPivotModule, CoScheduleComponent, CoScheduleModule, ExtendedComponentsTranslationModule, ExtendedComponentsTranslationService, StackedLineChartComponent, StackedLineChartModule };
228
+ export { ExtendedComponentsTranslationModule, ExtendedComponentsTranslationService, StackedLineChartComponent, StackedLineChartModule };
1211
229
  //# sourceMappingURL=colijnit-extendedcomponents.js.map