@colijnit/extendedcomponents 12.0.1
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.
- package/README.md +24 -0
- package/bundles/colijnit-extendedcomponents.umd.js +1420 -0
- package/bundles/colijnit-extendedcomponents.umd.js.map +1 -0
- package/colijnit-extendedcomponents.d.ts +5 -0
- package/esm2015/colijnit-extendedcomponents.js +5 -0
- package/esm2015/lib/components/grid/base/base-grid.component.js +71 -0
- package/esm2015/lib/components/grid/base/base-inline-edit-grid.component.js +86 -0
- package/esm2015/lib/components/grid/base/base-selection-grid.component.js +100 -0
- package/esm2015/lib/components/grid/base/base-toolbar-grid.component.js +74 -0
- package/esm2015/lib/components/grid/co-grid.component.js +102 -0
- package/esm2015/lib/components/grid/co-grid.module.js +59 -0
- package/esm2015/lib/components/grid/enum/grid-lines.enum.js +9 -0
- package/esm2015/lib/components/grid/interface/grid-menu-event-args.js +2 -0
- package/esm2015/lib/components/grid/interface/grid-row-drag-event-args.js +2 -0
- package/esm2015/lib/components/grid/interface/grid-row-drop-event-args.js +2 -0
- package/esm2015/lib/components/kanban/co-kanban.component.js +127 -0
- package/esm2015/lib/components/kanban/co-kanban.module.js +30 -0
- package/esm2015/lib/components/pivot/co-pivot.component.js +195 -0
- package/esm2015/lib/components/pivot/co-pivot.module.js +30 -0
- package/esm2015/lib/components/schedule/co-schedule.component.js +99 -0
- package/esm2015/lib/components/schedule/co-schedule.module.js +30 -0
- package/esm2015/lib/core/enum/schedule-view.enum.js +16 -0
- package/esm2015/lib/translation/dictionary.service.js +32 -0
- package/esm2015/lib/translation/extended-components-translation.module.js +37 -0
- package/esm2015/lib/translation/extended-components-translation.service.js +17 -0
- package/esm2015/lib/translation/localize.pipe.js +27 -0
- package/esm2015/public-api.js +14 -0
- package/fesm2015/colijnit-extendedcomponents.js +1086 -0
- package/fesm2015/colijnit-extendedcomponents.js.map +1 -0
- package/lib/bin/postinstall.js +3 -0
- package/lib/components/grid/base/base-grid.component.d.ts +30 -0
- package/lib/components/grid/base/base-inline-edit-grid.component.d.ts +21 -0
- package/lib/components/grid/base/base-selection-grid.component.d.ts +34 -0
- package/lib/components/grid/base/base-toolbar-grid.component.d.ts +20 -0
- package/lib/components/grid/co-grid.component.d.ts +9 -0
- package/lib/components/grid/co-grid.module.d.ts +10 -0
- package/lib/components/grid/enum/grid-lines.enum.d.ts +7 -0
- package/lib/components/grid/interface/grid-menu-event-args.d.ts +3 -0
- package/lib/components/grid/interface/grid-row-drag-event-args.d.ts +3 -0
- package/lib/components/grid/interface/grid-row-drop-event-args.d.ts +3 -0
- package/lib/components/grid/style/_layout.scss +36 -0
- package/lib/components/grid/style/_material-definition.scss +8 -0
- package/lib/components/grid/style/_theme.scss +3 -0
- package/lib/components/grid/style/material.scss +4 -0
- package/lib/components/kanban/co-kanban.component.d.ts +31 -0
- package/lib/components/kanban/co-kanban.module.d.ts +9 -0
- package/lib/components/kanban/style/_layout.scss +52 -0
- package/lib/components/kanban/style/_material-definition.scss +27 -0
- package/lib/components/kanban/style/_theme.scss +3 -0
- package/lib/components/kanban/style/material.scss +5 -0
- package/lib/components/pivot/co-pivot.component.d.ts +43 -0
- package/lib/components/pivot/co-pivot.module.d.ts +9 -0
- package/lib/components/pivot/style/_layout.scss +92 -0
- package/lib/components/pivot/style/_material-definition.scss +1 -0
- package/lib/components/pivot/style/_theme.scss +3 -0
- package/lib/components/pivot/style/material.scss +4 -0
- package/lib/components/schedule/co-schedule.component.d.ts +22 -0
- package/lib/components/schedule/co-schedule.module.d.ts +9 -0
- package/lib/components/schedule/style/_layout.scss +4 -0
- package/lib/components/schedule/style/_material-definition.scss +0 -0
- package/lib/components/schedule/style/_theme.scss +4 -0
- package/lib/components/schedule/style/material.scss +4 -0
- package/lib/core/enum/schedule-view.enum.d.ts +14 -0
- package/lib/style/_input.mixins.scss +142 -0
- package/lib/style/_mixin.scss +16 -0
- package/lib/style/_variables.scss +96 -0
- package/lib/style/extendedcomponents-globals.scss +114 -0
- package/lib/style/material2/_core.scss +17 -0
- package/lib/style/material2/_material2-scss-barrel.scss +16 -0
- package/lib/style/material2/ripple/_co-ripple.scss +68 -0
- package/lib/style/material2/style/_elevation.scss +176 -0
- package/lib/style/material2/style/_list-common.scss +51 -0
- package/lib/style/material2/style/_variables.scss +61 -0
- package/lib/style/material2/theming/_palette.scss +708 -0
- package/lib/style/material2/theming/_theming.scss +80 -0
- package/lib/style/material2/typography/_typography.scss +8 -0
- package/lib/translation/dictionary.service.d.ts +15 -0
- package/lib/translation/extended-components-translation.module.d.ts +9 -0
- package/lib/translation/extended-components-translation.service.d.ts +9 -0
- package/lib/translation/localize.pipe.d.ts +10 -0
- package/package.json +29 -0
- package/public-api.d.ts +10 -0
|
@@ -0,0 +1,1420 @@
|
|
|
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')) :
|
|
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'], 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));
|
|
5
|
+
})(this, (function (exports, i0, common, i1, i1$1, forms, i1$2, rxjs, i1$3) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
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
|
+
|
|
31
|
+
var CoKanbanComponent = /** @class */ (function () {
|
|
32
|
+
function CoKanbanComponent() {
|
|
33
|
+
this.allowDragAndDrop = true;
|
|
34
|
+
this.allowKeyboard = true;
|
|
35
|
+
this.enablePersistence = false;
|
|
36
|
+
this.enableTooltip = false;
|
|
37
|
+
this.keyField = "";
|
|
38
|
+
this.showEmptyColumn = false;
|
|
39
|
+
this.cardClickEvent = new i0.EventEmitter();
|
|
40
|
+
this.cardDoubleClickEvent = new i0.EventEmitter();
|
|
41
|
+
this.dragStartEvent = new i0.EventEmitter();
|
|
42
|
+
this.dragStopEvent = new i0.EventEmitter();
|
|
43
|
+
}
|
|
44
|
+
CoKanbanComponent.prototype.showClass = function () {
|
|
45
|
+
return true;
|
|
46
|
+
};
|
|
47
|
+
CoKanbanComponent.prototype.ngOnInit = function () {
|
|
48
|
+
};
|
|
49
|
+
CoKanbanComponent.prototype.ngAfterViewInit = function () {
|
|
50
|
+
if (this.columns) {
|
|
51
|
+
this.kanban.columns = this.columns;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
CoKanbanComponent.prototype.dialogOpen = function (args) {
|
|
55
|
+
args.cancel = true;
|
|
56
|
+
};
|
|
57
|
+
CoKanbanComponent.prototype.handleCardClick = function (args) {
|
|
58
|
+
this.cardClickEvent.next(args);
|
|
59
|
+
};
|
|
60
|
+
CoKanbanComponent.prototype.handleCardDoubleClick = function (args) {
|
|
61
|
+
this.cardDoubleClickEvent.next(args);
|
|
62
|
+
};
|
|
63
|
+
CoKanbanComponent.prototype.handleDragStart = function (args) {
|
|
64
|
+
this.dragStartEvent.next(args);
|
|
65
|
+
};
|
|
66
|
+
CoKanbanComponent.prototype.handleDragStop = function (args) {
|
|
67
|
+
this.dragStopEvent.next(args);
|
|
68
|
+
};
|
|
69
|
+
return CoKanbanComponent;
|
|
70
|
+
}());
|
|
71
|
+
CoKanbanComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
72
|
+
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 });
|
|
73
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanComponent, decorators: [{
|
|
74
|
+
type: i0.Component,
|
|
75
|
+
args: [{
|
|
76
|
+
selector: 'co-kanban',
|
|
77
|
+
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 ",
|
|
78
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
79
|
+
}]
|
|
80
|
+
}], ctorParameters: function () { return []; }, propDecorators: { kanban: [{
|
|
81
|
+
type: i0.ViewChild,
|
|
82
|
+
args: ['kanban', { static: false }]
|
|
83
|
+
}], allowDragAndDrop: [{
|
|
84
|
+
type: i0.Input
|
|
85
|
+
}], allowKeyboard: [{
|
|
86
|
+
type: i0.Input
|
|
87
|
+
}], cardSettings: [{
|
|
88
|
+
type: i0.Input
|
|
89
|
+
}], enablePersistence: [{
|
|
90
|
+
type: i0.Input
|
|
91
|
+
}], enableTooltip: [{
|
|
92
|
+
type: i0.Input
|
|
93
|
+
}], keyField: [{
|
|
94
|
+
type: i0.Input
|
|
95
|
+
}], showEmptyColumn: [{
|
|
96
|
+
type: i0.Input
|
|
97
|
+
}], swimlaneSettings: [{
|
|
98
|
+
type: i0.Input
|
|
99
|
+
}], columns: [{
|
|
100
|
+
type: i0.Input
|
|
101
|
+
}], data: [{
|
|
102
|
+
type: i0.Input
|
|
103
|
+
}], cardClickEvent: [{
|
|
104
|
+
type: i0.Output
|
|
105
|
+
}], cardDoubleClickEvent: [{
|
|
106
|
+
type: i0.Output
|
|
107
|
+
}], dragStartEvent: [{
|
|
108
|
+
type: i0.Output
|
|
109
|
+
}], dragStopEvent: [{
|
|
110
|
+
type: i0.Output
|
|
111
|
+
}], showClass: [{
|
|
112
|
+
type: i0.HostBinding,
|
|
113
|
+
args: ["class.co-kanban"]
|
|
114
|
+
}] } });
|
|
115
|
+
|
|
116
|
+
var CoKanbanModule = /** @class */ (function () {
|
|
117
|
+
function CoKanbanModule() {
|
|
118
|
+
}
|
|
119
|
+
return CoKanbanModule;
|
|
120
|
+
}());
|
|
121
|
+
CoKanbanModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
122
|
+
CoKanbanModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanModule, declarations: [CoKanbanComponent], imports: [common.CommonModule,
|
|
123
|
+
i1.KanbanModule], exports: [CoKanbanComponent] });
|
|
124
|
+
CoKanbanModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanModule, imports: [[
|
|
125
|
+
common.CommonModule,
|
|
126
|
+
i1.KanbanModule
|
|
127
|
+
]] });
|
|
128
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoKanbanModule, decorators: [{
|
|
129
|
+
type: i0.NgModule,
|
|
130
|
+
args: [{
|
|
131
|
+
imports: [
|
|
132
|
+
common.CommonModule,
|
|
133
|
+
i1.KanbanModule
|
|
134
|
+
],
|
|
135
|
+
declarations: [
|
|
136
|
+
CoKanbanComponent
|
|
137
|
+
],
|
|
138
|
+
exports: [
|
|
139
|
+
CoKanbanComponent
|
|
140
|
+
]
|
|
141
|
+
}]
|
|
142
|
+
}] });
|
|
143
|
+
|
|
144
|
+
var CoScheduleComponent = /** @class */ (function () {
|
|
145
|
+
function CoScheduleComponent() {
|
|
146
|
+
this.enablePersistence = false;
|
|
147
|
+
this.actionBegin = new i0.EventEmitter();
|
|
148
|
+
this.actionComplete = new i0.EventEmitter();
|
|
149
|
+
this.actionFailure = new i0.EventEmitter();
|
|
150
|
+
this.showClass = true;
|
|
151
|
+
}
|
|
152
|
+
CoScheduleComponent.prototype.ngOnInit = function () {
|
|
153
|
+
};
|
|
154
|
+
CoScheduleComponent.prototype.onActionBegin = function (args) {
|
|
155
|
+
this.actionBegin.emit(args);
|
|
156
|
+
};
|
|
157
|
+
CoScheduleComponent.prototype.onActionComplete = function (args) {
|
|
158
|
+
this.actionComplete.emit(args);
|
|
159
|
+
};
|
|
160
|
+
CoScheduleComponent.prototype.onActionFailure = function (args) {
|
|
161
|
+
this.actionFailure.emit(args);
|
|
162
|
+
};
|
|
163
|
+
return CoScheduleComponent;
|
|
164
|
+
}());
|
|
165
|
+
CoScheduleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
166
|
+
CoScheduleComponent.ɵcmp = 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: [
|
|
167
|
+
i1$1.DayService,
|
|
168
|
+
i1$1.WeekService,
|
|
169
|
+
i1$1.WorkWeekService,
|
|
170
|
+
i1$1.MonthService,
|
|
171
|
+
i1$1.AgendaService,
|
|
172
|
+
i1$1.MonthAgendaService,
|
|
173
|
+
i1$1.TimelineViewsService,
|
|
174
|
+
i1$1.TimelineMonthService
|
|
175
|
+
], 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 });
|
|
176
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleComponent, decorators: [{
|
|
177
|
+
type: i0.Component,
|
|
178
|
+
args: [{
|
|
179
|
+
selector: 'co-schedule',
|
|
180
|
+
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 ",
|
|
181
|
+
providers: [
|
|
182
|
+
i1$1.DayService,
|
|
183
|
+
i1$1.WeekService,
|
|
184
|
+
i1$1.WorkWeekService,
|
|
185
|
+
i1$1.MonthService,
|
|
186
|
+
i1$1.AgendaService,
|
|
187
|
+
i1$1.MonthAgendaService,
|
|
188
|
+
i1$1.TimelineViewsService,
|
|
189
|
+
i1$1.TimelineMonthService
|
|
190
|
+
],
|
|
191
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
192
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
193
|
+
}]
|
|
194
|
+
}], ctorParameters: function () { return []; }, propDecorators: { scheduleObj: [{
|
|
195
|
+
type: i0.ViewChild,
|
|
196
|
+
args: ['ejsSchedule', { static: true }]
|
|
197
|
+
}], selectedDate: [{
|
|
198
|
+
type: i0.Input
|
|
199
|
+
}], currentView: [{
|
|
200
|
+
type: i0.Input
|
|
201
|
+
}], eventSettings: [{
|
|
202
|
+
type: i0.Input
|
|
203
|
+
}], enablePersistence: [{
|
|
204
|
+
type: i0.Input
|
|
205
|
+
}], actionBegin: [{
|
|
206
|
+
type: i0.Output
|
|
207
|
+
}], actionComplete: [{
|
|
208
|
+
type: i0.Output
|
|
209
|
+
}], actionFailure: [{
|
|
210
|
+
type: i0.Output
|
|
211
|
+
}], showClass: [{
|
|
212
|
+
type: i0.HostBinding,
|
|
213
|
+
args: ['class.co-schedule']
|
|
214
|
+
}] } });
|
|
215
|
+
|
|
216
|
+
var CoScheduleModule = /** @class */ (function () {
|
|
217
|
+
function CoScheduleModule() {
|
|
218
|
+
}
|
|
219
|
+
return CoScheduleModule;
|
|
220
|
+
}());
|
|
221
|
+
CoScheduleModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
222
|
+
CoScheduleModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleModule, declarations: [CoScheduleComponent], imports: [common.CommonModule,
|
|
223
|
+
i1$1.ScheduleModule], exports: [CoScheduleComponent] });
|
|
224
|
+
CoScheduleModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleModule, imports: [[
|
|
225
|
+
common.CommonModule,
|
|
226
|
+
i1$1.ScheduleModule
|
|
227
|
+
]] });
|
|
228
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoScheduleModule, decorators: [{
|
|
229
|
+
type: i0.NgModule,
|
|
230
|
+
args: [{
|
|
231
|
+
declarations: [
|
|
232
|
+
CoScheduleComponent
|
|
233
|
+
],
|
|
234
|
+
imports: [
|
|
235
|
+
common.CommonModule,
|
|
236
|
+
i1$1.ScheduleModule
|
|
237
|
+
],
|
|
238
|
+
exports: [
|
|
239
|
+
CoScheduleComponent
|
|
240
|
+
]
|
|
241
|
+
}]
|
|
242
|
+
}] });
|
|
243
|
+
|
|
244
|
+
/******************************************************************************
|
|
245
|
+
Copyright (c) Microsoft Corporation.
|
|
246
|
+
|
|
247
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
248
|
+
purpose with or without fee is hereby granted.
|
|
249
|
+
|
|
250
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
251
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
252
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
253
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
254
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
255
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
256
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
257
|
+
***************************************************************************** */
|
|
258
|
+
/* global Reflect, Promise */
|
|
259
|
+
var extendStatics = function (d, b) {
|
|
260
|
+
extendStatics = Object.setPrototypeOf ||
|
|
261
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
262
|
+
function (d, b) { for (var p in b)
|
|
263
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
264
|
+
d[p] = b[p]; };
|
|
265
|
+
return extendStatics(d, b);
|
|
266
|
+
};
|
|
267
|
+
function __extends(d, b) {
|
|
268
|
+
if (typeof b !== "function" && b !== null)
|
|
269
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
270
|
+
extendStatics(d, b);
|
|
271
|
+
function __() { this.constructor = d; }
|
|
272
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
273
|
+
}
|
|
274
|
+
var __assign = function () {
|
|
275
|
+
__assign = Object.assign || function __assign(t) {
|
|
276
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
277
|
+
s = arguments[i];
|
|
278
|
+
for (var p in s)
|
|
279
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
280
|
+
t[p] = s[p];
|
|
281
|
+
}
|
|
282
|
+
return t;
|
|
283
|
+
};
|
|
284
|
+
return __assign.apply(this, arguments);
|
|
285
|
+
};
|
|
286
|
+
function __rest(s, e) {
|
|
287
|
+
var t = {};
|
|
288
|
+
for (var p in s)
|
|
289
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
290
|
+
t[p] = s[p];
|
|
291
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
292
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
293
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
294
|
+
t[p[i]] = s[p[i]];
|
|
295
|
+
}
|
|
296
|
+
return t;
|
|
297
|
+
}
|
|
298
|
+
function __decorate(decorators, target, key, desc) {
|
|
299
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
300
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
301
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
302
|
+
else
|
|
303
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
304
|
+
if (d = decorators[i])
|
|
305
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
306
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
307
|
+
}
|
|
308
|
+
function __param(paramIndex, decorator) {
|
|
309
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
310
|
+
}
|
|
311
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
312
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
313
|
+
throw new TypeError("Function expected"); return f; }
|
|
314
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
315
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
316
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
317
|
+
var _, done = false;
|
|
318
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
319
|
+
var context = {};
|
|
320
|
+
for (var p in contextIn)
|
|
321
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
322
|
+
for (var p in contextIn.access)
|
|
323
|
+
context.access[p] = contextIn.access[p];
|
|
324
|
+
context.addInitializer = function (f) { if (done)
|
|
325
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
326
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
327
|
+
if (kind === "accessor") {
|
|
328
|
+
if (result === void 0)
|
|
329
|
+
continue;
|
|
330
|
+
if (result === null || typeof result !== "object")
|
|
331
|
+
throw new TypeError("Object expected");
|
|
332
|
+
if (_ = accept(result.get))
|
|
333
|
+
descriptor.get = _;
|
|
334
|
+
if (_ = accept(result.set))
|
|
335
|
+
descriptor.set = _;
|
|
336
|
+
if (_ = accept(result.init))
|
|
337
|
+
initializers.unshift(_);
|
|
338
|
+
}
|
|
339
|
+
else if (_ = accept(result)) {
|
|
340
|
+
if (kind === "field")
|
|
341
|
+
initializers.unshift(_);
|
|
342
|
+
else
|
|
343
|
+
descriptor[key] = _;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
if (target)
|
|
347
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
348
|
+
done = true;
|
|
349
|
+
}
|
|
350
|
+
;
|
|
351
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
352
|
+
var useValue = arguments.length > 2;
|
|
353
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
354
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
355
|
+
}
|
|
356
|
+
return useValue ? value : void 0;
|
|
357
|
+
}
|
|
358
|
+
;
|
|
359
|
+
function __propKey(x) {
|
|
360
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
361
|
+
}
|
|
362
|
+
;
|
|
363
|
+
function __setFunctionName(f, name, prefix) {
|
|
364
|
+
if (typeof name === "symbol")
|
|
365
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
366
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
367
|
+
}
|
|
368
|
+
;
|
|
369
|
+
function __metadata(metadataKey, metadataValue) {
|
|
370
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
371
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
372
|
+
}
|
|
373
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
374
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
375
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
376
|
+
function fulfilled(value) { try {
|
|
377
|
+
step(generator.next(value));
|
|
378
|
+
}
|
|
379
|
+
catch (e) {
|
|
380
|
+
reject(e);
|
|
381
|
+
} }
|
|
382
|
+
function rejected(value) { try {
|
|
383
|
+
step(generator["throw"](value));
|
|
384
|
+
}
|
|
385
|
+
catch (e) {
|
|
386
|
+
reject(e);
|
|
387
|
+
} }
|
|
388
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
389
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
function __generator(thisArg, body) {
|
|
393
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
394
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
395
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
396
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
397
|
+
function step(op) {
|
|
398
|
+
if (f)
|
|
399
|
+
throw new TypeError("Generator is already executing.");
|
|
400
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
401
|
+
try {
|
|
402
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
403
|
+
return t;
|
|
404
|
+
if (y = 0, t)
|
|
405
|
+
op = [op[0] & 2, t.value];
|
|
406
|
+
switch (op[0]) {
|
|
407
|
+
case 0:
|
|
408
|
+
case 1:
|
|
409
|
+
t = op;
|
|
410
|
+
break;
|
|
411
|
+
case 4:
|
|
412
|
+
_.label++;
|
|
413
|
+
return { value: op[1], done: false };
|
|
414
|
+
case 5:
|
|
415
|
+
_.label++;
|
|
416
|
+
y = op[1];
|
|
417
|
+
op = [0];
|
|
418
|
+
continue;
|
|
419
|
+
case 7:
|
|
420
|
+
op = _.ops.pop();
|
|
421
|
+
_.trys.pop();
|
|
422
|
+
continue;
|
|
423
|
+
default:
|
|
424
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
425
|
+
_ = 0;
|
|
426
|
+
continue;
|
|
427
|
+
}
|
|
428
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
429
|
+
_.label = op[1];
|
|
430
|
+
break;
|
|
431
|
+
}
|
|
432
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
433
|
+
_.label = t[1];
|
|
434
|
+
t = op;
|
|
435
|
+
break;
|
|
436
|
+
}
|
|
437
|
+
if (t && _.label < t[2]) {
|
|
438
|
+
_.label = t[2];
|
|
439
|
+
_.ops.push(op);
|
|
440
|
+
break;
|
|
441
|
+
}
|
|
442
|
+
if (t[2])
|
|
443
|
+
_.ops.pop();
|
|
444
|
+
_.trys.pop();
|
|
445
|
+
continue;
|
|
446
|
+
}
|
|
447
|
+
op = body.call(thisArg, _);
|
|
448
|
+
}
|
|
449
|
+
catch (e) {
|
|
450
|
+
op = [6, e];
|
|
451
|
+
y = 0;
|
|
452
|
+
}
|
|
453
|
+
finally {
|
|
454
|
+
f = t = 0;
|
|
455
|
+
}
|
|
456
|
+
if (op[0] & 5)
|
|
457
|
+
throw op[1];
|
|
458
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
462
|
+
if (k2 === undefined)
|
|
463
|
+
k2 = k;
|
|
464
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
465
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
466
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
467
|
+
}
|
|
468
|
+
Object.defineProperty(o, k2, desc);
|
|
469
|
+
}) : (function (o, m, k, k2) {
|
|
470
|
+
if (k2 === undefined)
|
|
471
|
+
k2 = k;
|
|
472
|
+
o[k2] = m[k];
|
|
473
|
+
});
|
|
474
|
+
function __exportStar(m, o) {
|
|
475
|
+
for (var p in m)
|
|
476
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
477
|
+
__createBinding(o, m, p);
|
|
478
|
+
}
|
|
479
|
+
function __values(o) {
|
|
480
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
481
|
+
if (m)
|
|
482
|
+
return m.call(o);
|
|
483
|
+
if (o && typeof o.length === "number")
|
|
484
|
+
return {
|
|
485
|
+
next: function () {
|
|
486
|
+
if (o && i >= o.length)
|
|
487
|
+
o = void 0;
|
|
488
|
+
return { value: o && o[i++], done: !o };
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
492
|
+
}
|
|
493
|
+
function __read(o, n) {
|
|
494
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
495
|
+
if (!m)
|
|
496
|
+
return o;
|
|
497
|
+
var i = m.call(o), r, ar = [], e;
|
|
498
|
+
try {
|
|
499
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
500
|
+
ar.push(r.value);
|
|
501
|
+
}
|
|
502
|
+
catch (error) {
|
|
503
|
+
e = { error: error };
|
|
504
|
+
}
|
|
505
|
+
finally {
|
|
506
|
+
try {
|
|
507
|
+
if (r && !r.done && (m = i["return"]))
|
|
508
|
+
m.call(i);
|
|
509
|
+
}
|
|
510
|
+
finally {
|
|
511
|
+
if (e)
|
|
512
|
+
throw e.error;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
return ar;
|
|
516
|
+
}
|
|
517
|
+
/** @deprecated */
|
|
518
|
+
function __spread() {
|
|
519
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
520
|
+
ar = ar.concat(__read(arguments[i]));
|
|
521
|
+
return ar;
|
|
522
|
+
}
|
|
523
|
+
/** @deprecated */
|
|
524
|
+
function __spreadArrays() {
|
|
525
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
526
|
+
s += arguments[i].length;
|
|
527
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
528
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
529
|
+
r[k] = a[j];
|
|
530
|
+
return r;
|
|
531
|
+
}
|
|
532
|
+
function __spreadArray(to, from, pack) {
|
|
533
|
+
if (pack || arguments.length === 2)
|
|
534
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
535
|
+
if (ar || !(i in from)) {
|
|
536
|
+
if (!ar)
|
|
537
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
538
|
+
ar[i] = from[i];
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
542
|
+
}
|
|
543
|
+
function __await(v) {
|
|
544
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
545
|
+
}
|
|
546
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
547
|
+
if (!Symbol.asyncIterator)
|
|
548
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
549
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
550
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
551
|
+
function verb(n) { if (g[n])
|
|
552
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
553
|
+
function resume(n, v) { try {
|
|
554
|
+
step(g[n](v));
|
|
555
|
+
}
|
|
556
|
+
catch (e) {
|
|
557
|
+
settle(q[0][3], e);
|
|
558
|
+
} }
|
|
559
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
560
|
+
function fulfill(value) { resume("next", value); }
|
|
561
|
+
function reject(value) { resume("throw", value); }
|
|
562
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
563
|
+
resume(q[0][0], q[0][1]); }
|
|
564
|
+
}
|
|
565
|
+
function __asyncDelegator(o) {
|
|
566
|
+
var i, p;
|
|
567
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
568
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
569
|
+
}
|
|
570
|
+
function __asyncValues(o) {
|
|
571
|
+
if (!Symbol.asyncIterator)
|
|
572
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
573
|
+
var m = o[Symbol.asyncIterator], i;
|
|
574
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
575
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
576
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
577
|
+
}
|
|
578
|
+
function __makeTemplateObject(cooked, raw) {
|
|
579
|
+
if (Object.defineProperty) {
|
|
580
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
cooked.raw = raw;
|
|
584
|
+
}
|
|
585
|
+
return cooked;
|
|
586
|
+
}
|
|
587
|
+
;
|
|
588
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
589
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
590
|
+
}) : function (o, v) {
|
|
591
|
+
o["default"] = v;
|
|
592
|
+
};
|
|
593
|
+
function __importStar(mod) {
|
|
594
|
+
if (mod && mod.__esModule)
|
|
595
|
+
return mod;
|
|
596
|
+
var result = {};
|
|
597
|
+
if (mod != null)
|
|
598
|
+
for (var k in mod)
|
|
599
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
600
|
+
__createBinding(result, mod, k);
|
|
601
|
+
__setModuleDefault(result, mod);
|
|
602
|
+
return result;
|
|
603
|
+
}
|
|
604
|
+
function __importDefault(mod) {
|
|
605
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
606
|
+
}
|
|
607
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
608
|
+
if (kind === "a" && !f)
|
|
609
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
610
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
611
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
612
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
613
|
+
}
|
|
614
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
615
|
+
if (kind === "m")
|
|
616
|
+
throw new TypeError("Private method is not writable");
|
|
617
|
+
if (kind === "a" && !f)
|
|
618
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
619
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
620
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
621
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
622
|
+
}
|
|
623
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
624
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
625
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
626
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
627
|
+
}
|
|
628
|
+
var tslib_es6 = {
|
|
629
|
+
__extends: __extends,
|
|
630
|
+
__assign: __assign,
|
|
631
|
+
__rest: __rest,
|
|
632
|
+
__decorate: __decorate,
|
|
633
|
+
__param: __param,
|
|
634
|
+
__metadata: __metadata,
|
|
635
|
+
__awaiter: __awaiter,
|
|
636
|
+
__generator: __generator,
|
|
637
|
+
__createBinding: __createBinding,
|
|
638
|
+
__exportStar: __exportStar,
|
|
639
|
+
__values: __values,
|
|
640
|
+
__read: __read,
|
|
641
|
+
__spread: __spread,
|
|
642
|
+
__spreadArrays: __spreadArrays,
|
|
643
|
+
__spreadArray: __spreadArray,
|
|
644
|
+
__await: __await,
|
|
645
|
+
__asyncGenerator: __asyncGenerator,
|
|
646
|
+
__asyncDelegator: __asyncDelegator,
|
|
647
|
+
__asyncValues: __asyncValues,
|
|
648
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
649
|
+
__importStar: __importStar,
|
|
650
|
+
__importDefault: __importDefault,
|
|
651
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
652
|
+
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
653
|
+
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
var GridLines;
|
|
657
|
+
(function (GridLines) {
|
|
658
|
+
GridLines["None"] = "None";
|
|
659
|
+
GridLines["Horizontal"] = "Horizontal";
|
|
660
|
+
GridLines["Vertical"] = "Vertical";
|
|
661
|
+
GridLines["Both"] = "Both";
|
|
662
|
+
GridLines["Default"] = "Default";
|
|
663
|
+
})(GridLines || (GridLines = {}));
|
|
664
|
+
|
|
665
|
+
var BaseGridComponent = /** @class */ (function () {
|
|
666
|
+
function BaseGridComponent(element) {
|
|
667
|
+
this.element = element;
|
|
668
|
+
this.gridLines = GridLines.None;
|
|
669
|
+
this.contextMenuItems = [];
|
|
670
|
+
this.sortingEnabled = false;
|
|
671
|
+
this.filteringEnabled = false;
|
|
672
|
+
this.pagingEnabled = false;
|
|
673
|
+
this.groupingEnabled = false;
|
|
674
|
+
this.reorderingEnabled = false;
|
|
675
|
+
this.rowDragAndDropEnabled = false;
|
|
676
|
+
this.resizingEnabled = false;
|
|
677
|
+
this.showColumnMenu = false;
|
|
678
|
+
this.pageSettings = {};
|
|
679
|
+
}
|
|
680
|
+
Object.defineProperty(BaseGridComponent.prototype, "maxNumberOfRows", {
|
|
681
|
+
set: function (value) {
|
|
682
|
+
if (value) {
|
|
683
|
+
this.pageSettings.pageSize = value;
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
enumerable: false,
|
|
687
|
+
configurable: true
|
|
688
|
+
});
|
|
689
|
+
Object.defineProperty(BaseGridComponent.prototype, "columns", {
|
|
690
|
+
get: function () {
|
|
691
|
+
return this._columns;
|
|
692
|
+
},
|
|
693
|
+
set: function (value) {
|
|
694
|
+
this._columns = value;
|
|
695
|
+
},
|
|
696
|
+
enumerable: false,
|
|
697
|
+
configurable: true
|
|
698
|
+
});
|
|
699
|
+
return BaseGridComponent;
|
|
700
|
+
}());
|
|
701
|
+
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 });
|
|
702
|
+
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 });
|
|
703
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseGridComponent, decorators: [{
|
|
704
|
+
type: i0.Directive
|
|
705
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { grid: [{
|
|
706
|
+
type: i0.ViewChild,
|
|
707
|
+
args: ['grid', { static: false }]
|
|
708
|
+
}], data: [{
|
|
709
|
+
type: i0.Input
|
|
710
|
+
}], gridLines: [{
|
|
711
|
+
type: i0.Input
|
|
712
|
+
}], contextMenuItems: [{
|
|
713
|
+
type: i0.Input
|
|
714
|
+
}], frozenColumns: [{
|
|
715
|
+
type: i0.Input
|
|
716
|
+
}], frozenRows: [{
|
|
717
|
+
type: i0.Input
|
|
718
|
+
}], sortingEnabled: [{
|
|
719
|
+
type: i0.Input
|
|
720
|
+
}], filteringEnabled: [{
|
|
721
|
+
type: i0.Input
|
|
722
|
+
}], pagingEnabled: [{
|
|
723
|
+
type: i0.Input
|
|
724
|
+
}], groupingEnabled: [{
|
|
725
|
+
type: i0.Input
|
|
726
|
+
}], reorderingEnabled: [{
|
|
727
|
+
type: i0.Input
|
|
728
|
+
}], rowDragAndDropEnabled: [{
|
|
729
|
+
type: i0.Input
|
|
730
|
+
}], rowDropSettings: [{
|
|
731
|
+
type: i0.Input
|
|
732
|
+
}], resizingEnabled: [{
|
|
733
|
+
type: i0.Input
|
|
734
|
+
}], showColumnMenu: [{
|
|
735
|
+
type: i0.Input
|
|
736
|
+
}], maxNumberOfRows: [{
|
|
737
|
+
type: i0.Input
|
|
738
|
+
}], columns: [{
|
|
739
|
+
type: i0.Input
|
|
740
|
+
}] } });
|
|
741
|
+
|
|
742
|
+
var BaseToolbarGridComponent = /** @class */ (function (_super) {
|
|
743
|
+
__extends(BaseToolbarGridComponent, _super);
|
|
744
|
+
function BaseToolbarGridComponent() {
|
|
745
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
746
|
+
_this._exportExcelEnabled = false;
|
|
747
|
+
_this._exportPdfEnabled = false;
|
|
748
|
+
_this._showColumnChooser = false;
|
|
749
|
+
return _this;
|
|
750
|
+
}
|
|
751
|
+
Object.defineProperty(BaseToolbarGridComponent.prototype, "showColumnChooser", {
|
|
752
|
+
get: function () {
|
|
753
|
+
return this._showColumnChooser;
|
|
754
|
+
},
|
|
755
|
+
set: function (value) {
|
|
756
|
+
this._showColumnChooser = value;
|
|
757
|
+
this.updateToolbar("ColumnChooser", this._showColumnChooser);
|
|
758
|
+
},
|
|
759
|
+
enumerable: false,
|
|
760
|
+
configurable: true
|
|
761
|
+
});
|
|
762
|
+
Object.defineProperty(BaseToolbarGridComponent.prototype, "exportExcelEnabled", {
|
|
763
|
+
get: function () {
|
|
764
|
+
return this._exportExcelEnabled;
|
|
765
|
+
},
|
|
766
|
+
set: function (value) {
|
|
767
|
+
this._exportExcelEnabled = value;
|
|
768
|
+
this.updateToolbar("ExcelExport", this._exportExcelEnabled);
|
|
769
|
+
},
|
|
770
|
+
enumerable: false,
|
|
771
|
+
configurable: true
|
|
772
|
+
});
|
|
773
|
+
Object.defineProperty(BaseToolbarGridComponent.prototype, "exportPdfEnabled", {
|
|
774
|
+
get: function () {
|
|
775
|
+
return this._exportPdfEnabled;
|
|
776
|
+
},
|
|
777
|
+
set: function (value) {
|
|
778
|
+
this._exportPdfEnabled = value;
|
|
779
|
+
this.updateToolbar("PdfExport", this._exportPdfEnabled);
|
|
780
|
+
},
|
|
781
|
+
enumerable: false,
|
|
782
|
+
configurable: true
|
|
783
|
+
});
|
|
784
|
+
BaseToolbarGridComponent.prototype.toolbarClick = function (args) {
|
|
785
|
+
if (this.grid) {
|
|
786
|
+
if (args.item.id === 'grid_excelexport') {
|
|
787
|
+
this.grid.excelExport();
|
|
788
|
+
}
|
|
789
|
+
else if (args.item.id === 'grid_pdfexport') {
|
|
790
|
+
this.grid.pdfExport();
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
BaseToolbarGridComponent.prototype.updateToolbar = function (option, add) {
|
|
795
|
+
if (add) {
|
|
796
|
+
if (!this.toolbarOptions) {
|
|
797
|
+
this.toolbarOptions = [];
|
|
798
|
+
}
|
|
799
|
+
this.toolbarOptions.push(option);
|
|
800
|
+
}
|
|
801
|
+
else {
|
|
802
|
+
if (this.toolbarOptions) {
|
|
803
|
+
var index = this.toolbarOptions.indexOf(option);
|
|
804
|
+
this.toolbarOptions.splice(index, 1);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
if (this.toolbarOptions && this.toolbarOptions.length > 0) {
|
|
808
|
+
this.toolbarOptions = this.toolbarOptions.slice();
|
|
809
|
+
}
|
|
810
|
+
else {
|
|
811
|
+
this.toolbarOptions = undefined;
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
return BaseToolbarGridComponent;
|
|
815
|
+
}(BaseGridComponent));
|
|
816
|
+
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 });
|
|
817
|
+
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 });
|
|
818
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseToolbarGridComponent, decorators: [{
|
|
819
|
+
type: i0.Directive
|
|
820
|
+
}], propDecorators: { showColumnChooser: [{
|
|
821
|
+
type: i0.Input
|
|
822
|
+
}], exportExcelEnabled: [{
|
|
823
|
+
type: i0.Input
|
|
824
|
+
}], exportPdfEnabled: [{
|
|
825
|
+
type: i0.Input
|
|
826
|
+
}] } });
|
|
827
|
+
|
|
828
|
+
var BaseInlineEditGridComponent = /** @class */ (function (_super) {
|
|
829
|
+
__extends(BaseInlineEditGridComponent, _super);
|
|
830
|
+
function BaseInlineEditGridComponent() {
|
|
831
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
832
|
+
_this.rowSaved = new i0.EventEmitter();
|
|
833
|
+
_this.beforeRowDelete = new i0.EventEmitter(false);
|
|
834
|
+
_this.rowDeleted = new i0.EventEmitter();
|
|
835
|
+
_this.actionBeginObservable$ = new rxjs.Observable();
|
|
836
|
+
_this.actionBeginObservableSub = new rxjs.Subscription();
|
|
837
|
+
return _this;
|
|
838
|
+
}
|
|
839
|
+
Object.defineProperty(BaseInlineEditGridComponent.prototype, "inlineEdit", {
|
|
840
|
+
set: function (value) {
|
|
841
|
+
if (value) {
|
|
842
|
+
this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true };
|
|
843
|
+
}
|
|
844
|
+
else {
|
|
845
|
+
this.editSettings = {};
|
|
846
|
+
}
|
|
847
|
+
this.updateToolbar("Add", value);
|
|
848
|
+
this.updateToolbar("Edit", value);
|
|
849
|
+
this.updateToolbar("Delete", value);
|
|
850
|
+
this.updateToolbar("Update", value);
|
|
851
|
+
this.updateToolbar("Cancel", value);
|
|
852
|
+
},
|
|
853
|
+
enumerable: false,
|
|
854
|
+
configurable: true
|
|
855
|
+
});
|
|
856
|
+
BaseInlineEditGridComponent.prototype.ngAfterViewInit = function () {
|
|
857
|
+
var _this = this;
|
|
858
|
+
if (this.grid) {
|
|
859
|
+
this.actionBeginObservable$ = rxjs.fromEvent(this.grid, 'actionBegin');
|
|
860
|
+
this.actionBeginObservableSub = this.actionBeginObservable$.subscribe(function (action) {
|
|
861
|
+
_this.handleActionBegin(action);
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
};
|
|
865
|
+
BaseInlineEditGridComponent.prototype.ngOnDestroy = function () {
|
|
866
|
+
this.actionBeginObservableSub.unsubscribe();
|
|
867
|
+
};
|
|
868
|
+
BaseInlineEditGridComponent.prototype.handleActionBegin = function (action) {
|
|
869
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
870
|
+
return __generator(this, function (_a) {
|
|
871
|
+
switch (_a.label) {
|
|
872
|
+
case 0:
|
|
873
|
+
if (!action) return [3 /*break*/, 3];
|
|
874
|
+
if (!(action.requestType === "delete")) return [3 /*break*/, 2];
|
|
875
|
+
return [4 /*yield*/, this.waitForBeforeDelete(action)];
|
|
876
|
+
case 1:
|
|
877
|
+
_a.sent();
|
|
878
|
+
_a.label = 2;
|
|
879
|
+
case 2:
|
|
880
|
+
if (action.requestType === "save") {
|
|
881
|
+
this.rowSaved.next(action.data);
|
|
882
|
+
}
|
|
883
|
+
_a.label = 3;
|
|
884
|
+
case 3: return [2 /*return*/];
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
});
|
|
888
|
+
};
|
|
889
|
+
BaseInlineEditGridComponent.prototype.handleActionComplete = function (action) {
|
|
890
|
+
if (action) {
|
|
891
|
+
if (action.requestType === "delete") {
|
|
892
|
+
this.rowDeleted.next(action.data);
|
|
893
|
+
}
|
|
894
|
+
if (action.requestType === "save") {
|
|
895
|
+
this.rowSaved.next(action.data);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
};
|
|
899
|
+
BaseInlineEditGridComponent.prototype.waitForBeforeDelete = function (action) {
|
|
900
|
+
var _this = this;
|
|
901
|
+
// @ts-ignore
|
|
902
|
+
var beforeRowDelete$ = rxjs.fromEvent(this.element, 'beforeRowDelete');
|
|
903
|
+
return new Promise(function (resolve) {
|
|
904
|
+
beforeRowDelete$.subscribe(function (result) {
|
|
905
|
+
action = result;
|
|
906
|
+
return resolve(action);
|
|
907
|
+
}).unsubscribe();
|
|
908
|
+
_this.beforeRowDelete.next(action);
|
|
909
|
+
});
|
|
910
|
+
};
|
|
911
|
+
return BaseInlineEditGridComponent;
|
|
912
|
+
}(BaseToolbarGridComponent));
|
|
913
|
+
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 });
|
|
914
|
+
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 });
|
|
915
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseInlineEditGridComponent, decorators: [{
|
|
916
|
+
type: i0.Directive
|
|
917
|
+
}], propDecorators: { inlineEdit: [{
|
|
918
|
+
type: i0.Input
|
|
919
|
+
}], rowSaved: [{
|
|
920
|
+
type: i0.Output
|
|
921
|
+
}], beforeRowDelete: [{
|
|
922
|
+
type: i0.Output
|
|
923
|
+
}], rowDeleted: [{
|
|
924
|
+
type: i0.Output
|
|
925
|
+
}] } });
|
|
926
|
+
|
|
927
|
+
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>";
|
|
928
|
+
var BaseSelectionGridComponent = /** @class */ (function (_super) {
|
|
929
|
+
__extends(BaseSelectionGridComponent, _super);
|
|
930
|
+
function BaseSelectionGridComponent() {
|
|
931
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
932
|
+
_this.includeDetailColumn = false;
|
|
933
|
+
_this.rowsSelected = new i0.EventEmitter();
|
|
934
|
+
_this.rowDoubleClick = new i0.EventEmitter();
|
|
935
|
+
_this.detailColumnClick = new i0.EventEmitter();
|
|
936
|
+
_this.contextMenuItemClick = new i0.EventEmitter();
|
|
937
|
+
_this.rowDragStartEvent = new i0.EventEmitter();
|
|
938
|
+
_this.rowDropEvent = new i0.EventEmitter();
|
|
939
|
+
_this.beforeRowsDelete = new i0.EventEmitter();
|
|
940
|
+
_this.rowsDeleted = new i0.EventEmitter();
|
|
941
|
+
_this.selectionOptions = { type: "Single" };
|
|
942
|
+
return _this;
|
|
943
|
+
}
|
|
944
|
+
Object.defineProperty(BaseSelectionGridComponent.prototype, "multipleSelect", {
|
|
945
|
+
set: function (value) {
|
|
946
|
+
this.selectionOptions = { type: value ? "Multiple" : "Single" };
|
|
947
|
+
},
|
|
948
|
+
enumerable: false,
|
|
949
|
+
configurable: true
|
|
950
|
+
});
|
|
951
|
+
BaseSelectionGridComponent.prototype.ngOnInit = function () {
|
|
952
|
+
if (this.includeDetailColumn) {
|
|
953
|
+
this.columns.unshift({
|
|
954
|
+
field: "", headerText: "", lockColumn: true, maxWidth: 30, width: 30,
|
|
955
|
+
allowFiltering: false, allowResizing: false, allowReordering: false, allowEditing: false, allowSearching: false,
|
|
956
|
+
showColumnMenu: false, showInColumnChooser: false,
|
|
957
|
+
template: this.detailColumnTemplate ? this.detailColumnTemplate : defaultColumn,
|
|
958
|
+
headerTemplate: this.detailColumnTemplate ? this.detailColumnTemplate : defaultColumn
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
};
|
|
962
|
+
BaseSelectionGridComponent.prototype.handleRowSelected = function (rowData) {
|
|
963
|
+
if (this.grid) {
|
|
964
|
+
var rows = this.grid.getSelectedRecords();
|
|
965
|
+
this.rowsSelected.next(rows);
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
BaseSelectionGridComponent.prototype.handleDoubleClick = function (clickData) {
|
|
969
|
+
this.rowDoubleClick.next(clickData.rowData);
|
|
970
|
+
};
|
|
971
|
+
BaseSelectionGridComponent.prototype.handleRecordClick = function (clickData) {
|
|
972
|
+
if (clickData && this.includeDetailColumn && clickData.cellIndex === 0) {
|
|
973
|
+
this.detailColumnClick.next(clickData.rowData);
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
BaseSelectionGridComponent.prototype.selectRow = function (index) {
|
|
977
|
+
if (this.grid) {
|
|
978
|
+
var rowIndexes = [];
|
|
979
|
+
rowIndexes.push(index);
|
|
980
|
+
this.grid.selectionModule.selectRows(rowIndexes);
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
BaseSelectionGridComponent.prototype.contextMenuClick = function (args) {
|
|
984
|
+
this.contextMenuItemClick.next(args);
|
|
985
|
+
};
|
|
986
|
+
BaseSelectionGridComponent.prototype.rowDragStartClick = function (args) {
|
|
987
|
+
this.rowDragStartEvent.next(args);
|
|
988
|
+
};
|
|
989
|
+
BaseSelectionGridComponent.prototype.rowDropClick = function (args) {
|
|
990
|
+
this.rowDropEvent.next(args);
|
|
991
|
+
};
|
|
992
|
+
BaseSelectionGridComponent.prototype.handleBeforeBatchDelete = function (args) {
|
|
993
|
+
this.beforeRowsDelete.next(args);
|
|
994
|
+
};
|
|
995
|
+
BaseSelectionGridComponent.prototype.handleBatchDelete = function (rows) {
|
|
996
|
+
this.rowsDeleted.next(rows);
|
|
997
|
+
};
|
|
998
|
+
return BaseSelectionGridComponent;
|
|
999
|
+
}(BaseInlineEditGridComponent));
|
|
1000
|
+
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 });
|
|
1001
|
+
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 });
|
|
1002
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseSelectionGridComponent, decorators: [{
|
|
1003
|
+
type: i0.Directive
|
|
1004
|
+
}], propDecorators: { multipleSelect: [{
|
|
1005
|
+
type: i0.Input
|
|
1006
|
+
}], includeDetailColumn: [{
|
|
1007
|
+
type: i0.HostBinding,
|
|
1008
|
+
args: ["class.detail-column"]
|
|
1009
|
+
}, {
|
|
1010
|
+
type: i0.Input
|
|
1011
|
+
}], detailColumnTemplate: [{
|
|
1012
|
+
type: i0.Input
|
|
1013
|
+
}], rowsSelected: [{
|
|
1014
|
+
type: i0.Output
|
|
1015
|
+
}], rowDoubleClick: [{
|
|
1016
|
+
type: i0.Output
|
|
1017
|
+
}], detailColumnClick: [{
|
|
1018
|
+
type: i0.Output
|
|
1019
|
+
}], contextMenuItemClick: [{
|
|
1020
|
+
type: i0.Output
|
|
1021
|
+
}], rowDragStartEvent: [{
|
|
1022
|
+
type: i0.Output
|
|
1023
|
+
}], rowDropEvent: [{
|
|
1024
|
+
type: i0.Output
|
|
1025
|
+
}], beforeRowsDelete: [{
|
|
1026
|
+
type: i0.Output
|
|
1027
|
+
}], rowsDeleted: [{
|
|
1028
|
+
type: i0.Output
|
|
1029
|
+
}] } });
|
|
1030
|
+
|
|
1031
|
+
var CoGridComponent = /** @class */ (function (_super) {
|
|
1032
|
+
__extends(CoGridComponent, _super);
|
|
1033
|
+
function CoGridComponent() {
|
|
1034
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1035
|
+
}
|
|
1036
|
+
CoGridComponent.prototype.showClass = function () {
|
|
1037
|
+
return true;
|
|
1038
|
+
};
|
|
1039
|
+
CoGridComponent.prototype.ngOnInit = function () {
|
|
1040
|
+
_super.prototype.ngOnInit.call(this);
|
|
1041
|
+
};
|
|
1042
|
+
return CoGridComponent;
|
|
1043
|
+
}(BaseSelectionGridComponent));
|
|
1044
|
+
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 });
|
|
1045
|
+
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: [
|
|
1046
|
+
i1$2.RowDDService
|
|
1047
|
+
], 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 });
|
|
1048
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoGridComponent, decorators: [{
|
|
1049
|
+
type: i0.Component,
|
|
1050
|
+
args: [{
|
|
1051
|
+
selector: 'co-grid',
|
|
1052
|
+
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 ",
|
|
1053
|
+
providers: [
|
|
1054
|
+
i1$2.RowDDService
|
|
1055
|
+
],
|
|
1056
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
1057
|
+
}]
|
|
1058
|
+
}], propDecorators: { showClass: [{
|
|
1059
|
+
type: i0.HostBinding,
|
|
1060
|
+
args: ['class.co-grid']
|
|
1061
|
+
}] } });
|
|
1062
|
+
|
|
1063
|
+
var CoGridModule = /** @class */ (function () {
|
|
1064
|
+
function CoGridModule() {
|
|
1065
|
+
}
|
|
1066
|
+
return CoGridModule;
|
|
1067
|
+
}());
|
|
1068
|
+
CoGridModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoGridModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1069
|
+
CoGridModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoGridModule, declarations: [CoGridComponent], imports: [common.CommonModule,
|
|
1070
|
+
forms.FormsModule,
|
|
1071
|
+
i1$2.GridModule], exports: [CoGridComponent] });
|
|
1072
|
+
CoGridModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoGridModule, providers: [
|
|
1073
|
+
i1$2.PageService,
|
|
1074
|
+
i1$2.SortService,
|
|
1075
|
+
i1$2.FilterService,
|
|
1076
|
+
i1$2.GroupService,
|
|
1077
|
+
i1$2.ReorderService,
|
|
1078
|
+
i1$2.ResizeService,
|
|
1079
|
+
i1$2.ExcelExportService,
|
|
1080
|
+
i1$2.PdfExportService,
|
|
1081
|
+
i1$2.EditService,
|
|
1082
|
+
i1$2.ToolbarService,
|
|
1083
|
+
i1$2.ColumnChooserService,
|
|
1084
|
+
i1$2.ColumnMenuService,
|
|
1085
|
+
i1$2.ContextMenuService
|
|
1086
|
+
], imports: [[
|
|
1087
|
+
common.CommonModule,
|
|
1088
|
+
forms.FormsModule,
|
|
1089
|
+
i1$2.GridModule
|
|
1090
|
+
]] });
|
|
1091
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoGridModule, decorators: [{
|
|
1092
|
+
type: i0.NgModule,
|
|
1093
|
+
args: [{
|
|
1094
|
+
imports: [
|
|
1095
|
+
common.CommonModule,
|
|
1096
|
+
forms.FormsModule,
|
|
1097
|
+
i1$2.GridModule
|
|
1098
|
+
],
|
|
1099
|
+
declarations: [CoGridComponent],
|
|
1100
|
+
exports: [CoGridComponent],
|
|
1101
|
+
providers: [
|
|
1102
|
+
i1$2.PageService,
|
|
1103
|
+
i1$2.SortService,
|
|
1104
|
+
i1$2.FilterService,
|
|
1105
|
+
i1$2.GroupService,
|
|
1106
|
+
i1$2.ReorderService,
|
|
1107
|
+
i1$2.ResizeService,
|
|
1108
|
+
i1$2.ExcelExportService,
|
|
1109
|
+
i1$2.PdfExportService,
|
|
1110
|
+
i1$2.EditService,
|
|
1111
|
+
i1$2.ToolbarService,
|
|
1112
|
+
i1$2.ColumnChooserService,
|
|
1113
|
+
i1$2.ColumnMenuService,
|
|
1114
|
+
i1$2.ContextMenuService
|
|
1115
|
+
]
|
|
1116
|
+
}]
|
|
1117
|
+
}] });
|
|
1118
|
+
|
|
1119
|
+
var CoPivotComponent = /** @class */ (function () {
|
|
1120
|
+
function CoPivotComponent() {
|
|
1121
|
+
this.showGroupingBar = false;
|
|
1122
|
+
this.allowGrouping = false;
|
|
1123
|
+
this.enablePersistence = false;
|
|
1124
|
+
this.showFieldList = false;
|
|
1125
|
+
this.showToolbar = false;
|
|
1126
|
+
this.allowExcelExport = false;
|
|
1127
|
+
this.allowPdfExport = false;
|
|
1128
|
+
this.allowConditionalFormatting = true;
|
|
1129
|
+
this.allowNumberFormatting = true;
|
|
1130
|
+
this.allowCalculatedField = false;
|
|
1131
|
+
this.height = "100%";
|
|
1132
|
+
this.saveReportClick = new i0.EventEmitter();
|
|
1133
|
+
this.loadReportClick = new i0.EventEmitter();
|
|
1134
|
+
this.fetchReportClick = new i0.EventEmitter();
|
|
1135
|
+
this.renameReportClick = new i0.EventEmitter();
|
|
1136
|
+
this.removeReportClick = new i0.EventEmitter();
|
|
1137
|
+
this.newReportClick = new i0.EventEmitter();
|
|
1138
|
+
this.beforeToolbarRenderClick = new i0.EventEmitter();
|
|
1139
|
+
this.enginePopulated = new i0.EventEmitter();
|
|
1140
|
+
}
|
|
1141
|
+
CoPivotComponent.prototype.showClass = function () {
|
|
1142
|
+
return true;
|
|
1143
|
+
};
|
|
1144
|
+
CoPivotComponent.prototype.ngOnInit = function () {
|
|
1145
|
+
};
|
|
1146
|
+
CoPivotComponent.prototype.ngAfterViewInit = function () {
|
|
1147
|
+
var _this = this;
|
|
1148
|
+
setTimeout(function () {
|
|
1149
|
+
_this.pivot.refresh();
|
|
1150
|
+
_this.pivot.refreshData();
|
|
1151
|
+
_this.pivot.layoutRefresh();
|
|
1152
|
+
}, 3000);
|
|
1153
|
+
};
|
|
1154
|
+
CoPivotComponent.prototype.saveReport = function (args) {
|
|
1155
|
+
if (args) {
|
|
1156
|
+
this.saveReportClick.next(args);
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
CoPivotComponent.prototype.loadReport = function (args) {
|
|
1160
|
+
if (args) {
|
|
1161
|
+
this.loadReportClick.next(args);
|
|
1162
|
+
}
|
|
1163
|
+
};
|
|
1164
|
+
CoPivotComponent.prototype.fetchReport = function (args) {
|
|
1165
|
+
if (args) {
|
|
1166
|
+
this.fetchReportClick.next(args);
|
|
1167
|
+
}
|
|
1168
|
+
};
|
|
1169
|
+
CoPivotComponent.prototype.renameReport = function (args) {
|
|
1170
|
+
if (args) {
|
|
1171
|
+
this.renameReportClick.next(args);
|
|
1172
|
+
}
|
|
1173
|
+
};
|
|
1174
|
+
CoPivotComponent.prototype.removeReport = function (args) {
|
|
1175
|
+
if (args) {
|
|
1176
|
+
this.removeReportClick.next(args);
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
CoPivotComponent.prototype.newReport = function () {
|
|
1180
|
+
this.newReportClick.next();
|
|
1181
|
+
};
|
|
1182
|
+
CoPivotComponent.prototype.beforeToolbarRender = function (args) {
|
|
1183
|
+
if (args) {
|
|
1184
|
+
this.beforeToolbarRenderClick.next(args);
|
|
1185
|
+
}
|
|
1186
|
+
};
|
|
1187
|
+
CoPivotComponent.prototype.hanldeEnginePopulated = function (args) {
|
|
1188
|
+
if (args) {
|
|
1189
|
+
this.enginePopulated.next(args);
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
return CoPivotComponent;
|
|
1193
|
+
}());
|
|
1194
|
+
CoPivotComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1195
|
+
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 });
|
|
1196
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotComponent, decorators: [{
|
|
1197
|
+
type: i0.Component,
|
|
1198
|
+
args: [{
|
|
1199
|
+
selector: 'co-pivot',
|
|
1200
|
+
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 ",
|
|
1201
|
+
providers: [i1$3.GroupingBarService, i1$3.GroupingService, i1$3.ToolbarService, i1$3.ConditionalFormattingService, i1$3.FieldListService, i1$3.NumberFormattingService],
|
|
1202
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
1203
|
+
}]
|
|
1204
|
+
}], ctorParameters: function () { return []; }, propDecorators: { pivot: [{
|
|
1205
|
+
type: i0.ViewChild,
|
|
1206
|
+
args: ['pivot', { static: false }]
|
|
1207
|
+
}], dataSourceSettings: [{
|
|
1208
|
+
type: i0.Input
|
|
1209
|
+
}], gridSettings: [{
|
|
1210
|
+
type: i0.Input
|
|
1211
|
+
}], toolbarOptions: [{
|
|
1212
|
+
type: i0.Input
|
|
1213
|
+
}], showGroupingBar: [{
|
|
1214
|
+
type: i0.Input
|
|
1215
|
+
}], allowGrouping: [{
|
|
1216
|
+
type: i0.Input
|
|
1217
|
+
}], enablePersistence: [{
|
|
1218
|
+
type: i0.Input
|
|
1219
|
+
}], showFieldList: [{
|
|
1220
|
+
type: i0.Input
|
|
1221
|
+
}], showToolbar: [{
|
|
1222
|
+
type: i0.Input
|
|
1223
|
+
}], allowExcelExport: [{
|
|
1224
|
+
type: i0.Input
|
|
1225
|
+
}], allowPdfExport: [{
|
|
1226
|
+
type: i0.Input
|
|
1227
|
+
}], allowConditionalFormatting: [{
|
|
1228
|
+
type: i0.Input
|
|
1229
|
+
}], allowNumberFormatting: [{
|
|
1230
|
+
type: i0.Input
|
|
1231
|
+
}], allowCalculatedField: [{
|
|
1232
|
+
type: i0.Input
|
|
1233
|
+
}], height: [{
|
|
1234
|
+
type: i0.Input
|
|
1235
|
+
}], saveReportClick: [{
|
|
1236
|
+
type: i0.Output
|
|
1237
|
+
}], loadReportClick: [{
|
|
1238
|
+
type: i0.Output
|
|
1239
|
+
}], fetchReportClick: [{
|
|
1240
|
+
type: i0.Output
|
|
1241
|
+
}], renameReportClick: [{
|
|
1242
|
+
type: i0.Output
|
|
1243
|
+
}], removeReportClick: [{
|
|
1244
|
+
type: i0.Output
|
|
1245
|
+
}], newReportClick: [{
|
|
1246
|
+
type: i0.Output
|
|
1247
|
+
}], beforeToolbarRenderClick: [{
|
|
1248
|
+
type: i0.Output
|
|
1249
|
+
}], enginePopulated: [{
|
|
1250
|
+
type: i0.Output
|
|
1251
|
+
}], showClass: [{
|
|
1252
|
+
type: i0.HostBinding,
|
|
1253
|
+
args: ["class.co-pivot"]
|
|
1254
|
+
}] } });
|
|
1255
|
+
|
|
1256
|
+
var CoPivotModule = /** @class */ (function () {
|
|
1257
|
+
function CoPivotModule() {
|
|
1258
|
+
}
|
|
1259
|
+
return CoPivotModule;
|
|
1260
|
+
}());
|
|
1261
|
+
CoPivotModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1262
|
+
CoPivotModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotModule, declarations: [CoPivotComponent], imports: [common.CommonModule,
|
|
1263
|
+
i1$3.PivotViewModule], exports: [CoPivotComponent] });
|
|
1264
|
+
CoPivotModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotModule, imports: [[
|
|
1265
|
+
common.CommonModule,
|
|
1266
|
+
i1$3.PivotViewModule
|
|
1267
|
+
]] });
|
|
1268
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CoPivotModule, decorators: [{
|
|
1269
|
+
type: i0.NgModule,
|
|
1270
|
+
args: [{
|
|
1271
|
+
imports: [
|
|
1272
|
+
common.CommonModule,
|
|
1273
|
+
i1$3.PivotViewModule
|
|
1274
|
+
],
|
|
1275
|
+
declarations: [
|
|
1276
|
+
CoPivotComponent
|
|
1277
|
+
],
|
|
1278
|
+
exports: [
|
|
1279
|
+
CoPivotComponent
|
|
1280
|
+
]
|
|
1281
|
+
}]
|
|
1282
|
+
}] });
|
|
1283
|
+
|
|
1284
|
+
// The localization service, providing peers with text translation functionality.
|
|
1285
|
+
var DictionaryService = /** @class */ (function () {
|
|
1286
|
+
function DictionaryService() {
|
|
1287
|
+
// Some dictionary values have one or more '|~' texts in them, meant to be replaced with client-side given texts.
|
|
1288
|
+
this._placeholder = "|~";
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* Returns the localized text for the given dictionary key.
|
|
1292
|
+
* @param {string} key
|
|
1293
|
+
* @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
|
|
1294
|
+
* @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
|
|
1295
|
+
* @returns {string} The translated text for given dictionary key
|
|
1296
|
+
*/
|
|
1297
|
+
DictionaryService.prototype.get = function (key, upperCaseFirst) {
|
|
1298
|
+
if (upperCaseFirst === void 0) { upperCaseFirst = true; }
|
|
1299
|
+
var replacementTexts = [];
|
|
1300
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1301
|
+
replacementTexts[_i - 2] = arguments[_i];
|
|
1302
|
+
}
|
|
1303
|
+
var text = key;
|
|
1304
|
+
if (this.translation && this.translation.hasOwnProperty(key)) {
|
|
1305
|
+
text = this.translation[key].toLowerCase();
|
|
1306
|
+
if (upperCaseFirst) {
|
|
1307
|
+
text = text.charAt(0).toUpperCase() + text.slice(1);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
return text;
|
|
1311
|
+
};
|
|
1312
|
+
return DictionaryService;
|
|
1313
|
+
}());
|
|
1314
|
+
DictionaryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DictionaryService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1315
|
+
DictionaryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DictionaryService });
|
|
1316
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DictionaryService, decorators: [{
|
|
1317
|
+
type: i0.Injectable
|
|
1318
|
+
}] });
|
|
1319
|
+
|
|
1320
|
+
var ExtendedComponentsTranslationService = /** @class */ (function () {
|
|
1321
|
+
function ExtendedComponentsTranslationService(_dictionaryService) {
|
|
1322
|
+
this._dictionaryService = _dictionaryService;
|
|
1323
|
+
}
|
|
1324
|
+
ExtendedComponentsTranslationService.prototype.setTranslation = function (translation) {
|
|
1325
|
+
this._dictionaryService.translation = translation;
|
|
1326
|
+
};
|
|
1327
|
+
return ExtendedComponentsTranslationService;
|
|
1328
|
+
}());
|
|
1329
|
+
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 });
|
|
1330
|
+
ExtendedComponentsTranslationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationService });
|
|
1331
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationService, decorators: [{
|
|
1332
|
+
type: i0.Injectable
|
|
1333
|
+
}], ctorParameters: function () { return [{ type: DictionaryService }]; } });
|
|
1334
|
+
|
|
1335
|
+
var LocalizePipe = /** @class */ (function () {
|
|
1336
|
+
function LocalizePipe(_dictionaryService) {
|
|
1337
|
+
this._dictionaryService = _dictionaryService;
|
|
1338
|
+
}
|
|
1339
|
+
LocalizePipe.prototype.transform = function (value, upperCaseFirst, replace) {
|
|
1340
|
+
var _a;
|
|
1341
|
+
if (upperCaseFirst === void 0) { upperCaseFirst = true; }
|
|
1342
|
+
if (replace === void 0) { replace = []; }
|
|
1343
|
+
if (!value) {
|
|
1344
|
+
return "";
|
|
1345
|
+
}
|
|
1346
|
+
replace = (replace !== undefined && replace !== null) ? replace : [];
|
|
1347
|
+
if (!Array.isArray(replace)) {
|
|
1348
|
+
replace = [replace];
|
|
1349
|
+
}
|
|
1350
|
+
return (_a = this._dictionaryService).get.apply(_a, __spreadArray([value, upperCaseFirst], __read(replace)));
|
|
1351
|
+
};
|
|
1352
|
+
return LocalizePipe;
|
|
1353
|
+
}());
|
|
1354
|
+
LocalizePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LocalizePipe, deps: [{ token: DictionaryService }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
1355
|
+
LocalizePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LocalizePipe, name: "localize" });
|
|
1356
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LocalizePipe, decorators: [{
|
|
1357
|
+
type: i0.Pipe,
|
|
1358
|
+
args: [{
|
|
1359
|
+
name: "localize"
|
|
1360
|
+
}]
|
|
1361
|
+
}], ctorParameters: function () { return [{ type: DictionaryService }]; } });
|
|
1362
|
+
|
|
1363
|
+
var ExtendedComponentsTranslationModule = /** @class */ (function () {
|
|
1364
|
+
function ExtendedComponentsTranslationModule() {
|
|
1365
|
+
}
|
|
1366
|
+
ExtendedComponentsTranslationModule.forRoot = function () {
|
|
1367
|
+
return {
|
|
1368
|
+
ngModule: ExtendedComponentsTranslationModule,
|
|
1369
|
+
providers: [
|
|
1370
|
+
ExtendedComponentsTranslationService
|
|
1371
|
+
]
|
|
1372
|
+
};
|
|
1373
|
+
};
|
|
1374
|
+
return ExtendedComponentsTranslationModule;
|
|
1375
|
+
}());
|
|
1376
|
+
ExtendedComponentsTranslationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1377
|
+
ExtendedComponentsTranslationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationModule, declarations: [LocalizePipe] });
|
|
1378
|
+
ExtendedComponentsTranslationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationModule, providers: [
|
|
1379
|
+
ExtendedComponentsTranslationService,
|
|
1380
|
+
DictionaryService
|
|
1381
|
+
] });
|
|
1382
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExtendedComponentsTranslationModule, decorators: [{
|
|
1383
|
+
type: i0.NgModule,
|
|
1384
|
+
args: [{
|
|
1385
|
+
declarations: [
|
|
1386
|
+
LocalizePipe
|
|
1387
|
+
],
|
|
1388
|
+
providers: [
|
|
1389
|
+
ExtendedComponentsTranslationService,
|
|
1390
|
+
DictionaryService
|
|
1391
|
+
],
|
|
1392
|
+
exports: [
|
|
1393
|
+
// LocalizePipe
|
|
1394
|
+
]
|
|
1395
|
+
}]
|
|
1396
|
+
}] });
|
|
1397
|
+
|
|
1398
|
+
/*
|
|
1399
|
+
* Public API Surface of extendedcomponents
|
|
1400
|
+
*/
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* Generated bundle index. Do not edit.
|
|
1404
|
+
*/
|
|
1405
|
+
|
|
1406
|
+
exports.CoGridComponent = CoGridComponent;
|
|
1407
|
+
exports.CoGridModule = CoGridModule;
|
|
1408
|
+
exports.CoKanbanComponent = CoKanbanComponent;
|
|
1409
|
+
exports.CoKanbanModule = CoKanbanModule;
|
|
1410
|
+
exports.CoPivotComponent = CoPivotComponent;
|
|
1411
|
+
exports.CoPivotModule = CoPivotModule;
|
|
1412
|
+
exports.CoScheduleComponent = CoScheduleComponent;
|
|
1413
|
+
exports.CoScheduleModule = CoScheduleModule;
|
|
1414
|
+
exports.ExtendedComponentsTranslationModule = ExtendedComponentsTranslationModule;
|
|
1415
|
+
exports.ExtendedComponentsTranslationService = ExtendedComponentsTranslationService;
|
|
1416
|
+
|
|
1417
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1418
|
+
|
|
1419
|
+
}));
|
|
1420
|
+
//# sourceMappingURL=colijnit-extendedcomponents.umd.js.map
|