imng-kendo-grid 2.330.3 → 3.4.2
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/bundles/imng-kendo-grid-testing.umd.js +33 -44
- package/bundles/imng-kendo-grid-testing.umd.js.map +1 -1
- package/bundles/imng-kendo-grid.umd.js +93 -269
- package/bundles/imng-kendo-grid.umd.js.map +1 -1
- package/esm2015/imng-kendo-grid.js +2 -7
- package/esm2015/index.js +4 -9
- package/esm2015/lib/editable-data-grid.directive.js +21 -93
- package/esm2015/lib/editable-data-grid.module.js +13 -13
- package/esm2015/lib/grid-data-entry.helper.js +9 -136
- package/esm2015/testing/imng-kendo-grid-testing.js +2 -7
- package/esm2015/testing/index.js +2 -7
- package/esm2015/testing/kendo-grid-tests.js +1 -22
- package/esm2015/testing/public_api.js +2 -7
- package/fesm2015/imng-kendo-grid-testing.js +1 -36
- package/fesm2015/imng-kendo-grid-testing.js.map +1 -1
- package/fesm2015/imng-kendo-grid.js +40 -249
- package/fesm2015/imng-kendo-grid.js.map +1 -1
- package/imng-kendo-grid.d.ts +2 -0
- package/imng-kendo-grid.d.ts.map +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -0
- package/lib/editable-data-grid.directive.d.ts +7 -2
- package/lib/editable-data-grid.directive.d.ts.map +1 -0
- package/lib/editable-data-grid.module.d.ts +7 -0
- package/lib/editable-data-grid.module.d.ts.map +1 -0
- package/lib/grid-data-entry.helper.d.ts +3 -1
- package/lib/grid-data-entry.helper.d.ts.map +1 -0
- package/package.json +22 -11
- package/testing/imng-kendo-grid-testing.d.ts +2 -0
- package/testing/imng-kendo-grid-testing.d.ts.map +1 -0
- package/testing/index.d.ts +1 -0
- package/testing/index.d.ts.map +1 -0
- package/testing/kendo-grid-tests.d.ts +5 -3
- package/testing/kendo-grid-tests.d.ts.map +1 -0
- package/testing/package.json +1 -2
- package/testing/public_api.d.ts +1 -0
- package/testing/public_api.d.ts.map +1 -0
- package/bundles/imng-kendo-grid-testing.umd.min.js +0 -16
- package/bundles/imng-kendo-grid-testing.umd.min.js.map +0 -1
- package/bundles/imng-kendo-grid.umd.min.js +0 -16
- package/bundles/imng-kendo-grid.umd.min.js.map +0 -1
- package/esm2015/imng-kendo-grid.js.map +0 -1
- package/esm2015/imng-kendo-grid.metadata.json +0 -1
- package/esm2015/index.js.map +0 -1
- package/esm2015/index.metadata.json +0 -1
- package/esm2015/lib/editable-data-grid.directive.js.map +0 -1
- package/esm2015/lib/editable-data-grid.directive.metadata.json +0 -1
- package/esm2015/lib/editable-data-grid.module.js.map +0 -1
- package/esm2015/lib/editable-data-grid.module.metadata.json +0 -1
- package/esm2015/lib/grid-data-entry.helper.js.map +0 -1
- package/esm2015/lib/grid-data-entry.helper.metadata.json +0 -1
- package/esm2015/testing/imng-kendo-grid-testing.js.map +0 -1
- package/esm2015/testing/imng-kendo-grid-testing.metadata.json +0 -1
- package/esm2015/testing/index.js.map +0 -1
- package/esm2015/testing/index.metadata.json +0 -1
- package/esm2015/testing/kendo-grid-tests.js.map +0 -1
- package/esm2015/testing/kendo-grid-tests.metadata.json +0 -1
- package/esm2015/testing/public_api.js.map +0 -1
- package/esm2015/testing/public_api.metadata.json +0 -1
- package/imng-kendo-grid.metadata.json +0 -1
- package/testing/imng-kendo-grid-testing.metadata.json +0 -1
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('rxjs/operators'), require('@progress/kendo-data-query'), require('@angular/core'), require('@angular/common'), require('@progress/kendo-angular-grid')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('imng-kendo-grid', ['exports', 'rxjs', 'rxjs/operators', '@progress/kendo-data-query', '@angular/core', '@angular/common', '@progress/kendo-angular-grid'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global[
|
|
5
|
-
}(this, (function (exports, rxjs, operators, kendoDataQuery,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('rxjs/operators'), require('@progress/kendo-data-query'), require('@angular/core'), require('@angular/common'), require('imng-ngrx-utils'), require('@progress/kendo-angular-grid')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('imng-kendo-grid', ['exports', 'rxjs', 'rxjs/operators', '@progress/kendo-data-query', '@angular/core', '@angular/common', 'imng-ngrx-utils', '@progress/kendo-angular-grid'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["imng-kendo-grid"] = {}, global.rxjs, global.rxjs.operators, global.kendoDataQuery, global.ng.core, global.ng.common, global.imngNgrxUtils, global.i1));
|
|
5
|
+
})(this, (function (exports, rxjs, operators, kendoDataQuery, i0, common, imngNgrxUtils, i1) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
6
27
|
|
|
7
28
|
/*! *****************************************************************************
|
|
8
29
|
Copyright (c) Microsoft Corporation.
|
|
@@ -28,6 +49,8 @@
|
|
|
28
49
|
return extendStatics(d, b);
|
|
29
50
|
};
|
|
30
51
|
function __extends(d, b) {
|
|
52
|
+
if (typeof b !== "function" && b !== null)
|
|
53
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
31
54
|
extendStatics(d, b);
|
|
32
55
|
function __() { this.constructor = d; }
|
|
33
56
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -213,11 +236,13 @@
|
|
|
213
236
|
}
|
|
214
237
|
return ar;
|
|
215
238
|
}
|
|
239
|
+
/** @deprecated */
|
|
216
240
|
function __spread() {
|
|
217
241
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
218
242
|
ar = ar.concat(__read(arguments[i]));
|
|
219
243
|
return ar;
|
|
220
244
|
}
|
|
245
|
+
/** @deprecated */
|
|
221
246
|
function __spreadArrays() {
|
|
222
247
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
223
248
|
s += arguments[i].length;
|
|
@@ -226,7 +251,17 @@
|
|
|
226
251
|
r[k] = a[j];
|
|
227
252
|
return r;
|
|
228
253
|
}
|
|
229
|
-
|
|
254
|
+
function __spreadArray(to, from, pack) {
|
|
255
|
+
if (pack || arguments.length === 2)
|
|
256
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
257
|
+
if (ar || !(i in from)) {
|
|
258
|
+
if (!ar)
|
|
259
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
260
|
+
ar[i] = from[i];
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
264
|
+
}
|
|
230
265
|
function __await(v) {
|
|
231
266
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
232
267
|
}
|
|
@@ -291,28 +326,24 @@
|
|
|
291
326
|
function __importDefault(mod) {
|
|
292
327
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
293
328
|
}
|
|
294
|
-
function __classPrivateFieldGet(receiver,
|
|
295
|
-
if (!
|
|
296
|
-
throw new TypeError("
|
|
297
|
-
|
|
298
|
-
|
|
329
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
330
|
+
if (kind === "a" && !f)
|
|
331
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
332
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
333
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
334
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
299
335
|
}
|
|
300
|
-
function __classPrivateFieldSet(receiver,
|
|
301
|
-
if (
|
|
302
|
-
throw new TypeError("
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
336
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
337
|
+
if (kind === "m")
|
|
338
|
+
throw new TypeError("Private method is not writable");
|
|
339
|
+
if (kind === "a" && !f)
|
|
340
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
341
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
342
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
343
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
306
344
|
}
|
|
307
345
|
|
|
308
|
-
/**
|
|
309
|
-
* @template T
|
|
310
|
-
*/
|
|
311
346
|
var GridDataEntryHelper = /** @class */ (function () {
|
|
312
|
-
/**
|
|
313
|
-
* @param {?} formGroupFactory
|
|
314
|
-
* @param {?=} _gridData
|
|
315
|
-
*/
|
|
316
347
|
function GridDataEntryHelper(formGroupFactory, _gridData) {
|
|
317
348
|
if (_gridData === void 0) { _gridData = []; }
|
|
318
349
|
this.formGroupFactory = formGroupFactory;
|
|
@@ -321,9 +352,6 @@
|
|
|
321
352
|
this._gridData$ = new rxjs.BehaviorSubject(_gridData);
|
|
322
353
|
}
|
|
323
354
|
Object.defineProperty(GridDataEntryHelper.prototype, "gridFormGroup", {
|
|
324
|
-
/**
|
|
325
|
-
* @return {?}
|
|
326
|
-
*/
|
|
327
355
|
get: function () {
|
|
328
356
|
return this._gridFormGroup;
|
|
329
357
|
},
|
|
@@ -331,9 +359,6 @@
|
|
|
331
359
|
configurable: true
|
|
332
360
|
});
|
|
333
361
|
Object.defineProperty(GridDataEntryHelper.prototype, "gridData$", {
|
|
334
|
-
/**
|
|
335
|
-
* @return {?}
|
|
336
|
-
*/
|
|
337
362
|
get: function () {
|
|
338
363
|
return this._gridData$.asObservable();
|
|
339
364
|
},
|
|
@@ -341,19 +366,12 @@
|
|
|
341
366
|
configurable: true
|
|
342
367
|
});
|
|
343
368
|
Object.defineProperty(GridDataEntryHelper.prototype, "gridData", {
|
|
344
|
-
/**
|
|
345
|
-
* @return {?}
|
|
346
|
-
*/
|
|
347
369
|
get: function () {
|
|
348
370
|
return this._gridData;
|
|
349
371
|
},
|
|
350
|
-
/**
|
|
351
|
-
* @param {?} value
|
|
352
|
-
* @return {?}
|
|
353
|
-
*/
|
|
354
372
|
set: function (value) {
|
|
355
373
|
if (value) {
|
|
356
|
-
this._gridData =
|
|
374
|
+
this._gridData = __spreadArray([], __read(value));
|
|
357
375
|
this._gridData$.next(this._gridData);
|
|
358
376
|
}
|
|
359
377
|
},
|
|
@@ -361,9 +379,6 @@
|
|
|
361
379
|
configurable: true
|
|
362
380
|
});
|
|
363
381
|
Object.defineProperty(GridDataEntryHelper.prototype, "isInEditMode", {
|
|
364
|
-
/**
|
|
365
|
-
* @return {?}
|
|
366
|
-
*/
|
|
367
382
|
get: function () {
|
|
368
383
|
return !!this._gridFormGroup;
|
|
369
384
|
},
|
|
@@ -371,9 +386,6 @@
|
|
|
371
386
|
configurable: true
|
|
372
387
|
});
|
|
373
388
|
Object.defineProperty(GridDataEntryHelper.prototype, "isValid", {
|
|
374
|
-
/**
|
|
375
|
-
* @return {?}
|
|
376
|
-
*/
|
|
377
389
|
get: function () {
|
|
378
390
|
return this.gridValidationLogic(this.gridData);
|
|
379
391
|
},
|
|
@@ -381,26 +393,13 @@
|
|
|
381
393
|
configurable: true
|
|
382
394
|
});
|
|
383
395
|
Object.defineProperty(GridDataEntryHelper.prototype, "isValid$", {
|
|
384
|
-
/**
|
|
385
|
-
* @return {?}
|
|
386
|
-
*/
|
|
387
396
|
get: function () {
|
|
388
397
|
var _this = this;
|
|
389
|
-
return this.gridData$.pipe(operators.map((
|
|
390
|
-
* @param {?} t
|
|
391
|
-
* @return {?}
|
|
392
|
-
*/function (/**
|
|
393
|
-
* @param {?} t
|
|
394
|
-
* @return {?}
|
|
395
|
-
*/ t) { return _this.gridValidationLogic(t); })));
|
|
398
|
+
return this.gridData$.pipe(operators.map(function (t) { return _this.gridValidationLogic(t); }));
|
|
396
399
|
},
|
|
397
400
|
enumerable: false,
|
|
398
401
|
configurable: true
|
|
399
402
|
});
|
|
400
|
-
/**
|
|
401
|
-
* @param {...?} items
|
|
402
|
-
* @return {?}
|
|
403
|
-
*/
|
|
404
403
|
GridDataEntryHelper.prototype.addItems = function () {
|
|
405
404
|
var _a;
|
|
406
405
|
var items = [];
|
|
@@ -408,15 +407,11 @@
|
|
|
408
407
|
items[_i] = arguments[_i];
|
|
409
408
|
}
|
|
410
409
|
if (items) {
|
|
411
|
-
(_a = this._gridData).push.apply(_a,
|
|
410
|
+
(_a = this._gridData).push.apply(_a, __spreadArray([], __read(items)));
|
|
412
411
|
this._gridData$.next(this._gridData);
|
|
413
412
|
}
|
|
414
413
|
return this._gridData;
|
|
415
414
|
};
|
|
416
|
-
/**
|
|
417
|
-
* @param {...?} items
|
|
418
|
-
* @return {?}
|
|
419
|
-
*/
|
|
420
415
|
GridDataEntryHelper.prototype.removeItems = function () {
|
|
421
416
|
var _this = this;
|
|
422
417
|
var items = [];
|
|
@@ -424,29 +419,13 @@
|
|
|
424
419
|
items[_i] = arguments[_i];
|
|
425
420
|
}
|
|
426
421
|
if (items) {
|
|
427
|
-
items.forEach((
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
*/function (/**
|
|
431
|
-
* @param {?} f
|
|
432
|
-
* @return {?}
|
|
433
|
-
*/ f) {
|
|
434
|
-
_this._gridData = _this.gridData.filter(( /**
|
|
435
|
-
* @param {?} t
|
|
436
|
-
* @return {?}
|
|
437
|
-
*/function (/**
|
|
438
|
-
* @param {?} t
|
|
439
|
-
* @return {?}
|
|
440
|
-
*/ t) { return t !== f; }));
|
|
441
|
-
}));
|
|
422
|
+
items.forEach(function (f) {
|
|
423
|
+
_this._gridData = _this.gridData.filter(function (t) { return t !== f; });
|
|
424
|
+
});
|
|
442
425
|
this._gridData$.next(this._gridData);
|
|
443
426
|
}
|
|
444
427
|
return this._gridData;
|
|
445
428
|
};
|
|
446
|
-
/**
|
|
447
|
-
* @param {?} editEvent
|
|
448
|
-
* @return {?}
|
|
449
|
-
*/
|
|
450
429
|
GridDataEntryHelper.prototype.editHandler = function (editEvent) {
|
|
451
430
|
this.closeEditor(editEvent.sender, editEvent.rowIndex);
|
|
452
431
|
this._gridFormGroup = this.formGroupFactory();
|
|
@@ -454,40 +433,18 @@
|
|
|
454
433
|
this._editedRowIndex = editEvent.rowIndex;
|
|
455
434
|
editEvent.sender.editRow(editEvent.rowIndex, this._gridFormGroup);
|
|
456
435
|
};
|
|
457
|
-
/**
|
|
458
|
-
* @private
|
|
459
|
-
* @param {?} grid
|
|
460
|
-
* @param {?=} rowIndex
|
|
461
|
-
* @return {?}
|
|
462
|
-
*/
|
|
463
436
|
GridDataEntryHelper.prototype.closeEditor = function (grid, rowIndex) {
|
|
464
437
|
if (rowIndex === void 0) { rowIndex = this._editedRowIndex; }
|
|
465
438
|
grid.closeRow(rowIndex);
|
|
466
439
|
this._editedRowIndex = undefined;
|
|
467
440
|
this._gridFormGroup = undefined;
|
|
468
441
|
};
|
|
469
|
-
/**
|
|
470
|
-
* @param {?} cancelEvent
|
|
471
|
-
* @return {?}
|
|
472
|
-
*/
|
|
473
442
|
GridDataEntryHelper.prototype.cancelHandler = function (cancelEvent) {
|
|
474
443
|
this.closeEditor(cancelEvent.sender, cancelEvent.rowIndex);
|
|
475
444
|
};
|
|
476
|
-
/**
|
|
477
|
-
* @param {?} saveEvent
|
|
478
|
-
* @return {?}
|
|
479
|
-
*/
|
|
480
445
|
GridDataEntryHelper.prototype.saveHandler = function (saveEvent) {
|
|
481
|
-
/** @type {?} */
|
|
482
446
|
var result = saveEvent.formGroup.value;
|
|
483
|
-
|
|
484
|
-
var tempGrid = this.gridData.map(( /**
|
|
485
|
-
* @param {?} t
|
|
486
|
-
* @return {?}
|
|
487
|
-
*/function (/**
|
|
488
|
-
* @param {?} t
|
|
489
|
-
* @return {?}
|
|
490
|
-
*/ t) { return (Object.assign({}, t)); }));
|
|
447
|
+
var tempGrid = this.gridData.map(function (t) { return (Object.assign({}, t)); });
|
|
491
448
|
if (saveEvent.isNew) {
|
|
492
449
|
result.id = null;
|
|
493
450
|
tempGrid.push(result);
|
|
@@ -499,84 +456,28 @@
|
|
|
499
456
|
this._gridData$.next(this.gridData);
|
|
500
457
|
this.closeEditor(saveEvent.sender, saveEvent.rowIndex);
|
|
501
458
|
};
|
|
502
|
-
/**
|
|
503
|
-
* @param {?} removeEvent
|
|
504
|
-
* @return {?}
|
|
505
|
-
*/
|
|
506
459
|
GridDataEntryHelper.prototype.removeHandler = function (removeEvent) {
|
|
507
|
-
|
|
508
|
-
var tempGrid = this.gridData.map(( /**
|
|
509
|
-
* @param {?} t
|
|
510
|
-
* @return {?}
|
|
511
|
-
*/function (/**
|
|
512
|
-
* @param {?} t
|
|
513
|
-
* @return {?}
|
|
514
|
-
*/ t) { return (Object.assign({}, t)); }));
|
|
460
|
+
var tempGrid = this.gridData.map(function (t) { return (Object.assign({}, t)); });
|
|
515
461
|
tempGrid.splice(removeEvent.rowIndex, 1);
|
|
516
462
|
this.gridData = tempGrid;
|
|
517
463
|
this._gridData$.next(this.gridData);
|
|
518
464
|
};
|
|
519
|
-
/**
|
|
520
|
-
* @param {?} sortDescriptors
|
|
521
|
-
* @return {?}
|
|
522
|
-
*/
|
|
523
465
|
GridDataEntryHelper.prototype.sortHandler = function (sortDescriptors) {
|
|
524
466
|
this.sortDescriptors$.next(sortDescriptors);
|
|
525
467
|
this.gridData = kendoDataQuery.orderBy(this.gridData, sortDescriptors);
|
|
526
468
|
};
|
|
527
|
-
/**
|
|
528
|
-
* @param {?} addEvent
|
|
529
|
-
* @return {?}
|
|
530
|
-
*/
|
|
531
469
|
GridDataEntryHelper.prototype.addHandler = function (addEvent) {
|
|
532
470
|
this.closeEditor(addEvent.sender);
|
|
533
471
|
this._gridFormGroup = this.formGroupFactory();
|
|
534
472
|
addEvent.sender.addRow(this._gridFormGroup);
|
|
535
473
|
};
|
|
536
|
-
|
|
537
|
-
* @param {?} data
|
|
538
|
-
* @return {?}
|
|
539
|
-
*/
|
|
474
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
540
475
|
GridDataEntryHelper.prototype.gridValidationLogic = function (data) {
|
|
541
476
|
return this._gridData.length > 0 && !this._gridFormGroup;
|
|
542
477
|
};
|
|
543
478
|
return GridDataEntryHelper;
|
|
544
479
|
}());
|
|
545
|
-
if (false) {
|
|
546
|
-
/**
|
|
547
|
-
* @type {?}
|
|
548
|
-
* @private
|
|
549
|
-
*/
|
|
550
|
-
GridDataEntryHelper.prototype._editedRowIndex;
|
|
551
|
-
/**
|
|
552
|
-
* @type {?}
|
|
553
|
-
* @private
|
|
554
|
-
*/
|
|
555
|
-
GridDataEntryHelper.prototype._gridFormGroup;
|
|
556
|
-
/**
|
|
557
|
-
* @type {?}
|
|
558
|
-
* @private
|
|
559
|
-
*/
|
|
560
|
-
GridDataEntryHelper.prototype._gridData$;
|
|
561
|
-
/** @type {?} */
|
|
562
|
-
GridDataEntryHelper.prototype.sortDescriptors$;
|
|
563
|
-
/**
|
|
564
|
-
* @type {?}
|
|
565
|
-
* @private
|
|
566
|
-
*/
|
|
567
|
-
GridDataEntryHelper.prototype.formGroupFactory;
|
|
568
|
-
/**
|
|
569
|
-
* @type {?}
|
|
570
|
-
* @private
|
|
571
|
-
*/
|
|
572
|
-
GridDataEntryHelper.prototype._gridData;
|
|
573
|
-
}
|
|
574
480
|
|
|
575
|
-
/**
|
|
576
|
-
* @fileoverview added by tsickle
|
|
577
|
-
* Generated from: lib/editable-data-grid.directive.ts
|
|
578
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
579
|
-
*/
|
|
580
481
|
/*
|
|
581
482
|
* ### Example markup
|
|
582
483
|
* <kendo-grid [imngEditableDataGrid]="gridDataEntryHelper" .... />
|
|
@@ -585,66 +486,29 @@
|
|
|
585
486
|
* gridDataEntryHelper must be set to an instance GridDataEntryHelper
|
|
586
487
|
*/
|
|
587
488
|
var ImngEditableDataGridDirective = /** @class */ (function () {
|
|
588
|
-
/**
|
|
589
|
-
* @param {?} gridComponent
|
|
590
|
-
* @param {?} changeDetectorRef
|
|
591
|
-
*/
|
|
592
489
|
function ImngEditableDataGridDirective(gridComponent, changeDetectorRef) {
|
|
593
490
|
this.gridComponent = gridComponent;
|
|
594
491
|
this.changeDetectorRef = changeDetectorRef;
|
|
595
|
-
this.
|
|
492
|
+
this.allSubscriptions = new imngNgrxUtils.Subscriptions();
|
|
596
493
|
}
|
|
597
494
|
Object.defineProperty(ImngEditableDataGridDirective.prototype, "gridDataEntryHelper", {
|
|
598
|
-
|
|
599
|
-
* @return {?}
|
|
600
|
-
*/
|
|
495
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
601
496
|
get: function () {
|
|
602
497
|
return this._gridDataEntryHelper;
|
|
603
498
|
},
|
|
604
|
-
/**
|
|
605
|
-
* @param {?} value
|
|
606
|
-
* @return {?}
|
|
607
|
-
*/
|
|
608
499
|
set: function (value) {
|
|
609
500
|
var _this = this;
|
|
610
501
|
this._gridDataEntryHelper = value;
|
|
611
|
-
this.
|
|
612
|
-
.pipe(operators.tap((
|
|
613
|
-
* @param {?} sortDescriptor
|
|
614
|
-
* @return {?}
|
|
615
|
-
*/function (/**
|
|
616
|
-
* @param {?} sortDescriptor
|
|
617
|
-
* @return {?}
|
|
618
|
-
*/ sortDescriptor) { return (_this.gridComponent.sort = sortDescriptor); })))
|
|
502
|
+
this.allSubscriptions.push(this.gridDataEntryHelper.sortDescriptors$
|
|
503
|
+
.pipe(operators.tap(function (sortDescriptor) { return (_this.gridComponent.sort = sortDescriptor); }))
|
|
619
504
|
.subscribe());
|
|
620
505
|
},
|
|
621
506
|
enumerable: false,
|
|
622
507
|
configurable: true
|
|
623
508
|
});
|
|
624
|
-
/**
|
|
625
|
-
* @return {?}
|
|
626
|
-
*/
|
|
627
509
|
ImngEditableDataGridDirective.prototype.ngOnInit = function () {
|
|
628
510
|
var _this = this;
|
|
629
|
-
this.
|
|
630
|
-
* @param {?} t
|
|
631
|
-
* @return {?}
|
|
632
|
-
*/function (t) { return _this.gridDataEntryHelper.editHandler(t); })), this.gridComponent.cancel.subscribe(( /**
|
|
633
|
-
* @param {?} t
|
|
634
|
-
* @return {?}
|
|
635
|
-
*/function (t) { return _this.gridDataEntryHelper.cancelHandler(t); })), this.gridComponent.save.subscribe(( /**
|
|
636
|
-
* @param {?} t
|
|
637
|
-
* @return {?}
|
|
638
|
-
*/function (t) { return _this.gridDataEntryHelper.saveHandler(t); })), this.gridComponent.remove.subscribe(( /**
|
|
639
|
-
* @param {?} t
|
|
640
|
-
* @return {?}
|
|
641
|
-
*/function (t) { return _this.gridDataEntryHelper.removeHandler(t); })), this.gridComponent.add.subscribe(( /**
|
|
642
|
-
* @param {?} t
|
|
643
|
-
* @return {?}
|
|
644
|
-
*/function (t) { return _this.gridDataEntryHelper.addHandler(t); })), this.gridComponent.sortChange.subscribe(( /**
|
|
645
|
-
* @param {?} t
|
|
646
|
-
* @return {?}
|
|
647
|
-
*/function (t) { return _this.gridDataEntryHelper.sortHandler(t); })));
|
|
511
|
+
this.allSubscriptions.push(this.gridComponent.edit.subscribe(function (t) { return _this.gridDataEntryHelper.editHandler(t); }), this.gridComponent.cancel.subscribe(function (t) { return _this.gridDataEntryHelper.cancelHandler(t); }), this.gridComponent.save.subscribe(function (t) { return _this.gridDataEntryHelper.saveHandler(t); }), this.gridComponent.remove.subscribe(function (t) { return _this.gridDataEntryHelper.removeHandler(t); }), this.gridComponent.add.subscribe(function (t) { return _this.gridDataEntryHelper.addHandler(t); }), this.gridComponent.sortChange.subscribe(function (t) { return _this.gridDataEntryHelper.sortHandler(t); }));
|
|
648
512
|
this.gridComponent.reorderable = true;
|
|
649
513
|
this.gridComponent.resizable = true;
|
|
650
514
|
this.gridComponent.filterable = false;
|
|
@@ -654,82 +518,42 @@
|
|
|
654
518
|
};
|
|
655
519
|
this.gridComponent.navigable = true;
|
|
656
520
|
};
|
|
657
|
-
/**
|
|
658
|
-
* @return {?}
|
|
659
|
-
*/
|
|
660
521
|
ImngEditableDataGridDirective.prototype.ngOnDestroy = function () {
|
|
661
|
-
this.
|
|
662
|
-
* @param {?} t
|
|
663
|
-
* @return {?}
|
|
664
|
-
*/function (/**
|
|
665
|
-
* @param {?} t
|
|
666
|
-
* @return {?}
|
|
667
|
-
*/ t) {
|
|
668
|
-
if (t) {
|
|
669
|
-
t.unsubscribe();
|
|
670
|
-
}
|
|
671
|
-
}));
|
|
522
|
+
this.allSubscriptions.unsubscribeAll();
|
|
672
523
|
};
|
|
673
524
|
return ImngEditableDataGridDirective;
|
|
674
525
|
}());
|
|
675
|
-
ImngEditableDataGridDirective
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
gridDataEntryHelper: [{ type: core.Input, args: ['imngEditableDataGrid',] }]
|
|
687
|
-
};
|
|
688
|
-
if (false) {
|
|
689
|
-
/**
|
|
690
|
-
* @type {?}
|
|
691
|
-
* @private
|
|
692
|
-
*/
|
|
693
|
-
ImngEditableDataGridDirective.prototype.subscriptions;
|
|
694
|
-
/** @type {?} */
|
|
695
|
-
ImngEditableDataGridDirective.prototype._gridDataEntryHelper;
|
|
696
|
-
/** @type {?} */
|
|
697
|
-
ImngEditableDataGridDirective.prototype.gridComponent;
|
|
698
|
-
/**
|
|
699
|
-
* @type {?}
|
|
700
|
-
* @private
|
|
701
|
-
*/
|
|
702
|
-
ImngEditableDataGridDirective.prototype.changeDetectorRef;
|
|
703
|
-
}
|
|
526
|
+
/** @nocollapse */ ImngEditableDataGridDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: ImngEditableDataGridDirective, deps: [{ token: i1__namespace.GridComponent }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
527
|
+
/** @nocollapse */ ImngEditableDataGridDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: ImngEditableDataGridDirective, selector: "[imngEditableDataGrid]", inputs: { gridDataEntryHelper: ["imngEditableDataGrid", "gridDataEntryHelper"] }, ngImport: i0__namespace });
|
|
528
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: ImngEditableDataGridDirective, decorators: [{
|
|
529
|
+
type: i0.Directive,
|
|
530
|
+
args: [{
|
|
531
|
+
selector: '[imngEditableDataGrid]',
|
|
532
|
+
}]
|
|
533
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.GridComponent }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { gridDataEntryHelper: [{
|
|
534
|
+
type: i0.Input,
|
|
535
|
+
args: ['imngEditableDataGrid']
|
|
536
|
+
}] } });
|
|
704
537
|
|
|
705
|
-
/**
|
|
706
|
-
* @fileoverview added by tsickle
|
|
707
|
-
* Generated from: lib/editable-data-grid.module.ts
|
|
708
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
709
|
-
*/
|
|
710
538
|
var ImngEditableDataGridModule = /** @class */ (function () {
|
|
711
539
|
function ImngEditableDataGridModule() {
|
|
712
540
|
}
|
|
713
541
|
return ImngEditableDataGridModule;
|
|
714
542
|
}());
|
|
715
|
-
ImngEditableDataGridModule
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
727
|
-
*/
|
|
543
|
+
/** @nocollapse */ ImngEditableDataGridModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: ImngEditableDataGridModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
544
|
+
/** @nocollapse */ ImngEditableDataGridModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: ImngEditableDataGridModule, declarations: [ImngEditableDataGridDirective], imports: [common.CommonModule], exports: [ImngEditableDataGridDirective] });
|
|
545
|
+
/** @nocollapse */ ImngEditableDataGridModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: ImngEditableDataGridModule, imports: [[common.CommonModule]] });
|
|
546
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: ImngEditableDataGridModule, decorators: [{
|
|
547
|
+
type: i0.NgModule,
|
|
548
|
+
args: [{
|
|
549
|
+
declarations: [ImngEditableDataGridDirective],
|
|
550
|
+
imports: [common.CommonModule],
|
|
551
|
+
exports: [ImngEditableDataGridDirective],
|
|
552
|
+
}]
|
|
553
|
+
}] });
|
|
728
554
|
|
|
729
555
|
/**
|
|
730
|
-
*
|
|
731
|
-
* Generated from: imng-kendo-grid.ts
|
|
732
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
556
|
+
* Generated bundle index. Do not edit.
|
|
733
557
|
*/
|
|
734
558
|
|
|
735
559
|
exports.GridDataEntryHelper = GridDataEntryHelper;
|
|
@@ -738,5 +562,5 @@
|
|
|
738
562
|
|
|
739
563
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
740
564
|
|
|
741
|
-
}))
|
|
565
|
+
}));
|
|
742
566
|
//# sourceMappingURL=imng-kendo-grid.umd.js.map
|