imng-kendo-grid 2.344.2 → 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.
Files changed (61) hide show
  1. package/bundles/imng-kendo-grid-testing.umd.js +33 -44
  2. package/bundles/imng-kendo-grid-testing.umd.js.map +1 -1
  3. package/bundles/imng-kendo-grid.umd.js +93 -269
  4. package/bundles/imng-kendo-grid.umd.js.map +1 -1
  5. package/esm2015/imng-kendo-grid.js +2 -7
  6. package/esm2015/index.js +4 -9
  7. package/esm2015/lib/editable-data-grid.directive.js +21 -93
  8. package/esm2015/lib/editable-data-grid.module.js +13 -13
  9. package/esm2015/lib/grid-data-entry.helper.js +9 -136
  10. package/esm2015/testing/imng-kendo-grid-testing.js +2 -7
  11. package/esm2015/testing/index.js +2 -7
  12. package/esm2015/testing/kendo-grid-tests.js +1 -22
  13. package/esm2015/testing/public_api.js +2 -7
  14. package/fesm2015/imng-kendo-grid-testing.js +1 -36
  15. package/fesm2015/imng-kendo-grid-testing.js.map +1 -1
  16. package/fesm2015/imng-kendo-grid.js +40 -249
  17. package/fesm2015/imng-kendo-grid.js.map +1 -1
  18. package/imng-kendo-grid.d.ts +2 -0
  19. package/imng-kendo-grid.d.ts.map +1 -0
  20. package/index.d.ts +1 -0
  21. package/index.d.ts.map +1 -0
  22. package/lib/editable-data-grid.directive.d.ts +7 -2
  23. package/lib/editable-data-grid.directive.d.ts.map +1 -0
  24. package/lib/editable-data-grid.module.d.ts +7 -0
  25. package/lib/editable-data-grid.module.d.ts.map +1 -0
  26. package/lib/grid-data-entry.helper.d.ts +3 -1
  27. package/lib/grid-data-entry.helper.d.ts.map +1 -0
  28. package/package.json +22 -11
  29. package/testing/imng-kendo-grid-testing.d.ts +2 -0
  30. package/testing/imng-kendo-grid-testing.d.ts.map +1 -0
  31. package/testing/index.d.ts +1 -0
  32. package/testing/index.d.ts.map +1 -0
  33. package/testing/kendo-grid-tests.d.ts +5 -3
  34. package/testing/kendo-grid-tests.d.ts.map +1 -0
  35. package/testing/package.json +1 -2
  36. package/testing/public_api.d.ts +1 -0
  37. package/testing/public_api.d.ts.map +1 -0
  38. package/bundles/imng-kendo-grid-testing.umd.min.js +0 -16
  39. package/bundles/imng-kendo-grid-testing.umd.min.js.map +0 -1
  40. package/bundles/imng-kendo-grid.umd.min.js +0 -16
  41. package/bundles/imng-kendo-grid.umd.min.js.map +0 -1
  42. package/esm2015/imng-kendo-grid.js.map +0 -1
  43. package/esm2015/imng-kendo-grid.metadata.json +0 -1
  44. package/esm2015/index.js.map +0 -1
  45. package/esm2015/index.metadata.json +0 -1
  46. package/esm2015/lib/editable-data-grid.directive.js.map +0 -1
  47. package/esm2015/lib/editable-data-grid.directive.metadata.json +0 -1
  48. package/esm2015/lib/editable-data-grid.module.js.map +0 -1
  49. package/esm2015/lib/editable-data-grid.module.metadata.json +0 -1
  50. package/esm2015/lib/grid-data-entry.helper.js.map +0 -1
  51. package/esm2015/lib/grid-data-entry.helper.metadata.json +0 -1
  52. package/esm2015/testing/imng-kendo-grid-testing.js.map +0 -1
  53. package/esm2015/testing/imng-kendo-grid-testing.metadata.json +0 -1
  54. package/esm2015/testing/index.js.map +0 -1
  55. package/esm2015/testing/index.metadata.json +0 -1
  56. package/esm2015/testing/kendo-grid-tests.js.map +0 -1
  57. package/esm2015/testing/kendo-grid-tests.metadata.json +0 -1
  58. package/esm2015/testing/public_api.js.map +0 -1
  59. package/esm2015/testing/public_api.metadata.json +0 -1
  60. package/imng-kendo-grid.metadata.json +0 -1
  61. package/testing/imng-kendo-grid-testing.metadata.json +0 -1
@@ -1,83 +1,43 @@
1
1
  import { BehaviorSubject } from 'rxjs';
2
2
  import { map, tap } from 'rxjs/operators';
3
3
  import { orderBy } from '@progress/kendo-data-query';
4
- import { Directive, ChangeDetectorRef, Input, NgModule } from '@angular/core';
4
+ import * as i0 from '@angular/core';
5
+ import { Directive, Input, NgModule } from '@angular/core';
5
6
  import { CommonModule } from '@angular/common';
6
- import { GridComponent } from '@progress/kendo-angular-grid';
7
+ import * as i1 from '@progress/kendo-angular-grid';
8
+ import { Subscriptions } from 'imng-ngrx-utils';
7
9
 
8
- /**
9
- * @fileoverview added by tsickle
10
- * Generated from: lib/grid-data-entry.helper.ts
11
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
12
- */
13
- /**
14
- * @template T
15
- */
16
10
  class GridDataEntryHelper {
17
- /**
18
- * @param {?} formGroupFactory
19
- * @param {?=} _gridData
20
- */
21
11
  constructor(formGroupFactory, _gridData = []) {
22
12
  this.formGroupFactory = formGroupFactory;
23
13
  this._gridData = _gridData;
24
14
  this.sortDescriptors$ = new BehaviorSubject([]);
25
15
  this._gridData$ = new BehaviorSubject(_gridData);
26
16
  }
27
- /**
28
- * @return {?}
29
- */
30
17
  get gridFormGroup() {
31
18
  return this._gridFormGroup;
32
19
  }
33
- /**
34
- * @return {?}
35
- */
36
20
  get gridData$() {
37
21
  return this._gridData$.asObservable();
38
22
  }
39
- /**
40
- * @return {?}
41
- */
42
23
  get gridData() {
43
24
  return this._gridData;
44
25
  }
45
- /**
46
- * @param {?} value
47
- * @return {?}
48
- */
49
26
  set gridData(value) {
50
27
  if (value) {
51
28
  this._gridData = [...value];
52
29
  this._gridData$.next(this._gridData);
53
30
  }
54
31
  }
55
- /**
56
- * @return {?}
57
- */
58
32
  get isInEditMode() {
59
33
  return !!this._gridFormGroup;
60
34
  }
61
- /**
62
- * @return {?}
63
- */
64
35
  get isValid() {
65
36
  return this.gridValidationLogic(this.gridData);
66
37
  }
67
- /**
68
- * @return {?}
69
- */
70
38
  get isValid$() {
71
- return this.gridData$.pipe(map((/**
72
- * @param {?} t
73
- * @return {?}
74
- */
75
- t => this.gridValidationLogic(t))));
39
+ return this.gridData$.pipe(map((t) => this.gridValidationLogic(t)));
76
40
  }
77
- /**
78
- * @param {...?} items
79
- * @return {?}
80
- */
81
41
  addItems(...items) {
82
42
  if (items) {
83
43
  this._gridData.push(...items);
@@ -85,31 +45,15 @@ class GridDataEntryHelper {
85
45
  }
86
46
  return this._gridData;
87
47
  }
88
- /**
89
- * @param {...?} items
90
- * @return {?}
91
- */
92
48
  removeItems(...items) {
93
49
  if (items) {
94
- items.forEach((/**
95
- * @param {?} f
96
- * @return {?}
97
- */
98
- f => {
99
- this._gridData = this.gridData.filter((/**
100
- * @param {?} t
101
- * @return {?}
102
- */
103
- t => t !== f));
104
- }));
50
+ items.forEach((f) => {
51
+ this._gridData = this.gridData.filter((t) => t !== f);
52
+ });
105
53
  this._gridData$.next(this._gridData);
106
54
  }
107
55
  return this._gridData;
108
56
  }
109
- /**
110
- * @param {?} editEvent
111
- * @return {?}
112
- */
113
57
  editHandler(editEvent) {
114
58
  this.closeEditor(editEvent.sender, editEvent.rowIndex);
115
59
  this._gridFormGroup = this.formGroupFactory();
@@ -117,37 +61,17 @@ class GridDataEntryHelper {
117
61
  this._editedRowIndex = editEvent.rowIndex;
118
62
  editEvent.sender.editRow(editEvent.rowIndex, this._gridFormGroup);
119
63
  }
120
- /**
121
- * @private
122
- * @param {?} grid
123
- * @param {?=} rowIndex
124
- * @return {?}
125
- */
126
64
  closeEditor(grid, rowIndex = this._editedRowIndex) {
127
65
  grid.closeRow(rowIndex);
128
66
  this._editedRowIndex = undefined;
129
67
  this._gridFormGroup = undefined;
130
68
  }
131
- /**
132
- * @param {?} cancelEvent
133
- * @return {?}
134
- */
135
69
  cancelHandler(cancelEvent) {
136
70
  this.closeEditor(cancelEvent.sender, cancelEvent.rowIndex);
137
71
  }
138
- /**
139
- * @param {?} saveEvent
140
- * @return {?}
141
- */
142
72
  saveHandler(saveEvent) {
143
- /** @type {?} */
144
73
  const result = saveEvent.formGroup.value;
145
- /** @type {?} */
146
- const tempGrid = this.gridData.map((/**
147
- * @param {?} t
148
- * @return {?}
149
- */
150
- t => (Object.assign({}, t))));
74
+ const tempGrid = this.gridData.map((t) => (Object.assign({}, t)));
151
75
  if (saveEvent.isNew) {
152
76
  result.id = null;
153
77
  tempGrid.push(result);
@@ -159,81 +83,27 @@ class GridDataEntryHelper {
159
83
  this._gridData$.next(this.gridData);
160
84
  this.closeEditor(saveEvent.sender, saveEvent.rowIndex);
161
85
  }
162
- /**
163
- * @param {?} removeEvent
164
- * @return {?}
165
- */
166
86
  removeHandler(removeEvent) {
167
- /** @type {?} */
168
- const tempGrid = this.gridData.map((/**
169
- * @param {?} t
170
- * @return {?}
171
- */
172
- t => (Object.assign({}, t))));
87
+ const tempGrid = this.gridData.map((t) => (Object.assign({}, t)));
173
88
  tempGrid.splice(removeEvent.rowIndex, 1);
174
89
  this.gridData = tempGrid;
175
90
  this._gridData$.next(this.gridData);
176
91
  }
177
- /**
178
- * @param {?} sortDescriptors
179
- * @return {?}
180
- */
181
92
  sortHandler(sortDescriptors) {
182
93
  this.sortDescriptors$.next(sortDescriptors);
183
94
  this.gridData = orderBy(this.gridData, sortDescriptors);
184
95
  }
185
- /**
186
- * @param {?} addEvent
187
- * @return {?}
188
- */
189
96
  addHandler(addEvent) {
190
97
  this.closeEditor(addEvent.sender);
191
98
  this._gridFormGroup = this.formGroupFactory();
192
99
  addEvent.sender.addRow(this._gridFormGroup);
193
100
  }
194
- /**
195
- * @param {?} data
196
- * @return {?}
197
- */
101
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
198
102
  gridValidationLogic(data) {
199
103
  return this._gridData.length > 0 && !this._gridFormGroup;
200
104
  }
201
105
  }
202
- if (false) {
203
- /**
204
- * @type {?}
205
- * @private
206
- */
207
- GridDataEntryHelper.prototype._editedRowIndex;
208
- /**
209
- * @type {?}
210
- * @private
211
- */
212
- GridDataEntryHelper.prototype._gridFormGroup;
213
- /**
214
- * @type {?}
215
- * @private
216
- */
217
- GridDataEntryHelper.prototype._gridData$;
218
- /** @type {?} */
219
- GridDataEntryHelper.prototype.sortDescriptors$;
220
- /**
221
- * @type {?}
222
- * @private
223
- */
224
- GridDataEntryHelper.prototype.formGroupFactory;
225
- /**
226
- * @type {?}
227
- * @private
228
- */
229
- GridDataEntryHelper.prototype._gridData;
230
- }
231
106
 
232
- /**
233
- * @fileoverview added by tsickle
234
- * Generated from: lib/editable-data-grid.directive.ts
235
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
236
- */
237
107
  /*
238
108
  * ### Example markup
239
109
  * <kendo-grid [imngEditableDataGrid]="gridDataEntryHelper" .... />
@@ -242,64 +112,23 @@ if (false) {
242
112
  * gridDataEntryHelper must be set to an instance GridDataEntryHelper
243
113
  */
244
114
  class ImngEditableDataGridDirective {
245
- /**
246
- * @param {?} gridComponent
247
- * @param {?} changeDetectorRef
248
- */
249
115
  constructor(gridComponent, changeDetectorRef) {
250
116
  this.gridComponent = gridComponent;
251
117
  this.changeDetectorRef = changeDetectorRef;
252
- this.subscriptions = [];
118
+ this.allSubscriptions = new Subscriptions();
253
119
  }
254
- /**
255
- * @return {?}
256
- */
120
+ // eslint-disable-next-line @typescript-eslint/ban-types
257
121
  get gridDataEntryHelper() {
258
122
  return this._gridDataEntryHelper;
259
123
  }
260
- /**
261
- * @param {?} value
262
- * @return {?}
263
- */
264
124
  set gridDataEntryHelper(value) {
265
125
  this._gridDataEntryHelper = value;
266
- this.subscriptions.push(this.gridDataEntryHelper.sortDescriptors$
267
- .pipe(tap((/**
268
- * @param {?} sortDescriptor
269
- * @return {?}
270
- */
271
- sortDescriptor => (this.gridComponent.sort = sortDescriptor))))
126
+ this.allSubscriptions.push(this.gridDataEntryHelper.sortDescriptors$
127
+ .pipe(tap((sortDescriptor) => (this.gridComponent.sort = sortDescriptor)))
272
128
  .subscribe());
273
129
  }
274
- /**
275
- * @return {?}
276
- */
277
130
  ngOnInit() {
278
- this.subscriptions.push(this.gridComponent.edit.subscribe((/**
279
- * @param {?} t
280
- * @return {?}
281
- */
282
- (t) => this.gridDataEntryHelper.editHandler(t))), this.gridComponent.cancel.subscribe((/**
283
- * @param {?} t
284
- * @return {?}
285
- */
286
- (t) => this.gridDataEntryHelper.cancelHandler(t))), this.gridComponent.save.subscribe((/**
287
- * @param {?} t
288
- * @return {?}
289
- */
290
- (t) => this.gridDataEntryHelper.saveHandler(t))), this.gridComponent.remove.subscribe((/**
291
- * @param {?} t
292
- * @return {?}
293
- */
294
- (t) => this.gridDataEntryHelper.removeHandler(t))), this.gridComponent.add.subscribe((/**
295
- * @param {?} t
296
- * @return {?}
297
- */
298
- (t) => this.gridDataEntryHelper.addHandler(t))), this.gridComponent.sortChange.subscribe((/**
299
- * @param {?} t
300
- * @return {?}
301
- */
302
- (t) => this.gridDataEntryHelper.sortHandler(t))));
131
+ this.allSubscriptions.push(this.gridComponent.edit.subscribe((t) => this.gridDataEntryHelper.editHandler(t)), this.gridComponent.cancel.subscribe((t) => this.gridDataEntryHelper.cancelHandler(t)), this.gridComponent.save.subscribe((t) => this.gridDataEntryHelper.saveHandler(t)), this.gridComponent.remove.subscribe((t) => this.gridDataEntryHelper.removeHandler(t)), this.gridComponent.add.subscribe((t) => this.gridDataEntryHelper.addHandler(t)), this.gridComponent.sortChange.subscribe((t) => this.gridDataEntryHelper.sortHandler(t)));
303
132
  this.gridComponent.reorderable = true;
304
133
  this.gridComponent.resizable = true;
305
134
  this.gridComponent.filterable = false;
@@ -309,76 +138,38 @@ class ImngEditableDataGridDirective {
309
138
  };
310
139
  this.gridComponent.navigable = true;
311
140
  }
312
- /**
313
- * @return {?}
314
- */
315
141
  ngOnDestroy() {
316
- this.subscriptions.forEach((/**
317
- * @param {?} t
318
- * @return {?}
319
- */
320
- t => {
321
- if (t) {
322
- t.unsubscribe();
323
- }
324
- }));
142
+ this.allSubscriptions.unsubscribeAll();
325
143
  }
326
144
  }
327
- ImngEditableDataGridDirective.decorators = [
328
- { type: Directive, args: [{
329
- selector: '[imngEditableDataGrid]',
330
- },] }
331
- ];
332
- /** @nocollapse */
333
- ImngEditableDataGridDirective.ctorParameters = () => [
334
- { type: GridComponent },
335
- { type: ChangeDetectorRef }
336
- ];
337
- ImngEditableDataGridDirective.propDecorators = {
338
- gridDataEntryHelper: [{ type: Input, args: ['imngEditableDataGrid',] }]
339
- };
340
- if (false) {
341
- /**
342
- * @type {?}
343
- * @private
344
- */
345
- ImngEditableDataGridDirective.prototype.subscriptions;
346
- /** @type {?} */
347
- ImngEditableDataGridDirective.prototype._gridDataEntryHelper;
348
- /** @type {?} */
349
- ImngEditableDataGridDirective.prototype.gridComponent;
350
- /**
351
- * @type {?}
352
- * @private
353
- */
354
- ImngEditableDataGridDirective.prototype.changeDetectorRef;
355
- }
145
+ /** @nocollapse */ ImngEditableDataGridDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: ImngEditableDataGridDirective, deps: [{ token: i1.GridComponent }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
146
+ /** @nocollapse */ ImngEditableDataGridDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: ImngEditableDataGridDirective, selector: "[imngEditableDataGrid]", inputs: { gridDataEntryHelper: ["imngEditableDataGrid", "gridDataEntryHelper"] }, ngImport: i0 });
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: ImngEditableDataGridDirective, decorators: [{
148
+ type: Directive,
149
+ args: [{
150
+ selector: '[imngEditableDataGrid]',
151
+ }]
152
+ }], ctorParameters: function () { return [{ type: i1.GridComponent }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { gridDataEntryHelper: [{
153
+ type: Input,
154
+ args: ['imngEditableDataGrid']
155
+ }] } });
356
156
 
357
- /**
358
- * @fileoverview added by tsickle
359
- * Generated from: lib/editable-data-grid.module.ts
360
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
361
- */
362
157
  class ImngEditableDataGridModule {
363
158
  }
364
- ImngEditableDataGridModule.decorators = [
365
- { type: NgModule, args: [{
366
- declarations: [ImngEditableDataGridDirective],
367
- imports: [CommonModule],
368
- exports: [ImngEditableDataGridDirective],
369
- },] }
370
- ];
371
-
372
- /**
373
- * @fileoverview added by tsickle
374
- * Generated from: index.ts
375
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
376
- */
159
+ /** @nocollapse */ ImngEditableDataGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: ImngEditableDataGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
160
+ /** @nocollapse */ ImngEditableDataGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: ImngEditableDataGridModule, declarations: [ImngEditableDataGridDirective], imports: [CommonModule], exports: [ImngEditableDataGridDirective] });
161
+ /** @nocollapse */ ImngEditableDataGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: ImngEditableDataGridModule, imports: [[CommonModule]] });
162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0, type: ImngEditableDataGridModule, decorators: [{
163
+ type: NgModule,
164
+ args: [{
165
+ declarations: [ImngEditableDataGridDirective],
166
+ imports: [CommonModule],
167
+ exports: [ImngEditableDataGridDirective],
168
+ }]
169
+ }] });
377
170
 
378
171
  /**
379
- * @fileoverview added by tsickle
380
- * Generated from: imng-kendo-grid.ts
381
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
172
+ * Generated bundle index. Do not edit.
382
173
  */
383
174
 
384
175
  export { GridDataEntryHelper, ImngEditableDataGridDirective, ImngEditableDataGridModule };
@@ -1 +1 @@
1
- {"version":3,"file":"imng-kendo-grid.js","sources":["../src/lib/grid-data-entry.helper.ts","../src/lib/editable-data-grid.directive.ts","../src/lib/editable-data-grid.module.ts"],"sourcesContent":["import { FormGroup } from '@angular/forms';\nimport { Observable, BehaviorSubject } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { EditEvent, CancelEvent, SaveEvent, RemoveEvent, AddEvent, GridComponent } from '@progress/kendo-angular-grid';\nimport { SortDescriptor, orderBy } from '@progress/kendo-data-query';\n\nexport class GridDataEntryHelper<T extends { id?: string | number | Date; }> {\n private _editedRowIndex: number;\n private _gridFormGroup: FormGroup;\n private readonly _gridData$: BehaviorSubject<Array<T>>;\n public sortDescriptors$ = new BehaviorSubject<SortDescriptor[]>([]);\n public get gridFormGroup(): FormGroup {\n return this._gridFormGroup;\n }\n\n public get gridData$(): Observable<Array<T>> {\n return this._gridData$.asObservable();\n }\n\n public get gridData(): Array<T> {\n return this._gridData;\n }\n\n public set gridData(value: Array<T>) {\n if (value) {\n this._gridData = [...value];\n this._gridData$.next(this._gridData);\n }\n }\n\n public get isInEditMode(): boolean {\n return !!this._gridFormGroup;\n }\n\n public get isValid(): boolean {\n return this.gridValidationLogic(this.gridData);\n }\n\n public get isValid$(): Observable<boolean> {\n return this.gridData$.pipe(map(t => this.gridValidationLogic(t)));\n }\n constructor(private readonly formGroupFactory: () => FormGroup, private _gridData: Array<T> = []) {\n this._gridData$ = new BehaviorSubject<Array<T>>(_gridData);\n }\n\n public addItems(...items: T[]): T[] {\n if (items) {\n this._gridData.push(...items);\n this._gridData$.next(this._gridData);\n }\n return this._gridData;\n }\n\n public removeItems(...items: T[]): T[] {\n if (items) {\n items.forEach(f => {\n this._gridData = this.gridData.filter(t => t !== f);\n });\n this._gridData$.next(this._gridData);\n }\n return this._gridData;\n }\n\n\n public editHandler(editEvent: EditEvent): void {\n this.closeEditor(editEvent.sender, editEvent.rowIndex);\n\n this._gridFormGroup = this.formGroupFactory();\n this._gridFormGroup.patchValue(editEvent.dataItem);\n this._editedRowIndex = editEvent.rowIndex;\n editEvent.sender.editRow(editEvent.rowIndex, this._gridFormGroup);\n }\n\n private closeEditor(grid: GridComponent, rowIndex = this._editedRowIndex): void {\n grid.closeRow(rowIndex);\n this._editedRowIndex = undefined;\n this._gridFormGroup = undefined;\n }\n\n public cancelHandler(cancelEvent: CancelEvent): void {\n this.closeEditor(cancelEvent.sender, cancelEvent.rowIndex);\n }\n\n public saveHandler(saveEvent: SaveEvent): void {\n const result: T = saveEvent.formGroup.value;\n const tempGrid: T[] = this.gridData.map(t => ({ ...t }));\n if (saveEvent.isNew) {\n result.id = null;\n tempGrid.push(result);\n } else {\n tempGrid.splice(saveEvent.rowIndex, 1, result);\n }\n this.gridData = tempGrid;\n this._gridData$.next(this.gridData);\n this.closeEditor(saveEvent.sender, saveEvent.rowIndex);\n }\n\n public removeHandler(removeEvent: RemoveEvent): void {\n const tempGrid = this.gridData.map(t => ({ ...t }));\n tempGrid.splice(removeEvent.rowIndex, 1);\n this.gridData = tempGrid;\n this._gridData$.next(this.gridData);\n }\n\n public sortHandler(sortDescriptors: SortDescriptor[]): void {\n this.sortDescriptors$.next(sortDescriptors);\n this.gridData = orderBy(this.gridData, sortDescriptors);\n }\n\n public addHandler(addEvent: AddEvent): void {\n this.closeEditor(addEvent.sender);\n this._gridFormGroup = this.formGroupFactory();\n addEvent.sender.addRow(this._gridFormGroup);\n }\n\n public gridValidationLogic(data: Array<T>): boolean {\n return this._gridData.length > 0 && !this._gridFormGroup;\n }\n}\n","import { Directive, ChangeDetectorRef, OnInit, Input, OnDestroy } from '@angular/core';\nimport { GridComponent, EditEvent, CancelEvent, SaveEvent, RemoveEvent, AddEvent } from '@progress/kendo-angular-grid';\nimport { GridDataEntryHelper } from './grid-data-entry.helper';\nimport { Subscription } from 'rxjs';\nimport { SortDescriptor } from '@progress/kendo-data-query';\nimport { tap } from 'rxjs/operators';\n\n\n/*\n * ### Example markup\n * <kendo-grid [imngEditableDataGrid]=\"gridDataEntryHelper\" .... />\n *\n * ### Note:\n * gridDataEntryHelper must be set to an instance GridDataEntryHelper\n */\n\n@Directive({\n selector: '[imngEditableDataGrid]',\n})\nexport class ImngEditableDataGridDirective implements OnInit, OnDestroy {\n private readonly subscriptions: Subscription[] = [];\n _gridDataEntryHelper: GridDataEntryHelper<object>;\n get gridDataEntryHelper(): GridDataEntryHelper<object> {\n return this._gridDataEntryHelper;\n }\n @Input('imngEditableDataGrid')\n set gridDataEntryHelper(value: GridDataEntryHelper<object>) {\n this._gridDataEntryHelper = value;\n this.subscriptions.push(\n this.gridDataEntryHelper.sortDescriptors$\n .pipe(tap(sortDescriptor => (this.gridComponent.sort = sortDescriptor)))\n .subscribe(),\n );\n }\n constructor(public readonly gridComponent: GridComponent, private readonly changeDetectorRef: ChangeDetectorRef) {}\n\n ngOnInit(): void {\n this.subscriptions.push(\n this.gridComponent.edit.subscribe((t: EditEvent) => this.gridDataEntryHelper.editHandler(t)),\n this.gridComponent.cancel.subscribe((t: CancelEvent) => this.gridDataEntryHelper.cancelHandler(t)),\n this.gridComponent.save.subscribe((t: SaveEvent) => this.gridDataEntryHelper.saveHandler(t)),\n this.gridComponent.remove.subscribe((t: RemoveEvent) => this.gridDataEntryHelper.removeHandler(t)),\n this.gridComponent.add.subscribe((t: AddEvent) => this.gridDataEntryHelper.addHandler(t)),\n this.gridComponent.sortChange.subscribe((t: SortDescriptor[]) => this.gridDataEntryHelper.sortHandler(t)),\n );\n this.gridComponent.reorderable = true;\n this.gridComponent.resizable = true;\n this.gridComponent.filterable = false;\n this.gridComponent.sortable = {\n allowUnsort: true,\n mode: 'multiple',\n };\n this.gridComponent.navigable = true; \n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach(t => {\n if (t) {\n t.unsubscribe();\n }\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ImngEditableDataGridDirective } from './editable-data-grid.directive';\n\n@NgModule({\n declarations: [ImngEditableDataGridDirective],\n imports: [CommonModule],\n exports: [ImngEditableDataGridDirective],\n})\nexport class ImngEditableDataGridModule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BAA6B,CAAC;gBAC7C,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,OAAO,EAAE,CAAC,6BAA6B,CAAC;aACzC;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"imng-kendo-grid.js","sources":["../../../../libs/imng-kendo-grid/src/lib/grid-data-entry.helper.ts","../../../../libs/imng-kendo-grid/src/lib/editable-data-grid.directive.ts","../../../../libs/imng-kendo-grid/src/lib/editable-data-grid.module.ts","../../../../libs/imng-kendo-grid/src/imng-kendo-grid.ts"],"sourcesContent":["import { FormGroup } from '@angular/forms';\nimport { Observable, BehaviorSubject } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { EditEvent, CancelEvent, SaveEvent, RemoveEvent, AddEvent, GridComponent } from '@progress/kendo-angular-grid';\nimport { SortDescriptor, orderBy } from '@progress/kendo-data-query';\nimport { IdType } from 'imng-nrsrx-client-utils';\n\nexport class GridDataEntryHelper<T extends { id?: IdType }> {\n private _editedRowIndex: number;\n private _gridFormGroup: FormGroup;\n private readonly _gridData$: BehaviorSubject<Array<T>>;\n public sortDescriptors$ = new BehaviorSubject<SortDescriptor[]>([]);\n public get gridFormGroup(): FormGroup {\n return this._gridFormGroup;\n }\n\n public get gridData$(): Observable<Array<T>> {\n return this._gridData$.asObservable();\n }\n\n public get gridData(): Array<T> {\n return this._gridData;\n }\n\n public set gridData(value: Array<T>) {\n if (value) {\n this._gridData = [...value];\n this._gridData$.next(this._gridData);\n }\n }\n\n public get isInEditMode(): boolean {\n return !!this._gridFormGroup;\n }\n\n public get isValid(): boolean {\n return this.gridValidationLogic(this.gridData);\n }\n\n public get isValid$(): Observable<boolean> {\n return this.gridData$.pipe(map((t) => this.gridValidationLogic(t)));\n }\n constructor(private readonly formGroupFactory: () => FormGroup, private _gridData: Array<T> = []) {\n this._gridData$ = new BehaviorSubject<Array<T>>(_gridData);\n }\n\n public addItems(...items: T[]): T[] {\n if (items) {\n this._gridData.push(...items);\n this._gridData$.next(this._gridData);\n }\n return this._gridData;\n }\n\n public removeItems(...items: T[]): T[] {\n if (items) {\n items.forEach((f) => {\n this._gridData = this.gridData.filter((t) => t !== f);\n });\n this._gridData$.next(this._gridData);\n }\n return this._gridData;\n }\n\n public editHandler(editEvent: EditEvent): void {\n this.closeEditor(editEvent.sender, editEvent.rowIndex);\n\n this._gridFormGroup = this.formGroupFactory();\n this._gridFormGroup.patchValue(editEvent.dataItem);\n this._editedRowIndex = editEvent.rowIndex;\n editEvent.sender.editRow(editEvent.rowIndex, this._gridFormGroup);\n }\n\n private closeEditor(grid: GridComponent, rowIndex = this._editedRowIndex): void {\n grid.closeRow(rowIndex);\n this._editedRowIndex = undefined;\n this._gridFormGroup = undefined;\n }\n\n public cancelHandler(cancelEvent: CancelEvent): void {\n this.closeEditor(cancelEvent.sender, cancelEvent.rowIndex);\n }\n\n public saveHandler(saveEvent: SaveEvent): void {\n const result: T = saveEvent.formGroup.value;\n const tempGrid: T[] = this.gridData.map((t) => ({ ...t }));\n if (saveEvent.isNew) {\n result.id = null;\n tempGrid.push(result);\n } else {\n tempGrid.splice(saveEvent.rowIndex, 1, result);\n }\n this.gridData = tempGrid;\n this._gridData$.next(this.gridData);\n this.closeEditor(saveEvent.sender, saveEvent.rowIndex);\n }\n\n public removeHandler(removeEvent: RemoveEvent): void {\n const tempGrid = this.gridData.map((t) => ({ ...t }));\n tempGrid.splice(removeEvent.rowIndex, 1);\n this.gridData = tempGrid;\n this._gridData$.next(this.gridData);\n }\n\n public sortHandler(sortDescriptors: SortDescriptor[]): void {\n this.sortDescriptors$.next(sortDescriptors);\n this.gridData = orderBy(this.gridData, sortDescriptors);\n }\n\n public addHandler(addEvent: AddEvent): void {\n this.closeEditor(addEvent.sender);\n this._gridFormGroup = this.formGroupFactory();\n addEvent.sender.addRow(this._gridFormGroup);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n public gridValidationLogic(data: Array<T>): boolean {\n return this._gridData.length > 0 && !this._gridFormGroup;\n }\n}\n","import { Directive, ChangeDetectorRef, OnInit, Input, OnDestroy } from '@angular/core';\nimport { GridComponent, EditEvent, CancelEvent, SaveEvent, RemoveEvent, AddEvent } from '@progress/kendo-angular-grid';\nimport { GridDataEntryHelper } from './grid-data-entry.helper';\nimport { Subscriptions, Subscribable } from 'imng-ngrx-utils';\nimport { SortDescriptor } from '@progress/kendo-data-query';\nimport { tap } from 'rxjs/operators';\n\n/*\n * ### Example markup\n * <kendo-grid [imngEditableDataGrid]=\"gridDataEntryHelper\" .... />\n *\n * ### Note:\n * gridDataEntryHelper must be set to an instance GridDataEntryHelper\n */\n\n@Directive({\n selector: '[imngEditableDataGrid]',\n})\nexport class ImngEditableDataGridDirective implements OnInit, OnDestroy, Subscribable {\n public readonly allSubscriptions = new Subscriptions();\n // eslint-disable-next-line @typescript-eslint/ban-types\n _gridDataEntryHelper: GridDataEntryHelper<object>;\n // eslint-disable-next-line @typescript-eslint/ban-types\n get gridDataEntryHelper(): GridDataEntryHelper<object> {\n return this._gridDataEntryHelper;\n }\n @Input('imngEditableDataGrid')\n // eslint-disable-next-line @typescript-eslint/ban-types\n set gridDataEntryHelper(value: GridDataEntryHelper<object>) {\n this._gridDataEntryHelper = value;\n this.allSubscriptions.push(\n this.gridDataEntryHelper.sortDescriptors$\n .pipe(tap((sortDescriptor) => (this.gridComponent.sort = sortDescriptor)))\n .subscribe(),\n );\n }\n constructor(public readonly gridComponent: GridComponent, private readonly changeDetectorRef: ChangeDetectorRef) {}\n\n ngOnInit(): void {\n this.allSubscriptions.push(\n this.gridComponent.edit.subscribe((t: EditEvent) => this.gridDataEntryHelper.editHandler(t)),\n this.gridComponent.cancel.subscribe((t: CancelEvent) => this.gridDataEntryHelper.cancelHandler(t)),\n this.gridComponent.save.subscribe((t: SaveEvent) => this.gridDataEntryHelper.saveHandler(t)),\n this.gridComponent.remove.subscribe((t: RemoveEvent) => this.gridDataEntryHelper.removeHandler(t)),\n this.gridComponent.add.subscribe((t: AddEvent) => this.gridDataEntryHelper.addHandler(t)),\n this.gridComponent.sortChange.subscribe((t: SortDescriptor[]) => this.gridDataEntryHelper.sortHandler(t)),\n );\n this.gridComponent.reorderable = true;\n this.gridComponent.resizable = true;\n this.gridComponent.filterable = false;\n this.gridComponent.sortable = {\n allowUnsort: true,\n mode: 'multiple',\n };\n this.gridComponent.navigable = true;\n }\n\n ngOnDestroy(): void {\n this.allSubscriptions.unsubscribeAll();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ImngEditableDataGridDirective } from './editable-data-grid.directive';\n\n@NgModule({\n declarations: [ImngEditableDataGridDirective],\n imports: [CommonModule],\n exports: [ImngEditableDataGridDirective],\n})\nexport class ImngEditableDataGridModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAOa,mBAAmB;IAmC9B,YAA6B,gBAAiC,EAAU,YAAsB,EAAE;QAAnE,qBAAgB,GAAhB,gBAAgB,CAAiB;QAAU,cAAS,GAAT,SAAS,CAAe;QA/BzF,qBAAgB,GAAG,IAAI,eAAe,CAAmB,EAAE,CAAC,CAAC;QAgClE,IAAI,CAAC,UAAU,GAAG,IAAI,eAAe,CAAW,SAAS,CAAC,CAAC;KAC5D;IAhCD,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,cAAc,CAAC;KAC5B;IAED,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC;KACvC;IAED,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IAED,IAAW,QAAQ,CAAC,KAAe;QACjC,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACtC;KACF;IAED,IAAW,YAAY;QACrB,OAAO,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC;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BAHzC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;iBACnC;oIAWK,mBAAmB;sBAFtB,KAAK;uBAAC,sBAAsB;;;MCjBlB,0BAA0B;;2IAA1B,0BAA0B;4IAA1B,0BAA0B,iBAJtB,6BAA6B,aAClC,YAAY,aACZ,6BAA6B;4IAE5B,0BAA0B,YAH5B,CAAC,YAAY,CAAC;4FAGZ,0BAA0B;kBALtC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,6BAA6B,CAAC;oBAC7C,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,6BAA6B,CAAC;iBACzC;;;ACRD;;;;;;"}
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="imng-kendo-grid" />
4
5
  export * from './index';
6
+ //# sourceMappingURL=imng-kendo-grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imng-kendo-grid.d.ts","sourceRoot":"","sources":["../../../libs/imng-kendo-grid/src/imng-kendo-grid.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './lib/grid-data-entry.helper';
2
2
  export * from './lib/editable-data-grid.module';
3
3
  export * from './lib/editable-data-grid.directive';
4
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../libs/imng-kendo-grid/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC"}
@@ -1,14 +1,19 @@
1
1
  import { ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
2
2
  import { GridComponent } from '@progress/kendo-angular-grid';
3
3
  import { GridDataEntryHelper } from './grid-data-entry.helper';
4
- export declare class ImngEditableDataGridDirective implements OnInit, OnDestroy {
4
+ import { Subscriptions, Subscribable } from 'imng-ngrx-utils';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ImngEditableDataGridDirective implements OnInit, OnDestroy, Subscribable {
5
7
  readonly gridComponent: GridComponent;
6
8
  private readonly changeDetectorRef;
7
- private readonly subscriptions;
9
+ readonly allSubscriptions: Subscriptions;
8
10
  _gridDataEntryHelper: GridDataEntryHelper<object>;
9
11
  get gridDataEntryHelper(): GridDataEntryHelper<object>;
10
12
  set gridDataEntryHelper(value: GridDataEntryHelper<object>);
11
13
  constructor(gridComponent: GridComponent, changeDetectorRef: ChangeDetectorRef);
12
14
  ngOnInit(): void;
13
15
  ngOnDestroy(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImngEditableDataGridDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ImngEditableDataGridDirective, "[imngEditableDataGrid]", never, { "gridDataEntryHelper": "imngEditableDataGrid"; }, {}, never>;
14
18
  }
19
+ //# sourceMappingURL=editable-data-grid.directive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editable-data-grid.directive.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-grid/src/lib/editable-data-grid.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,iBAAiB,EAAE,MAAM,EAAS,SAAS,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,aAAa,EAA4D,MAAM,8BAA8B,CAAC;AACvH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;AAY9D,qBAGa,6BAA8B,YAAW,MAAM,EAAE,SAAS,EAAE,YAAY;aAkBvD,aAAa,EAAE,aAAa;IAAE,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAjB5F,SAAgB,gBAAgB,gBAAuB;IAEvD,oBAAoB,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAElD,IAAI,mBAAmB,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAErD;IACD,IAEI,mBAAmB,CAAC,KAAK,EAAE,mBAAmB,CAAC,MAAM,CAAC,EAOzD;gBAC2B,aAAa,EAAE,aAAa,EAAmB,iBAAiB,EAAE,iBAAiB;IAE/G,QAAQ,IAAI,IAAI;IAmBhB,WAAW,IAAI,IAAI;yCAvCR,6BAA6B;2CAA7B,6BAA6B;CA0CzC"}
@@ -1,2 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./editable-data-grid.directive";
3
+ import * as i2 from "@angular/common";
1
4
  export declare class ImngEditableDataGridModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImngEditableDataGridModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ImngEditableDataGridModule, [typeof i1.ImngEditableDataGridDirective], [typeof i2.CommonModule], [typeof i1.ImngEditableDataGridDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<ImngEditableDataGridModule>;
2
8
  }
9
+ //# sourceMappingURL=editable-data-grid.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editable-data-grid.module.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-grid/src/lib/editable-data-grid.module.ts"],"names":[],"mappings":";;;AAIA,qBAKa,0BAA0B;yCAA1B,0BAA0B;0CAA1B,0BAA0B;0CAA1B,0BAA0B;CAAG"}
@@ -2,8 +2,9 @@ import { FormGroup } from '@angular/forms';
2
2
  import { Observable, BehaviorSubject } from 'rxjs';
3
3
  import { EditEvent, CancelEvent, SaveEvent, RemoveEvent, AddEvent } from '@progress/kendo-angular-grid';
4
4
  import { SortDescriptor } from '@progress/kendo-data-query';
5
+ import { IdType } from 'imng-nrsrx-client-utils';
5
6
  export declare class GridDataEntryHelper<T extends {
6
- id?: string | number | Date;
7
+ id?: IdType;
7
8
  }> {
8
9
  private readonly formGroupFactory;
9
10
  private _gridData;
@@ -30,3 +31,4 @@ export declare class GridDataEntryHelper<T extends {
30
31
  addHandler(addEvent: AddEvent): void;
31
32
  gridValidationLogic(data: Array<T>): boolean;
32
33
  }
34
+ //# sourceMappingURL=grid-data-entry.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-data-entry.helper.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-grid/src/lib/grid-data-entry.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAiB,MAAM,8BAA8B,CAAC;AACvH,OAAO,EAAE,cAAc,EAAW,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,qBAAa,mBAAmB,CAAC,CAAC,SAAS;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE;IAmC5C,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAAmB,OAAO,CAAC,SAAS;IAlCjF,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,cAAc,CAAY;IAClC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA4B;IAChD,gBAAgB,oCAA6C;IACpE,IAAW,aAAa,IAAI,SAAS,CAEpC;IAED,IAAW,SAAS,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAE3C;IAED,IAAW,QAAQ,IAAI,KAAK,CAAC,CAAC,CAAC,CAE9B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAKlC;IAED,IAAW,YAAY,IAAI,OAAO,CAEjC;IAED,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,IAAW,QAAQ,IAAI,UAAU,CAAC,OAAO,CAAC,CAEzC;gBAC4B,gBAAgB,EAAE,MAAM,SAAS,EAAU,SAAS,GAAE,KAAK,CAAC,CAAC,CAAM;IAIzF,QAAQ,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE;IAQ5B,WAAW,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE;IAU/B,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAS9C,OAAO,CAAC,WAAW;IAMZ,aAAa,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAI7C,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAcvC,aAAa,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAO7C,WAAW,CAAC,eAAe,EAAE,cAAc,EAAE,GAAG,IAAI;IAKpD,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAOpC,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,OAAO;CAGpD"}
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "imng-kendo-grid",
3
- "version": "2.344.02",
4
- "author": "Isaac Martinez <@ikemtz>",
3
+ "version": "3.04.2",
5
4
  "license": "MIT",
6
5
  "description": "A library to facilitate Angulra Kendo grid data entry.",
7
6
  "keywords": [
@@ -10,8 +9,23 @@
10
9
  "Kendo"
11
10
  ],
12
11
  "peerDependencies": {
13
- "@angular/common": "^10.x",
14
- "@angular/core": "^10.x"
12
+ "@angular/common": ">=11.x",
13
+ "@angular/core": ">=11.x",
14
+ "rxjs": ">=6.x",
15
+ "@angular/forms": ">=11.x",
16
+ "@nrwl/angular": ">=11.x",
17
+ "@progress/kendo-angular-grid": ">=5.x",
18
+ "@progress/kendo-data-query": ">=1.x"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/ikemtz/AngularMonoRepo.git"
23
+ },
24
+ "icon": "https://avatars.githubusercontent.com/u/6444182?v=4",
25
+ "private": false,
26
+ "author": {
27
+ "name": "Isaac Martinez <@ikemtz>",
28
+ "url": "https://github.com/ikemtz"
15
29
  },
16
30
  "main": "bundles/imng-kendo-grid.umd.js",
17
31
  "module": "fesm2015/imng-kendo-grid.js",
@@ -19,14 +33,11 @@
19
33
  "esm2015": "esm2015/imng-kendo-grid.js",
20
34
  "fesm2015": "fesm2015/imng-kendo-grid.js",
21
35
  "typings": "imng-kendo-grid.d.ts",
22
- "metadata": "imng-kendo-grid.metadata.json",
23
36
  "sideEffects": false,
24
37
  "dependencies": {
25
- "tslib": "^2.0.0",
26
- "rxjs": "^6.6.3",
27
- "@angular/forms": "^11.0.3",
28
- "@nrwl/angular": "10.4.4",
29
- "@progress/kendo-angular-grid": "^4.8.3",
30
- "@progress/kendo-data-query": "^1.5.4"
38
+
39
+ "imng-ngrx-utils": "3.04.2",
40
+ "imng-nrsrx-client-utils": "3.04.2",
41
+ "@ngrx/store": "12.5.0"
31
42
  }
32
43
  }
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="imng-kendo-grid/testing" />
4
5
  export * from './public_api';
6
+ //# sourceMappingURL=imng-kendo-grid-testing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imng-kendo-grid-testing.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-grid/testing/src/imng-kendo-grid-testing.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from './kendo-grid-tests';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-grid/testing/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -1,8 +1,10 @@
1
- import { GridDataEntryHelper } from 'imng-kendo-grid';
2
1
  import { DebugElement } from '@angular/core';
2
+ import { IdType } from 'imng-nrsrx-client-utils';
3
+ import { GridDataEntryHelper } from 'imng-kendo-grid';
3
4
  export declare function validateGridAddHandler<entity extends {
4
- id?: string | number | Date;
5
+ id?: IdType;
5
6
  }>(gridEntryHelper: GridDataEntryHelper<entity>, gridDebugElement: DebugElement): Promise<void>;
6
7
  export declare function validateGridEditHandler<entity extends {
7
- id?: string | number | Date;
8
+ id?: IdType;
8
9
  }>(gridEntryHelper: GridDataEntryHelper<entity>, gridDebugElement: DebugElement): Promise<void>;
10
+ //# sourceMappingURL=kendo-grid-tests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kendo-grid-tests.d.ts","sourceRoot":"","sources":["../../../../libs/imng-kendo-grid/testing/src/kendo-grid-tests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,wBAAsB,sBAAsB,CAAC,MAAM,SAAS;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,EACzE,eAAe,EAAE,mBAAmB,CAAC,MAAM,CAAC,EAC5C,gBAAgB,EAAE,YAAY,GAC7B,OAAO,CAAC,IAAI,CAAC,CAMf;AAED,wBAAsB,uBAAuB,CAAC,MAAM,SAAS;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,EAC1E,eAAe,EAAE,mBAAmB,CAAC,MAAM,CAAC,EAC5C,gBAAgB,EAAE,YAAY,GAC7B,OAAO,CAAC,IAAI,CAAC,CAMf"}