@colijnit/extendedcomponents 12.0.4 → 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 (61) hide show
  1. package/README.md +24 -24
  2. package/bundles/colijnit-extendedcomponents.umd.js +119 -972
  3. package/bundles/colijnit-extendedcomponents.umd.js.map +1 -1
  4. package/esm2015/public-api.js +1 -9
  5. package/fesm2015/colijnit-extendedcomponents.js +5 -977
  6. package/fesm2015/colijnit-extendedcomponents.js.map +1 -1
  7. package/lib/style/_variables.scss +0 -27
  8. package/lib/style/extendedcomponents-globals.scss +0 -40
  9. package/package.json +1 -9
  10. package/public-api.d.ts +0 -8
  11. package/esm2015/lib/components/grid/base/base-grid.component.js +0 -71
  12. package/esm2015/lib/components/grid/base/base-inline-edit-grid.component.js +0 -86
  13. package/esm2015/lib/components/grid/base/base-selection-grid.component.js +0 -100
  14. package/esm2015/lib/components/grid/base/base-toolbar-grid.component.js +0 -74
  15. package/esm2015/lib/components/grid/co-grid.component.js +0 -102
  16. package/esm2015/lib/components/grid/co-grid.module.js +0 -59
  17. package/esm2015/lib/components/grid/enum/grid-lines.enum.js +0 -9
  18. package/esm2015/lib/components/grid/interface/grid-menu-event-args.js +0 -2
  19. package/esm2015/lib/components/grid/interface/grid-row-drag-event-args.js +0 -2
  20. package/esm2015/lib/components/grid/interface/grid-row-drop-event-args.js +0 -2
  21. package/esm2015/lib/components/kanban/co-kanban.component.js +0 -127
  22. package/esm2015/lib/components/kanban/co-kanban.module.js +0 -30
  23. package/esm2015/lib/components/pivot/co-pivot.component.js +0 -195
  24. package/esm2015/lib/components/pivot/co-pivot.module.js +0 -30
  25. package/esm2015/lib/components/schedule/co-schedule.component.js +0 -99
  26. package/esm2015/lib/components/schedule/co-schedule.module.js +0 -30
  27. package/esm2015/lib/core/enum/schedule-view.enum.js +0 -16
  28. package/lib/bin/postinstall.js +0 -3
  29. package/lib/components/grid/base/base-grid.component.d.ts +0 -30
  30. package/lib/components/grid/base/base-inline-edit-grid.component.d.ts +0 -21
  31. package/lib/components/grid/base/base-selection-grid.component.d.ts +0 -34
  32. package/lib/components/grid/base/base-toolbar-grid.component.d.ts +0 -20
  33. package/lib/components/grid/co-grid.component.d.ts +0 -9
  34. package/lib/components/grid/co-grid.module.d.ts +0 -10
  35. package/lib/components/grid/enum/grid-lines.enum.d.ts +0 -7
  36. package/lib/components/grid/interface/grid-menu-event-args.d.ts +0 -3
  37. package/lib/components/grid/interface/grid-row-drag-event-args.d.ts +0 -3
  38. package/lib/components/grid/interface/grid-row-drop-event-args.d.ts +0 -3
  39. package/lib/components/grid/style/_layout.scss +0 -36
  40. package/lib/components/grid/style/_material-definition.scss +0 -8
  41. package/lib/components/grid/style/_theme.scss +0 -3
  42. package/lib/components/grid/style/material.scss +0 -4
  43. package/lib/components/kanban/co-kanban.component.d.ts +0 -31
  44. package/lib/components/kanban/co-kanban.module.d.ts +0 -9
  45. package/lib/components/kanban/style/_layout.scss +0 -52
  46. package/lib/components/kanban/style/_material-definition.scss +0 -27
  47. package/lib/components/kanban/style/_theme.scss +0 -3
  48. package/lib/components/kanban/style/material.scss +0 -5
  49. package/lib/components/pivot/co-pivot.component.d.ts +0 -43
  50. package/lib/components/pivot/co-pivot.module.d.ts +0 -9
  51. package/lib/components/pivot/style/_layout.scss +0 -92
  52. package/lib/components/pivot/style/_material-definition.scss +0 -1
  53. package/lib/components/pivot/style/_theme.scss +0 -3
  54. package/lib/components/pivot/style/material.scss +0 -4
  55. package/lib/components/schedule/co-schedule.component.d.ts +0 -22
  56. package/lib/components/schedule/co-schedule.module.d.ts +0 -9
  57. package/lib/components/schedule/style/_layout.scss +0 -4
  58. package/lib/components/schedule/style/_material-definition.scss +0 -0
  59. package/lib/components/schedule/style/_theme.scss +0 -4
  60. package/lib/components/schedule/style/material.scss +0 -4
  61. package/lib/core/enum/schedule-view.enum.d.ts +0 -14
@@ -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('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';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('ngx-echarts')) :
3
+ typeof define === 'function' && define.amd ? define('@colijnit/extendedcomponents', ['exports', '@angular/core', '@angular/common', '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));
5
+ })(this, (function (exports, i0, common, i1) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -24,223 +24,162 @@
24
24
 
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
26
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
28
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
29
- var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
30
- var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
31
27
 
32
- var CoKanbanComponent = /** @class */ (function () {
33
- function CoKanbanComponent() {
34
- this.allowDragAndDrop = true;
35
- this.allowKeyboard = true;
36
- this.enablePersistence = false;
37
- this.enableTooltip = false;
38
- this.keyField = "";
39
- this.showEmptyColumn = false;
40
- this.cardClickEvent = new i0.EventEmitter();
41
- this.cardDoubleClickEvent = new i0.EventEmitter();
42
- this.dragStartEvent = new i0.EventEmitter();
43
- this.dragStopEvent = new i0.EventEmitter();
28
+ var StackedLineChartComponent = /** @class */ (function () {
29
+ function StackedLineChartComponent() {
30
+ this.chartData = [];
31
+ this.chartLegend = [];
32
+ this.chartXAxis = [];
33
+ this.chartHeight = "auto";
34
+ this.chartWidth = "auto";
35
+ this.chartOptions = {
36
+ title: {},
37
+ tooltip: {
38
+ trigger: 'axis'
39
+ },
40
+ legend: {},
41
+ grid: {
42
+ left: '3%',
43
+ right: '4%',
44
+ bottom: '3%',
45
+ containLabel: true
46
+ },
47
+ toolbox: {
48
+ feature: {
49
+ saveAsImage: {}
50
+ }
51
+ },
52
+ xAxis: {},
53
+ yAxis: {
54
+ type: 'value'
55
+ },
56
+ series: {}
57
+ };
44
58
  }
45
- CoKanbanComponent.prototype.showClass = function () {
59
+ StackedLineChartComponent.prototype.showClass = function () {
46
60
  return true;
47
61
  };
48
- CoKanbanComponent.prototype.ngOnInit = function () {
49
- };
50
- CoKanbanComponent.prototype.ngAfterViewInit = function () {
51
- if (this.columns) {
52
- this.kanban.columns = this.columns;
53
- }
54
- };
55
- CoKanbanComponent.prototype.dialogOpen = function (args) {
56
- args.cancel = true;
57
- };
58
- CoKanbanComponent.prototype.handleCardClick = function (args) {
59
- this.cardClickEvent.next(args);
60
- };
61
- CoKanbanComponent.prototype.handleCardDoubleClick = function (args) {
62
- this.cardDoubleClickEvent.next(args);
63
- };
64
- CoKanbanComponent.prototype.handleDragStart = function (args) {
65
- this.dragStartEvent.next(args);
66
- };
67
- CoKanbanComponent.prototype.handleDragStop = function (args) {
68
- this.dragStopEvent.next(args);
62
+ StackedLineChartComponent.prototype.ngOnInit = function () {
63
+ this.chartOptions.title['text'] = this.chartName;
64
+ this.chartOptions.series = this.chartData;
65
+ this.chartOptions.xAxis = {
66
+ type: 'category',
67
+ boundaryGap: false,
68
+ data: this.chartXAxis
69
+ };
70
+ this.chartOptions.legend['data'] = this.chartLegend;
69
71
  };
70
- return CoKanbanComponent;
72
+ return StackedLineChartComponent;
71
73
  }());
72
- CoKanbanComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
73
- CoKanbanComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "\n <ejs-kanban\n #kanban\n id=\"kanban\"\n [allowDragAndDrop]=\"allowDragAndDrop\"\n [allowKeyboard]=\"allowKeyboard\"\n [cardSettings]=\"cardSettings\"\n [enablePersistence]=\"enablePersistence\"\n [enableTooltip]=\"enableTooltip\"\n [keyField]=\"keyField\"\n [showEmptyColumn]=\"showEmptyColumn\"\n [swimlaneSettings]=\"swimlaneSettings\"\n [dataSource]=\"data\"\n (cardClick)=\"handleCardClick($event)\"\n (cardDoubleClick)=\"handleCardDoubleClick($event)\"\n (dialogOpen)=\"dialogOpen($event)\"\n (dragStart)=\"handleDragStart($event)\"\n (dragStop)=\"handleDragStop($event)\"\n >\n </ejs-kanban>\n ", isInline: true, components: [{ type: i1__namespace.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__namespace.ViewEncapsulation.None });
74
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanComponent, decorators: [{
74
+ StackedLineChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
75
+ 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.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 });
76
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartComponent, decorators: [{
75
77
  type: i0.Component,
76
78
  args: [{
77
- selector: 'co-kanban',
78
- template: "\n <ejs-kanban\n #kanban\n id=\"kanban\"\n [allowDragAndDrop]=\"allowDragAndDrop\"\n [allowKeyboard]=\"allowKeyboard\"\n [cardSettings]=\"cardSettings\"\n [enablePersistence]=\"enablePersistence\"\n [enableTooltip]=\"enableTooltip\"\n [keyField]=\"keyField\"\n [showEmptyColumn]=\"showEmptyColumn\"\n [swimlaneSettings]=\"swimlaneSettings\"\n [dataSource]=\"data\"\n (cardClick)=\"handleCardClick($event)\"\n (cardDoubleClick)=\"handleCardDoubleClick($event)\"\n (dialogOpen)=\"dialogOpen($event)\"\n (dragStart)=\"handleDragStart($event)\"\n (dragStop)=\"handleDragStop($event)\"\n >\n </ejs-kanban>\n ",
79
+ selector: "co-stacked-line-chart",
80
+ template: "\n\n <div echarts [options]=\"chartOptions\" [initOpts]=\"{\n width: chartWidth,\n height: chartHeight}\" class=\"chart\"></div>\n\n ",
79
81
  encapsulation: i0.ViewEncapsulation.None
80
82
  }]
81
- }], ctorParameters: function () { return []; }, propDecorators: { kanban: [{
82
- type: i0.ViewChild,
83
- args: ['kanban', { static: false }]
84
- }], allowDragAndDrop: [{
85
- type: i0.Input
86
- }], allowKeyboard: [{
87
- type: i0.Input
88
- }], cardSettings: [{
89
- type: i0.Input
90
- }], enablePersistence: [{
83
+ }], propDecorators: { showClass: [{
84
+ type: i0.HostBinding,
85
+ args: ["class.co-co-stacked-line-chart"]
86
+ }], chartName: [{
91
87
  type: i0.Input
92
- }], enableTooltip: [{
88
+ }], chartData: [{
93
89
  type: i0.Input
94
- }], keyField: [{
90
+ }], chartLegend: [{
95
91
  type: i0.Input
96
- }], showEmptyColumn: [{
92
+ }], chartXAxis: [{
97
93
  type: i0.Input
98
- }], swimlaneSettings: [{
94
+ }], chartHeight: [{
99
95
  type: i0.Input
100
- }], columns: [{
96
+ }], chartWidth: [{
101
97
  type: i0.Input
102
- }], data: [{
98
+ }], chartOptions: [{
103
99
  type: i0.Input
104
- }], cardClickEvent: [{
105
- type: i0.Output
106
- }], cardDoubleClickEvent: [{
107
- type: i0.Output
108
- }], dragStartEvent: [{
109
- type: i0.Output
110
- }], dragStopEvent: [{
111
- type: i0.Output
112
- }], showClass: [{
113
- type: i0.HostBinding,
114
- args: ["class.co-kanban"]
115
100
  }] } });
116
101
 
117
- var CoKanbanModule = /** @class */ (function () {
118
- function CoKanbanModule() {
102
+ var StackedLineChartModule = /** @class */ (function () {
103
+ function StackedLineChartModule() {
119
104
  }
120
- return CoKanbanModule;
105
+ return StackedLineChartModule;
121
106
  }());
122
- CoKanbanModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
123
- CoKanbanModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanModule, declarations: [CoKanbanComponent], imports: [common.CommonModule,
124
- i1.KanbanModule], exports: [CoKanbanComponent] });
125
- CoKanbanModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanModule, imports: [[
107
+ StackedLineChartModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
108
+ 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.NgxEchartsModule], exports: [StackedLineChartComponent] });
109
+ StackedLineChartModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartModule, imports: [[
126
110
  common.CommonModule,
127
- i1.KanbanModule
111
+ i1.NgxEchartsModule.forRoot({
112
+ echarts: function () { return import('echarts'); }
113
+ })
128
114
  ]] });
129
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanModule, decorators: [{
115
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartModule, decorators: [{
130
116
  type: i0.NgModule,
131
117
  args: [{
132
118
  imports: [
133
119
  common.CommonModule,
134
- i1.KanbanModule
120
+ i1.NgxEchartsModule.forRoot({
121
+ echarts: function () { return import('echarts'); }
122
+ })
135
123
  ],
136
124
  declarations: [
137
- CoKanbanComponent
125
+ StackedLineChartComponent
138
126
  ],
139
127
  exports: [
140
- CoKanbanComponent
128
+ StackedLineChartComponent
141
129
  ]
142
130
  }]
143
131
  }] });
144
132
 
145
- var CoScheduleComponent = /** @class */ (function () {
146
- function CoScheduleComponent() {
147
- this.enablePersistence = false;
148
- this.actionBegin = new i0.EventEmitter();
149
- this.actionComplete = new i0.EventEmitter();
150
- this.actionFailure = new i0.EventEmitter();
151
- this.showClass = true;
133
+ // The localization service, providing peers with text translation functionality.
134
+ var DictionaryService = /** @class */ (function () {
135
+ function DictionaryService() {
136
+ // Some dictionary values have one or more '|~' texts in them, meant to be replaced with client-side given texts.
137
+ this._placeholder = "|~";
152
138
  }
153
- CoScheduleComponent.prototype.ngOnInit = function () {
154
- };
155
- CoScheduleComponent.prototype.onActionBegin = function (args) {
156
- this.actionBegin.emit(args);
157
- };
158
- CoScheduleComponent.prototype.onActionComplete = function (args) {
159
- this.actionComplete.emit(args);
160
- };
161
- CoScheduleComponent.prototype.onActionFailure = function (args) {
162
- this.actionFailure.emit(args);
139
+ /**
140
+ * Returns the localized text for the given dictionary key.
141
+ * @param {string} key
142
+ * @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
143
+ * @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
144
+ * @returns {string} The translated text for given dictionary key
145
+ */
146
+ DictionaryService.prototype.get = function (key, upperCaseFirst) {
147
+ if (upperCaseFirst === void 0) { upperCaseFirst = true; }
148
+ var replacementTexts = [];
149
+ for (var _i = 2; _i < arguments.length; _i++) {
150
+ replacementTexts[_i - 2] = arguments[_i];
151
+ }
152
+ var text = key;
153
+ if (this.translation && this.translation.hasOwnProperty(key)) {
154
+ text = this.translation[key].toLowerCase();
155
+ if (upperCaseFirst) {
156
+ text = text.charAt(0).toUpperCase() + text.slice(1);
157
+ }
158
+ }
159
+ return text;
163
160
  };
164
- return CoScheduleComponent;
161
+ return DictionaryService;
165
162
  }());
166
- CoScheduleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
167
- CoScheduleComponentcmp = i0__namespace.ɵɵ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: [
168
- i1$1.DayService,
169
- i1$1.WeekService,
170
- i1$1.WorkWeekService,
171
- i1$1.MonthService,
172
- i1$1.AgendaService,
173
- i1$1.MonthAgendaService,
174
- i1$1.TimelineViewsService,
175
- i1$1.TimelineMonthService
176
- ], viewQueries: [{ propertyName: "scheduleObj", first: true, predicate: ["ejsSchedule"], descendants: true, static: true }], ngImport: i0__namespace, template: "\n <ejs-schedule\n #ejsSchedule\n [selectedDate]=\"selectedDate\"\n [currentView]=\"currentView\"\n [eventSettings]=\"eventSettings\"\n [enablePersistence]=\"enablePersistence\"\n (actionBegin)=\"onActionBegin($event)\"\n (actionComplete)=\"onActionComplete($event)\"\n (actionFailure)=\"onActionFailure($event)\"\n ><ng-content></ng-content>\n </ejs-schedule>\n ", isInline: true, components: [{ type: i1__namespace$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__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
177
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleComponent, decorators: [{
178
- type: i0.Component,
179
- args: [{
180
- selector: 'co-schedule',
181
- template: "\n <ejs-schedule\n #ejsSchedule\n [selectedDate]=\"selectedDate\"\n [currentView]=\"currentView\"\n [eventSettings]=\"eventSettings\"\n [enablePersistence]=\"enablePersistence\"\n (actionBegin)=\"onActionBegin($event)\"\n (actionComplete)=\"onActionComplete($event)\"\n (actionFailure)=\"onActionFailure($event)\"\n ><ng-content></ng-content>\n </ejs-schedule>\n ",
182
- providers: [
183
- i1$1.DayService,
184
- i1$1.WeekService,
185
- i1$1.WorkWeekService,
186
- i1$1.MonthService,
187
- i1$1.AgendaService,
188
- i1$1.MonthAgendaService,
189
- i1$1.TimelineViewsService,
190
- i1$1.TimelineMonthService
191
- ],
192
- encapsulation: i0.ViewEncapsulation.None,
193
- changeDetection: i0.ChangeDetectionStrategy.OnPush
194
- }]
195
- }], ctorParameters: function () { return []; }, propDecorators: { scheduleObj: [{
196
- type: i0.ViewChild,
197
- args: ['ejsSchedule', { static: true }]
198
- }], selectedDate: [{
199
- type: i0.Input
200
- }], currentView: [{
201
- type: i0.Input
202
- }], eventSettings: [{
203
- type: i0.Input
204
- }], enablePersistence: [{
205
- type: i0.Input
206
- }], actionBegin: [{
207
- type: i0.Output
208
- }], actionComplete: [{
209
- type: i0.Output
210
- }], actionFailure: [{
211
- type: i0.Output
212
- }], showClass: [{
213
- type: i0.HostBinding,
214
- args: ['class.co-schedule']
215
- }] } });
163
+ DictionaryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DictionaryService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
164
+ DictionaryServiceprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DictionaryService });
165
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DictionaryService, decorators: [{
166
+ type: i0.Injectable
167
+ }] });
216
168
 
217
- var CoScheduleModule = /** @class */ (function () {
218
- function CoScheduleModule() {
169
+ var ExtendedComponentsTranslationService = /** @class */ (function () {
170
+ function ExtendedComponentsTranslationService(_dictionaryService) {
171
+ this._dictionaryService = _dictionaryService;
219
172
  }
220
- return CoScheduleModule;
173
+ ExtendedComponentsTranslationService.prototype.setTranslation = function (translation) {
174
+ this._dictionaryService.translation = translation;
175
+ };
176
+ return ExtendedComponentsTranslationService;
221
177
  }());
222
- CoScheduleModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
223
- CoScheduleModulemod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleModule, declarations: [CoScheduleComponent], imports: [common.CommonModule,
224
- i1$1.ScheduleModule], exports: [CoScheduleComponent] });
225
- CoScheduleModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleModule, imports: [[
226
- common.CommonModule,
227
- i1$1.ScheduleModule
228
- ]] });
229
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleModule, decorators: [{
230
- type: i0.NgModule,
231
- args: [{
232
- declarations: [
233
- CoScheduleComponent
234
- ],
235
- imports: [
236
- common.CommonModule,
237
- i1$1.ScheduleModule
238
- ],
239
- exports: [
240
- CoScheduleComponent
241
- ]
242
- }]
243
- }] });
178
+ ExtendedComponentsTranslationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationService, deps: [{ token: DictionaryService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
179
+ ExtendedComponentsTranslationServiceprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationService });
180
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationService, decorators: [{
181
+ type: i0.Injectable
182
+ }], ctorParameters: function () { return [{ type: DictionaryService }]; } });
244
183
 
245
184
  /******************************************************************************
246
185
  Copyright (c) Microsoft Corporation.
@@ -654,790 +593,6 @@
654
593
  __classPrivateFieldIn: __classPrivateFieldIn,
655
594
  };
656
595
 
657
- var GridLines;
658
- (function (GridLines) {
659
- GridLines["None"] = "None";
660
- GridLines["Horizontal"] = "Horizontal";
661
- GridLines["Vertical"] = "Vertical";
662
- GridLines["Both"] = "Both";
663
- GridLines["Default"] = "Default";
664
- })(GridLines || (GridLines = {}));
665
-
666
- var BaseGridComponent = /** @class */ (function () {
667
- function BaseGridComponent(element) {
668
- this.element = element;
669
- this.gridLines = GridLines.None;
670
- this.contextMenuItems = [];
671
- this.sortingEnabled = false;
672
- this.filteringEnabled = false;
673
- this.pagingEnabled = false;
674
- this.groupingEnabled = false;
675
- this.reorderingEnabled = false;
676
- this.rowDragAndDropEnabled = false;
677
- this.resizingEnabled = false;
678
- this.showColumnMenu = false;
679
- this.pageSettings = {};
680
- }
681
- Object.defineProperty(BaseGridComponent.prototype, "maxNumberOfRows", {
682
- set: function (value) {
683
- if (value) {
684
- this.pageSettings.pageSize = value;
685
- }
686
- },
687
- enumerable: false,
688
- configurable: true
689
- });
690
- Object.defineProperty(BaseGridComponent.prototype, "columns", {
691
- get: function () {
692
- return this._columns;
693
- },
694
- set: function (value) {
695
- this._columns = value;
696
- },
697
- enumerable: false,
698
- configurable: true
699
- });
700
- return BaseGridComponent;
701
- }());
702
- BaseGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseGridComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
703
- BaseGridComponent.ɵdir = i0__namespace.ɵɵ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__namespace });
704
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseGridComponent, decorators: [{
705
- type: i0.Directive
706
- }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { grid: [{
707
- type: i0.ViewChild,
708
- args: ['grid', { static: false }]
709
- }], data: [{
710
- type: i0.Input
711
- }], gridLines: [{
712
- type: i0.Input
713
- }], contextMenuItems: [{
714
- type: i0.Input
715
- }], frozenColumns: [{
716
- type: i0.Input
717
- }], frozenRows: [{
718
- type: i0.Input
719
- }], sortingEnabled: [{
720
- type: i0.Input
721
- }], filteringEnabled: [{
722
- type: i0.Input
723
- }], pagingEnabled: [{
724
- type: i0.Input
725
- }], groupingEnabled: [{
726
- type: i0.Input
727
- }], reorderingEnabled: [{
728
- type: i0.Input
729
- }], rowDragAndDropEnabled: [{
730
- type: i0.Input
731
- }], rowDropSettings: [{
732
- type: i0.Input
733
- }], resizingEnabled: [{
734
- type: i0.Input
735
- }], showColumnMenu: [{
736
- type: i0.Input
737
- }], maxNumberOfRows: [{
738
- type: i0.Input
739
- }], columns: [{
740
- type: i0.Input
741
- }] } });
742
-
743
- var BaseToolbarGridComponent = /** @class */ (function (_super) {
744
- __extends(BaseToolbarGridComponent, _super);
745
- function BaseToolbarGridComponent() {
746
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
747
- _this._exportExcelEnabled = false;
748
- _this._exportPdfEnabled = false;
749
- _this._showColumnChooser = false;
750
- return _this;
751
- }
752
- Object.defineProperty(BaseToolbarGridComponent.prototype, "showColumnChooser", {
753
- get: function () {
754
- return this._showColumnChooser;
755
- },
756
- set: function (value) {
757
- this._showColumnChooser = value;
758
- this.updateToolbar("ColumnChooser", this._showColumnChooser);
759
- },
760
- enumerable: false,
761
- configurable: true
762
- });
763
- Object.defineProperty(BaseToolbarGridComponent.prototype, "exportExcelEnabled", {
764
- get: function () {
765
- return this._exportExcelEnabled;
766
- },
767
- set: function (value) {
768
- this._exportExcelEnabled = value;
769
- this.updateToolbar("ExcelExport", this._exportExcelEnabled);
770
- },
771
- enumerable: false,
772
- configurable: true
773
- });
774
- Object.defineProperty(BaseToolbarGridComponent.prototype, "exportPdfEnabled", {
775
- get: function () {
776
- return this._exportPdfEnabled;
777
- },
778
- set: function (value) {
779
- this._exportPdfEnabled = value;
780
- this.updateToolbar("PdfExport", this._exportPdfEnabled);
781
- },
782
- enumerable: false,
783
- configurable: true
784
- });
785
- BaseToolbarGridComponent.prototype.toolbarClick = function (args) {
786
- if (this.grid) {
787
- if (args.item.id === 'grid_excelexport') {
788
- this.grid.excelExport();
789
- }
790
- else if (args.item.id === 'grid_pdfexport') {
791
- this.grid.pdfExport();
792
- }
793
- }
794
- };
795
- BaseToolbarGridComponent.prototype.updateToolbar = function (option, add) {
796
- if (add) {
797
- if (!this.toolbarOptions) {
798
- this.toolbarOptions = [];
799
- }
800
- this.toolbarOptions.push(option);
801
- }
802
- else {
803
- if (this.toolbarOptions) {
804
- var index = this.toolbarOptions.indexOf(option);
805
- this.toolbarOptions.splice(index, 1);
806
- }
807
- }
808
- if (this.toolbarOptions && this.toolbarOptions.length > 0) {
809
- this.toolbarOptions = this.toolbarOptions.slice();
810
- }
811
- else {
812
- this.toolbarOptions = undefined;
813
- }
814
- };
815
- return BaseToolbarGridComponent;
816
- }(BaseGridComponent));
817
- BaseToolbarGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseToolbarGridComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
818
- BaseToolbarGridComponent.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseToolbarGridComponent, inputs: { showColumnChooser: "showColumnChooser", exportExcelEnabled: "exportExcelEnabled", exportPdfEnabled: "exportPdfEnabled" }, usesInheritance: true, ngImport: i0__namespace });
819
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseToolbarGridComponent, decorators: [{
820
- type: i0.Directive
821
- }], propDecorators: { showColumnChooser: [{
822
- type: i0.Input
823
- }], exportExcelEnabled: [{
824
- type: i0.Input
825
- }], exportPdfEnabled: [{
826
- type: i0.Input
827
- }] } });
828
-
829
- var BaseInlineEditGridComponent = /** @class */ (function (_super) {
830
- __extends(BaseInlineEditGridComponent, _super);
831
- function BaseInlineEditGridComponent() {
832
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
833
- _this.rowSaved = new i0.EventEmitter();
834
- _this.beforeRowDelete = new i0.EventEmitter(false);
835
- _this.rowDeleted = new i0.EventEmitter();
836
- _this.actionBeginObservable$ = new rxjs.Observable();
837
- _this.actionBeginObservableSub = new rxjs.Subscription();
838
- return _this;
839
- }
840
- Object.defineProperty(BaseInlineEditGridComponent.prototype, "inlineEdit", {
841
- set: function (value) {
842
- if (value) {
843
- this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true };
844
- }
845
- else {
846
- this.editSettings = {};
847
- }
848
- this.updateToolbar("Add", value);
849
- this.updateToolbar("Edit", value);
850
- this.updateToolbar("Delete", value);
851
- this.updateToolbar("Update", value);
852
- this.updateToolbar("Cancel", value);
853
- },
854
- enumerable: false,
855
- configurable: true
856
- });
857
- BaseInlineEditGridComponent.prototype.ngAfterViewInit = function () {
858
- var _this = this;
859
- if (this.grid) {
860
- this.actionBeginObservable$ = rxjs.fromEvent(this.grid, 'actionBegin');
861
- this.actionBeginObservableSub = this.actionBeginObservable$.subscribe(function (action) {
862
- _this.handleActionBegin(action);
863
- });
864
- }
865
- };
866
- BaseInlineEditGridComponent.prototype.ngOnDestroy = function () {
867
- this.actionBeginObservableSub.unsubscribe();
868
- };
869
- BaseInlineEditGridComponent.prototype.handleActionBegin = function (action) {
870
- return __awaiter(this, void 0, void 0, function () {
871
- return __generator(this, function (_a) {
872
- switch (_a.label) {
873
- case 0:
874
- if (!action) return [3 /*break*/, 3];
875
- if (!(action.requestType === "delete")) return [3 /*break*/, 2];
876
- return [4 /*yield*/, this.waitForBeforeDelete(action)];
877
- case 1:
878
- _a.sent();
879
- _a.label = 2;
880
- case 2:
881
- if (action.requestType === "save") {
882
- this.rowSaved.next(action.data);
883
- }
884
- _a.label = 3;
885
- case 3: return [2 /*return*/];
886
- }
887
- });
888
- });
889
- };
890
- BaseInlineEditGridComponent.prototype.handleActionComplete = function (action) {
891
- if (action) {
892
- if (action.requestType === "delete") {
893
- this.rowDeleted.next(action.data);
894
- }
895
- if (action.requestType === "save") {
896
- this.rowSaved.next(action.data);
897
- }
898
- }
899
- };
900
- BaseInlineEditGridComponent.prototype.waitForBeforeDelete = function (action) {
901
- var _this = this;
902
- // @ts-ignore
903
- var beforeRowDelete$ = rxjs.fromEvent(this.element, 'beforeRowDelete');
904
- return new Promise(function (resolve) {
905
- beforeRowDelete$.subscribe(function (result) {
906
- action = result;
907
- return resolve(action);
908
- }).unsubscribe();
909
- _this.beforeRowDelete.next(action);
910
- });
911
- };
912
- return BaseInlineEditGridComponent;
913
- }(BaseToolbarGridComponent));
914
- BaseInlineEditGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseInlineEditGridComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
915
- BaseInlineEditGridComponent.ɵdir = i0__namespace.ɵɵ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__namespace });
916
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseInlineEditGridComponent, decorators: [{
917
- type: i0.Directive
918
- }], propDecorators: { inlineEdit: [{
919
- type: i0.Input
920
- }], rowSaved: [{
921
- type: i0.Output
922
- }], beforeRowDelete: [{
923
- type: i0.Output
924
- }], rowDeleted: [{
925
- type: i0.Output
926
- }] } });
927
-
928
- var 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>";
929
- var BaseSelectionGridComponent = /** @class */ (function (_super) {
930
- __extends(BaseSelectionGridComponent, _super);
931
- function BaseSelectionGridComponent() {
932
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
933
- _this.includeDetailColumn = false;
934
- _this.rowsSelected = new i0.EventEmitter();
935
- _this.rowDoubleClick = new i0.EventEmitter();
936
- _this.detailColumnClick = new i0.EventEmitter();
937
- _this.contextMenuItemClick = new i0.EventEmitter();
938
- _this.rowDragStartEvent = new i0.EventEmitter();
939
- _this.rowDropEvent = new i0.EventEmitter();
940
- _this.beforeRowsDelete = new i0.EventEmitter();
941
- _this.rowsDeleted = new i0.EventEmitter();
942
- _this.selectionOptions = { type: "Single" };
943
- return _this;
944
- }
945
- Object.defineProperty(BaseSelectionGridComponent.prototype, "multipleSelect", {
946
- set: function (value) {
947
- this.selectionOptions = { type: value ? "Multiple" : "Single" };
948
- },
949
- enumerable: false,
950
- configurable: true
951
- });
952
- BaseSelectionGridComponent.prototype.ngOnInit = function () {
953
- if (this.includeDetailColumn) {
954
- this.columns.unshift({
955
- field: "", headerText: "", lockColumn: true, maxWidth: 30, width: 30,
956
- allowFiltering: false, allowResizing: false, allowReordering: false, allowEditing: false, allowSearching: false,
957
- showColumnMenu: false, showInColumnChooser: false,
958
- template: this.detailColumnTemplate ? this.detailColumnTemplate : defaultColumn,
959
- headerTemplate: this.detailColumnTemplate ? this.detailColumnTemplate : defaultColumn
960
- });
961
- }
962
- };
963
- BaseSelectionGridComponent.prototype.handleRowSelected = function (rowData) {
964
- if (this.grid) {
965
- var rows = this.grid.getSelectedRecords();
966
- this.rowsSelected.next(rows);
967
- }
968
- };
969
- BaseSelectionGridComponent.prototype.handleDoubleClick = function (clickData) {
970
- this.rowDoubleClick.next(clickData.rowData);
971
- };
972
- BaseSelectionGridComponent.prototype.handleRecordClick = function (clickData) {
973
- if (clickData && this.includeDetailColumn && clickData.cellIndex === 0) {
974
- this.detailColumnClick.next(clickData.rowData);
975
- }
976
- };
977
- BaseSelectionGridComponent.prototype.selectRow = function (index) {
978
- if (this.grid) {
979
- var rowIndexes = [];
980
- rowIndexes.push(index);
981
- this.grid.selectionModule.selectRows(rowIndexes);
982
- }
983
- };
984
- BaseSelectionGridComponent.prototype.contextMenuClick = function (args) {
985
- this.contextMenuItemClick.next(args);
986
- };
987
- BaseSelectionGridComponent.prototype.rowDragStartClick = function (args) {
988
- this.rowDragStartEvent.next(args);
989
- };
990
- BaseSelectionGridComponent.prototype.rowDropClick = function (args) {
991
- this.rowDropEvent.next(args);
992
- };
993
- BaseSelectionGridComponent.prototype.handleBeforeBatchDelete = function (args) {
994
- this.beforeRowsDelete.next(args);
995
- };
996
- BaseSelectionGridComponent.prototype.handleBatchDelete = function (rows) {
997
- this.rowsDeleted.next(rows);
998
- };
999
- return BaseSelectionGridComponent;
1000
- }(BaseInlineEditGridComponent));
1001
- BaseSelectionGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseSelectionGridComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
1002
- BaseSelectionGridComponent.ɵdir = i0__namespace.ɵɵ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__namespace });
1003
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseSelectionGridComponent, decorators: [{
1004
- type: i0.Directive
1005
- }], propDecorators: { multipleSelect: [{
1006
- type: i0.Input
1007
- }], includeDetailColumn: [{
1008
- type: i0.HostBinding,
1009
- args: ["class.detail-column"]
1010
- }, {
1011
- type: i0.Input
1012
- }], detailColumnTemplate: [{
1013
- type: i0.Input
1014
- }], rowsSelected: [{
1015
- type: i0.Output
1016
- }], rowDoubleClick: [{
1017
- type: i0.Output
1018
- }], detailColumnClick: [{
1019
- type: i0.Output
1020
- }], contextMenuItemClick: [{
1021
- type: i0.Output
1022
- }], rowDragStartEvent: [{
1023
- type: i0.Output
1024
- }], rowDropEvent: [{
1025
- type: i0.Output
1026
- }], beforeRowsDelete: [{
1027
- type: i0.Output
1028
- }], rowsDeleted: [{
1029
- type: i0.Output
1030
- }] } });
1031
-
1032
- var CoGridComponent = /** @class */ (function (_super) {
1033
- __extends(CoGridComponent, _super);
1034
- function CoGridComponent() {
1035
- return _super !== null && _super.apply(this, arguments) || this;
1036
- }
1037
- CoGridComponent.prototype.showClass = function () {
1038
- return true;
1039
- };
1040
- CoGridComponent.prototype.ngOnInit = function () {
1041
- _super.prototype.ngOnInit.call(this);
1042
- };
1043
- return CoGridComponent;
1044
- }(BaseSelectionGridComponent));
1045
- CoGridComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoGridComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
1046
- CoGridComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CoGridComponent, selector: "co-grid", host: { properties: { "class.co-grid": "this.showClass" } }, providers: [
1047
- i1$2.RowDDService
1048
- ], usesInheritance: true, ngImport: i0__namespace, template: "\n <ejs-grid #grid id=\"grid\"\n [dataSource]=\"data\"\n [columns]=\"columns\"\n [contextMenuItems]=\"contextMenuItems\"\n [pageSettings]=\"pageSettings\"\n [toolbar]=\"toolbarOptions\"\n [gridLines]=\"gridLines\"\n [frozenColumns]=\"frozenColumns\"\n [frozenRows]=\"frozenRows\"\n [selectionSettings]=\"selectionOptions\"\n [editSettings]=\"editSettings\"\n [allowPaging]=\"pagingEnabled\"\n [allowSorting]=\"sortingEnabled\"\n [allowFiltering]=\"filteringEnabled\"\n [allowGrouping]=\"groupingEnabled\"\n [allowReordering]=\"reorderingEnabled\"\n [allowResizing]=\"resizingEnabled\"\n [allowRowDragAndDrop]=\"rowDragAndDropEnabled\"\n [showColumnMenu]=\"showColumnMenu\"\n [showColumnChooser]=\"showColumnChooser\"\n [allowExcelExport]=\"exportExcelEnabled\"\n [allowPdfExport]=\"exportPdfEnabled\"\n (toolbarClick)=\"toolbarClick($event)\"\n (rowSelected)=\"handleRowSelected($event)\"\n (recordDoubleClick)=\"handleDoubleClick($event)\"\n (recordClick)=\"handleRecordClick($event)\"\n (actionComplete)=\"handleActionComplete($event)\"\n (contextMenuClick)=\"contextMenuClick($event)\"\n (rowDragStart)=\"rowDragStartClick($event)\"\n (rowDrop)=\"rowDropClick($event)\"\n (beforeBatchDelete)=\"handleBeforeBatchDelete($event)\"\n (batchDelete)=\"handleBatchDelete($event)\"\n >\n </ejs-grid>\n ", isInline: true, components: [{ type: i1__namespace$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__namespace.ViewEncapsulation.None });
1049
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoGridComponent, decorators: [{
1050
- type: i0.Component,
1051
- args: [{
1052
- selector: 'co-grid',
1053
- template: "\n <ejs-grid #grid id=\"grid\"\n [dataSource]=\"data\"\n [columns]=\"columns\"\n [contextMenuItems]=\"contextMenuItems\"\n [pageSettings]=\"pageSettings\"\n [toolbar]=\"toolbarOptions\"\n [gridLines]=\"gridLines\"\n [frozenColumns]=\"frozenColumns\"\n [frozenRows]=\"frozenRows\"\n [selectionSettings]=\"selectionOptions\"\n [editSettings]=\"editSettings\"\n [allowPaging]=\"pagingEnabled\"\n [allowSorting]=\"sortingEnabled\"\n [allowFiltering]=\"filteringEnabled\"\n [allowGrouping]=\"groupingEnabled\"\n [allowReordering]=\"reorderingEnabled\"\n [allowResizing]=\"resizingEnabled\"\n [allowRowDragAndDrop]=\"rowDragAndDropEnabled\"\n [showColumnMenu]=\"showColumnMenu\"\n [showColumnChooser]=\"showColumnChooser\"\n [allowExcelExport]=\"exportExcelEnabled\"\n [allowPdfExport]=\"exportPdfEnabled\"\n (toolbarClick)=\"toolbarClick($event)\"\n (rowSelected)=\"handleRowSelected($event)\"\n (recordDoubleClick)=\"handleDoubleClick($event)\"\n (recordClick)=\"handleRecordClick($event)\"\n (actionComplete)=\"handleActionComplete($event)\"\n (contextMenuClick)=\"contextMenuClick($event)\"\n (rowDragStart)=\"rowDragStartClick($event)\"\n (rowDrop)=\"rowDropClick($event)\"\n (beforeBatchDelete)=\"handleBeforeBatchDelete($event)\"\n (batchDelete)=\"handleBatchDelete($event)\"\n >\n </ejs-grid>\n ",
1054
- providers: [
1055
- i1$2.RowDDService
1056
- ],
1057
- encapsulation: i0.ViewEncapsulation.None
1058
- }]
1059
- }], propDecorators: { showClass: [{
1060
- type: i0.HostBinding,
1061
- args: ['class.co-grid']
1062
- }] } });
1063
-
1064
- var CoGridModule = /** @class */ (function () {
1065
- function CoGridModule() {
1066
- }
1067
- return CoGridModule;
1068
- }());
1069
- CoGridModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoGridModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1070
- CoGridModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoGridModule, declarations: [CoGridComponent], imports: [common.CommonModule,
1071
- forms.FormsModule,
1072
- i1$2.GridModule], exports: [CoGridComponent] });
1073
- CoGridModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoGridModule, providers: [
1074
- i1$2.PageService,
1075
- i1$2.SortService,
1076
- i1$2.FilterService,
1077
- i1$2.GroupService,
1078
- i1$2.ReorderService,
1079
- i1$2.ResizeService,
1080
- i1$2.ExcelExportService,
1081
- i1$2.PdfExportService,
1082
- i1$2.EditService,
1083
- i1$2.ToolbarService,
1084
- i1$2.ColumnChooserService,
1085
- i1$2.ColumnMenuService,
1086
- i1$2.ContextMenuService
1087
- ], imports: [[
1088
- common.CommonModule,
1089
- forms.FormsModule,
1090
- i1$2.GridModule
1091
- ]] });
1092
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoGridModule, decorators: [{
1093
- type: i0.NgModule,
1094
- args: [{
1095
- imports: [
1096
- common.CommonModule,
1097
- forms.FormsModule,
1098
- i1$2.GridModule
1099
- ],
1100
- declarations: [CoGridComponent],
1101
- exports: [CoGridComponent],
1102
- providers: [
1103
- i1$2.PageService,
1104
- i1$2.SortService,
1105
- i1$2.FilterService,
1106
- i1$2.GroupService,
1107
- i1$2.ReorderService,
1108
- i1$2.ResizeService,
1109
- i1$2.ExcelExportService,
1110
- i1$2.PdfExportService,
1111
- i1$2.EditService,
1112
- i1$2.ToolbarService,
1113
- i1$2.ColumnChooserService,
1114
- i1$2.ColumnMenuService,
1115
- i1$2.ContextMenuService
1116
- ]
1117
- }]
1118
- }] });
1119
-
1120
- var CoPivotComponent = /** @class */ (function () {
1121
- function CoPivotComponent() {
1122
- this.showGroupingBar = false;
1123
- this.allowGrouping = false;
1124
- this.enablePersistence = false;
1125
- this.showFieldList = false;
1126
- this.showToolbar = false;
1127
- this.allowExcelExport = false;
1128
- this.allowPdfExport = false;
1129
- this.allowConditionalFormatting = true;
1130
- this.allowNumberFormatting = true;
1131
- this.allowCalculatedField = false;
1132
- this.height = "100%";
1133
- this.saveReportClick = new i0.EventEmitter();
1134
- this.loadReportClick = new i0.EventEmitter();
1135
- this.fetchReportClick = new i0.EventEmitter();
1136
- this.renameReportClick = new i0.EventEmitter();
1137
- this.removeReportClick = new i0.EventEmitter();
1138
- this.newReportClick = new i0.EventEmitter();
1139
- this.beforeToolbarRenderClick = new i0.EventEmitter();
1140
- this.enginePopulated = new i0.EventEmitter();
1141
- }
1142
- CoPivotComponent.prototype.showClass = function () {
1143
- return true;
1144
- };
1145
- CoPivotComponent.prototype.ngOnInit = function () {
1146
- };
1147
- CoPivotComponent.prototype.ngAfterViewInit = function () {
1148
- var _this = this;
1149
- setTimeout(function () {
1150
- _this.pivot.refresh();
1151
- _this.pivot.refreshData();
1152
- _this.pivot.layoutRefresh();
1153
- }, 3000);
1154
- };
1155
- CoPivotComponent.prototype.saveReport = function (args) {
1156
- if (args) {
1157
- this.saveReportClick.next(args);
1158
- }
1159
- };
1160
- CoPivotComponent.prototype.loadReport = function (args) {
1161
- if (args) {
1162
- this.loadReportClick.next(args);
1163
- }
1164
- };
1165
- CoPivotComponent.prototype.fetchReport = function (args) {
1166
- if (args) {
1167
- this.fetchReportClick.next(args);
1168
- }
1169
- };
1170
- CoPivotComponent.prototype.renameReport = function (args) {
1171
- if (args) {
1172
- this.renameReportClick.next(args);
1173
- }
1174
- };
1175
- CoPivotComponent.prototype.removeReport = function (args) {
1176
- if (args) {
1177
- this.removeReportClick.next(args);
1178
- }
1179
- };
1180
- CoPivotComponent.prototype.newReport = function () {
1181
- this.newReportClick.next();
1182
- };
1183
- CoPivotComponent.prototype.beforeToolbarRender = function (args) {
1184
- if (args) {
1185
- this.beforeToolbarRenderClick.next(args);
1186
- }
1187
- };
1188
- CoPivotComponent.prototype.hanldeEnginePopulated = function (args) {
1189
- if (args) {
1190
- this.enginePopulated.next(args);
1191
- }
1192
- };
1193
- return CoPivotComponent;
1194
- }());
1195
- CoPivotComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1196
- CoPivotComponent.ɵcmp = i0__namespace.ɵɵ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: [i1$3.GroupingBarService, i1$3.GroupingService, i1$3.ToolbarService, i1$3.ConditionalFormattingService, i1$3.FieldListService, i1$3.NumberFormattingService], viewQueries: [{ propertyName: "pivot", first: true, predicate: ["pivot"], descendants: true }], ngImport: i0__namespace, template: "\n <ejs-pivotview\n #pivot\n id=\"Pivot\"\n [dataSourceSettings]=\"dataSourceSettings\"\n [gridSettings]=\"gridSettings\"\n [showGroupingBar]=\"showGroupingBar\"\n [allowGrouping]=\"allowGrouping\"\n [enablePersistence]=\"enablePersistence\"\n [showFieldList]=\"showFieldList\"\n [showToolbar]=\"showToolbar\"\n [toolbar]=\"toolbarOptions\"\n [allowExcelExport]=\"allowExcelExport\"\n [allowConditionalFormatting]=\"allowConditionalFormatting\"\n [allowNumberFormatting]=\"allowNumberFormatting\"\n [allowPdfExport]=\"allowPdfExport\"\n [allowCalculatedField]=\"allowCalculatedField\"\n [height]=\"height\"\n (saveReport)=\"saveReport($event)\"\n (loadReport)=\"loadReport($event)\"\n (fetchReport)=\"fetchReport($event)\"\n (renameReport)=\"renameReport($event)\"\n (removeReport)=\"removeReport($event)\"\n (newReport)=\"newReport()\"\n (toolbarRender)=\"beforeToolbarRender($event)\"\n (enginePopulated)=\"hanldeEnginePopulated($event)\"\n >\n </ejs-pivotview>\n ", isInline: true, components: [{ type: i1__namespace$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__namespace.ViewEncapsulation.None });
1197
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotComponent, decorators: [{
1198
- type: i0.Component,
1199
- args: [{
1200
- selector: 'co-pivot',
1201
- template: "\n <ejs-pivotview\n #pivot\n id=\"Pivot\"\n [dataSourceSettings]=\"dataSourceSettings\"\n [gridSettings]=\"gridSettings\"\n [showGroupingBar]=\"showGroupingBar\"\n [allowGrouping]=\"allowGrouping\"\n [enablePersistence]=\"enablePersistence\"\n [showFieldList]=\"showFieldList\"\n [showToolbar]=\"showToolbar\"\n [toolbar]=\"toolbarOptions\"\n [allowExcelExport]=\"allowExcelExport\"\n [allowConditionalFormatting]=\"allowConditionalFormatting\"\n [allowNumberFormatting]=\"allowNumberFormatting\"\n [allowPdfExport]=\"allowPdfExport\"\n [allowCalculatedField]=\"allowCalculatedField\"\n [height]=\"height\"\n (saveReport)=\"saveReport($event)\"\n (loadReport)=\"loadReport($event)\"\n (fetchReport)=\"fetchReport($event)\"\n (renameReport)=\"renameReport($event)\"\n (removeReport)=\"removeReport($event)\"\n (newReport)=\"newReport()\"\n (toolbarRender)=\"beforeToolbarRender($event)\"\n (enginePopulated)=\"hanldeEnginePopulated($event)\"\n >\n </ejs-pivotview>\n ",
1202
- providers: [i1$3.GroupingBarService, i1$3.GroupingService, i1$3.ToolbarService, i1$3.ConditionalFormattingService, i1$3.FieldListService, i1$3.NumberFormattingService],
1203
- encapsulation: i0.ViewEncapsulation.None
1204
- }]
1205
- }], ctorParameters: function () { return []; }, propDecorators: { pivot: [{
1206
- type: i0.ViewChild,
1207
- args: ['pivot', { static: false }]
1208
- }], dataSourceSettings: [{
1209
- type: i0.Input
1210
- }], gridSettings: [{
1211
- type: i0.Input
1212
- }], toolbarOptions: [{
1213
- type: i0.Input
1214
- }], showGroupingBar: [{
1215
- type: i0.Input
1216
- }], allowGrouping: [{
1217
- type: i0.Input
1218
- }], enablePersistence: [{
1219
- type: i0.Input
1220
- }], showFieldList: [{
1221
- type: i0.Input
1222
- }], showToolbar: [{
1223
- type: i0.Input
1224
- }], allowExcelExport: [{
1225
- type: i0.Input
1226
- }], allowPdfExport: [{
1227
- type: i0.Input
1228
- }], allowConditionalFormatting: [{
1229
- type: i0.Input
1230
- }], allowNumberFormatting: [{
1231
- type: i0.Input
1232
- }], allowCalculatedField: [{
1233
- type: i0.Input
1234
- }], height: [{
1235
- type: i0.Input
1236
- }], saveReportClick: [{
1237
- type: i0.Output
1238
- }], loadReportClick: [{
1239
- type: i0.Output
1240
- }], fetchReportClick: [{
1241
- type: i0.Output
1242
- }], renameReportClick: [{
1243
- type: i0.Output
1244
- }], removeReportClick: [{
1245
- type: i0.Output
1246
- }], newReportClick: [{
1247
- type: i0.Output
1248
- }], beforeToolbarRenderClick: [{
1249
- type: i0.Output
1250
- }], enginePopulated: [{
1251
- type: i0.Output
1252
- }], showClass: [{
1253
- type: i0.HostBinding,
1254
- args: ["class.co-pivot"]
1255
- }] } });
1256
-
1257
- var CoPivotModule = /** @class */ (function () {
1258
- function CoPivotModule() {
1259
- }
1260
- return CoPivotModule;
1261
- }());
1262
- CoPivotModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1263
- CoPivotModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotModule, declarations: [CoPivotComponent], imports: [common.CommonModule,
1264
- i1$3.PivotViewModule], exports: [CoPivotComponent] });
1265
- CoPivotModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotModule, imports: [[
1266
- common.CommonModule,
1267
- i1$3.PivotViewModule
1268
- ]] });
1269
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotModule, decorators: [{
1270
- type: i0.NgModule,
1271
- args: [{
1272
- imports: [
1273
- common.CommonModule,
1274
- i1$3.PivotViewModule
1275
- ],
1276
- declarations: [
1277
- CoPivotComponent
1278
- ],
1279
- exports: [
1280
- CoPivotComponent
1281
- ]
1282
- }]
1283
- }] });
1284
-
1285
- var StackedLineChartComponent = /** @class */ (function () {
1286
- function StackedLineChartComponent() {
1287
- this.chartData = [];
1288
- this.chartLegend = [];
1289
- this.chartXAxis = [];
1290
- this.chartHeight = "auto";
1291
- this.chartWidth = "auto";
1292
- this.chartOptions = {
1293
- title: {},
1294
- tooltip: {
1295
- trigger: 'axis'
1296
- },
1297
- legend: {},
1298
- grid: {
1299
- left: '3%',
1300
- right: '4%',
1301
- bottom: '3%',
1302
- containLabel: true
1303
- },
1304
- toolbox: {
1305
- feature: {
1306
- saveAsImage: {}
1307
- }
1308
- },
1309
- xAxis: {},
1310
- yAxis: {
1311
- type: 'value'
1312
- },
1313
- series: {}
1314
- };
1315
- }
1316
- StackedLineChartComponent.prototype.showClass = function () {
1317
- return true;
1318
- };
1319
- StackedLineChartComponent.prototype.ngOnInit = function () {
1320
- this.chartOptions.title['text'] = this.chartName;
1321
- this.chartOptions.series = this.chartData;
1322
- this.chartOptions.xAxis = {
1323
- type: 'category',
1324
- boundaryGap: false,
1325
- data: this.chartXAxis
1326
- };
1327
- this.chartOptions.legend['data'] = this.chartLegend;
1328
- };
1329
- return StackedLineChartComponent;
1330
- }());
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 });
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 });
1333
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartComponent, decorators: [{
1334
- type: i0.Component,
1335
- args: [{
1336
- selector: "co-stacked-line-chart",
1337
- template: "\n\n <div echarts [options]=\"chartOptions\" [initOpts]=\"{\n width: chartWidth,\n height: chartHeight}\" class=\"chart\"></div>\n\n ",
1338
- encapsulation: i0.ViewEncapsulation.None
1339
- }]
1340
- }], propDecorators: { showClass: [{
1341
- type: i0.HostBinding,
1342
- args: ["class.co-co-stacked-line-chart"]
1343
- }], chartName: [{
1344
- type: i0.Input
1345
- }], chartData: [{
1346
- type: i0.Input
1347
- }], chartLegend: [{
1348
- type: i0.Input
1349
- }], chartXAxis: [{
1350
- type: i0.Input
1351
- }], chartHeight: [{
1352
- type: i0.Input
1353
- }], chartWidth: [{
1354
- type: i0.Input
1355
- }], chartOptions: [{
1356
- type: i0.Input
1357
- }] } });
1358
-
1359
- var StackedLineChartModule = /** @class */ (function () {
1360
- function StackedLineChartModule() {
1361
- }
1362
- return StackedLineChartModule;
1363
- }());
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 });
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] });
1366
- StackedLineChartModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartModule, imports: [[
1367
- common.CommonModule,
1368
- i1$4.NgxEchartsModule.forRoot({
1369
- echarts: function () { return import('echarts'); }
1370
- })
1371
- ]] });
1372
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StackedLineChartModule, decorators: [{
1373
- type: i0.NgModule,
1374
- args: [{
1375
- imports: [
1376
- common.CommonModule,
1377
- i1$4.NgxEchartsModule.forRoot({
1378
- echarts: function () { return import('echarts'); }
1379
- })
1380
- ],
1381
- declarations: [
1382
- StackedLineChartComponent
1383
- ],
1384
- exports: [
1385
- StackedLineChartComponent
1386
- ]
1387
- }]
1388
- }] });
1389
-
1390
- // The localization service, providing peers with text translation functionality.
1391
- var DictionaryService = /** @class */ (function () {
1392
- function DictionaryService() {
1393
- // Some dictionary values have one or more '|~' texts in them, meant to be replaced with client-side given texts.
1394
- this._placeholder = "|~";
1395
- }
1396
- /**
1397
- * Returns the localized text for the given dictionary key.
1398
- * @param {string} key
1399
- * @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
1400
- * @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
1401
- * @returns {string} The translated text for given dictionary key
1402
- */
1403
- DictionaryService.prototype.get = function (key, upperCaseFirst) {
1404
- if (upperCaseFirst === void 0) { upperCaseFirst = true; }
1405
- var replacementTexts = [];
1406
- for (var _i = 2; _i < arguments.length; _i++) {
1407
- replacementTexts[_i - 2] = arguments[_i];
1408
- }
1409
- var text = key;
1410
- if (this.translation && this.translation.hasOwnProperty(key)) {
1411
- text = this.translation[key].toLowerCase();
1412
- if (upperCaseFirst) {
1413
- text = text.charAt(0).toUpperCase() + text.slice(1);
1414
- }
1415
- }
1416
- return text;
1417
- };
1418
- return DictionaryService;
1419
- }());
1420
- DictionaryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DictionaryService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1421
- DictionaryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DictionaryService });
1422
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DictionaryService, decorators: [{
1423
- type: i0.Injectable
1424
- }] });
1425
-
1426
- var ExtendedComponentsTranslationService = /** @class */ (function () {
1427
- function ExtendedComponentsTranslationService(_dictionaryService) {
1428
- this._dictionaryService = _dictionaryService;
1429
- }
1430
- ExtendedComponentsTranslationService.prototype.setTranslation = function (translation) {
1431
- this._dictionaryService.translation = translation;
1432
- };
1433
- return ExtendedComponentsTranslationService;
1434
- }());
1435
- ExtendedComponentsTranslationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationService, deps: [{ token: DictionaryService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1436
- ExtendedComponentsTranslationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationService });
1437
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationService, decorators: [{
1438
- type: i0.Injectable
1439
- }], ctorParameters: function () { return [{ type: DictionaryService }]; } });
1440
-
1441
596
  var LocalizePipe = /** @class */ (function () {
1442
597
  function LocalizePipe(_dictionaryService) {
1443
598
  this._dictionaryService = _dictionaryService;
@@ -1509,14 +664,6 @@
1509
664
  * Generated bundle index. Do not edit.
1510
665
  */
1511
666
 
1512
- exports.CoGridComponent = CoGridComponent;
1513
- exports.CoGridModule = CoGridModule;
1514
- exports.CoKanbanComponent = CoKanbanComponent;
1515
- exports.CoKanbanModule = CoKanbanModule;
1516
- exports.CoPivotComponent = CoPivotComponent;
1517
- exports.CoPivotModule = CoPivotModule;
1518
- exports.CoScheduleComponent = CoScheduleComponent;
1519
- exports.CoScheduleModule = CoScheduleModule;
1520
667
  exports.ExtendedComponentsTranslationModule = ExtendedComponentsTranslationModule;
1521
668
  exports.ExtendedComponentsTranslationService = ExtendedComponentsTranslationService;
1522
669
  exports.StackedLineChartComponent = StackedLineChartComponent;