@syncfusion/ej2-angular-spreadsheet 31.2.18-ngcc → 32.1.19-ngcc
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/@syncfusion/ej2-angular-spreadsheet.es5.js +961 -961
- package/@syncfusion/ej2-angular-spreadsheet.es5.js.map +1 -1
- package/@syncfusion/ej2-angular-spreadsheet.js +869 -869
- package/@syncfusion/ej2-angular-spreadsheet.js.map +1 -1
- package/dist/ej2-angular-spreadsheet.umd.js +952 -960
- package/dist/ej2-angular-spreadsheet.umd.js.map +1 -1
- package/dist/ej2-angular-spreadsheet.umd.min.js +1 -10
- package/dist/ej2-angular-spreadsheet.umd.min.js.map +1 -1
- package/ej2-angular-spreadsheet.d.ts +5 -5
- package/{LICENSE → license} +10 -10
- package/package.json +46 -15
- package/public_api.d.ts +1 -1
- package/schematics/utils/lib-details.d.ts +2 -2
- package/schematics/utils/lib-details.js +2 -2
- package/schematics/utils/lib-details.ts +4 -4
- package/src/index.d.ts +13 -13
- package/src/spreadsheet/cells.directive.d.ts +115 -115
- package/src/spreadsheet/chart.directive.d.ts +79 -79
- package/src/spreadsheet/columns.directive.d.ts +71 -71
- package/src/spreadsheet/conditionalformats.directive.d.ts +55 -55
- package/src/spreadsheet/definednames.directive.d.ts +46 -49
- package/src/spreadsheet/image.directive.d.ts +48 -48
- package/src/spreadsheet/ranges.directive.d.ts +68 -68
- package/src/spreadsheet/rows.directive.d.ts +69 -69
- package/src/spreadsheet/sheets.directive.d.ts +149 -149
- package/src/spreadsheet/spreadsheet-all.module.d.ts +21 -21
- package/src/spreadsheet/spreadsheet.component.d.ts +69 -69
- package/src/spreadsheet/spreadsheet.module.d.ts +5 -5
|
@@ -1,969 +1,960 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* filename: ej2-angular-spreadsheet.umd.js
|
|
3
|
-
* version : 31.2.18
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
-
* Use of this code is subject to the terms of our license.
|
|
6
|
-
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
-
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
-
* applicable laws.
|
|
9
|
-
*/
|
|
10
1
|
(function (global, factory) {
|
|
11
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@syncfusion/ej2-angular-base'), require('@syncfusion/ej2-spreadsheet'), require('@angular/common')) :
|
|
12
3
|
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@syncfusion/ej2-angular-base', '@syncfusion/ej2-spreadsheet', '@angular/common'], factory) :
|
|
13
4
|
(factory((global['ej2-angular-spreadsheet'] = {}),global.ng.core,global.ej2.angular.base,global.ej2.spreadsheet,global.ng.common));
|
|
14
5
|
}(this, (function (exports,core,ej2AngularBase,ej2Spreadsheet,common) { 'use strict';
|
|
15
6
|
|
|
16
|
-
var __extends = (this && this.__extends) || (function () {
|
|
17
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20
|
-
return function (d, b) {
|
|
21
|
-
extendStatics(d, b);
|
|
22
|
-
function __() { this.constructor = d; }
|
|
23
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24
|
-
};
|
|
25
|
-
})();
|
|
26
|
-
var input = ['height', 'id', 'left', 'src', 'top', 'width'];
|
|
27
|
-
var outputs = [];
|
|
28
|
-
var ImageDirective = /** @class */ (function (_super) {
|
|
29
|
-
__extends(ImageDirective, _super);
|
|
30
|
-
/**
|
|
31
|
-
* @param {?} viewContainerRef
|
|
32
|
-
*/
|
|
33
|
-
function ImageDirective(viewContainerRef) {
|
|
34
|
-
var _this = _super.call(this) || this;
|
|
35
|
-
_this.viewContainerRef = viewContainerRef;
|
|
36
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
37
|
-
_this.registerEvents(outputs);
|
|
38
|
-
_this.directivePropList = input;
|
|
39
|
-
return _this;
|
|
40
|
-
}
|
|
41
|
-
return ImageDirective;
|
|
42
|
-
}(ej2AngularBase.ComplexBase));
|
|
43
|
-
ImageDirective.decorators = [
|
|
44
|
-
{ type: core.Directive, args: [{
|
|
45
|
-
selector: 'e-images>e-image',
|
|
46
|
-
inputs: input,
|
|
47
|
-
outputs: outputs,
|
|
48
|
-
queries: {}
|
|
49
|
-
},] },
|
|
50
|
-
];
|
|
51
|
-
/**
|
|
52
|
-
* @nocollapse
|
|
53
|
-
*/
|
|
54
|
-
ImageDirective.ctorParameters = function () { return [
|
|
55
|
-
{ type: core.ViewContainerRef, },
|
|
56
|
-
]; };
|
|
57
|
-
/**
|
|
58
|
-
* Image Array Directive
|
|
59
|
-
*/
|
|
60
|
-
var ImagesDirective = /** @class */ (function (_super) {
|
|
61
|
-
__extends(ImagesDirective, _super);
|
|
62
|
-
function ImagesDirective() {
|
|
63
|
-
return _super.call(this, 'image') || this;
|
|
64
|
-
}
|
|
65
|
-
return ImagesDirective;
|
|
66
|
-
}(ej2AngularBase.ArrayBase));
|
|
67
|
-
ImagesDirective.decorators = [
|
|
68
|
-
{ type: core.Directive, args: [{
|
|
69
|
-
selector: 'e-cell>e-images',
|
|
70
|
-
queries: {
|
|
71
|
-
children: new core.ContentChildren(ImageDirective)
|
|
72
|
-
},
|
|
73
|
-
},] },
|
|
74
|
-
];
|
|
75
|
-
/**
|
|
76
|
-
* @nocollapse
|
|
77
|
-
*/
|
|
78
|
-
ImagesDirective.ctorParameters = function () { return []; };
|
|
79
|
-
var input$1 = ['dataLabelSettings', 'height', 'id', 'isSeriesInRows', 'legendSettings', 'markerSettings', 'primaryXAxis', 'primaryYAxis', 'range', 'theme', 'title', 'type', 'width'];
|
|
80
|
-
var outputs$1 = [];
|
|
81
|
-
var ChartDirective = /** @class */ (function (_super) {
|
|
82
|
-
__extends(ChartDirective, _super);
|
|
83
|
-
/**
|
|
84
|
-
* @param {?} viewContainerRef
|
|
85
|
-
*/
|
|
86
|
-
function ChartDirective(viewContainerRef) {
|
|
87
|
-
var _this = _super.call(this) || this;
|
|
88
|
-
_this.viewContainerRef = viewContainerRef;
|
|
89
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
90
|
-
_this.registerEvents(outputs$1);
|
|
91
|
-
_this.directivePropList = input$1;
|
|
92
|
-
return _this;
|
|
93
|
-
}
|
|
94
|
-
return ChartDirective;
|
|
95
|
-
}(ej2AngularBase.ComplexBase));
|
|
96
|
-
ChartDirective.decorators = [
|
|
97
|
-
{ type: core.Directive, args: [{
|
|
98
|
-
selector: 'e-charts>e-chart',
|
|
99
|
-
inputs: input$1,
|
|
100
|
-
outputs: outputs$1,
|
|
101
|
-
queries: {}
|
|
102
|
-
},] },
|
|
103
|
-
];
|
|
104
|
-
/**
|
|
105
|
-
* @nocollapse
|
|
106
|
-
*/
|
|
107
|
-
ChartDirective.ctorParameters = function () { return [
|
|
108
|
-
{ type: core.ViewContainerRef, },
|
|
109
|
-
]; };
|
|
110
|
-
/**
|
|
111
|
-
* Chart Array Directive
|
|
112
|
-
*/
|
|
113
|
-
var ChartsDirective = /** @class */ (function (_super) {
|
|
114
|
-
__extends(ChartsDirective, _super);
|
|
115
|
-
function ChartsDirective() {
|
|
116
|
-
return _super.call(this, 'chart') || this;
|
|
117
|
-
}
|
|
118
|
-
return ChartsDirective;
|
|
119
|
-
}(ej2AngularBase.ArrayBase));
|
|
120
|
-
ChartsDirective.decorators = [
|
|
121
|
-
{ type: core.Directive, args: [{
|
|
122
|
-
selector: 'e-cell>e-charts',
|
|
123
|
-
queries: {
|
|
124
|
-
children: new core.ContentChildren(ChartDirective)
|
|
125
|
-
},
|
|
126
|
-
},] },
|
|
127
|
-
];
|
|
128
|
-
/**
|
|
129
|
-
* @nocollapse
|
|
130
|
-
*/
|
|
131
|
-
ChartsDirective.ctorParameters = function () { return []; };
|
|
132
|
-
var input$2 = ['chart', 'colSpan', 'format', 'formula', 'hyperlink', 'image', 'index', 'isLocked', 'isReadOnly', 'notes', 'rowSpan', 'style', 'validation', 'value', 'wrap'];
|
|
133
|
-
var outputs$2 = [];
|
|
134
|
-
/**
|
|
135
|
-
* `e-cell` directive represent a cell of the Angular Spreadsheet.
|
|
136
|
-
* It must be contained in a `e-row` directive.
|
|
137
|
-
* ```html
|
|
138
|
-
* <ejs-spreadsheet>
|
|
139
|
-
* <e-sheets>
|
|
140
|
-
* <e-sheet>
|
|
141
|
-
* <e-rows>
|
|
142
|
-
* <e-row>
|
|
143
|
-
* <e-cells>
|
|
144
|
-
* <e-cell value='A1'></e-cell>
|
|
145
|
-
* </e-cells>
|
|
146
|
-
* </e-row>
|
|
147
|
-
* </e-rows>
|
|
148
|
-
* </e-sheet>
|
|
149
|
-
* </e-sheets>
|
|
150
|
-
* </ejs-spreadsheet>
|
|
151
|
-
* ```
|
|
152
|
-
*/
|
|
153
|
-
var CellDirective = /** @class */ (function (_super) {
|
|
154
|
-
__extends(CellDirective, _super);
|
|
155
|
-
/**
|
|
156
|
-
* @param {?} viewContainerRef
|
|
157
|
-
*/
|
|
158
|
-
function CellDirective(viewContainerRef) {
|
|
159
|
-
var _this = _super.call(this) || this;
|
|
160
|
-
_this.viewContainerRef = viewContainerRef;
|
|
161
|
-
_this.tags = ['image', 'chart'];
|
|
162
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
163
|
-
_this.registerEvents(outputs$2);
|
|
164
|
-
_this.directivePropList = input$2;
|
|
165
|
-
return _this;
|
|
166
|
-
}
|
|
167
|
-
return CellDirective;
|
|
168
|
-
}(ej2AngularBase.ComplexBase));
|
|
169
|
-
CellDirective.decorators = [
|
|
170
|
-
{ type: core.Directive, args: [{
|
|
171
|
-
selector: 'e-cells>e-cell',
|
|
172
|
-
inputs: input$2,
|
|
173
|
-
outputs: outputs$2,
|
|
174
|
-
queries: {
|
|
175
|
-
childImage: new core.ContentChild(ImagesDirective),
|
|
176
|
-
childChart: new core.ContentChild(ChartsDirective)
|
|
177
|
-
}
|
|
178
|
-
},] },
|
|
179
|
-
];
|
|
180
|
-
/**
|
|
181
|
-
* @nocollapse
|
|
182
|
-
*/
|
|
183
|
-
CellDirective.ctorParameters = function () { return [
|
|
184
|
-
{ type: core.ViewContainerRef, },
|
|
185
|
-
]; };
|
|
186
|
-
/**
|
|
187
|
-
* Cell Array Directive
|
|
188
|
-
*/
|
|
189
|
-
var CellsDirective = /** @class */ (function (_super) {
|
|
190
|
-
__extends(CellsDirective, _super);
|
|
191
|
-
function CellsDirective() {
|
|
192
|
-
return _super.call(this, 'cells') || this;
|
|
193
|
-
}
|
|
194
|
-
return CellsDirective;
|
|
195
|
-
}(ej2AngularBase.ArrayBase));
|
|
196
|
-
CellsDirective.decorators = [
|
|
197
|
-
{ type: core.Directive, args: [{
|
|
198
|
-
selector: 'e-row>e-cells',
|
|
199
|
-
queries: {
|
|
200
|
-
children: new core.ContentChildren(CellDirective)
|
|
201
|
-
},
|
|
202
|
-
},] },
|
|
203
|
-
];
|
|
204
|
-
/**
|
|
205
|
-
* @nocollapse
|
|
206
|
-
*/
|
|
207
|
-
CellsDirective.ctorParameters = function () { return []; };
|
|
208
|
-
var input$3 = ['cells', 'customHeight', 'format', 'height', 'hidden', 'index', 'isReadOnly'];
|
|
209
|
-
var outputs$3 = [];
|
|
210
|
-
/**
|
|
211
|
-
* `e-row` directive represent a row of the Angular Spreadsheet.
|
|
212
|
-
* It must be contained in a `e-sheet` directive.
|
|
213
|
-
* ```html
|
|
214
|
-
* <ejs-spreadsheet>
|
|
215
|
-
* <e-sheets>
|
|
216
|
-
* <e-sheet>
|
|
217
|
-
* <e-rows>
|
|
218
|
-
* <e-row></e-row>
|
|
219
|
-
* </e-rows>
|
|
220
|
-
* </e-sheet>
|
|
221
|
-
* </e-sheets>
|
|
222
|
-
* </ejs-spreadsheet>
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
var RowDirective = /** @class */ (function (_super) {
|
|
226
|
-
__extends(RowDirective, _super);
|
|
227
|
-
/**
|
|
228
|
-
* @param {?} viewContainerRef
|
|
229
|
-
*/
|
|
230
|
-
function RowDirective(viewContainerRef) {
|
|
231
|
-
var _this = _super.call(this) || this;
|
|
232
|
-
_this.viewContainerRef = viewContainerRef;
|
|
233
|
-
_this.tags = ['cells'];
|
|
234
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
235
|
-
_this.registerEvents(outputs$3);
|
|
236
|
-
_this.directivePropList = input$3;
|
|
237
|
-
return _this;
|
|
238
|
-
}
|
|
239
|
-
return RowDirective;
|
|
240
|
-
}(ej2AngularBase.ComplexBase));
|
|
241
|
-
RowDirective.decorators = [
|
|
242
|
-
{ type: core.Directive, args: [{
|
|
243
|
-
selector: 'e-rows>e-row',
|
|
244
|
-
inputs: input$3,
|
|
245
|
-
outputs: outputs$3,
|
|
246
|
-
queries: {
|
|
247
|
-
childCells: new core.ContentChild(CellsDirective)
|
|
248
|
-
}
|
|
249
|
-
},] },
|
|
250
|
-
];
|
|
251
|
-
/**
|
|
252
|
-
* @nocollapse
|
|
253
|
-
*/
|
|
254
|
-
RowDirective.ctorParameters = function () { return [
|
|
255
|
-
{ type: core.ViewContainerRef, },
|
|
256
|
-
]; };
|
|
257
|
-
/**
|
|
258
|
-
* Row Array Directive
|
|
259
|
-
*/
|
|
260
|
-
var RowsDirective = /** @class */ (function (_super) {
|
|
261
|
-
__extends(RowsDirective, _super);
|
|
262
|
-
function RowsDirective() {
|
|
263
|
-
return _super.call(this, 'rows') || this;
|
|
264
|
-
}
|
|
265
|
-
return RowsDirective;
|
|
266
|
-
}(ej2AngularBase.ArrayBase));
|
|
267
|
-
RowsDirective.decorators = [
|
|
268
|
-
{ type: core.Directive, args: [{
|
|
269
|
-
selector: 'e-sheet>e-rows',
|
|
270
|
-
queries: {
|
|
271
|
-
children: new core.ContentChildren(RowDirective)
|
|
272
|
-
},
|
|
273
|
-
},] },
|
|
274
|
-
];
|
|
275
|
-
/**
|
|
276
|
-
* @nocollapse
|
|
277
|
-
*/
|
|
278
|
-
RowsDirective.ctorParameters = function () { return []; };
|
|
279
|
-
var input$4 = ['customWidth', 'format', 'hidden', 'index', 'isLocked', 'isReadOnly', 'validation', 'width'];
|
|
280
|
-
var outputs$4 = [];
|
|
281
|
-
/**
|
|
282
|
-
* `e-column` directive represent a column of the Angular Spreadsheet.
|
|
283
|
-
* It must be contained in a `e-sheet` directive.
|
|
284
|
-
* ```html
|
|
285
|
-
* <ejs-spreadsheet>
|
|
286
|
-
* <e-sheets>
|
|
287
|
-
* <e-sheet>
|
|
288
|
-
* <e-columns>
|
|
289
|
-
* <e-column width='100'></e-column>
|
|
290
|
-
* </e-columns>
|
|
291
|
-
* </e-sheet>
|
|
292
|
-
* </e-sheets>
|
|
293
|
-
* </ejs-spreadsheet>
|
|
294
|
-
* ```
|
|
295
|
-
*/
|
|
296
|
-
var ColumnDirective = /** @class */ (function (_super) {
|
|
297
|
-
__extends(ColumnDirective, _super);
|
|
298
|
-
/**
|
|
299
|
-
* @param {?} viewContainerRef
|
|
300
|
-
*/
|
|
301
|
-
function ColumnDirective(viewContainerRef) {
|
|
302
|
-
var _this = _super.call(this) || this;
|
|
303
|
-
_this.viewContainerRef = viewContainerRef;
|
|
304
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
305
|
-
_this.registerEvents(outputs$4);
|
|
306
|
-
_this.directivePropList = input$4;
|
|
307
|
-
return _this;
|
|
308
|
-
}
|
|
309
|
-
return ColumnDirective;
|
|
310
|
-
}(ej2AngularBase.ComplexBase));
|
|
311
|
-
ColumnDirective.decorators = [
|
|
312
|
-
{ type: core.Directive, args: [{
|
|
313
|
-
selector: 'e-columns>e-column',
|
|
314
|
-
inputs: input$4,
|
|
315
|
-
outputs: outputs$4,
|
|
316
|
-
queries: {}
|
|
317
|
-
},] },
|
|
318
|
-
];
|
|
319
|
-
/**
|
|
320
|
-
* @nocollapse
|
|
321
|
-
*/
|
|
322
|
-
ColumnDirective.ctorParameters = function () { return [
|
|
323
|
-
{ type: core.ViewContainerRef, },
|
|
324
|
-
]; };
|
|
325
|
-
/**
|
|
326
|
-
* Column Array Directive
|
|
327
|
-
*/
|
|
328
|
-
var ColumnsDirective = /** @class */ (function (_super) {
|
|
329
|
-
__extends(ColumnsDirective, _super);
|
|
330
|
-
function ColumnsDirective() {
|
|
331
|
-
return _super.call(this, 'columns') || this;
|
|
332
|
-
}
|
|
333
|
-
return ColumnsDirective;
|
|
334
|
-
}(ej2AngularBase.ArrayBase));
|
|
335
|
-
ColumnsDirective.decorators = [
|
|
336
|
-
{ type: core.Directive, args: [{
|
|
337
|
-
selector: 'e-sheet>e-columns',
|
|
338
|
-
queries: {
|
|
339
|
-
children: new core.ContentChildren(ColumnDirective)
|
|
340
|
-
},
|
|
341
|
-
},] },
|
|
342
|
-
];
|
|
343
|
-
/**
|
|
344
|
-
* @nocollapse
|
|
345
|
-
*/
|
|
346
|
-
ColumnsDirective.ctorParameters = function () { return []; };
|
|
347
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
348
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
349
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
350
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
351
|
-
else
|
|
352
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
353
|
-
if (d = decorators[i])
|
|
354
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
355
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
356
|
-
};
|
|
357
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
358
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
359
|
-
return Reflect.metadata(k, v);
|
|
360
|
-
};
|
|
361
|
-
var input$5 = ['address', 'dataSource', 'fieldsOrder', 'query', 'showFieldAsHeader', 'startCell', 'template'];
|
|
362
|
-
var outputs$5 = [];
|
|
363
|
-
/**
|
|
364
|
-
* `e-range` directive represent a range of the Angular Spreadsheet.
|
|
365
|
-
* It must be contained in a `e-sheet` directive.
|
|
366
|
-
* ```html
|
|
367
|
-
* <ejs-spreadsheet>
|
|
368
|
-
* <e-sheets>
|
|
369
|
-
* <e-sheet>
|
|
370
|
-
* <e-ranges>
|
|
371
|
-
* <e-range [dataSource]='data'></e-range>
|
|
372
|
-
* </e-ranges>
|
|
373
|
-
* </e-sheet>
|
|
374
|
-
* </e-sheets>
|
|
375
|
-
* </ejs-spreadsheet>
|
|
376
|
-
* ```
|
|
377
|
-
*/
|
|
378
|
-
var RangeDirective = /** @class */ (function (_super) {
|
|
379
|
-
__extends(RangeDirective, _super);
|
|
380
|
-
/**
|
|
381
|
-
* @param {?} viewContainerRef
|
|
382
|
-
*/
|
|
383
|
-
function RangeDirective(viewContainerRef) {
|
|
384
|
-
var _this = _super.call(this) || this;
|
|
385
|
-
_this.viewContainerRef = viewContainerRef;
|
|
386
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
387
|
-
_this.registerEvents(outputs$5);
|
|
388
|
-
_this.directivePropList = input$5;
|
|
389
|
-
return _this;
|
|
390
|
-
}
|
|
391
|
-
return RangeDirective;
|
|
392
|
-
}(ej2AngularBase.ComplexBase));
|
|
393
|
-
RangeDirective.decorators = [
|
|
394
|
-
{ type: core.Directive, args: [{
|
|
395
|
-
selector: 'e-ranges>e-range',
|
|
396
|
-
inputs: input$5,
|
|
397
|
-
outputs: outputs$5,
|
|
398
|
-
queries: {}
|
|
399
|
-
},] },
|
|
400
|
-
];
|
|
401
|
-
/**
|
|
402
|
-
* @nocollapse
|
|
403
|
-
*/
|
|
404
|
-
RangeDirective.ctorParameters = function () { return [
|
|
405
|
-
{ type: core.ViewContainerRef, },
|
|
406
|
-
]; };
|
|
407
|
-
RangeDirective.propDecorators = {
|
|
408
|
-
'template': [{ type: core.ContentChild, args: ['template',] },],
|
|
409
|
-
};
|
|
410
|
-
__decorate([
|
|
411
|
-
ej2AngularBase.Template(),
|
|
412
|
-
__metadata("design:type", Object)
|
|
413
|
-
], RangeDirective.prototype, "template", void 0);
|
|
414
|
-
/**
|
|
415
|
-
* Range Array Directive
|
|
416
|
-
*/
|
|
417
|
-
var RangesDirective = /** @class */ (function (_super) {
|
|
418
|
-
__extends(RangesDirective, _super);
|
|
419
|
-
function RangesDirective() {
|
|
420
|
-
return _super.call(this, 'ranges') || this;
|
|
421
|
-
}
|
|
422
|
-
return RangesDirective;
|
|
423
|
-
}(ej2AngularBase.ArrayBase));
|
|
424
|
-
RangesDirective.decorators = [
|
|
425
|
-
{ type: core.Directive, args: [{
|
|
426
|
-
selector: 'e-sheet>e-ranges',
|
|
427
|
-
queries: {
|
|
428
|
-
children: new core.ContentChildren(RangeDirective)
|
|
429
|
-
},
|
|
430
|
-
},] },
|
|
431
|
-
];
|
|
432
|
-
/**
|
|
433
|
-
* @nocollapse
|
|
434
|
-
*/
|
|
435
|
-
RangesDirective.ctorParameters = function () { return []; };
|
|
436
|
-
var input$6 = ['cFColor', 'format', 'range', 'type', 'value'];
|
|
437
|
-
var outputs$6 = [];
|
|
438
|
-
/**
|
|
439
|
-
* `e-conditionalformat` directive represent a conditionalformat of the Angular Spreadsheet.
|
|
440
|
-
* It must be contained in a `e-sheet` directive.
|
|
441
|
-
* ```html
|
|
442
|
-
* <ejs-spreadsheet>
|
|
443
|
-
* <e-sheets>
|
|
444
|
-
* <e-sheet>
|
|
445
|
-
* <e-conditionalformats>
|
|
446
|
-
* <e-conditionalformat></e-conditionalformat>
|
|
447
|
-
* </e-conditionalformats>
|
|
448
|
-
* </e-sheet>
|
|
449
|
-
* </e-sheets>
|
|
450
|
-
* </ejs-spreadsheet>
|
|
451
|
-
* ```
|
|
452
|
-
*/
|
|
453
|
-
var ConditionalFormatDirective = /** @class */ (function (_super) {
|
|
454
|
-
__extends(ConditionalFormatDirective, _super);
|
|
455
|
-
/**
|
|
456
|
-
* @param {?} viewContainerRef
|
|
457
|
-
*/
|
|
458
|
-
function ConditionalFormatDirective(viewContainerRef) {
|
|
459
|
-
var _this = _super.call(this) || this;
|
|
460
|
-
_this.viewContainerRef = viewContainerRef;
|
|
461
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
462
|
-
_this.registerEvents(outputs$6);
|
|
463
|
-
_this.directivePropList = input$6;
|
|
464
|
-
return _this;
|
|
465
|
-
}
|
|
466
|
-
return ConditionalFormatDirective;
|
|
467
|
-
}(ej2AngularBase.ComplexBase));
|
|
468
|
-
ConditionalFormatDirective.decorators = [
|
|
469
|
-
{ type: core.Directive, args: [{
|
|
470
|
-
selector: 'e-conditionalformats>e-conditionalformat',
|
|
471
|
-
inputs: input$6,
|
|
472
|
-
outputs: outputs$6,
|
|
473
|
-
queries: {}
|
|
474
|
-
},] },
|
|
475
|
-
];
|
|
476
|
-
/**
|
|
477
|
-
* @nocollapse
|
|
478
|
-
*/
|
|
479
|
-
ConditionalFormatDirective.ctorParameters = function () { return [
|
|
480
|
-
{ type: core.ViewContainerRef, },
|
|
481
|
-
]; };
|
|
482
|
-
/**
|
|
483
|
-
* ConditionalFormat Array Directive
|
|
484
|
-
*/
|
|
485
|
-
var ConditionalFormatsDirective = /** @class */ (function (_super) {
|
|
486
|
-
__extends(ConditionalFormatsDirective, _super);
|
|
487
|
-
function ConditionalFormatsDirective() {
|
|
488
|
-
return _super.call(this, 'conditionalformats') || this;
|
|
489
|
-
}
|
|
490
|
-
return ConditionalFormatsDirective;
|
|
491
|
-
}(ej2AngularBase.ArrayBase));
|
|
492
|
-
ConditionalFormatsDirective.decorators = [
|
|
493
|
-
{ type: core.Directive, args: [{
|
|
494
|
-
selector: 'e-sheet>e-conditionalformats',
|
|
495
|
-
queries: {
|
|
496
|
-
children: new core.ContentChildren(ConditionalFormatDirective)
|
|
497
|
-
},
|
|
498
|
-
},] },
|
|
499
|
-
];
|
|
500
|
-
/**
|
|
501
|
-
* @nocollapse
|
|
502
|
-
*/
|
|
503
|
-
ConditionalFormatsDirective.ctorParameters = function () { return []; };
|
|
504
|
-
var input$7 = ['activeCell', 'colCount', 'columns', 'conditionalFormats', 'frozenColumns', 'frozenRows', 'index', 'isProtected', 'name', 'paneTopLeftCell', 'password', 'protectSettings', 'ranges', 'rowCount', 'rows', 'selectedRange', 'showGridLines', 'showHeaders', 'standardHeight', 'state', 'topLeftCell', 'usedRange'];
|
|
505
|
-
var outputs$7 = [];
|
|
506
|
-
/**
|
|
507
|
-
* `e-sheet` directive represent a sheet of the Angular Spreadsheet.
|
|
508
|
-
* It must be contained in a Spreadsheet component(`ejs-spreadsheet`).
|
|
509
|
-
* ```html
|
|
510
|
-
* <ejs-spreadsheet>
|
|
511
|
-
* <e-sheets>
|
|
512
|
-
* <e-sheet></e-sheet>
|
|
513
|
-
* <e-sheet></e-sheet>
|
|
514
|
-
* </e-sheets>
|
|
515
|
-
* </ejs-spreadsheet>
|
|
516
|
-
* ```
|
|
517
|
-
*/
|
|
518
|
-
var SheetDirective = /** @class */ (function (_super) {
|
|
519
|
-
__extends(SheetDirective, _super);
|
|
520
|
-
/**
|
|
521
|
-
* @param {?} viewContainerRef
|
|
522
|
-
*/
|
|
523
|
-
function SheetDirective(viewContainerRef) {
|
|
524
|
-
var _this = _super.call(this) || this;
|
|
525
|
-
_this.viewContainerRef = viewContainerRef;
|
|
526
|
-
_this.tags = ['rows', 'columns', 'ranges', 'conditionalFormats'];
|
|
527
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
528
|
-
_this.registerEvents(outputs$7);
|
|
529
|
-
_this.directivePropList = input$7;
|
|
530
|
-
return _this;
|
|
531
|
-
}
|
|
532
|
-
return SheetDirective;
|
|
533
|
-
}(ej2AngularBase.ComplexBase));
|
|
534
|
-
SheetDirective.decorators = [
|
|
535
|
-
{ type: core.Directive, args: [{
|
|
536
|
-
selector: 'e-sheets>e-sheet',
|
|
537
|
-
inputs: input$7,
|
|
538
|
-
outputs: outputs$7,
|
|
539
|
-
queries: {
|
|
540
|
-
childRows: new core.ContentChild(RowsDirective),
|
|
541
|
-
childColumns: new core.ContentChild(ColumnsDirective),
|
|
542
|
-
childRanges: new core.ContentChild(RangesDirective),
|
|
543
|
-
childConditionalFormats: new core.ContentChild(ConditionalFormatsDirective)
|
|
544
|
-
}
|
|
545
|
-
},] },
|
|
546
|
-
];
|
|
547
|
-
/**
|
|
548
|
-
* @nocollapse
|
|
549
|
-
*/
|
|
550
|
-
SheetDirective.ctorParameters = function () { return [
|
|
551
|
-
{ type: core.ViewContainerRef, },
|
|
552
|
-
]; };
|
|
553
|
-
/**
|
|
554
|
-
* Sheet Array Directive
|
|
555
|
-
*/
|
|
556
|
-
var SheetsDirective = /** @class */ (function (_super) {
|
|
557
|
-
__extends(SheetsDirective, _super);
|
|
558
|
-
function SheetsDirective() {
|
|
559
|
-
return _super.call(this, 'sheets') || this;
|
|
560
|
-
}
|
|
561
|
-
return SheetsDirective;
|
|
562
|
-
}(ej2AngularBase.ArrayBase));
|
|
563
|
-
SheetsDirective.decorators = [
|
|
564
|
-
{ type: core.Directive, args: [{
|
|
565
|
-
selector: 'ejs-spreadsheet>e-sheets',
|
|
566
|
-
queries: {
|
|
567
|
-
children: new core.ContentChildren(SheetDirective)
|
|
568
|
-
},
|
|
569
|
-
},] },
|
|
570
|
-
];
|
|
571
|
-
/**
|
|
572
|
-
* @nocollapse
|
|
573
|
-
*/
|
|
574
|
-
SheetsDirective.ctorParameters = function () { return []; };
|
|
575
|
-
var input$8 = ['comment', 'name', 'refersTo', 'scope'];
|
|
576
|
-
var outputs$8 = [];
|
|
577
|
-
/**
|
|
578
|
-
* `e-definedname` directive represent a defined name of the Angular Spreadsheet.
|
|
579
|
-
* It must be contained in a Spreadsheet component(`ejs-spreadsheet`).
|
|
580
|
-
* ```html
|
|
581
|
-
* <ejs-spreadsheet>
|
|
582
|
-
* <e-definednames>
|
|
583
|
-
* <e-definedname></e-definedname>
|
|
584
|
-
* <e-definedname></e-definedname>
|
|
585
|
-
* </e-definednames>
|
|
586
|
-
* </ejs-spreadsheet>
|
|
587
|
-
* ```
|
|
588
|
-
*/
|
|
589
|
-
var DefinedNameDirective = /** @class */ (function (_super) {
|
|
590
|
-
__extends(DefinedNameDirective, _super);
|
|
591
|
-
/**
|
|
592
|
-
* @param {?} viewContainerRef
|
|
593
|
-
*/
|
|
594
|
-
function DefinedNameDirective(viewContainerRef) {
|
|
595
|
-
var _this = _super.call(this) || this;
|
|
596
|
-
_this.viewContainerRef = viewContainerRef;
|
|
597
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
598
|
-
_this.registerEvents(outputs$8);
|
|
599
|
-
_this.directivePropList = input$8;
|
|
600
|
-
return _this;
|
|
601
|
-
}
|
|
602
|
-
return DefinedNameDirective;
|
|
603
|
-
}(ej2AngularBase.ComplexBase));
|
|
604
|
-
DefinedNameDirective.decorators = [
|
|
605
|
-
{ type: core.Directive, args: [{
|
|
606
|
-
selector: 'e-definednames>e-definedname',
|
|
607
|
-
inputs: input$8,
|
|
608
|
-
outputs: outputs$8,
|
|
609
|
-
queries: {}
|
|
610
|
-
},] },
|
|
611
|
-
];
|
|
612
|
-
/**
|
|
613
|
-
* @nocollapse
|
|
614
|
-
*/
|
|
615
|
-
DefinedNameDirective.ctorParameters = function () { return [
|
|
616
|
-
{ type: core.ViewContainerRef, },
|
|
617
|
-
]; };
|
|
618
|
-
/**
|
|
619
|
-
* DefinedName Array Directive
|
|
620
|
-
*/
|
|
621
|
-
var DefinedNamesDirective = /** @class */ (function (_super) {
|
|
622
|
-
__extends(DefinedNamesDirective, _super);
|
|
623
|
-
function DefinedNamesDirective() {
|
|
624
|
-
return _super.call(this, 'definednames') || this;
|
|
625
|
-
}
|
|
626
|
-
return DefinedNamesDirective;
|
|
627
|
-
}(ej2AngularBase.ArrayBase));
|
|
628
|
-
DefinedNamesDirective.decorators = [
|
|
629
|
-
{ type: core.Directive, args: [{
|
|
630
|
-
selector: 'ejs-spreadsheet>e-definednames',
|
|
631
|
-
queries: {
|
|
632
|
-
children: new core.ContentChildren(DefinedNameDirective)
|
|
633
|
-
},
|
|
634
|
-
},] },
|
|
635
|
-
];
|
|
636
|
-
/**
|
|
637
|
-
* @nocollapse
|
|
638
|
-
*/
|
|
639
|
-
DefinedNamesDirective.ctorParameters = function () { return []; };
|
|
640
|
-
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
641
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
642
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
643
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
644
|
-
else
|
|
645
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
646
|
-
if (d = decorators[i])
|
|
647
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
648
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
649
|
-
};
|
|
650
|
-
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
651
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
652
|
-
return Reflect.metadata(k, v);
|
|
653
|
-
};
|
|
654
|
-
var inputs = ['activeSheetIndex', 'allowAutoFill', 'allowCellFormatting', 'allowChart', 'allowConditionalFormat', 'allowDataValidation', 'allowDelete', 'allowEditing', 'allowFiltering', 'allowFindAndReplace', 'allowFreezePane', 'allowHyperlink', 'allowImage', 'allowInsert', 'allowMerge', 'allowNumberFormatting', 'allowOpen', 'allowPrint', 'allowResizing', 'allowSave', 'allowScrolling', 'allowSorting', 'allowUndoRedo', 'allowWrap', 'autoFillSettings', 'calculationMode', 'cellStyle', 'cssClass', 'currencyCode', 'definedNames', 'enableClipboard', 'enableContextMenu', 'enableKeyboardNavigation', 'enableKeyboardShortcut', 'enableNotes', 'enablePersistence', 'enableRtl', 'height', 'isProtected', 'listSeparator', 'locale', 'openSettings', 'openUrl', 'password', 'saveUrl', 'scrollSettings', 'selectionSettings', 'sheets', 'showAggregate', 'showFormulaBar', 'showRibbon', 'showSheetTabs', 'width'];
|
|
655
|
-
var outputs$9 = ['actionBegin', 'actionComplete', 'afterHyperlinkClick', 'afterHyperlinkCreate', 'beforeCellFormat', 'beforeCellRender', 'beforeCellSave', 'beforeCellUpdate', 'beforeConditionalFormat', 'beforeDataBound', 'beforeHyperlinkClick', 'beforeHyperlinkCreate', 'beforeOpen', 'beforeSave', 'beforeSelect', 'beforeSort', 'cellEdit', 'cellEdited', 'cellEditing', 'cellSave', 'contextMenuBeforeClose', 'contextMenuBeforeOpen', 'contextMenuItemSelect', 'created', 'dataBound', 'dataSourceChanged', 'dialogBeforeOpen', 'fileMenuBeforeClose', 'fileMenuBeforeOpen', 'fileMenuItemSelect', 'openComplete', 'openFailure', 'queryCellInfo', 'saveComplete', 'select', 'sortComplete'];
|
|
656
|
-
var twoWays = [''];
|
|
657
|
-
/**
|
|
658
|
-
* `ejs-spreadsheet` represents the Angular Spreadsheet Component.
|
|
659
|
-
* ```html
|
|
660
|
-
* <ejs-spreadsheet></ejs-spreadsheet>
|
|
661
|
-
* ```
|
|
662
|
-
*/
|
|
663
|
-
exports.SpreadsheetComponent = /** @class */ (function (_super) {
|
|
664
|
-
__extends(SpreadsheetComponent, _super);
|
|
665
|
-
/**
|
|
666
|
-
* @param {?} ngEle
|
|
667
|
-
* @param {?} srenderer
|
|
668
|
-
* @param {?} viewContainerRef
|
|
669
|
-
* @param {?} injector
|
|
670
|
-
*/
|
|
671
|
-
function SpreadsheetComponent(ngEle, srenderer, viewContainerRef, injector) {
|
|
672
|
-
var _this = _super.call(this) || this;
|
|
673
|
-
_this.ngEle = ngEle;
|
|
674
|
-
_this.srenderer = srenderer;
|
|
675
|
-
_this.viewContainerRef = viewContainerRef;
|
|
676
|
-
_this.injector = injector;
|
|
677
|
-
_this.tags = ['sheets', 'definedNames'];
|
|
678
|
-
_this.element = _this.ngEle.nativeElement;
|
|
679
|
-
_this.injectedModules = _this.injectedModules || [];
|
|
680
|
-
try {
|
|
681
|
-
var mod = _this.injector.get('SpreadsheetClipboard');
|
|
682
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
683
|
-
_this.injectedModules.push(mod);
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
catch (_a) { }
|
|
687
|
-
try {
|
|
688
|
-
var mod = _this.injector.get('SpreadsheetEdit');
|
|
689
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
690
|
-
_this.injectedModules.push(mod);
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
catch (_b) { }
|
|
694
|
-
try {
|
|
695
|
-
var mod = _this.injector.get('SpreadsheetKeyboardNavigation');
|
|
696
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
697
|
-
_this.injectedModules.push(mod);
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
catch (_c) { }
|
|
701
|
-
try {
|
|
702
|
-
var mod = _this.injector.get('SpreadsheetKeyboardShortcut');
|
|
703
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
704
|
-
_this.injectedModules.push(mod);
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
catch (_d) { }
|
|
708
|
-
try {
|
|
709
|
-
var mod = _this.injector.get('SpreadsheetSelection');
|
|
710
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
711
|
-
_this.injectedModules.push(mod);
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
catch (_e) { }
|
|
715
|
-
try {
|
|
716
|
-
var mod = _this.injector.get('SpreadsheetContextMenu');
|
|
717
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
718
|
-
_this.injectedModules.push(mod);
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
catch (_f) { }
|
|
722
|
-
try {
|
|
723
|
-
var mod = _this.injector.get('SpreadsheetFormulaBar');
|
|
724
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
725
|
-
_this.injectedModules.push(mod);
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
catch (_g) { }
|
|
729
|
-
try {
|
|
730
|
-
var mod = _this.injector.get('SpreadsheetRibbon');
|
|
731
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
732
|
-
_this.injectedModules.push(mod);
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
catch (_h) { }
|
|
736
|
-
try {
|
|
737
|
-
var mod = _this.injector.get('SpreadsheetSave');
|
|
738
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
739
|
-
_this.injectedModules.push(mod);
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
catch (_j) { }
|
|
743
|
-
try {
|
|
744
|
-
var mod = _this.injector.get('SpreadsheetOpen');
|
|
745
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
746
|
-
_this.injectedModules.push(mod);
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
catch (_k) { }
|
|
750
|
-
try {
|
|
751
|
-
var mod = _this.injector.get('SpreadsheetSheetTabs');
|
|
752
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
753
|
-
_this.injectedModules.push(mod);
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
catch (_l) { }
|
|
757
|
-
try {
|
|
758
|
-
var mod = _this.injector.get('SpreadsheetDataBind');
|
|
759
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
760
|
-
_this.injectedModules.push(mod);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
catch (_m) { }
|
|
764
|
-
try {
|
|
765
|
-
var mod = _this.injector.get('SpreadsheetCellFormat');
|
|
766
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
767
|
-
_this.injectedModules.push(mod);
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
catch (_o) { }
|
|
771
|
-
try {
|
|
772
|
-
var mod = _this.injector.get('SpreadsheetNumberFormat');
|
|
773
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
774
|
-
_this.injectedModules.push(mod);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
catch (_p) { }
|
|
778
|
-
try {
|
|
779
|
-
var mod = _this.injector.get('SpreadsheetFormula');
|
|
780
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
781
|
-
_this.injectedModules.push(mod);
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
catch (_q) { }
|
|
785
|
-
_this.registerEvents(outputs$9);
|
|
786
|
-
_this.addTwoWay.call(_this, twoWays);
|
|
787
|
-
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
788
|
-
_this.context = new ej2AngularBase.ComponentBase();
|
|
789
|
-
return _this;
|
|
790
|
-
}
|
|
791
|
-
/**
|
|
792
|
-
* @return {?}
|
|
793
|
-
*/
|
|
794
|
-
SpreadsheetComponent.prototype.ngOnInit = function () {
|
|
795
|
-
this.context.ngOnInit(this);
|
|
796
|
-
};
|
|
797
|
-
/**
|
|
798
|
-
* @return {?}
|
|
799
|
-
*/
|
|
800
|
-
SpreadsheetComponent.prototype.ngAfterViewInit = function () {
|
|
801
|
-
this.context.ngAfterViewInit(this);
|
|
802
|
-
};
|
|
803
|
-
/**
|
|
804
|
-
* @return {?}
|
|
805
|
-
*/
|
|
806
|
-
SpreadsheetComponent.prototype.ngOnDestroy = function () {
|
|
807
|
-
this.context.ngOnDestroy(this);
|
|
808
|
-
};
|
|
809
|
-
/**
|
|
810
|
-
* @return {?}
|
|
811
|
-
*/
|
|
812
|
-
SpreadsheetComponent.prototype.ngAfterContentChecked = function () {
|
|
813
|
-
this.tagObjects[0].instance = this.childSheets;
|
|
814
|
-
if (this.childDefinedNames) {
|
|
815
|
-
this.tagObjects[1].instance = /** @type {?} */ (this.childDefinedNames);
|
|
816
|
-
}
|
|
817
|
-
this.context.ngAfterContentChecked(this);
|
|
818
|
-
};
|
|
819
|
-
return SpreadsheetComponent;
|
|
820
|
-
}(ej2Spreadsheet.Spreadsheet));
|
|
821
|
-
exports.SpreadsheetComponent.decorators = [
|
|
822
|
-
{ type: core.Component, args: [{
|
|
823
|
-
selector: 'ejs-spreadsheet',
|
|
824
|
-
inputs: inputs,
|
|
825
|
-
outputs: outputs$9,
|
|
826
|
-
template: '',
|
|
827
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
828
|
-
queries: {
|
|
829
|
-
childSheets: new core.ContentChild(SheetsDirective),
|
|
830
|
-
childDefinedNames: new core.ContentChild(DefinedNamesDirective)
|
|
831
|
-
}
|
|
832
|
-
},] },
|
|
833
|
-
];
|
|
834
|
-
/**
|
|
835
|
-
* @nocollapse
|
|
836
|
-
*/
|
|
837
|
-
exports.SpreadsheetComponent.ctorParameters = function () { return [
|
|
838
|
-
{ type: core.ElementRef, },
|
|
839
|
-
{ type: core.Renderer2, },
|
|
840
|
-
{ type: core.ViewContainerRef, },
|
|
841
|
-
{ type: core.Injector, },
|
|
842
|
-
]; };
|
|
843
|
-
exports.SpreadsheetComponent.propDecorators = {
|
|
844
|
-
'template': [{ type: core.ContentChild, args: ['template',] },],
|
|
845
|
-
};
|
|
846
|
-
__decorate$1([
|
|
847
|
-
ej2AngularBase.Template(),
|
|
848
|
-
__metadata$1("design:type", Object)
|
|
849
|
-
], exports.SpreadsheetComponent.prototype, "template", void 0);
|
|
850
|
-
exports.SpreadsheetComponent = __decorate$1([
|
|
851
|
-
ej2AngularBase.ComponentMixins([ej2AngularBase.ComponentBase]),
|
|
852
|
-
__metadata$1("design:paramtypes", [core.ElementRef,
|
|
853
|
-
core.Renderer2,
|
|
854
|
-
core.ViewContainerRef,
|
|
855
|
-
core.Injector])
|
|
856
|
-
], exports.SpreadsheetComponent);
|
|
857
|
-
/**
|
|
858
|
-
* NgModule definition for the Spreadsheet component.
|
|
859
|
-
*/
|
|
860
|
-
var SpreadsheetModule = /** @class */ (function () {
|
|
861
|
-
function SpreadsheetModule() {
|
|
862
|
-
}
|
|
863
|
-
return SpreadsheetModule;
|
|
864
|
-
}());
|
|
865
|
-
SpreadsheetModule.decorators = [
|
|
866
|
-
{ type: core.NgModule, args: [{
|
|
867
|
-
imports: [common.CommonModule],
|
|
868
|
-
declarations: [
|
|
869
|
-
exports.SpreadsheetComponent,
|
|
870
|
-
ImageDirective,
|
|
871
|
-
ImagesDirective,
|
|
872
|
-
ChartDirective,
|
|
873
|
-
ChartsDirective,
|
|
874
|
-
CellDirective,
|
|
875
|
-
CellsDirective,
|
|
876
|
-
RowDirective,
|
|
877
|
-
RowsDirective,
|
|
878
|
-
ColumnDirective,
|
|
879
|
-
ColumnsDirective,
|
|
880
|
-
RangeDirective,
|
|
881
|
-
RangesDirective,
|
|
882
|
-
ConditionalFormatDirective,
|
|
883
|
-
ConditionalFormatsDirective,
|
|
884
|
-
SheetDirective,
|
|
885
|
-
SheetsDirective,
|
|
886
|
-
DefinedNameDirective,
|
|
887
|
-
DefinedNamesDirective
|
|
888
|
-
],
|
|
889
|
-
exports: [
|
|
890
|
-
exports.SpreadsheetComponent,
|
|
891
|
-
ImageDirective,
|
|
892
|
-
ImagesDirective,
|
|
893
|
-
ChartDirective,
|
|
894
|
-
ChartsDirective,
|
|
895
|
-
CellDirective,
|
|
896
|
-
CellsDirective,
|
|
897
|
-
RowDirective,
|
|
898
|
-
RowsDirective,
|
|
899
|
-
ColumnDirective,
|
|
900
|
-
ColumnsDirective,
|
|
901
|
-
RangeDirective,
|
|
902
|
-
RangesDirective,
|
|
903
|
-
ConditionalFormatDirective,
|
|
904
|
-
ConditionalFormatsDirective,
|
|
905
|
-
SheetDirective,
|
|
906
|
-
SheetsDirective,
|
|
907
|
-
DefinedNameDirective,
|
|
908
|
-
DefinedNamesDirective
|
|
909
|
-
]
|
|
910
|
-
},] },
|
|
911
|
-
];
|
|
912
|
-
/**
|
|
913
|
-
* @nocollapse
|
|
914
|
-
*/
|
|
915
|
-
SpreadsheetModule.ctorParameters = function () { return []; };
|
|
916
|
-
var ClipboardService = { provide: 'SpreadsheetClipboard', useValue: ej2Spreadsheet.Clipboard };
|
|
917
|
-
var EditService = { provide: 'SpreadsheetEdit', useValue: ej2Spreadsheet.Edit };
|
|
918
|
-
var KeyboardNavigationService = { provide: 'SpreadsheetKeyboardNavigation', useValue: ej2Spreadsheet.KeyboardNavigation };
|
|
919
|
-
var KeyboardShortcutService = { provide: 'SpreadsheetKeyboardShortcut', useValue: ej2Spreadsheet.KeyboardShortcut };
|
|
920
|
-
var SelectionService = { provide: 'SpreadsheetSelection', useValue: ej2Spreadsheet.Selection };
|
|
921
|
-
var ContextMenuService = { provide: 'SpreadsheetContextMenu', useValue: ej2Spreadsheet.ContextMenu };
|
|
922
|
-
var FormulaBarService = { provide: 'SpreadsheetFormulaBar', useValue: ej2Spreadsheet.FormulaBar };
|
|
923
|
-
var RibbonService = { provide: 'SpreadsheetRibbon', useValue: ej2Spreadsheet.Ribbon };
|
|
924
|
-
var SaveService = { provide: 'SpreadsheetSave', useValue: ej2Spreadsheet.Save };
|
|
925
|
-
var OpenService = { provide: 'SpreadsheetOpen', useValue: ej2Spreadsheet.Open };
|
|
926
|
-
var SheetTabsService = { provide: 'SpreadsheetSheetTabs', useValue: ej2Spreadsheet.SheetTabs };
|
|
927
|
-
var DataBindService = { provide: 'SpreadsheetDataBind', useValue: ej2Spreadsheet.DataBind };
|
|
928
|
-
var CellFormatService = { provide: 'SpreadsheetCellFormat', useValue: ej2Spreadsheet.CellFormat };
|
|
929
|
-
var NumberFormatService = { provide: 'SpreadsheetNumberFormat', useValue: ej2Spreadsheet.NumberFormat };
|
|
930
|
-
var FormulaService = { provide: 'SpreadsheetFormula', useValue: ej2Spreadsheet.Formula };
|
|
931
|
-
/**
|
|
932
|
-
* NgModule definition for the Spreadsheet component with providers.
|
|
933
|
-
*/
|
|
934
|
-
var SpreadsheetAllModule = /** @class */ (function () {
|
|
935
|
-
function SpreadsheetAllModule() {
|
|
936
|
-
}
|
|
937
|
-
return SpreadsheetAllModule;
|
|
938
|
-
}());
|
|
939
|
-
SpreadsheetAllModule.decorators = [
|
|
940
|
-
{ type: core.NgModule, args: [{
|
|
941
|
-
imports: [common.CommonModule, SpreadsheetModule],
|
|
942
|
-
exports: [
|
|
943
|
-
SpreadsheetModule
|
|
944
|
-
],
|
|
945
|
-
providers: [
|
|
946
|
-
ClipboardService,
|
|
947
|
-
EditService,
|
|
948
|
-
KeyboardNavigationService,
|
|
949
|
-
KeyboardShortcutService,
|
|
950
|
-
SelectionService,
|
|
951
|
-
ContextMenuService,
|
|
952
|
-
FormulaBarService,
|
|
953
|
-
RibbonService,
|
|
954
|
-
SaveService,
|
|
955
|
-
OpenService,
|
|
956
|
-
SheetTabsService,
|
|
957
|
-
DataBindService,
|
|
958
|
-
CellFormatService,
|
|
959
|
-
NumberFormatService,
|
|
960
|
-
FormulaService
|
|
961
|
-
]
|
|
962
|
-
},] },
|
|
963
|
-
];
|
|
964
|
-
/**
|
|
965
|
-
* @nocollapse
|
|
966
|
-
*/
|
|
7
|
+
var __extends = (this && this.__extends) || (function () {
|
|
8
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
9
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11
|
+
return function (d, b) {
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var input = ['height', 'id', 'left', 'src', 'top', 'width'];
|
|
18
|
+
var outputs = [];
|
|
19
|
+
var ImageDirective = /** @class */ (function (_super) {
|
|
20
|
+
__extends(ImageDirective, _super);
|
|
21
|
+
/**
|
|
22
|
+
* @param {?} viewContainerRef
|
|
23
|
+
*/
|
|
24
|
+
function ImageDirective(viewContainerRef) {
|
|
25
|
+
var _this = _super.call(this) || this;
|
|
26
|
+
_this.viewContainerRef = viewContainerRef;
|
|
27
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
28
|
+
_this.registerEvents(outputs);
|
|
29
|
+
_this.directivePropList = input;
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
return ImageDirective;
|
|
33
|
+
}(ej2AngularBase.ComplexBase));
|
|
34
|
+
ImageDirective.decorators = [
|
|
35
|
+
{ type: core.Directive, args: [{
|
|
36
|
+
selector: 'e-images>e-image',
|
|
37
|
+
inputs: input,
|
|
38
|
+
outputs: outputs,
|
|
39
|
+
queries: {}
|
|
40
|
+
},] },
|
|
41
|
+
];
|
|
42
|
+
/**
|
|
43
|
+
* @nocollapse
|
|
44
|
+
*/
|
|
45
|
+
ImageDirective.ctorParameters = function () { return [
|
|
46
|
+
{ type: core.ViewContainerRef, },
|
|
47
|
+
]; };
|
|
48
|
+
/**
|
|
49
|
+
* Image Array Directive
|
|
50
|
+
*/
|
|
51
|
+
var ImagesDirective = /** @class */ (function (_super) {
|
|
52
|
+
__extends(ImagesDirective, _super);
|
|
53
|
+
function ImagesDirective() {
|
|
54
|
+
return _super.call(this, 'image') || this;
|
|
55
|
+
}
|
|
56
|
+
return ImagesDirective;
|
|
57
|
+
}(ej2AngularBase.ArrayBase));
|
|
58
|
+
ImagesDirective.decorators = [
|
|
59
|
+
{ type: core.Directive, args: [{
|
|
60
|
+
selector: 'e-cell>e-images',
|
|
61
|
+
queries: {
|
|
62
|
+
children: new core.ContentChildren(ImageDirective)
|
|
63
|
+
},
|
|
64
|
+
},] },
|
|
65
|
+
];
|
|
66
|
+
/**
|
|
67
|
+
* @nocollapse
|
|
68
|
+
*/
|
|
69
|
+
ImagesDirective.ctorParameters = function () { return []; };
|
|
70
|
+
var input$1 = ['dataLabelSettings', 'height', 'id', 'isSeriesInRows', 'legendSettings', 'markerSettings', 'primaryXAxis', 'primaryYAxis', 'range', 'theme', 'title', 'type', 'width'];
|
|
71
|
+
var outputs$1 = [];
|
|
72
|
+
var ChartDirective = /** @class */ (function (_super) {
|
|
73
|
+
__extends(ChartDirective, _super);
|
|
74
|
+
/**
|
|
75
|
+
* @param {?} viewContainerRef
|
|
76
|
+
*/
|
|
77
|
+
function ChartDirective(viewContainerRef) {
|
|
78
|
+
var _this = _super.call(this) || this;
|
|
79
|
+
_this.viewContainerRef = viewContainerRef;
|
|
80
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
81
|
+
_this.registerEvents(outputs$1);
|
|
82
|
+
_this.directivePropList = input$1;
|
|
83
|
+
return _this;
|
|
84
|
+
}
|
|
85
|
+
return ChartDirective;
|
|
86
|
+
}(ej2AngularBase.ComplexBase));
|
|
87
|
+
ChartDirective.decorators = [
|
|
88
|
+
{ type: core.Directive, args: [{
|
|
89
|
+
selector: 'e-charts>e-chart',
|
|
90
|
+
inputs: input$1,
|
|
91
|
+
outputs: outputs$1,
|
|
92
|
+
queries: {}
|
|
93
|
+
},] },
|
|
94
|
+
];
|
|
95
|
+
/**
|
|
96
|
+
* @nocollapse
|
|
97
|
+
*/
|
|
98
|
+
ChartDirective.ctorParameters = function () { return [
|
|
99
|
+
{ type: core.ViewContainerRef, },
|
|
100
|
+
]; };
|
|
101
|
+
/**
|
|
102
|
+
* Chart Array Directive
|
|
103
|
+
*/
|
|
104
|
+
var ChartsDirective = /** @class */ (function (_super) {
|
|
105
|
+
__extends(ChartsDirective, _super);
|
|
106
|
+
function ChartsDirective() {
|
|
107
|
+
return _super.call(this, 'chart') || this;
|
|
108
|
+
}
|
|
109
|
+
return ChartsDirective;
|
|
110
|
+
}(ej2AngularBase.ArrayBase));
|
|
111
|
+
ChartsDirective.decorators = [
|
|
112
|
+
{ type: core.Directive, args: [{
|
|
113
|
+
selector: 'e-cell>e-charts',
|
|
114
|
+
queries: {
|
|
115
|
+
children: new core.ContentChildren(ChartDirective)
|
|
116
|
+
},
|
|
117
|
+
},] },
|
|
118
|
+
];
|
|
119
|
+
/**
|
|
120
|
+
* @nocollapse
|
|
121
|
+
*/
|
|
122
|
+
ChartsDirective.ctorParameters = function () { return []; };
|
|
123
|
+
var input$2 = ['chart', 'colSpan', 'format', 'formula', 'hyperlink', 'image', 'index', 'isLocked', 'isReadOnly', 'notes', 'rowSpan', 'style', 'validation', 'value', 'wrap'];
|
|
124
|
+
var outputs$2 = [];
|
|
125
|
+
/**
|
|
126
|
+
* `e-cell` directive represent a cell of the Angular Spreadsheet.
|
|
127
|
+
* It must be contained in a `e-row` directive.
|
|
128
|
+
* ```html
|
|
129
|
+
* <ejs-spreadsheet>
|
|
130
|
+
* <e-sheets>
|
|
131
|
+
* <e-sheet>
|
|
132
|
+
* <e-rows>
|
|
133
|
+
* <e-row>
|
|
134
|
+
* <e-cells>
|
|
135
|
+
* <e-cell value='A1'></e-cell>
|
|
136
|
+
* </e-cells>
|
|
137
|
+
* </e-row>
|
|
138
|
+
* </e-rows>
|
|
139
|
+
* </e-sheet>
|
|
140
|
+
* </e-sheets>
|
|
141
|
+
* </ejs-spreadsheet>
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
var CellDirective = /** @class */ (function (_super) {
|
|
145
|
+
__extends(CellDirective, _super);
|
|
146
|
+
/**
|
|
147
|
+
* @param {?} viewContainerRef
|
|
148
|
+
*/
|
|
149
|
+
function CellDirective(viewContainerRef) {
|
|
150
|
+
var _this = _super.call(this) || this;
|
|
151
|
+
_this.viewContainerRef = viewContainerRef;
|
|
152
|
+
_this.tags = ['image', 'chart'];
|
|
153
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
154
|
+
_this.registerEvents(outputs$2);
|
|
155
|
+
_this.directivePropList = input$2;
|
|
156
|
+
return _this;
|
|
157
|
+
}
|
|
158
|
+
return CellDirective;
|
|
159
|
+
}(ej2AngularBase.ComplexBase));
|
|
160
|
+
CellDirective.decorators = [
|
|
161
|
+
{ type: core.Directive, args: [{
|
|
162
|
+
selector: 'e-cells>e-cell',
|
|
163
|
+
inputs: input$2,
|
|
164
|
+
outputs: outputs$2,
|
|
165
|
+
queries: {
|
|
166
|
+
childImage: new core.ContentChild(ImagesDirective),
|
|
167
|
+
childChart: new core.ContentChild(ChartsDirective)
|
|
168
|
+
}
|
|
169
|
+
},] },
|
|
170
|
+
];
|
|
171
|
+
/**
|
|
172
|
+
* @nocollapse
|
|
173
|
+
*/
|
|
174
|
+
CellDirective.ctorParameters = function () { return [
|
|
175
|
+
{ type: core.ViewContainerRef, },
|
|
176
|
+
]; };
|
|
177
|
+
/**
|
|
178
|
+
* Cell Array Directive
|
|
179
|
+
*/
|
|
180
|
+
var CellsDirective = /** @class */ (function (_super) {
|
|
181
|
+
__extends(CellsDirective, _super);
|
|
182
|
+
function CellsDirective() {
|
|
183
|
+
return _super.call(this, 'cells') || this;
|
|
184
|
+
}
|
|
185
|
+
return CellsDirective;
|
|
186
|
+
}(ej2AngularBase.ArrayBase));
|
|
187
|
+
CellsDirective.decorators = [
|
|
188
|
+
{ type: core.Directive, args: [{
|
|
189
|
+
selector: 'e-row>e-cells',
|
|
190
|
+
queries: {
|
|
191
|
+
children: new core.ContentChildren(CellDirective)
|
|
192
|
+
},
|
|
193
|
+
},] },
|
|
194
|
+
];
|
|
195
|
+
/**
|
|
196
|
+
* @nocollapse
|
|
197
|
+
*/
|
|
198
|
+
CellsDirective.ctorParameters = function () { return []; };
|
|
199
|
+
var input$3 = ['cells', 'customHeight', 'format', 'height', 'hidden', 'index', 'isReadOnly'];
|
|
200
|
+
var outputs$3 = [];
|
|
201
|
+
/**
|
|
202
|
+
* `e-row` directive represent a row of the Angular Spreadsheet.
|
|
203
|
+
* It must be contained in a `e-sheet` directive.
|
|
204
|
+
* ```html
|
|
205
|
+
* <ejs-spreadsheet>
|
|
206
|
+
* <e-sheets>
|
|
207
|
+
* <e-sheet>
|
|
208
|
+
* <e-rows>
|
|
209
|
+
* <e-row></e-row>
|
|
210
|
+
* </e-rows>
|
|
211
|
+
* </e-sheet>
|
|
212
|
+
* </e-sheets>
|
|
213
|
+
* </ejs-spreadsheet>
|
|
214
|
+
* ```
|
|
215
|
+
*/
|
|
216
|
+
var RowDirective = /** @class */ (function (_super) {
|
|
217
|
+
__extends(RowDirective, _super);
|
|
218
|
+
/**
|
|
219
|
+
* @param {?} viewContainerRef
|
|
220
|
+
*/
|
|
221
|
+
function RowDirective(viewContainerRef) {
|
|
222
|
+
var _this = _super.call(this) || this;
|
|
223
|
+
_this.viewContainerRef = viewContainerRef;
|
|
224
|
+
_this.tags = ['cells'];
|
|
225
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
226
|
+
_this.registerEvents(outputs$3);
|
|
227
|
+
_this.directivePropList = input$3;
|
|
228
|
+
return _this;
|
|
229
|
+
}
|
|
230
|
+
return RowDirective;
|
|
231
|
+
}(ej2AngularBase.ComplexBase));
|
|
232
|
+
RowDirective.decorators = [
|
|
233
|
+
{ type: core.Directive, args: [{
|
|
234
|
+
selector: 'e-rows>e-row',
|
|
235
|
+
inputs: input$3,
|
|
236
|
+
outputs: outputs$3,
|
|
237
|
+
queries: {
|
|
238
|
+
childCells: new core.ContentChild(CellsDirective)
|
|
239
|
+
}
|
|
240
|
+
},] },
|
|
241
|
+
];
|
|
242
|
+
/**
|
|
243
|
+
* @nocollapse
|
|
244
|
+
*/
|
|
245
|
+
RowDirective.ctorParameters = function () { return [
|
|
246
|
+
{ type: core.ViewContainerRef, },
|
|
247
|
+
]; };
|
|
248
|
+
/**
|
|
249
|
+
* Row Array Directive
|
|
250
|
+
*/
|
|
251
|
+
var RowsDirective = /** @class */ (function (_super) {
|
|
252
|
+
__extends(RowsDirective, _super);
|
|
253
|
+
function RowsDirective() {
|
|
254
|
+
return _super.call(this, 'rows') || this;
|
|
255
|
+
}
|
|
256
|
+
return RowsDirective;
|
|
257
|
+
}(ej2AngularBase.ArrayBase));
|
|
258
|
+
RowsDirective.decorators = [
|
|
259
|
+
{ type: core.Directive, args: [{
|
|
260
|
+
selector: 'e-sheet>e-rows',
|
|
261
|
+
queries: {
|
|
262
|
+
children: new core.ContentChildren(RowDirective)
|
|
263
|
+
},
|
|
264
|
+
},] },
|
|
265
|
+
];
|
|
266
|
+
/**
|
|
267
|
+
* @nocollapse
|
|
268
|
+
*/
|
|
269
|
+
RowsDirective.ctorParameters = function () { return []; };
|
|
270
|
+
var input$4 = ['customWidth', 'format', 'hidden', 'index', 'isLocked', 'isReadOnly', 'validation', 'width'];
|
|
271
|
+
var outputs$4 = [];
|
|
272
|
+
/**
|
|
273
|
+
* `e-column` directive represent a column of the Angular Spreadsheet.
|
|
274
|
+
* It must be contained in a `e-sheet` directive.
|
|
275
|
+
* ```html
|
|
276
|
+
* <ejs-spreadsheet>
|
|
277
|
+
* <e-sheets>
|
|
278
|
+
* <e-sheet>
|
|
279
|
+
* <e-columns>
|
|
280
|
+
* <e-column width='100'></e-column>
|
|
281
|
+
* </e-columns>
|
|
282
|
+
* </e-sheet>
|
|
283
|
+
* </e-sheets>
|
|
284
|
+
* </ejs-spreadsheet>
|
|
285
|
+
* ```
|
|
286
|
+
*/
|
|
287
|
+
var ColumnDirective = /** @class */ (function (_super) {
|
|
288
|
+
__extends(ColumnDirective, _super);
|
|
289
|
+
/**
|
|
290
|
+
* @param {?} viewContainerRef
|
|
291
|
+
*/
|
|
292
|
+
function ColumnDirective(viewContainerRef) {
|
|
293
|
+
var _this = _super.call(this) || this;
|
|
294
|
+
_this.viewContainerRef = viewContainerRef;
|
|
295
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
296
|
+
_this.registerEvents(outputs$4);
|
|
297
|
+
_this.directivePropList = input$4;
|
|
298
|
+
return _this;
|
|
299
|
+
}
|
|
300
|
+
return ColumnDirective;
|
|
301
|
+
}(ej2AngularBase.ComplexBase));
|
|
302
|
+
ColumnDirective.decorators = [
|
|
303
|
+
{ type: core.Directive, args: [{
|
|
304
|
+
selector: 'e-columns>e-column',
|
|
305
|
+
inputs: input$4,
|
|
306
|
+
outputs: outputs$4,
|
|
307
|
+
queries: {}
|
|
308
|
+
},] },
|
|
309
|
+
];
|
|
310
|
+
/**
|
|
311
|
+
* @nocollapse
|
|
312
|
+
*/
|
|
313
|
+
ColumnDirective.ctorParameters = function () { return [
|
|
314
|
+
{ type: core.ViewContainerRef, },
|
|
315
|
+
]; };
|
|
316
|
+
/**
|
|
317
|
+
* Column Array Directive
|
|
318
|
+
*/
|
|
319
|
+
var ColumnsDirective = /** @class */ (function (_super) {
|
|
320
|
+
__extends(ColumnsDirective, _super);
|
|
321
|
+
function ColumnsDirective() {
|
|
322
|
+
return _super.call(this, 'columns') || this;
|
|
323
|
+
}
|
|
324
|
+
return ColumnsDirective;
|
|
325
|
+
}(ej2AngularBase.ArrayBase));
|
|
326
|
+
ColumnsDirective.decorators = [
|
|
327
|
+
{ type: core.Directive, args: [{
|
|
328
|
+
selector: 'e-sheet>e-columns',
|
|
329
|
+
queries: {
|
|
330
|
+
children: new core.ContentChildren(ColumnDirective)
|
|
331
|
+
},
|
|
332
|
+
},] },
|
|
333
|
+
];
|
|
334
|
+
/**
|
|
335
|
+
* @nocollapse
|
|
336
|
+
*/
|
|
337
|
+
ColumnsDirective.ctorParameters = function () { return []; };
|
|
338
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
339
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
340
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
341
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
342
|
+
else
|
|
343
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
344
|
+
if (d = decorators[i])
|
|
345
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
346
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
347
|
+
};
|
|
348
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
349
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
350
|
+
return Reflect.metadata(k, v);
|
|
351
|
+
};
|
|
352
|
+
var input$5 = ['address', 'dataSource', 'fieldsOrder', 'query', 'showFieldAsHeader', 'startCell', 'template'];
|
|
353
|
+
var outputs$5 = [];
|
|
354
|
+
/**
|
|
355
|
+
* `e-range` directive represent a range of the Angular Spreadsheet.
|
|
356
|
+
* It must be contained in a `e-sheet` directive.
|
|
357
|
+
* ```html
|
|
358
|
+
* <ejs-spreadsheet>
|
|
359
|
+
* <e-sheets>
|
|
360
|
+
* <e-sheet>
|
|
361
|
+
* <e-ranges>
|
|
362
|
+
* <e-range [dataSource]='data'></e-range>
|
|
363
|
+
* </e-ranges>
|
|
364
|
+
* </e-sheet>
|
|
365
|
+
* </e-sheets>
|
|
366
|
+
* </ejs-spreadsheet>
|
|
367
|
+
* ```
|
|
368
|
+
*/
|
|
369
|
+
var RangeDirective = /** @class */ (function (_super) {
|
|
370
|
+
__extends(RangeDirective, _super);
|
|
371
|
+
/**
|
|
372
|
+
* @param {?} viewContainerRef
|
|
373
|
+
*/
|
|
374
|
+
function RangeDirective(viewContainerRef) {
|
|
375
|
+
var _this = _super.call(this) || this;
|
|
376
|
+
_this.viewContainerRef = viewContainerRef;
|
|
377
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
378
|
+
_this.registerEvents(outputs$5);
|
|
379
|
+
_this.directivePropList = input$5;
|
|
380
|
+
return _this;
|
|
381
|
+
}
|
|
382
|
+
return RangeDirective;
|
|
383
|
+
}(ej2AngularBase.ComplexBase));
|
|
384
|
+
RangeDirective.decorators = [
|
|
385
|
+
{ type: core.Directive, args: [{
|
|
386
|
+
selector: 'e-ranges>e-range',
|
|
387
|
+
inputs: input$5,
|
|
388
|
+
outputs: outputs$5,
|
|
389
|
+
queries: {}
|
|
390
|
+
},] },
|
|
391
|
+
];
|
|
392
|
+
/**
|
|
393
|
+
* @nocollapse
|
|
394
|
+
*/
|
|
395
|
+
RangeDirective.ctorParameters = function () { return [
|
|
396
|
+
{ type: core.ViewContainerRef, },
|
|
397
|
+
]; };
|
|
398
|
+
RangeDirective.propDecorators = {
|
|
399
|
+
'template': [{ type: core.ContentChild, args: ['template',] },],
|
|
400
|
+
};
|
|
401
|
+
__decorate([
|
|
402
|
+
ej2AngularBase.Template(),
|
|
403
|
+
__metadata("design:type", Object)
|
|
404
|
+
], RangeDirective.prototype, "template", void 0);
|
|
405
|
+
/**
|
|
406
|
+
* Range Array Directive
|
|
407
|
+
*/
|
|
408
|
+
var RangesDirective = /** @class */ (function (_super) {
|
|
409
|
+
__extends(RangesDirective, _super);
|
|
410
|
+
function RangesDirective() {
|
|
411
|
+
return _super.call(this, 'ranges') || this;
|
|
412
|
+
}
|
|
413
|
+
return RangesDirective;
|
|
414
|
+
}(ej2AngularBase.ArrayBase));
|
|
415
|
+
RangesDirective.decorators = [
|
|
416
|
+
{ type: core.Directive, args: [{
|
|
417
|
+
selector: 'e-sheet>e-ranges',
|
|
418
|
+
queries: {
|
|
419
|
+
children: new core.ContentChildren(RangeDirective)
|
|
420
|
+
},
|
|
421
|
+
},] },
|
|
422
|
+
];
|
|
423
|
+
/**
|
|
424
|
+
* @nocollapse
|
|
425
|
+
*/
|
|
426
|
+
RangesDirective.ctorParameters = function () { return []; };
|
|
427
|
+
var input$6 = ['cFColor', 'format', 'range', 'type', 'value'];
|
|
428
|
+
var outputs$6 = [];
|
|
429
|
+
/**
|
|
430
|
+
* `e-conditionalformat` directive represent a conditionalformat of the Angular Spreadsheet.
|
|
431
|
+
* It must be contained in a `e-sheet` directive.
|
|
432
|
+
* ```html
|
|
433
|
+
* <ejs-spreadsheet>
|
|
434
|
+
* <e-sheets>
|
|
435
|
+
* <e-sheet>
|
|
436
|
+
* <e-conditionalformats>
|
|
437
|
+
* <e-conditionalformat></e-conditionalformat>
|
|
438
|
+
* </e-conditionalformats>
|
|
439
|
+
* </e-sheet>
|
|
440
|
+
* </e-sheets>
|
|
441
|
+
* </ejs-spreadsheet>
|
|
442
|
+
* ```
|
|
443
|
+
*/
|
|
444
|
+
var ConditionalFormatDirective = /** @class */ (function (_super) {
|
|
445
|
+
__extends(ConditionalFormatDirective, _super);
|
|
446
|
+
/**
|
|
447
|
+
* @param {?} viewContainerRef
|
|
448
|
+
*/
|
|
449
|
+
function ConditionalFormatDirective(viewContainerRef) {
|
|
450
|
+
var _this = _super.call(this) || this;
|
|
451
|
+
_this.viewContainerRef = viewContainerRef;
|
|
452
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
453
|
+
_this.registerEvents(outputs$6);
|
|
454
|
+
_this.directivePropList = input$6;
|
|
455
|
+
return _this;
|
|
456
|
+
}
|
|
457
|
+
return ConditionalFormatDirective;
|
|
458
|
+
}(ej2AngularBase.ComplexBase));
|
|
459
|
+
ConditionalFormatDirective.decorators = [
|
|
460
|
+
{ type: core.Directive, args: [{
|
|
461
|
+
selector: 'e-conditionalformats>e-conditionalformat',
|
|
462
|
+
inputs: input$6,
|
|
463
|
+
outputs: outputs$6,
|
|
464
|
+
queries: {}
|
|
465
|
+
},] },
|
|
466
|
+
];
|
|
467
|
+
/**
|
|
468
|
+
* @nocollapse
|
|
469
|
+
*/
|
|
470
|
+
ConditionalFormatDirective.ctorParameters = function () { return [
|
|
471
|
+
{ type: core.ViewContainerRef, },
|
|
472
|
+
]; };
|
|
473
|
+
/**
|
|
474
|
+
* ConditionalFormat Array Directive
|
|
475
|
+
*/
|
|
476
|
+
var ConditionalFormatsDirective = /** @class */ (function (_super) {
|
|
477
|
+
__extends(ConditionalFormatsDirective, _super);
|
|
478
|
+
function ConditionalFormatsDirective() {
|
|
479
|
+
return _super.call(this, 'conditionalformats') || this;
|
|
480
|
+
}
|
|
481
|
+
return ConditionalFormatsDirective;
|
|
482
|
+
}(ej2AngularBase.ArrayBase));
|
|
483
|
+
ConditionalFormatsDirective.decorators = [
|
|
484
|
+
{ type: core.Directive, args: [{
|
|
485
|
+
selector: 'e-sheet>e-conditionalformats',
|
|
486
|
+
queries: {
|
|
487
|
+
children: new core.ContentChildren(ConditionalFormatDirective)
|
|
488
|
+
},
|
|
489
|
+
},] },
|
|
490
|
+
];
|
|
491
|
+
/**
|
|
492
|
+
* @nocollapse
|
|
493
|
+
*/
|
|
494
|
+
ConditionalFormatsDirective.ctorParameters = function () { return []; };
|
|
495
|
+
var input$7 = ['activeCell', 'colCount', 'columns', 'conditionalFormats', 'frozenColumns', 'frozenRows', 'index', 'isProtected', 'name', 'paneTopLeftCell', 'password', 'protectSettings', 'ranges', 'rowCount', 'rows', 'selectedRange', 'showGridLines', 'showHeaders', 'standardHeight', 'state', 'topLeftCell', 'usedRange'];
|
|
496
|
+
var outputs$7 = [];
|
|
497
|
+
/**
|
|
498
|
+
* `e-sheet` directive represent a sheet of the Angular Spreadsheet.
|
|
499
|
+
* It must be contained in a Spreadsheet component(`ejs-spreadsheet`).
|
|
500
|
+
* ```html
|
|
501
|
+
* <ejs-spreadsheet>
|
|
502
|
+
* <e-sheets>
|
|
503
|
+
* <e-sheet></e-sheet>
|
|
504
|
+
* <e-sheet></e-sheet>
|
|
505
|
+
* </e-sheets>
|
|
506
|
+
* </ejs-spreadsheet>
|
|
507
|
+
* ```
|
|
508
|
+
*/
|
|
509
|
+
var SheetDirective = /** @class */ (function (_super) {
|
|
510
|
+
__extends(SheetDirective, _super);
|
|
511
|
+
/**
|
|
512
|
+
* @param {?} viewContainerRef
|
|
513
|
+
*/
|
|
514
|
+
function SheetDirective(viewContainerRef) {
|
|
515
|
+
var _this = _super.call(this) || this;
|
|
516
|
+
_this.viewContainerRef = viewContainerRef;
|
|
517
|
+
_this.tags = ['rows', 'columns', 'ranges', 'conditionalFormats'];
|
|
518
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
519
|
+
_this.registerEvents(outputs$7);
|
|
520
|
+
_this.directivePropList = input$7;
|
|
521
|
+
return _this;
|
|
522
|
+
}
|
|
523
|
+
return SheetDirective;
|
|
524
|
+
}(ej2AngularBase.ComplexBase));
|
|
525
|
+
SheetDirective.decorators = [
|
|
526
|
+
{ type: core.Directive, args: [{
|
|
527
|
+
selector: 'e-sheets>e-sheet',
|
|
528
|
+
inputs: input$7,
|
|
529
|
+
outputs: outputs$7,
|
|
530
|
+
queries: {
|
|
531
|
+
childRows: new core.ContentChild(RowsDirective),
|
|
532
|
+
childColumns: new core.ContentChild(ColumnsDirective),
|
|
533
|
+
childRanges: new core.ContentChild(RangesDirective),
|
|
534
|
+
childConditionalFormats: new core.ContentChild(ConditionalFormatsDirective)
|
|
535
|
+
}
|
|
536
|
+
},] },
|
|
537
|
+
];
|
|
538
|
+
/**
|
|
539
|
+
* @nocollapse
|
|
540
|
+
*/
|
|
541
|
+
SheetDirective.ctorParameters = function () { return [
|
|
542
|
+
{ type: core.ViewContainerRef, },
|
|
543
|
+
]; };
|
|
544
|
+
/**
|
|
545
|
+
* Sheet Array Directive
|
|
546
|
+
*/
|
|
547
|
+
var SheetsDirective = /** @class */ (function (_super) {
|
|
548
|
+
__extends(SheetsDirective, _super);
|
|
549
|
+
function SheetsDirective() {
|
|
550
|
+
return _super.call(this, 'sheets') || this;
|
|
551
|
+
}
|
|
552
|
+
return SheetsDirective;
|
|
553
|
+
}(ej2AngularBase.ArrayBase));
|
|
554
|
+
SheetsDirective.decorators = [
|
|
555
|
+
{ type: core.Directive, args: [{
|
|
556
|
+
selector: 'ejs-spreadsheet>e-sheets',
|
|
557
|
+
queries: {
|
|
558
|
+
children: new core.ContentChildren(SheetDirective)
|
|
559
|
+
},
|
|
560
|
+
},] },
|
|
561
|
+
];
|
|
562
|
+
/**
|
|
563
|
+
* @nocollapse
|
|
564
|
+
*/
|
|
565
|
+
SheetsDirective.ctorParameters = function () { return []; };
|
|
566
|
+
var input$8 = ['comment', 'name', 'refersTo', 'scope'];
|
|
567
|
+
var outputs$8 = [];
|
|
568
|
+
/**
|
|
569
|
+
* `e-definedname` directive represent a defined name of the Angular Spreadsheet.
|
|
570
|
+
* It must be contained in a Spreadsheet component(`ejs-spreadsheet`).
|
|
571
|
+
* ```html
|
|
572
|
+
* <ejs-spreadsheet>
|
|
573
|
+
* <e-definednames>
|
|
574
|
+
* <e-definedname></e-definedname>
|
|
575
|
+
* <e-definedname></e-definedname>
|
|
576
|
+
* </e-definednames>
|
|
577
|
+
* </ejs-spreadsheet>
|
|
578
|
+
* ```
|
|
579
|
+
*/
|
|
580
|
+
var DefinedNameDirective = /** @class */ (function (_super) {
|
|
581
|
+
__extends(DefinedNameDirective, _super);
|
|
582
|
+
/**
|
|
583
|
+
* @param {?} viewContainerRef
|
|
584
|
+
*/
|
|
585
|
+
function DefinedNameDirective(viewContainerRef) {
|
|
586
|
+
var _this = _super.call(this) || this;
|
|
587
|
+
_this.viewContainerRef = viewContainerRef;
|
|
588
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
589
|
+
_this.registerEvents(outputs$8);
|
|
590
|
+
_this.directivePropList = input$8;
|
|
591
|
+
return _this;
|
|
592
|
+
}
|
|
593
|
+
return DefinedNameDirective;
|
|
594
|
+
}(ej2AngularBase.ComplexBase));
|
|
595
|
+
DefinedNameDirective.decorators = [
|
|
596
|
+
{ type: core.Directive, args: [{
|
|
597
|
+
selector: 'e-definednames>e-definedname',
|
|
598
|
+
inputs: input$8,
|
|
599
|
+
outputs: outputs$8,
|
|
600
|
+
queries: {}
|
|
601
|
+
},] },
|
|
602
|
+
];
|
|
603
|
+
/**
|
|
604
|
+
* @nocollapse
|
|
605
|
+
*/
|
|
606
|
+
DefinedNameDirective.ctorParameters = function () { return [
|
|
607
|
+
{ type: core.ViewContainerRef, },
|
|
608
|
+
]; };
|
|
609
|
+
/**
|
|
610
|
+
* DefinedName Array Directive
|
|
611
|
+
*/
|
|
612
|
+
var DefinedNamesDirective = /** @class */ (function (_super) {
|
|
613
|
+
__extends(DefinedNamesDirective, _super);
|
|
614
|
+
function DefinedNamesDirective() {
|
|
615
|
+
return _super.call(this, 'definednames') || this;
|
|
616
|
+
}
|
|
617
|
+
return DefinedNamesDirective;
|
|
618
|
+
}(ej2AngularBase.ArrayBase));
|
|
619
|
+
DefinedNamesDirective.decorators = [
|
|
620
|
+
{ type: core.Directive, args: [{
|
|
621
|
+
selector: 'ejs-spreadsheet>e-definednames',
|
|
622
|
+
queries: {
|
|
623
|
+
children: new core.ContentChildren(DefinedNameDirective)
|
|
624
|
+
},
|
|
625
|
+
},] },
|
|
626
|
+
];
|
|
627
|
+
/**
|
|
628
|
+
* @nocollapse
|
|
629
|
+
*/
|
|
630
|
+
DefinedNamesDirective.ctorParameters = function () { return []; };
|
|
631
|
+
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
632
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
633
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
634
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
635
|
+
else
|
|
636
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
637
|
+
if (d = decorators[i])
|
|
638
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
639
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
640
|
+
};
|
|
641
|
+
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
642
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
643
|
+
return Reflect.metadata(k, v);
|
|
644
|
+
};
|
|
645
|
+
var inputs = ['activeSheetIndex', 'allowAutoFill', 'allowCellFormatting', 'allowChart', 'allowConditionalFormat', 'allowDataValidation', 'allowDelete', 'allowEditing', 'allowFiltering', 'allowFindAndReplace', 'allowFreezePane', 'allowHyperlink', 'allowImage', 'allowInsert', 'allowMerge', 'allowNumberFormatting', 'allowOpen', 'allowPrint', 'allowResizing', 'allowSave', 'allowScrolling', 'allowSorting', 'allowUndoRedo', 'allowWrap', 'autoFillSettings', 'calculationMode', 'cellStyle', 'cssClass', 'currencyCode', 'definedNames', 'enableClipboard', 'enableContextMenu', 'enableKeyboardNavigation', 'enableKeyboardShortcut', 'enableNotes', 'enablePersistence', 'enableRtl', 'height', 'isProtected', 'listSeparator', 'locale', 'openSettings', 'openUrl', 'password', 'saveUrl', 'scrollSettings', 'selectionSettings', 'sheets', 'showAggregate', 'showFormulaBar', 'showRibbon', 'showSheetTabs', 'width'];
|
|
646
|
+
var outputs$9 = ['actionBegin', 'actionComplete', 'afterHyperlinkClick', 'afterHyperlinkCreate', 'beforeCellFormat', 'beforeCellRender', 'beforeCellSave', 'beforeCellUpdate', 'beforeConditionalFormat', 'beforeDataBound', 'beforeHyperlinkClick', 'beforeHyperlinkCreate', 'beforeOpen', 'beforeSave', 'beforeSelect', 'beforeSort', 'cellEdit', 'cellEdited', 'cellEditing', 'cellSave', 'contextMenuBeforeClose', 'contextMenuBeforeOpen', 'contextMenuItemSelect', 'created', 'dataBound', 'dataSourceChanged', 'dialogBeforeOpen', 'fileMenuBeforeClose', 'fileMenuBeforeOpen', 'fileMenuItemSelect', 'openComplete', 'openFailure', 'queryCellInfo', 'saveComplete', 'select', 'sortComplete'];
|
|
647
|
+
var twoWays = [''];
|
|
648
|
+
/**
|
|
649
|
+
* `ejs-spreadsheet` represents the Angular Spreadsheet Component.
|
|
650
|
+
* ```html
|
|
651
|
+
* <ejs-spreadsheet></ejs-spreadsheet>
|
|
652
|
+
* ```
|
|
653
|
+
*/
|
|
654
|
+
exports.SpreadsheetComponent = /** @class */ (function (_super) {
|
|
655
|
+
__extends(SpreadsheetComponent, _super);
|
|
656
|
+
/**
|
|
657
|
+
* @param {?} ngEle
|
|
658
|
+
* @param {?} srenderer
|
|
659
|
+
* @param {?} viewContainerRef
|
|
660
|
+
* @param {?} injector
|
|
661
|
+
*/
|
|
662
|
+
function SpreadsheetComponent(ngEle, srenderer, viewContainerRef, injector) {
|
|
663
|
+
var _this = _super.call(this) || this;
|
|
664
|
+
_this.ngEle = ngEle;
|
|
665
|
+
_this.srenderer = srenderer;
|
|
666
|
+
_this.viewContainerRef = viewContainerRef;
|
|
667
|
+
_this.injector = injector;
|
|
668
|
+
_this.tags = ['sheets', 'definedNames'];
|
|
669
|
+
_this.element = _this.ngEle.nativeElement;
|
|
670
|
+
_this.injectedModules = _this.injectedModules || [];
|
|
671
|
+
try {
|
|
672
|
+
var mod = _this.injector.get('SpreadsheetClipboard');
|
|
673
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
674
|
+
_this.injectedModules.push(mod);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
catch (_a) { }
|
|
678
|
+
try {
|
|
679
|
+
var mod = _this.injector.get('SpreadsheetEdit');
|
|
680
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
681
|
+
_this.injectedModules.push(mod);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
catch (_b) { }
|
|
685
|
+
try {
|
|
686
|
+
var mod = _this.injector.get('SpreadsheetKeyboardNavigation');
|
|
687
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
688
|
+
_this.injectedModules.push(mod);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
catch (_c) { }
|
|
692
|
+
try {
|
|
693
|
+
var mod = _this.injector.get('SpreadsheetKeyboardShortcut');
|
|
694
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
695
|
+
_this.injectedModules.push(mod);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
catch (_d) { }
|
|
699
|
+
try {
|
|
700
|
+
var mod = _this.injector.get('SpreadsheetSelection');
|
|
701
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
702
|
+
_this.injectedModules.push(mod);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
catch (_e) { }
|
|
706
|
+
try {
|
|
707
|
+
var mod = _this.injector.get('SpreadsheetContextMenu');
|
|
708
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
709
|
+
_this.injectedModules.push(mod);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
catch (_f) { }
|
|
713
|
+
try {
|
|
714
|
+
var mod = _this.injector.get('SpreadsheetFormulaBar');
|
|
715
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
716
|
+
_this.injectedModules.push(mod);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
catch (_g) { }
|
|
720
|
+
try {
|
|
721
|
+
var mod = _this.injector.get('SpreadsheetRibbon');
|
|
722
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
723
|
+
_this.injectedModules.push(mod);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
catch (_h) { }
|
|
727
|
+
try {
|
|
728
|
+
var mod = _this.injector.get('SpreadsheetSave');
|
|
729
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
730
|
+
_this.injectedModules.push(mod);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
catch (_j) { }
|
|
734
|
+
try {
|
|
735
|
+
var mod = _this.injector.get('SpreadsheetOpen');
|
|
736
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
737
|
+
_this.injectedModules.push(mod);
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
catch (_k) { }
|
|
741
|
+
try {
|
|
742
|
+
var mod = _this.injector.get('SpreadsheetSheetTabs');
|
|
743
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
744
|
+
_this.injectedModules.push(mod);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
catch (_l) { }
|
|
748
|
+
try {
|
|
749
|
+
var mod = _this.injector.get('SpreadsheetDataBind');
|
|
750
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
751
|
+
_this.injectedModules.push(mod);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
catch (_m) { }
|
|
755
|
+
try {
|
|
756
|
+
var mod = _this.injector.get('SpreadsheetCellFormat');
|
|
757
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
758
|
+
_this.injectedModules.push(mod);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
catch (_o) { }
|
|
762
|
+
try {
|
|
763
|
+
var mod = _this.injector.get('SpreadsheetNumberFormat');
|
|
764
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
765
|
+
_this.injectedModules.push(mod);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
catch (_p) { }
|
|
769
|
+
try {
|
|
770
|
+
var mod = _this.injector.get('SpreadsheetFormula');
|
|
771
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
772
|
+
_this.injectedModules.push(mod);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
catch (_q) { }
|
|
776
|
+
_this.registerEvents(outputs$9);
|
|
777
|
+
_this.addTwoWay.call(_this, twoWays);
|
|
778
|
+
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
|
779
|
+
_this.context = new ej2AngularBase.ComponentBase();
|
|
780
|
+
return _this;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* @return {?}
|
|
784
|
+
*/
|
|
785
|
+
SpreadsheetComponent.prototype.ngOnInit = function () {
|
|
786
|
+
this.context.ngOnInit(this);
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* @return {?}
|
|
790
|
+
*/
|
|
791
|
+
SpreadsheetComponent.prototype.ngAfterViewInit = function () {
|
|
792
|
+
this.context.ngAfterViewInit(this);
|
|
793
|
+
};
|
|
794
|
+
/**
|
|
795
|
+
* @return {?}
|
|
796
|
+
*/
|
|
797
|
+
SpreadsheetComponent.prototype.ngOnDestroy = function () {
|
|
798
|
+
this.context.ngOnDestroy(this);
|
|
799
|
+
};
|
|
800
|
+
/**
|
|
801
|
+
* @return {?}
|
|
802
|
+
*/
|
|
803
|
+
SpreadsheetComponent.prototype.ngAfterContentChecked = function () {
|
|
804
|
+
this.tagObjects[0].instance = this.childSheets;
|
|
805
|
+
if (this.childDefinedNames) {
|
|
806
|
+
this.tagObjects[1].instance = /** @type {?} */ (this.childDefinedNames);
|
|
807
|
+
}
|
|
808
|
+
this.context.ngAfterContentChecked(this);
|
|
809
|
+
};
|
|
810
|
+
return SpreadsheetComponent;
|
|
811
|
+
}(ej2Spreadsheet.Spreadsheet));
|
|
812
|
+
exports.SpreadsheetComponent.decorators = [
|
|
813
|
+
{ type: core.Component, args: [{
|
|
814
|
+
selector: 'ejs-spreadsheet',
|
|
815
|
+
inputs: inputs,
|
|
816
|
+
outputs: outputs$9,
|
|
817
|
+
template: '',
|
|
818
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
819
|
+
queries: {
|
|
820
|
+
childSheets: new core.ContentChild(SheetsDirective),
|
|
821
|
+
childDefinedNames: new core.ContentChild(DefinedNamesDirective)
|
|
822
|
+
}
|
|
823
|
+
},] },
|
|
824
|
+
];
|
|
825
|
+
/**
|
|
826
|
+
* @nocollapse
|
|
827
|
+
*/
|
|
828
|
+
exports.SpreadsheetComponent.ctorParameters = function () { return [
|
|
829
|
+
{ type: core.ElementRef, },
|
|
830
|
+
{ type: core.Renderer2, },
|
|
831
|
+
{ type: core.ViewContainerRef, },
|
|
832
|
+
{ type: core.Injector, },
|
|
833
|
+
]; };
|
|
834
|
+
exports.SpreadsheetComponent.propDecorators = {
|
|
835
|
+
'template': [{ type: core.ContentChild, args: ['template',] },],
|
|
836
|
+
};
|
|
837
|
+
__decorate$1([
|
|
838
|
+
ej2AngularBase.Template(),
|
|
839
|
+
__metadata$1("design:type", Object)
|
|
840
|
+
], exports.SpreadsheetComponent.prototype, "template", void 0);
|
|
841
|
+
exports.SpreadsheetComponent = __decorate$1([
|
|
842
|
+
ej2AngularBase.ComponentMixins([ej2AngularBase.ComponentBase]),
|
|
843
|
+
__metadata$1("design:paramtypes", [core.ElementRef,
|
|
844
|
+
core.Renderer2,
|
|
845
|
+
core.ViewContainerRef,
|
|
846
|
+
core.Injector])
|
|
847
|
+
], exports.SpreadsheetComponent);
|
|
848
|
+
/**
|
|
849
|
+
* NgModule definition for the Spreadsheet component.
|
|
850
|
+
*/
|
|
851
|
+
var SpreadsheetModule = /** @class */ (function () {
|
|
852
|
+
function SpreadsheetModule() {
|
|
853
|
+
}
|
|
854
|
+
return SpreadsheetModule;
|
|
855
|
+
}());
|
|
856
|
+
SpreadsheetModule.decorators = [
|
|
857
|
+
{ type: core.NgModule, args: [{
|
|
858
|
+
imports: [common.CommonModule],
|
|
859
|
+
declarations: [
|
|
860
|
+
exports.SpreadsheetComponent,
|
|
861
|
+
ImageDirective,
|
|
862
|
+
ImagesDirective,
|
|
863
|
+
ChartDirective,
|
|
864
|
+
ChartsDirective,
|
|
865
|
+
CellDirective,
|
|
866
|
+
CellsDirective,
|
|
867
|
+
RowDirective,
|
|
868
|
+
RowsDirective,
|
|
869
|
+
ColumnDirective,
|
|
870
|
+
ColumnsDirective,
|
|
871
|
+
RangeDirective,
|
|
872
|
+
RangesDirective,
|
|
873
|
+
ConditionalFormatDirective,
|
|
874
|
+
ConditionalFormatsDirective,
|
|
875
|
+
SheetDirective,
|
|
876
|
+
SheetsDirective,
|
|
877
|
+
DefinedNameDirective,
|
|
878
|
+
DefinedNamesDirective
|
|
879
|
+
],
|
|
880
|
+
exports: [
|
|
881
|
+
exports.SpreadsheetComponent,
|
|
882
|
+
ImageDirective,
|
|
883
|
+
ImagesDirective,
|
|
884
|
+
ChartDirective,
|
|
885
|
+
ChartsDirective,
|
|
886
|
+
CellDirective,
|
|
887
|
+
CellsDirective,
|
|
888
|
+
RowDirective,
|
|
889
|
+
RowsDirective,
|
|
890
|
+
ColumnDirective,
|
|
891
|
+
ColumnsDirective,
|
|
892
|
+
RangeDirective,
|
|
893
|
+
RangesDirective,
|
|
894
|
+
ConditionalFormatDirective,
|
|
895
|
+
ConditionalFormatsDirective,
|
|
896
|
+
SheetDirective,
|
|
897
|
+
SheetsDirective,
|
|
898
|
+
DefinedNameDirective,
|
|
899
|
+
DefinedNamesDirective
|
|
900
|
+
]
|
|
901
|
+
},] },
|
|
902
|
+
];
|
|
903
|
+
/**
|
|
904
|
+
* @nocollapse
|
|
905
|
+
*/
|
|
906
|
+
SpreadsheetModule.ctorParameters = function () { return []; };
|
|
907
|
+
var ClipboardService = { provide: 'SpreadsheetClipboard', useValue: ej2Spreadsheet.Clipboard };
|
|
908
|
+
var EditService = { provide: 'SpreadsheetEdit', useValue: ej2Spreadsheet.Edit };
|
|
909
|
+
var KeyboardNavigationService = { provide: 'SpreadsheetKeyboardNavigation', useValue: ej2Spreadsheet.KeyboardNavigation };
|
|
910
|
+
var KeyboardShortcutService = { provide: 'SpreadsheetKeyboardShortcut', useValue: ej2Spreadsheet.KeyboardShortcut };
|
|
911
|
+
var SelectionService = { provide: 'SpreadsheetSelection', useValue: ej2Spreadsheet.Selection };
|
|
912
|
+
var ContextMenuService = { provide: 'SpreadsheetContextMenu', useValue: ej2Spreadsheet.ContextMenu };
|
|
913
|
+
var FormulaBarService = { provide: 'SpreadsheetFormulaBar', useValue: ej2Spreadsheet.FormulaBar };
|
|
914
|
+
var RibbonService = { provide: 'SpreadsheetRibbon', useValue: ej2Spreadsheet.Ribbon };
|
|
915
|
+
var SaveService = { provide: 'SpreadsheetSave', useValue: ej2Spreadsheet.Save };
|
|
916
|
+
var OpenService = { provide: 'SpreadsheetOpen', useValue: ej2Spreadsheet.Open };
|
|
917
|
+
var SheetTabsService = { provide: 'SpreadsheetSheetTabs', useValue: ej2Spreadsheet.SheetTabs };
|
|
918
|
+
var DataBindService = { provide: 'SpreadsheetDataBind', useValue: ej2Spreadsheet.DataBind };
|
|
919
|
+
var CellFormatService = { provide: 'SpreadsheetCellFormat', useValue: ej2Spreadsheet.CellFormat };
|
|
920
|
+
var NumberFormatService = { provide: 'SpreadsheetNumberFormat', useValue: ej2Spreadsheet.NumberFormat };
|
|
921
|
+
var FormulaService = { provide: 'SpreadsheetFormula', useValue: ej2Spreadsheet.Formula };
|
|
922
|
+
/**
|
|
923
|
+
* NgModule definition for the Spreadsheet component with providers.
|
|
924
|
+
*/
|
|
925
|
+
var SpreadsheetAllModule = /** @class */ (function () {
|
|
926
|
+
function SpreadsheetAllModule() {
|
|
927
|
+
}
|
|
928
|
+
return SpreadsheetAllModule;
|
|
929
|
+
}());
|
|
930
|
+
SpreadsheetAllModule.decorators = [
|
|
931
|
+
{ type: core.NgModule, args: [{
|
|
932
|
+
imports: [common.CommonModule, SpreadsheetModule],
|
|
933
|
+
exports: [
|
|
934
|
+
SpreadsheetModule
|
|
935
|
+
],
|
|
936
|
+
providers: [
|
|
937
|
+
ClipboardService,
|
|
938
|
+
EditService,
|
|
939
|
+
KeyboardNavigationService,
|
|
940
|
+
KeyboardShortcutService,
|
|
941
|
+
SelectionService,
|
|
942
|
+
ContextMenuService,
|
|
943
|
+
FormulaBarService,
|
|
944
|
+
RibbonService,
|
|
945
|
+
SaveService,
|
|
946
|
+
OpenService,
|
|
947
|
+
SheetTabsService,
|
|
948
|
+
DataBindService,
|
|
949
|
+
CellFormatService,
|
|
950
|
+
NumberFormatService,
|
|
951
|
+
FormulaService
|
|
952
|
+
]
|
|
953
|
+
},] },
|
|
954
|
+
];
|
|
955
|
+
/**
|
|
956
|
+
* @nocollapse
|
|
957
|
+
*/
|
|
967
958
|
SpreadsheetAllModule.ctorParameters = function () { return []; };
|
|
968
959
|
|
|
969
960
|
exports.ImageDirective = ImageDirective;
|
|
@@ -1013,6 +1004,7 @@ exports.getSheetNameFromAddress = ej2Spreadsheet.getSheetNameFromAddress;
|
|
|
1013
1004
|
exports.getSheetIndexByName = ej2Spreadsheet.getSheetIndexByName;
|
|
1014
1005
|
exports.updateSelectedRange = ej2Spreadsheet.updateSelectedRange;
|
|
1015
1006
|
exports.getSelectedRange = ej2Spreadsheet.getSelectedRange;
|
|
1007
|
+
exports.getSingleSelectedRange = ej2Spreadsheet.getSingleSelectedRange;
|
|
1016
1008
|
exports.getSheet = ej2Spreadsheet.getSheet;
|
|
1017
1009
|
exports.getSheetNameCount = ej2Spreadsheet.getSheetNameCount;
|
|
1018
1010
|
exports.getMaxSheetId = ej2Spreadsheet.getMaxSheetId;
|