raise-common-lib 0.0.1 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/bundles/raise-common-lib.umd.js +1130 -0
  2. package/bundles/raise-common-lib.umd.js.map +1 -0
  3. package/bundles/raise-common-lib.umd.min.js +16 -0
  4. package/bundles/raise-common-lib.umd.min.js.map +1 -0
  5. package/esm2015/lib/common-grid/index.component.js +716 -0
  6. package/esm2015/lib/constant/index.js +107 -0
  7. package/esm2015/lib/raise-common-lib.module.js +38 -0
  8. package/esm2015/public-api.js +11 -0
  9. package/esm2015/raise-common-lib.js +10 -0
  10. package/esm5/lib/common-grid/index.component.js +865 -0
  11. package/esm5/lib/constant/index.js +107 -0
  12. package/esm5/lib/raise-common-lib.module.js +42 -0
  13. package/esm5/public-api.js +11 -0
  14. package/esm5/raise-common-lib.js +10 -0
  15. package/fesm2015/raise-common-lib.js +766 -0
  16. package/fesm2015/raise-common-lib.js.map +1 -0
  17. package/fesm5/raise-common-lib.js +917 -0
  18. package/fesm5/raise-common-lib.js.map +1 -0
  19. package/lib/common-grid/index.component.d.ts +116 -0
  20. package/lib/constant/index.d.ts +54 -0
  21. package/lib/raise-common-lib.module.d.ts +2 -0
  22. package/package.json +17 -4
  23. package/{src/public-api.ts → public-api.d.ts} +2 -5
  24. package/raise-common-lib.d.ts +4 -0
  25. package/raise-common-lib.metadata.json +1 -0
  26. package/karma.conf.js +0 -32
  27. package/ng-package.json +0 -7
  28. package/src/lib/common-grid/grid-utils.ts +0 -26
  29. package/src/lib/common-grid/index.component.html +0 -80
  30. package/src/lib/common-grid/index.component.scss +0 -230
  31. package/src/lib/common-grid/index.component.ts +0 -420
  32. package/src/lib/constant/index.ts +0 -59
  33. package/src/lib/raise-common-lib.module.ts +0 -48
  34. package/tsconfig.lib.json +0 -26
  35. package/tsconfig.spec.json +0 -17
  36. package/tslint.json +0 -17
@@ -0,0 +1,1130 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@syncfusion/ej2-angular-grids'), require('@angular/common')) :
3
+ typeof define === 'function' && define.amd ? define('raise-common-lib', ['exports', '@angular/core', '@syncfusion/ej2-angular-grids', '@angular/common'], factory) :
4
+ (global = global || self, factory(global['raise-common-lib'] = {}, global.ng.core, global.ej2AngularGrids, global.ng.common));
5
+ }(this, (function (exports, core, ej2AngularGrids, common) { 'use strict';
6
+
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+ /* global Reflect, Promise */
22
+
23
+ var extendStatics = function(d, b) {
24
+ extendStatics = Object.setPrototypeOf ||
25
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
+ return extendStatics(d, b);
28
+ };
29
+
30
+ function __extends(d, b) {
31
+ extendStatics(d, b);
32
+ function __() { this.constructor = d; }
33
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
+ }
35
+
36
+ var __assign = function() {
37
+ __assign = Object.assign || function __assign(t) {
38
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
39
+ s = arguments[i];
40
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
+ }
42
+ return t;
43
+ };
44
+ return __assign.apply(this, arguments);
45
+ };
46
+
47
+ function __rest(s, e) {
48
+ var t = {};
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
+ t[p] = s[p];
51
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
+ t[p[i]] = s[p[i]];
55
+ }
56
+ return t;
57
+ }
58
+
59
+ function __decorate(decorators, target, key, desc) {
60
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
64
+ }
65
+
66
+ function __param(paramIndex, decorator) {
67
+ return function (target, key) { decorator(target, key, paramIndex); }
68
+ }
69
+
70
+ function __metadata(metadataKey, metadataValue) {
71
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
+ }
73
+
74
+ function __awaiter(thisArg, _arguments, P, generator) {
75
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
+ return new (P || (P = Promise))(function (resolve, reject) {
77
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
78
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
79
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
80
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
81
+ });
82
+ }
83
+
84
+ function __generator(thisArg, body) {
85
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
86
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
87
+ function verb(n) { return function (v) { return step([n, v]); }; }
88
+ function step(op) {
89
+ if (f) throw new TypeError("Generator is already executing.");
90
+ while (_) try {
91
+ 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) return t;
92
+ if (y = 0, t) op = [op[0] & 2, t.value];
93
+ switch (op[0]) {
94
+ case 0: case 1: t = op; break;
95
+ case 4: _.label++; return { value: op[1], done: false };
96
+ case 5: _.label++; y = op[1]; op = [0]; continue;
97
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
98
+ default:
99
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
100
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
101
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
102
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103
+ if (t[2]) _.ops.pop();
104
+ _.trys.pop(); continue;
105
+ }
106
+ op = body.call(thisArg, _);
107
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
108
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
109
+ }
110
+ }
111
+
112
+ function __createBinding(o, m, k, k2) {
113
+ if (k2 === undefined) k2 = k;
114
+ o[k2] = m[k];
115
+ }
116
+
117
+ function __exportStar(m, exports) {
118
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
119
+ }
120
+
121
+ function __values(o) {
122
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
123
+ if (m) return m.call(o);
124
+ if (o && typeof o.length === "number") return {
125
+ next: function () {
126
+ if (o && i >= o.length) o = void 0;
127
+ return { value: o && o[i++], done: !o };
128
+ }
129
+ };
130
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
131
+ }
132
+
133
+ function __read(o, n) {
134
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
135
+ if (!m) return o;
136
+ var i = m.call(o), r, ar = [], e;
137
+ try {
138
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
139
+ }
140
+ catch (error) { e = { error: error }; }
141
+ finally {
142
+ try {
143
+ if (r && !r.done && (m = i["return"])) m.call(i);
144
+ }
145
+ finally { if (e) throw e.error; }
146
+ }
147
+ return ar;
148
+ }
149
+
150
+ function __spread() {
151
+ for (var ar = [], i = 0; i < arguments.length; i++)
152
+ ar = ar.concat(__read(arguments[i]));
153
+ return ar;
154
+ }
155
+
156
+ function __spreadArrays() {
157
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
158
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
159
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
160
+ r[k] = a[j];
161
+ return r;
162
+ };
163
+
164
+ function __await(v) {
165
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
166
+ }
167
+
168
+ function __asyncGenerator(thisArg, _arguments, generator) {
169
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
170
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
171
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
172
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
173
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
174
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
175
+ function fulfill(value) { resume("next", value); }
176
+ function reject(value) { resume("throw", value); }
177
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
178
+ }
179
+
180
+ function __asyncDelegator(o) {
181
+ var i, p;
182
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
183
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
184
+ }
185
+
186
+ function __asyncValues(o) {
187
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
188
+ var m = o[Symbol.asyncIterator], i;
189
+ 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);
190
+ 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); }); }; }
191
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
192
+ }
193
+
194
+ function __makeTemplateObject(cooked, raw) {
195
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
196
+ return cooked;
197
+ };
198
+
199
+ function __importStar(mod) {
200
+ if (mod && mod.__esModule) return mod;
201
+ var result = {};
202
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
203
+ result.default = mod;
204
+ return result;
205
+ }
206
+
207
+ function __importDefault(mod) {
208
+ return (mod && mod.__esModule) ? mod : { default: mod };
209
+ }
210
+
211
+ function __classPrivateFieldGet(receiver, privateMap) {
212
+ if (!privateMap.has(receiver)) {
213
+ throw new TypeError("attempted to get private field on non-instance");
214
+ }
215
+ return privateMap.get(receiver);
216
+ }
217
+
218
+ function __classPrivateFieldSet(receiver, privateMap, value) {
219
+ if (!privateMap.has(receiver)) {
220
+ throw new TypeError("attempted to set private field on non-instance");
221
+ }
222
+ privateMap.set(receiver, value);
223
+ return value;
224
+ }
225
+
226
+ /**
227
+ * @fileoverview added by tsickle
228
+ * Generated from: lib/common-grid/index.component.ts
229
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
230
+ */
231
+ var CommonGridComponent = /** @class */ (function () {
232
+ function CommonGridComponent(ref) {
233
+ this.ref = ref;
234
+ this.showCheckBox = true;
235
+ this.loaded = true;
236
+ this.hiddenLoaded = false;
237
+ this.authorized = true; // Dataset是否授权,未授权则显示权限错误提示
238
+ // Dataset是否授权,未授权则显示权限错误提示
239
+ // only use for local data pagination
240
+ this.selectedDiffKey = '';
241
+ this.gridHeight = '';
242
+ // 这玩意必填,不然filter columnChooser都会报错
243
+ this.gridId = 'grid';
244
+ this.resizeSettings = { mode: 'Auto' };
245
+ this.filterSettings = { type: 'Menu' };
246
+ this.fields = [];
247
+ this.dataSource = [];
248
+ this.allowPaging = true;
249
+ this.clipMode = 'EllipsisWithTooltip';
250
+ this.checkBoxWidth = 32; // col 数量过少的时候,check宽度会拉伸,这时候设置null
251
+ /**
252
+ * Sample: [
253
+ * {
254
+ * text: "Preview",
255
+ * target: ".e-content",
256
+ * id: "preview-icon",
257
+ * iconCss: "preview",
258
+ * },
259
+ * {
260
+ * text: "Download",
261
+ * target: ".e-content",
262
+ * id: "download-icon",
263
+ * iconCss: "download",
264
+ * }
265
+ * ]
266
+ * 用于定义row中 点击事件
267
+ */
268
+ this.contextMenuItems = [];
269
+ // @Input() selectionSettings = { checkboxOnly: true, type: "Multiple" };
270
+ this.selectionSettings = {
271
+ type: 'Multiple',
272
+ // persistSelection: true,
273
+ checkboxOnly: true,
274
+ };
275
+ this.alwaysShowCheckbox = false;
276
+ this.disableSystemRow = false; // 禁用IsSytem = true的整行
277
+ // 禁用IsSytem = true的整行
278
+ this.recordDoubleClick = new core.EventEmitter();
279
+ this.actionComplete = new core.EventEmitter();
280
+ this.rowSelected = new core.EventEmitter();
281
+ this.rowDeselected = new core.EventEmitter();
282
+ this.onContextMenu = new core.EventEmitter();
283
+ this.actionHandler = new core.EventEmitter();
284
+ this.queryCellInfo = new core.EventEmitter();
285
+ this.recordClick = new core.EventEmitter();
286
+ this.actionBegin = new core.EventEmitter();
287
+ this.rowDataBound = new core.EventEmitter();
288
+ this.dataBound = new core.EventEmitter();
289
+ this.exportQueryCellInfo = new core.EventEmitter();
290
+ this.rowSelecting = new core.EventEmitter();
291
+ this.selectId = [];
292
+ this.startPaging = false;
293
+ this.indexList = [];
294
+ this.className = 'grid-loading';
295
+ this.translation = JSON.parse(localStorage.getItem('translation'));
296
+ }
297
+ /**
298
+ * @return {?}
299
+ */
300
+ CommonGridComponent.prototype.ngOnInit = /**
301
+ * @return {?}
302
+ */
303
+ function () {
304
+ if (this.hiddenLoaded)
305
+ this.className = '';
306
+ this.ref && this.ref.markForCheck();
307
+ };
308
+ /**
309
+ * @param {?} index
310
+ * @param {?} item
311
+ * @return {?}
312
+ */
313
+ CommonGridComponent.prototype.trackByFn = /**
314
+ * @param {?} index
315
+ * @param {?} item
316
+ * @return {?}
317
+ */
318
+ function (index, item) {
319
+ return index; // or a unique identifier in your object
320
+ };
321
+ /**
322
+ * @param {?} changes
323
+ * @return {?}
324
+ */
325
+ CommonGridComponent.prototype.ngOnChanges = /**
326
+ * @param {?} changes
327
+ * @return {?}
328
+ */
329
+ function (changes) {
330
+ if (changes.dataSource && changes.dataSource.currentValue) {
331
+ if (this.allowPaging &&
332
+ changes.dataSource.currentValue.length &&
333
+ !this.pageSettings) {
334
+ this.pageSettings =
335
+ changes.dataSource.currentValue.length > 9
336
+ ? {
337
+ pageSizes: ['All', '25', '50', '100'],
338
+ pageSize: 50,
339
+ }
340
+ : null;
341
+ }
342
+ }
343
+ };
344
+ /**
345
+ * @return {?}
346
+ */
347
+ CommonGridComponent.prototype._load = /**
348
+ * @return {?}
349
+ */
350
+ function () {
351
+ if (!this.authorized) {
352
+ ((/** @type {?} */ (this.grid.localeObj))).localeStrings.EmptyRecord =
353
+ this.translation.YOU_DO_NOT_HAVE_THE_DATASET_PERMISSION ||
354
+ "You don't have the dataset permission to view the record.";
355
+ }
356
+ };
357
+ /**
358
+ * @param {?} args
359
+ * @return {?}
360
+ */
361
+ CommonGridComponent.prototype._dataBound = /**
362
+ * @param {?} args
363
+ * @return {?}
364
+ */
365
+ function (args) {
366
+ var _this = this;
367
+ // 整个组件加载完成时的回调函数
368
+ /** @type {?} */
369
+ var pagerContainer = document.querySelector('.e-pagercontainer');
370
+ if (pagerContainer) {
371
+ /** @type {?} */
372
+ var linkElements = pagerContainer.querySelectorAll('.e-link');
373
+ linkElements.forEach((/**
374
+ * @param {?} element
375
+ * @return {?}
376
+ */
377
+ function (element) {
378
+ element.removeAttribute('href'); // SMP2-10310 删除分页器的href属性
379
+ }));
380
+ }
381
+ if (this.selectedDiffKey) {
382
+ setTimeout((/**
383
+ * @return {?}
384
+ */
385
+ function () {
386
+ _this.chooseRecords();
387
+ }));
388
+ }
389
+ this.dataBound.emit(args);
390
+ };
391
+ /**
392
+ * @param {?} args
393
+ * @return {?}
394
+ */
395
+ CommonGridComponent.prototype._exportQueryCellInfo = /**
396
+ * @param {?} args
397
+ * @return {?}
398
+ */
399
+ function (args) {
400
+ this.exportQueryCellInfo.emit(args);
401
+ };
402
+ /**
403
+ * @param {?} $event
404
+ * @return {?}
405
+ */
406
+ CommonGridComponent.prototype._recordDoubleClick = /**
407
+ * @param {?} $event
408
+ * @return {?}
409
+ */
410
+ function ($event) {
411
+ this.recordDoubleClick.emit($event);
412
+ };
413
+ /**
414
+ * [selectionSettings]="{ checkboxOnly: true }"
415
+ [showCheckBox]="true"
416
+ 控件使用时,必须配置上面两个属性,否则,全选会失效
417
+ */
418
+ /**
419
+ * [selectionSettings]="{ checkboxOnly: true }"
420
+ * [showCheckBox]="true"
421
+ * 控件使用时,必须配置上面两个属性,否则,全选会失效
422
+ * @param {?} $event
423
+ * @return {?}
424
+ */
425
+ CommonGridComponent.prototype._rowSelected = /**
426
+ * [selectionSettings]="{ checkboxOnly: true }"
427
+ * [showCheckBox]="true"
428
+ * 控件使用时,必须配置上面两个属性,否则,全选会失效
429
+ * @param {?} $event
430
+ * @return {?}
431
+ */
432
+ function ($event) {
433
+ var _this = this;
434
+ if (this.selectedDiffKey) {
435
+ if ($event.isHeaderCheckboxClicked && Array.isArray($event.data)) {
436
+ if ($event.data && $event.data.length) {
437
+ $event.data.forEach((/**
438
+ * @param {?} item
439
+ * @return {?}
440
+ */
441
+ function (item) {
442
+ item.isSelected = true;
443
+ _this.selectId.push(item);
444
+ }));
445
+ this.dataSource.forEach((/**
446
+ * @param {?} data
447
+ * @return {?}
448
+ */
449
+ function (data) {
450
+ $event.data.forEach((/**
451
+ * @param {?} _data
452
+ * @return {?}
453
+ */
454
+ function (_data) {
455
+ if (_data[_this.selectedDiffKey] === data[_this.selectedDiffKey]) {
456
+ data.isSelected = true;
457
+ }
458
+ }));
459
+ }));
460
+ }
461
+ }
462
+ else {
463
+ $event.data.isSelected = true;
464
+ this.selectId.push($event.data);
465
+ this.dataSource.forEach((/**
466
+ * @param {?} data
467
+ * @return {?}
468
+ */
469
+ function (data) {
470
+ if (data[_this.selectedDiffKey] === $event.data[_this.selectedDiffKey]) {
471
+ data.isSelected = true;
472
+ }
473
+ }));
474
+ }
475
+ this.ref && this.ref.markForCheck();
476
+ }
477
+ this.rowSelected.emit($event);
478
+ };
479
+ /**
480
+ * @param {?} $event
481
+ * @return {?}
482
+ */
483
+ CommonGridComponent.prototype._rowDeselected = /**
484
+ * @param {?} $event
485
+ * @return {?}
486
+ */
487
+ function ($event) {
488
+ var _this = this;
489
+ if (this.selectedDiffKey) {
490
+ if (this.startPaging) {
491
+ return;
492
+ }
493
+ if ($event.isHeaderCheckboxClicked && Array.isArray($event.data)) {
494
+ $event.data.forEach((/**
495
+ * @param {?} item
496
+ * @return {?}
497
+ */
498
+ function (item) {
499
+ item.isSelected = false;
500
+ }));
501
+ this.selectId = [];
502
+ this.dataSource.forEach((/**
503
+ * @param {?} data
504
+ * @return {?}
505
+ */
506
+ function (data) {
507
+ $event.data.forEach((/**
508
+ * @param {?} _data
509
+ * @return {?}
510
+ */
511
+ function (_data) {
512
+ if (_data[_this.selectedDiffKey] === data[_this.selectedDiffKey]) {
513
+ data.isSelected = false;
514
+ }
515
+ }));
516
+ }));
517
+ }
518
+ else {
519
+ $event.data.isSelected = false;
520
+ this.selectId = this.selectId.filter((/**
521
+ * @param {?} item
522
+ * @return {?}
523
+ */
524
+ function (item) {
525
+ return item[_this.selectedDiffKey] !== $event.data[_this.selectedDiffKey];
526
+ }));
527
+ this.dataSource.forEach((/**
528
+ * @param {?} data
529
+ * @return {?}
530
+ */
531
+ function (data) {
532
+ if (data[_this.selectedDiffKey] === $event.data[_this.selectedDiffKey]) {
533
+ data.isSelected = false;
534
+ }
535
+ }));
536
+ }
537
+ this.ref && this.ref.markForCheck();
538
+ }
539
+ this.rowDeselected.emit($event);
540
+ };
541
+ /**
542
+ * @param {?} args
543
+ * @return {?}
544
+ */
545
+ CommonGridComponent.prototype._onContextMenu = /**
546
+ * @param {?} args
547
+ * @return {?}
548
+ */
549
+ function (args) {
550
+ this.onContextMenu.emit(args);
551
+ };
552
+ /**
553
+ * @param {?} args
554
+ * @return {?}
555
+ */
556
+ CommonGridComponent.prototype._actionBegin = /**
557
+ * @param {?} args
558
+ * @return {?}
559
+ */
560
+ function (args) {
561
+ if (this.selectedDiffKey &&
562
+ (args.requestType === 'paging' ||
563
+ args.requestType === 'searching' ||
564
+ args.requestType === 'filtering' ||
565
+ args.requestType === 'sorting')) {
566
+ this.startPaging = true;
567
+ }
568
+ this.actionBegin.emit(args);
569
+ };
570
+ /**
571
+ * @param {?} keywords
572
+ * @return {?}
573
+ */
574
+ CommonGridComponent.prototype.search = /**
575
+ * @param {?} keywords
576
+ * @return {?}
577
+ */
578
+ function (keywords) {
579
+ this.grid.search(keywords);
580
+ };
581
+ /**
582
+ * @param {?} indexList
583
+ * @return {?}
584
+ */
585
+ CommonGridComponent.prototype.selectRows = /**
586
+ * @param {?} indexList
587
+ * @return {?}
588
+ */
589
+ function (indexList) {
590
+ this.grid.selectRows(indexList);
591
+ };
592
+ /**
593
+ * @param {?} index
594
+ * @return {?}
595
+ */
596
+ CommonGridComponent.prototype.selectRow = /**
597
+ * @param {?} index
598
+ * @return {?}
599
+ */
600
+ function (index) {
601
+ this.grid.selectRow(index);
602
+ };
603
+ /**
604
+ * @return {?}
605
+ */
606
+ CommonGridComponent.prototype.getCurrentViewRecords = /**
607
+ * @return {?}
608
+ */
609
+ function () {
610
+ return this.grid.getCurrentViewRecords();
611
+ };
612
+ /**
613
+ * @param {?} $event
614
+ * @return {?}
615
+ */
616
+ CommonGridComponent.prototype.customiseCell = /**
617
+ * @param {?} $event
618
+ * @return {?}
619
+ */
620
+ function ($event) {
621
+ this.queryCellInfo.emit($event);
622
+ };
623
+ /**
624
+ * @param {?=} args
625
+ * @return {?}
626
+ */
627
+ CommonGridComponent.prototype.contextMenuOpen = /**
628
+ * @param {?=} args
629
+ * @return {?}
630
+ */
631
+ function (args) {
632
+ /** @type {?} */
633
+ var data = ((/** @type {?} */ (args))).rowInfo.rowData;
634
+ if (!data) {
635
+ args.cancel = true;
636
+ return;
637
+ }
638
+ /** @type {?} */
639
+ var enableItems = [];
640
+ /** @type {?} */
641
+ var hideItems = [];
642
+ this.grid.contextMenuModule.contextMenu.refresh(); // 每次点击按钮弹窗前需再次初始化状态 否则不更新;
643
+ this.contextMenuItems.forEach((/**
644
+ * @param {?} item
645
+ * @return {?}
646
+ */
647
+ function (item) {
648
+ // 用于处理部分按钮disabled的情况
649
+ if (item.disabled ||
650
+ (data.disableItem && data.disableItem.includes(item.iconCss))) {
651
+ enableItems.push(item.text);
652
+ // this.grid.contextMenuModule.contextMenu.enableItems(
653
+ // [item.text],
654
+ // false
655
+ // );
656
+ }
657
+ // 用于处理部分按钮需要hide的情况
658
+ if (item.isHide ||
659
+ (data.hideItem && data.hideItem.includes(item.iconCss))) {
660
+ hideItems.push(item.text);
661
+ // this.grid.contextMenuModule.contextMenu.hideItems(
662
+ // [item.text],
663
+ // false
664
+ // );
665
+ }
666
+ }));
667
+ this.grid.contextMenuModule.contextMenu.enableItems(enableItems, false);
668
+ this.grid.contextMenuModule.contextMenu.hideItems(hideItems, false);
669
+ };
670
+ /**
671
+ * @param {?} $event
672
+ * @return {?}
673
+ */
674
+ CommonGridComponent.prototype._actionHandler = /**
675
+ * @param {?} $event
676
+ * @return {?}
677
+ */
678
+ function ($event) {
679
+ var _this = this;
680
+ if (this.selectedDiffKey &&
681
+ ($event.requestType === 'paging' ||
682
+ $event.requestType === 'searching' ||
683
+ $event.requestType === 'filtering' ||
684
+ $event.requestType === 'sorting')) {
685
+ this.indexList = [];
686
+ setTimeout((/**
687
+ * @return {?}
688
+ */
689
+ function () {
690
+ _this.chooseRecords();
691
+ _this.startPaging = false;
692
+ _this.ref && _this.ref.detectChanges();
693
+ _this.ref && _this.ref.markForCheck();
694
+ }));
695
+ }
696
+ this.actionHandler.emit($event);
697
+ this.actionComplete.emit($event);
698
+ };
699
+ /**
700
+ * @private
701
+ * @return {?}
702
+ */
703
+ CommonGridComponent.prototype.chooseRecords = /**
704
+ * @private
705
+ * @return {?}
706
+ */
707
+ function () {
708
+ var _this = this;
709
+ this.indexList = [];
710
+ this.dataSource.forEach((/**
711
+ * @param {?} data
712
+ * @return {?}
713
+ */
714
+ function (data) {
715
+ _this.grid.getCurrentViewRecords().forEach((/**
716
+ * @param {?} row
717
+ * @param {?} i
718
+ * @return {?}
719
+ */
720
+ function (row, i) {
721
+ if (row &&
722
+ data[_this.selectedDiffKey] === row[_this.selectedDiffKey] &&
723
+ data.isSelected) {
724
+ _this.indexList.push(i);
725
+ }
726
+ }));
727
+ }));
728
+ this.grid.selectRows(this.indexList);
729
+ };
730
+ /**
731
+ * @param {?} $event
732
+ * @return {?}
733
+ */
734
+ CommonGridComponent.prototype._recordClick = /**
735
+ * @param {?} $event
736
+ * @return {?}
737
+ */
738
+ function ($event) {
739
+ this.recordClick.emit($event);
740
+ };
741
+ /**
742
+ * @return {?}
743
+ */
744
+ CommonGridComponent.prototype.refresh = /**
745
+ * @return {?}
746
+ */
747
+ function () {
748
+ this.grid.refresh();
749
+ };
750
+ /**
751
+ * @param {?} e
752
+ * @return {?}
753
+ */
754
+ CommonGridComponent.prototype._rowSelecting = /**
755
+ * @param {?} e
756
+ * @return {?}
757
+ */
758
+ function (e) {
759
+ this.rowSelecting.emit(e);
760
+ };
761
+ /**
762
+ * @return {?}
763
+ */
764
+ CommonGridComponent.prototype.refreshColumns = /**
765
+ * @return {?}
766
+ */
767
+ function () {
768
+ this.grid.refreshColumns();
769
+ };
770
+ /**
771
+ * @return {?}
772
+ */
773
+ CommonGridComponent.prototype.refreshHeader = /**
774
+ * @return {?}
775
+ */
776
+ function () {
777
+ this.grid.refreshHeader();
778
+ };
779
+ /**
780
+ * @param {?=} excelExportProperties
781
+ * @return {?}
782
+ */
783
+ CommonGridComponent.prototype.export = /**
784
+ * @param {?=} excelExportProperties
785
+ * @return {?}
786
+ */
787
+ function (excelExportProperties) {
788
+ this.grid.excelExport(excelExportProperties);
789
+ };
790
+ /**
791
+ * @return {?}
792
+ */
793
+ CommonGridComponent.prototype.getSelectedRecords = /**
794
+ * @return {?}
795
+ */
796
+ function () {
797
+ return this.grid.getSelectedRecords();
798
+ };
799
+ /**
800
+ * @param {?} $event
801
+ * @return {?}
802
+ */
803
+ CommonGridComponent.prototype._rowDataBound = /**
804
+ * @param {?} $event
805
+ * @return {?}
806
+ */
807
+ function ($event) {
808
+ if (this.disableSystemRow && $event.data && $event.data.IsSystem) {
809
+ $event.row.classList.add('e-disabled');
810
+ }
811
+ this.rowDataBound.emit($event);
812
+ };
813
+ /**
814
+ * @return {?}
815
+ */
816
+ CommonGridComponent.prototype.clearSelection = /**
817
+ * @return {?}
818
+ */
819
+ function () {
820
+ this.grid.clearSelection();
821
+ };
822
+ /**
823
+ * @return {?}
824
+ */
825
+ CommonGridComponent.prototype.excelExport = /**
826
+ * @return {?}
827
+ */
828
+ function () {
829
+ this.grid.excelExport();
830
+ };
831
+ /**
832
+ * @return {?}
833
+ */
834
+ CommonGridComponent.prototype.addItem = /**
835
+ * @return {?}
836
+ */
837
+ function () {
838
+ var _this = this;
839
+ this.grid.addRecord(__assign({}, this.defaultRecord, { isNew: true }), 0);
840
+ setTimeout((/**
841
+ * @return {?}
842
+ */
843
+ function () {
844
+ _this.grid.selectRow(0);
845
+ _this.grid.startEdit();
846
+ }), 30);
847
+ };
848
+ /**
849
+ * @return {?}
850
+ */
851
+ CommonGridComponent.prototype.saveItem = /**
852
+ * @return {?}
853
+ */
854
+ function () {
855
+ this.grid.endEdit();
856
+ };
857
+ /**
858
+ * @param {?} index
859
+ * @return {?}
860
+ */
861
+ CommonGridComponent.prototype.editItem = /**
862
+ * @param {?} index
863
+ * @return {?}
864
+ */
865
+ function (index) {
866
+ var _this = this;
867
+ setTimeout((/**
868
+ * @return {?}
869
+ */
870
+ function () {
871
+ _this.grid.selectRow(Number(index));
872
+ _this.grid.startEdit();
873
+ }), 30);
874
+ };
875
+ /**
876
+ * @param {?} index
877
+ * @return {?}
878
+ */
879
+ CommonGridComponent.prototype.deleteItem = /**
880
+ * @param {?} index
881
+ * @return {?}
882
+ */
883
+ function (index) {
884
+ this.grid.selectRow(Number(index));
885
+ /** @type {?} */
886
+ var selectedRecord = (/** @type {?} */ (this.grid.getSelectedRecords()[0]));
887
+ this.grid.deleteRecord((/** @type {?} */ (selectedRecord)));
888
+ };
889
+ /**
890
+ * @param {?} index
891
+ * @return {?}
892
+ */
893
+ CommonGridComponent.prototype.cancelItem = /**
894
+ * @param {?} index
895
+ * @return {?}
896
+ */
897
+ function (index) {
898
+ this.grid.closeEdit();
899
+ this.deleteItem(index);
900
+ };
901
+ /**
902
+ * @return {?}
903
+ */
904
+ CommonGridComponent.prototype.showLoading = /**
905
+ * @return {?}
906
+ */
907
+ function () {
908
+ this.className = 'grid-loading';
909
+ this.ref && this.ref.markForCheck();
910
+ this.ref && this.ref.detectChanges();
911
+ };
912
+ /**
913
+ * @return {?}
914
+ */
915
+ CommonGridComponent.prototype.hideLoading = /**
916
+ * @return {?}
917
+ */
918
+ function () {
919
+ this.className = '';
920
+ this.ref && this.ref.markForCheck();
921
+ this.ref && this.ref.detectChanges();
922
+ };
923
+ CommonGridComponent.decorators = [
924
+ { type: core.Component, args: [{
925
+ selector: 'kt-common-grid',
926
+ template: "<ejs-grid\r\n\t#grid\r\n\t[id]=\"gridId\"\r\n\t[ngClass]=\"{\r\n\t\t'hide-Check-box': !alwaysShowCheckbox,\r\n\t\t'grid-loading': className === 'grid-loading'\r\n\t}\"\r\n\t[dataSource]=\"dataSource\"\r\n\t[allowPaging]=\"allowPaging && pageSettings\"\r\n\t[allowResizing]=\"true\"\r\n\t[pageSettings]=\"pageSettings\"\r\n\t[showColumnMenu]=\"true\"\r\n\t[allowSorting]=\"true\"\r\n\t[allowFiltering]=\"true\"\r\n\t[allowExcelExport]=\"true\"\r\n\t[filterSettings]=\"filterSettings\"\r\n\t[resizeSettings]=\"resizeSettings\"\r\n\t[allowSelection]=\"true\"\r\n\t[editSettings]=\"editSettings\"\r\n\t[childGrid]=\"childGrid\"\r\n\t[contextMenuItems]=\"\r\n\t\tdataSource && dataSource.length ? contextMenuItems : null\r\n\t\"\r\n\t[selectionSettings]=\"selectionSettings\"\r\n\t(recordClick)=\"_recordClick($event)\"\r\n\t(recordDoubleClick)=\"_recordDoubleClick($event)\"\r\n\t(actionBegin)=\"_actionBegin($event)\"\r\n\t(actionComplete)=\"_actionHandler($event)\"\r\n\t(rowSelected)=\"_rowSelected($event)\"\r\n\t(rowDeselected)=\"_rowDeselected($event)\"\r\n\tstyle=\"border: none\"\r\n\t(contextMenuClick)=\"_onContextMenu($event)\"\r\n\t(contextMenuOpen)=\"contextMenuOpen($event)\"\r\n\t(queryCellInfo)=\"customiseCell($event)\"\r\n\t(dataBound)=\"_dataBound($event)\"\r\n\t(rowDataBound)=\"_rowDataBound($event)\"\r\n\t(rowSelecting)=\"_rowSelecting($event)\"\r\n\t(excelQueryCellInfo)=\"_exportQueryCellInfo($event)\"\r\n\t(load)=\"_load()\"\r\n>\r\n\t<e-columns>\r\n\t\t<e-column\r\n\t\t\t*ngIf=\"showCheckBox\"\r\n\t\t\ttype=\"checkbox\"\r\n\t\t\t[width]=\"checkBoxWidth\"\r\n\t\t\t[showColumnMenu]=\"false\"\r\n\t\t></e-column>\r\n\t\t<e-column\r\n\t\t\t*ngFor=\"let item of fields; trackBy: trackByFn\"\r\n\t\t\t[field]=\"item.columnName\"\r\n\t\t\t[filter]=\"item.filter ? item.filter : { type: 'CheckBox' }\"\r\n\t\t\t[customAttributes]=\"\r\n\t\t\t\titem.colName === 'entityUserList' ||\r\n\t\t\t\titem.colName === 'kycProgress'\r\n\t\t\t\t\t? { class: 'hideColumnFilterClass' }\r\n\t\t\t\t\t: {}\r\n\t\t\t\"\r\n\t\t\t[headerText]=\"item.columnDisplayName\"\r\n\t\t\t[textAlign]=\"item.textAlign\"\r\n\t\t\t[showColumnMenu]=\"item.showColumnMenu === undefined ? true : false\"\r\n\t\t\t[allowFiltering]=\"item.allowFiltering === undefined ? true : false\"\r\n\t\t\t[allowSorting]=\"item.allowSorting === undefined ? true : false\"\r\n\t\t\t[editType]=\"item.editType\"\r\n\t\t\t[validationRules]=\"item.validationRules\"\r\n\t\t\t[type]=\"item.dataType\"\r\n\t\t\t[width]=\"item.width\"\r\n\t\t\t[minWidth]=\"item.minWidth\"\r\n\t\t\t[format]=\"item.format\"\r\n\t\t\t[visible]=\"item.visible\"\r\n\t\t\t[template]=\"item.showTemplate ? columnTemplate : undefined\"\r\n\t\t\t[clipMode]=\"\r\n\t\t\t\titem.clipMode\r\n\t\t\t\t\t? item.clipMode\r\n\t\t\t\t\t: clipMode || 'EllipsisWithTooltip'\r\n\t\t\t\"\r\n\t\t\t[sortComparer]=\"item.dateComparer\"\r\n\t\t>\r\n\t\t</e-column>\r\n\t</e-columns>\r\n</ejs-grid>\r\n",
927
+ styles: [".e-grid.e-gridhover tr[role=row]:hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell){background:rgba(31,123,255,.04)!important}.e-summaryrow .e-summarycell:nth-child(2){padding-left:0!important}.e-footerpadding{padding-right:0!important}.e-footerpadding .e-summaryrow{margin-right:5px!important}.e-footerpadding .e-summaryrow .e-indentcell{background-color:unset!important}kt-common-grid{display:flex;flex:1;height:100%}kt-common-grid .e-grid{height:100%}kt-common-grid .e-grid .e-headercontent{margin-right:0!important}.e-grid td.e-active{background:#edf5ff!important}.grid-tools{height:32px;min-height:32px;display:flex;align-items:center;justify-content:space-between;padding-left:7px}.grid-tools .right-opt-group{display:flex;align-items:center;margin-right:6px}.grid-tools .tools-button{border:none;font-family:Arial;font-size:12px;color:#43566c;background:0 0;display:flex;align-items:center;padding:0;margin-right:16px}.grid-tools .tools-button.disabled-button{pointer-events:none;opacity:.5}.grid-tools .tools-button img{margin-right:4px;height:16px!important;width:16px!important}.grid-tools .tools-button .tools-font{transform:translateY(1px);display:inline-block}.grid-tools .select-num{font-size:12px;color:#43566c;margin-right:24px;white-space:nowrap}.e-rowcell{padding:0 8px 0 12px}.e-rowcell.e-gridchkbox{padding:0 0 0 8px!important}.e-headercell{padding:0}.e-headercell:first-child.e-defaultcursor+.e-headercell .e-headercelldiv{padding-left:0}.e-headercell .e-headercelldiv{margin:0;padding:0 20px 0 12px}.e-headercell .e-headerchkcelldiv{padding:0 0 0 8px!important}.e-headercell .e-columnmenu{position:absolute;right:0;float:unset;margin:0;padding:0;top:8px}.e-headercell .e-sortfilterdiv{padding-top:11px}.e-headercell.e-rightalign .e-sortfilterdiv{padding-left:5px}.e-detailheadercell{height:28px!important}.e-grid{font-family:Arial!important;display:flex;flex-direction:column;flex:1;border:none;overflow:hidden}.e-grid .e-gridcontent{flex:1}.e-grid .e-content{overflow:scroll!important}.e-grid .e-content::-webkit-scrollbar{width:5px;height:5px;background:#fff;position:static;z-index:999;border-radius:10px}.e-grid .e-content::-webkit-scrollbar-thumb{background:#eaedf0;border-radius:10px}.e-grid .e-gridheader{margin-right:5px!important;padding-right:0!important;height:30px!important}.e-grid .e-content,.e-grid .e-gridcontent{display:flex;flex-direction:column;flex:1}.e-grid .e-columnheader,.e-grid .e-headercell,.e-grid .e-rhandler{height:28px!important}.e-grid .e-headertext{font-size:10px!important}.e-grid .e-headercell .e-columnmenu{color:#929dab}.e-grid .e-row{height:26px!important;line-height:26px!important}.e-grid .e-rowcell{font-size:11px!important;color:#43566c!important;padding-top:0;padding-bottom:0;padding-right:7px}.e-grid .e-rowcell .mat-icon-button{height:26px;width:26px;line-height:26px}.e-grid .e-rowcell:empty{height:26px!important}.e-grid .e-rowcell.e-gridchkbox+.e-rowcell{padding-left:0!important}.e-grid .e-gridpager{border:none}.e-grid .e-gridpager .e-gridcontent{transform:unset}.e-grid .e-summaryrow{height:24px!important}.e-grid .e-summaryrow .e-indentcell,.e-grid .e-summaryrow .e-summarycell{background-color:#fff;border:none;font-family:Arial;font-size:11px!important;font-weight:700;color:#43566c;padding:0 12px}.e-grid .e-row:last-child .e-rowcell{border-bottom:1px solid #dee2e6}"]
928
+ }] }
929
+ ];
930
+ /** @nocollapse */
931
+ CommonGridComponent.ctorParameters = function () { return [
932
+ { type: core.ChangeDetectorRef }
933
+ ]; };
934
+ CommonGridComponent.propDecorators = {
935
+ grid: [{ type: core.ViewChild, args: ['grid', { static: false },] }],
936
+ showCheckBox: [{ type: core.Input }],
937
+ loaded: [{ type: core.Input }],
938
+ hiddenLoaded: [{ type: core.Input }],
939
+ authorized: [{ type: core.Input }],
940
+ selectedDiffKey: [{ type: core.Input }],
941
+ gridHeight: [{ type: core.Input }],
942
+ gridId: [{ type: core.Input }],
943
+ resizeSettings: [{ type: core.Input }],
944
+ filterSettings: [{ type: core.Input }],
945
+ template: [{ type: core.Input }],
946
+ fields: [{ type: core.Input }],
947
+ dataSource: [{ type: core.Input }],
948
+ editSettings: [{ type: core.Input }],
949
+ columnTemplate: [{ type: core.Input }],
950
+ pageSettings: [{ type: core.Input }],
951
+ allowPaging: [{ type: core.Input }],
952
+ clipMode: [{ type: core.Input }],
953
+ checkBoxWidth: [{ type: core.Input }],
954
+ childGrid: [{ type: core.Input }],
955
+ contextMenuItems: [{ type: core.Input }],
956
+ selectionSettings: [{ type: core.Input }],
957
+ alwaysShowCheckbox: [{ type: core.Input }],
958
+ defaultRecord: [{ type: core.Input }],
959
+ disableSystemRow: [{ type: core.Input }],
960
+ recordDoubleClick: [{ type: core.Output }],
961
+ actionComplete: [{ type: core.Output }],
962
+ rowSelected: [{ type: core.Output }],
963
+ rowDeselected: [{ type: core.Output }],
964
+ onContextMenu: [{ type: core.Output }],
965
+ actionHandler: [{ type: core.Output }],
966
+ queryCellInfo: [{ type: core.Output }],
967
+ recordClick: [{ type: core.Output }],
968
+ actionBegin: [{ type: core.Output }],
969
+ rowDataBound: [{ type: core.Output }],
970
+ dataBound: [{ type: core.Output }],
971
+ exportQueryCellInfo: [{ type: core.Output }],
972
+ rowSelecting: [{ type: core.Output }]
973
+ };
974
+ return CommonGridComponent;
975
+ }());
976
+ if (false) {
977
+ /** @type {?} */
978
+ CommonGridComponent.prototype.grid;
979
+ /** @type {?} */
980
+ CommonGridComponent.prototype.showCheckBox;
981
+ /** @type {?} */
982
+ CommonGridComponent.prototype.loaded;
983
+ /** @type {?} */
984
+ CommonGridComponent.prototype.hiddenLoaded;
985
+ /** @type {?} */
986
+ CommonGridComponent.prototype.authorized;
987
+ /** @type {?} */
988
+ CommonGridComponent.prototype.selectedDiffKey;
989
+ /** @type {?} */
990
+ CommonGridComponent.prototype.gridHeight;
991
+ /** @type {?} */
992
+ CommonGridComponent.prototype.gridId;
993
+ /** @type {?} */
994
+ CommonGridComponent.prototype.resizeSettings;
995
+ /** @type {?} */
996
+ CommonGridComponent.prototype.filterSettings;
997
+ /** @type {?} */
998
+ CommonGridComponent.prototype.template;
999
+ /** @type {?} */
1000
+ CommonGridComponent.prototype.fields;
1001
+ /** @type {?} */
1002
+ CommonGridComponent.prototype.dataSource;
1003
+ /** @type {?} */
1004
+ CommonGridComponent.prototype.editSettings;
1005
+ /** @type {?} */
1006
+ CommonGridComponent.prototype.columnTemplate;
1007
+ /** @type {?} */
1008
+ CommonGridComponent.prototype.pageSettings;
1009
+ /** @type {?} */
1010
+ CommonGridComponent.prototype.allowPaging;
1011
+ /** @type {?} */
1012
+ CommonGridComponent.prototype.clipMode;
1013
+ /** @type {?} */
1014
+ CommonGridComponent.prototype.checkBoxWidth;
1015
+ /** @type {?} */
1016
+ CommonGridComponent.prototype.childGrid;
1017
+ /**
1018
+ * Sample: [
1019
+ * {
1020
+ * text: "Preview",
1021
+ * target: ".e-content",
1022
+ * id: "preview-icon",
1023
+ * iconCss: "preview",
1024
+ * },
1025
+ * {
1026
+ * text: "Download",
1027
+ * target: ".e-content",
1028
+ * id: "download-icon",
1029
+ * iconCss: "download",
1030
+ * }
1031
+ * ]
1032
+ * 用于定义row中 点击事件
1033
+ * @type {?}
1034
+ */
1035
+ CommonGridComponent.prototype.contextMenuItems;
1036
+ /** @type {?} */
1037
+ CommonGridComponent.prototype.selectionSettings;
1038
+ /** @type {?} */
1039
+ CommonGridComponent.prototype.alwaysShowCheckbox;
1040
+ /** @type {?} */
1041
+ CommonGridComponent.prototype.defaultRecord;
1042
+ /** @type {?} */
1043
+ CommonGridComponent.prototype.disableSystemRow;
1044
+ /** @type {?} */
1045
+ CommonGridComponent.prototype.recordDoubleClick;
1046
+ /** @type {?} */
1047
+ CommonGridComponent.prototype.actionComplete;
1048
+ /** @type {?} */
1049
+ CommonGridComponent.prototype.rowSelected;
1050
+ /** @type {?} */
1051
+ CommonGridComponent.prototype.rowDeselected;
1052
+ /** @type {?} */
1053
+ CommonGridComponent.prototype.onContextMenu;
1054
+ /** @type {?} */
1055
+ CommonGridComponent.prototype.actionHandler;
1056
+ /** @type {?} */
1057
+ CommonGridComponent.prototype.queryCellInfo;
1058
+ /** @type {?} */
1059
+ CommonGridComponent.prototype.recordClick;
1060
+ /** @type {?} */
1061
+ CommonGridComponent.prototype.actionBegin;
1062
+ /** @type {?} */
1063
+ CommonGridComponent.prototype.rowDataBound;
1064
+ /** @type {?} */
1065
+ CommonGridComponent.prototype.dataBound;
1066
+ /** @type {?} */
1067
+ CommonGridComponent.prototype.exportQueryCellInfo;
1068
+ /** @type {?} */
1069
+ CommonGridComponent.prototype.rowSelecting;
1070
+ /** @type {?} */
1071
+ CommonGridComponent.prototype.selectId;
1072
+ /** @type {?} */
1073
+ CommonGridComponent.prototype.startPaging;
1074
+ /** @type {?} */
1075
+ CommonGridComponent.prototype.indexList;
1076
+ /** @type {?} */
1077
+ CommonGridComponent.prototype.className;
1078
+ /** @type {?} */
1079
+ CommonGridComponent.prototype.translation;
1080
+ /**
1081
+ * @type {?}
1082
+ * @private
1083
+ */
1084
+ CommonGridComponent.prototype.ref;
1085
+ }
1086
+
1087
+ /**
1088
+ * @fileoverview added by tsickle
1089
+ * Generated from: lib/raise-common-lib.module.ts
1090
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1091
+ */
1092
+ var RaiseCommonLibModule = /** @class */ (function () {
1093
+ function RaiseCommonLibModule() {
1094
+ }
1095
+ RaiseCommonLibModule.decorators = [
1096
+ { type: core.NgModule, args: [{
1097
+ declarations: [
1098
+ CommonGridComponent,
1099
+ ],
1100
+ imports: [common.CommonModule, ej2AngularGrids.GridModule, ej2AngularGrids.PagerModule, ej2AngularGrids.GridAllModule],
1101
+ providers: [
1102
+ ej2AngularGrids.PageService,
1103
+ ej2AngularGrids.SortService,
1104
+ ej2AngularGrids.FilterService,
1105
+ ej2AngularGrids.ExcelExportService,
1106
+ ej2AngularGrids.EditService,
1107
+ ej2AngularGrids.ResizeService,
1108
+ ej2AngularGrids.ToolbarService,
1109
+ ej2AngularGrids.ColumnChooserService,
1110
+ ej2AngularGrids.AggregateService,
1111
+ ej2AngularGrids.ColumnMenuService,
1112
+ ej2AngularGrids.DetailRowService,
1113
+ ej2AngularGrids.SelectionService,
1114
+ ej2AngularGrids.GroupService,
1115
+ ],
1116
+ exports: [
1117
+ CommonGridComponent,
1118
+ ]
1119
+ },] }
1120
+ ];
1121
+ return RaiseCommonLibModule;
1122
+ }());
1123
+
1124
+ exports.CommonGridComponent = CommonGridComponent;
1125
+ exports.RaiseCommonLibModule = RaiseCommonLibModule;
1126
+
1127
+ Object.defineProperty(exports, '__esModule', { value: true });
1128
+
1129
+ })));
1130
+ //# sourceMappingURL=raise-common-lib.umd.js.map