@swimlane/ngx-datatable 17.0.0 → 20.0.0

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 (132) hide show
  1. package/README.md +0 -1
  2. package/assets/icons.css +39 -19
  3. package/bundles/swimlane-ngx-datatable.umd.js +1103 -1564
  4. package/bundles/swimlane-ngx-datatable.umd.js.map +1 -1
  5. package/esm2015/lib/components/body/body-cell.component.js +40 -86
  6. package/esm2015/lib/components/body/body-group-header-template.directive.js +8 -10
  7. package/esm2015/lib/components/body/body-group-header.directive.js +11 -19
  8. package/esm2015/lib/components/body/body-row-wrapper.component.js +32 -54
  9. package/esm2015/lib/components/body/body-row.component.js +38 -75
  10. package/esm2015/lib/components/body/body.component.js +61 -137
  11. package/esm2015/lib/components/body/progress-bar.component.js +10 -12
  12. package/esm2015/lib/components/body/scroller.component.js +21 -33
  13. package/esm2015/lib/components/body/selection.component.js +19 -35
  14. package/esm2015/lib/components/body/summary/summary-row.component.js +19 -29
  15. package/esm2015/lib/components/columns/column-cell.directive.js +6 -8
  16. package/esm2015/lib/components/columns/column-header.directive.js +6 -8
  17. package/esm2015/lib/components/columns/column.directive.js +36 -92
  18. package/esm2015/lib/components/columns/tree.directive.js +6 -8
  19. package/esm2015/lib/components/datatable.component.js +85 -214
  20. package/esm2015/lib/components/footer/footer-template.directive.js +6 -8
  21. package/esm2015/lib/components/footer/footer.component.js +28 -54
  22. package/esm2015/lib/components/footer/footer.directive.js +16 -34
  23. package/esm2015/lib/components/footer/pager.component.js +23 -39
  24. package/esm2015/lib/components/header/header-cell.component.js +45 -80
  25. package/esm2015/lib/components/header/header.component.js +43 -80
  26. package/esm2015/lib/components/row-detail/row-detail-template.directive.js +8 -10
  27. package/esm2015/lib/components/row-detail/row-detail.directive.js +11 -19
  28. package/esm2015/lib/directives/draggable.directive.js +16 -30
  29. package/esm2015/lib/directives/long-press.directive.js +16 -34
  30. package/esm2015/lib/directives/orderable.directive.js +12 -19
  31. package/esm2015/lib/directives/resizeable.directive.js +19 -29
  32. package/esm2015/lib/directives/visibility.directive.js +11 -15
  33. package/esm2015/lib/events.js +1 -1
  34. package/esm2015/lib/ngx-datatable.module.js +54 -57
  35. package/esm2015/lib/services/column-changes.service.js +6 -8
  36. package/esm2015/lib/services/dimensions-helper.service.js +6 -8
  37. package/esm2015/lib/services/scrollbar-helper.service.js +6 -9
  38. package/esm2015/lib/types/click.type.js +1 -1
  39. package/esm2015/lib/types/column-mode.type.js +1 -1
  40. package/esm2015/lib/types/contextmenu.type.js +1 -1
  41. package/esm2015/lib/types/selection.type.js +1 -1
  42. package/esm2015/lib/types/sort-direction.type.js +1 -1
  43. package/esm2015/lib/types/sort-prop-dir.type.js +2 -1
  44. package/esm2015/lib/types/sort.type.js +1 -1
  45. package/esm2015/lib/types/table-column.type.js +2 -1
  46. package/esm2015/lib/utils/camel-case.js +1 -1
  47. package/esm2015/lib/utils/column-helper.js +1 -1
  48. package/esm2015/lib/utils/column-prop-getters.js +1 -1
  49. package/esm2015/lib/utils/column.js +1 -1
  50. package/esm2015/lib/utils/elm-from-point.js +1 -1
  51. package/esm2015/lib/utils/id.js +1 -1
  52. package/esm2015/lib/utils/keys.js +1 -1
  53. package/esm2015/lib/utils/math.js +1 -1
  54. package/esm2015/lib/utils/prefixes.js +1 -1
  55. package/esm2015/lib/utils/row-height-cache.js +1 -1
  56. package/esm2015/lib/utils/selection.js +1 -1
  57. package/esm2015/lib/utils/sort.js +1 -1
  58. package/esm2015/lib/utils/throttle.js +1 -1
  59. package/esm2015/lib/utils/translate.js +1 -1
  60. package/esm2015/lib/utils/tree.js +1 -1
  61. package/esm2015/public-api.js +3 -1
  62. package/esm2015/swimlane-ngx-datatable.js +1 -1
  63. package/fesm2015/swimlane-ngx-datatable.js +682 -1248
  64. package/fesm2015/swimlane-ngx-datatable.js.map +1 -1
  65. package/lib/components/header/header-cell.component.d.ts +2 -0
  66. package/lib/components/header/header.component.d.ts +1 -0
  67. package/lib/utils/throttle.d.ts +1 -1
  68. package/package.json +10 -10
  69. package/swimlane-ngx-datatable.metadata.json +1 -1
  70. package/bundles/swimlane-ngx-datatable.umd.min.js +0 -16
  71. package/bundles/swimlane-ngx-datatable.umd.min.js.map +0 -1
  72. package/esm5/lib/components/body/body-cell.component.js +0 -438
  73. package/esm5/lib/components/body/body-group-header-template.directive.js +0 -18
  74. package/esm5/lib/components/body/body-group-header.directive.js +0 -67
  75. package/esm5/lib/components/body/body-row-wrapper.component.js +0 -114
  76. package/esm5/lib/components/body/body-row.component.js +0 -260
  77. package/esm5/lib/components/body/body.component.js +0 -775
  78. package/esm5/lib/components/body/progress-bar.component.js +0 -16
  79. package/esm5/lib/components/body/scroller.component.js +0 -97
  80. package/esm5/lib/components/body/selection.component.js +0 -159
  81. package/esm5/lib/components/body/summary/summary-row.component.js +0 -81
  82. package/esm5/lib/components/columns/column-cell.directive.js +0 -16
  83. package/esm5/lib/components/columns/column-header.directive.js +0 -16
  84. package/esm5/lib/components/columns/column.directive.js +0 -134
  85. package/esm5/lib/components/columns/tree.directive.js +0 -16
  86. package/esm5/lib/components/datatable.component.js +0 -1147
  87. package/esm5/lib/components/footer/footer-template.directive.js +0 -16
  88. package/esm5/lib/components/footer/footer.component.js +0 -74
  89. package/esm5/lib/components/footer/footer.directive.js +0 -47
  90. package/esm5/lib/components/footer/pager.component.js +0 -135
  91. package/esm5/lib/components/header/header-cell.component.js +0 -253
  92. package/esm5/lib/components/header/header.component.js +0 -317
  93. package/esm5/lib/components/row-detail/row-detail-template.directive.js +0 -18
  94. package/esm5/lib/components/row-detail/row-detail.directive.js +0 -68
  95. package/esm5/lib/directives/draggable.directive.js +0 -118
  96. package/esm5/lib/directives/long-press.directive.js +0 -132
  97. package/esm5/lib/directives/orderable.directive.js +0 -161
  98. package/esm5/lib/directives/resizeable.directive.js +0 -101
  99. package/esm5/lib/directives/visibility.directive.js +0 -69
  100. package/esm5/lib/events.js +0 -7
  101. package/esm5/lib/ngx-datatable.module.js +0 -103
  102. package/esm5/lib/services/column-changes.service.js +0 -28
  103. package/esm5/lib/services/dimensions-helper.service.js +0 -19
  104. package/esm5/lib/services/scrollbar-helper.service.js +0 -38
  105. package/esm5/lib/types/click.type.js +0 -6
  106. package/esm5/lib/types/column-mode.type.js +0 -7
  107. package/esm5/lib/types/contextmenu.type.js +0 -6
  108. package/esm5/lib/types/selection.type.js +0 -9
  109. package/esm5/lib/types/sort-direction.type.js +0 -6
  110. package/esm5/lib/types/sort-prop-dir.type.js +0 -1
  111. package/esm5/lib/types/sort.type.js +0 -6
  112. package/esm5/lib/types/table-column.type.js +0 -1
  113. package/esm5/lib/utils/camel-case.js +0 -28
  114. package/esm5/lib/utils/column-helper.js +0 -128
  115. package/esm5/lib/utils/column-prop-getters.js +0 -96
  116. package/esm5/lib/utils/column.js +0 -103
  117. package/esm5/lib/utils/elm-from-point.js +0 -38
  118. package/esm5/lib/utils/id.js +0 -8
  119. package/esm5/lib/utils/keys.js +0 -10
  120. package/esm5/lib/utils/math.js +0 -224
  121. package/esm5/lib/utils/prefixes.js +0 -40
  122. package/esm5/lib/utils/row-height-cache.js +0 -137
  123. package/esm5/lib/utils/selection.js +0 -40
  124. package/esm5/lib/utils/sort.js +0 -139
  125. package/esm5/lib/utils/throttle.js +0 -60
  126. package/esm5/lib/utils/translate.js +0 -25
  127. package/esm5/lib/utils/tree.js +0 -106
  128. package/esm5/public-api.js +0 -62
  129. package/esm5/swimlane-ngx-datatable.js +0 -5
  130. package/fesm5/swimlane-ngx-datatable.js +0 -6088
  131. package/fesm5/swimlane-ngx-datatable.js.map +0 -1
  132. package/lib/test/jasmine-matchers.d.ts +0 -12
@@ -1,14 +1,14 @@
1
- import { __decorate, __param } from 'tslib';
2
- import { Inject, Injectable, TemplateRef, Directive, EventEmitter, ElementRef, NgZone, HostBinding, Output, Input, Renderer2, HostListener, KeyValueDiffers, ContentChildren, Component, ChangeDetectionStrategy, ContentChild, ChangeDetectorRef, ViewChild, SkipSelf, Optional, ViewEncapsulation, ViewContainerRef, NgModule } from '@angular/core';
1
+ import { Injectable, Inject, Directive, TemplateRef, EventEmitter, ElementRef, NgZone, HostBinding, Output, Input, Renderer2, HostListener, KeyValueDiffers, ContentChildren, Component, ChangeDetectionStrategy, ContentChild, ChangeDetectorRef, ViewChild, ViewEncapsulation, SkipSelf, Optional, ViewContainerRef, NgModule } from '@angular/core';
3
2
  import { DOCUMENT, CommonModule } from '@angular/common';
4
3
  import { Subject, fromEvent, BehaviorSubject } from 'rxjs';
5
4
  import { takeUntil } from 'rxjs/operators';
5
+ import { __decorate } from 'tslib';
6
6
 
7
7
  /**
8
8
  * Gets the width of the scrollbar. Nesc for windows
9
9
  * http://stackoverflow.com/a/13382873/888165
10
10
  */
11
- let ScrollbarHelper = class ScrollbarHelper {
11
+ class ScrollbarHelper {
12
12
  constructor(document) {
13
13
  this.document = document;
14
14
  this.width = this.getWidth();
@@ -28,33 +28,32 @@ let ScrollbarHelper = class ScrollbarHelper {
28
28
  outer.parentNode.removeChild(outer);
29
29
  return widthNoScroll - widthWithScroll;
30
30
  }
31
- };
31
+ }
32
+ ScrollbarHelper.decorators = [
33
+ { type: Injectable }
34
+ ];
32
35
  ScrollbarHelper.ctorParameters = () => [
33
36
  { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
34
37
  ];
35
- ScrollbarHelper = __decorate([
36
- Injectable(),
37
- __param(0, Inject(DOCUMENT))
38
- ], ScrollbarHelper);
39
38
 
40
39
  /**
41
40
  * Gets the width of the scrollbar. Nesc for windows
42
41
  * http://stackoverflow.com/a/13382873/888165
43
42
  */
44
- let DimensionsHelper = class DimensionsHelper {
43
+ class DimensionsHelper {
45
44
  getDimensions(element) {
46
45
  return element.getBoundingClientRect();
47
46
  }
48
- };
49
- DimensionsHelper = __decorate([
50
- Injectable()
51
- ], DimensionsHelper);
47
+ }
48
+ DimensionsHelper.decorators = [
49
+ { type: Injectable }
50
+ ];
52
51
 
53
52
  /**
54
53
  * service to make DatatableComponent aware of changes to
55
54
  * input bindings of DataTableColumnDirective
56
55
  */
57
- let ColumnChangesService = class ColumnChangesService {
56
+ class ColumnChangesService {
58
57
  constructor() {
59
58
  this.columnInputChanges = new Subject();
60
59
  }
@@ -64,22 +63,22 @@ let ColumnChangesService = class ColumnChangesService {
64
63
  onInputChange() {
65
64
  this.columnInputChanges.next();
66
65
  }
67
- };
68
- ColumnChangesService = __decorate([
69
- Injectable()
70
- ], ColumnChangesService);
66
+ }
67
+ ColumnChangesService.decorators = [
68
+ { type: Injectable }
69
+ ];
71
70
 
72
- let DataTableFooterTemplateDirective = class DataTableFooterTemplateDirective {
71
+ class DataTableFooterTemplateDirective {
73
72
  constructor(template) {
74
73
  this.template = template;
75
74
  }
76
- };
75
+ }
76
+ DataTableFooterTemplateDirective.decorators = [
77
+ { type: Directive, args: [{ selector: '[ngx-datatable-footer-template]' },] }
78
+ ];
77
79
  DataTableFooterTemplateDirective.ctorParameters = () => [
78
80
  { type: TemplateRef }
79
81
  ];
80
- DataTableFooterTemplateDirective = __decorate([
81
- Directive({ selector: '[ngx-datatable-footer-template]' })
82
- ], DataTableFooterTemplateDirective);
83
82
 
84
83
  /**
85
84
  * Visibility Observer Directive
@@ -92,7 +91,7 @@ DataTableFooterTemplateDirective = __decorate([
92
91
  * </div>
93
92
  *
94
93
  */
95
- let VisibilityDirective = class VisibilityDirective {
94
+ class VisibilityDirective {
96
95
  constructor(element, zone) {
97
96
  this.element = element;
98
97
  this.zone = zone;
@@ -129,20 +128,18 @@ let VisibilityDirective = class VisibilityDirective {
129
128
  };
130
129
  this.timeout = setTimeout(() => check());
131
130
  }
132
- };
131
+ }
132
+ VisibilityDirective.decorators = [
133
+ { type: Directive, args: [{ selector: '[visibilityObserver]' },] }
134
+ ];
133
135
  VisibilityDirective.ctorParameters = () => [
134
136
  { type: ElementRef },
135
137
  { type: NgZone }
136
138
  ];
137
- __decorate([
138
- HostBinding('class.visible')
139
- ], VisibilityDirective.prototype, "isVisible", void 0);
140
- __decorate([
141
- Output()
142
- ], VisibilityDirective.prototype, "visible", void 0);
143
- VisibilityDirective = __decorate([
144
- Directive({ selector: '[visibilityObserver]' })
145
- ], VisibilityDirective);
139
+ VisibilityDirective.propDecorators = {
140
+ isVisible: [{ type: HostBinding, args: ['class.visible',] }],
141
+ visible: [{ type: Output }]
142
+ };
146
143
 
147
144
  /**
148
145
  * Draggable Directive for Angular2
@@ -152,7 +149,7 @@ VisibilityDirective = __decorate([
152
149
  * http://stackoverflow.com/questions/35662530/how-to-implement-drag-and-drop-in-angular2
153
150
  *
154
151
  */
155
- let DraggableDirective = class DraggableDirective {
152
+ class DraggableDirective {
156
153
  constructor(element) {
157
154
  this.dragX = true;
158
155
  this.dragY = true;
@@ -226,36 +223,24 @@ let DraggableDirective = class DraggableDirective {
226
223
  this.subscription = undefined;
227
224
  }
228
225
  }
229
- };
226
+ }
227
+ DraggableDirective.decorators = [
228
+ { type: Directive, args: [{ selector: '[draggable]' },] }
229
+ ];
230
230
  DraggableDirective.ctorParameters = () => [
231
231
  { type: ElementRef }
232
232
  ];
233
- __decorate([
234
- Input()
235
- ], DraggableDirective.prototype, "dragEventTarget", void 0);
236
- __decorate([
237
- Input()
238
- ], DraggableDirective.prototype, "dragModel", void 0);
239
- __decorate([
240
- Input()
241
- ], DraggableDirective.prototype, "dragX", void 0);
242
- __decorate([
243
- Input()
244
- ], DraggableDirective.prototype, "dragY", void 0);
245
- __decorate([
246
- Output()
247
- ], DraggableDirective.prototype, "dragStart", void 0);
248
- __decorate([
249
- Output()
250
- ], DraggableDirective.prototype, "dragging", void 0);
251
- __decorate([
252
- Output()
253
- ], DraggableDirective.prototype, "dragEnd", void 0);
254
- DraggableDirective = __decorate([
255
- Directive({ selector: '[draggable]' })
256
- ], DraggableDirective);
233
+ DraggableDirective.propDecorators = {
234
+ dragEventTarget: [{ type: Input }],
235
+ dragModel: [{ type: Input }],
236
+ dragX: [{ type: Input }],
237
+ dragY: [{ type: Input }],
238
+ dragStart: [{ type: Output }],
239
+ dragging: [{ type: Output }],
240
+ dragEnd: [{ type: Output }]
241
+ };
257
242
 
258
- let ResizeableDirective = class ResizeableDirective {
243
+ class ResizeableDirective {
259
244
  constructor(element, renderer) {
260
245
  this.renderer = renderer;
261
246
  this.resizeEnabled = true;
@@ -320,36 +305,28 @@ let ResizeableDirective = class ResizeableDirective {
320
305
  this.subscription = undefined;
321
306
  }
322
307
  }
323
- };
308
+ }
309
+ ResizeableDirective.decorators = [
310
+ { type: Directive, args: [{
311
+ selector: '[resizeable]',
312
+ host: {
313
+ '[class.resizeable]': 'resizeEnabled'
314
+ }
315
+ },] }
316
+ ];
324
317
  ResizeableDirective.ctorParameters = () => [
325
318
  { type: ElementRef },
326
319
  { type: Renderer2 }
327
320
  ];
328
- __decorate([
329
- Input()
330
- ], ResizeableDirective.prototype, "resizeEnabled", void 0);
331
- __decorate([
332
- Input()
333
- ], ResizeableDirective.prototype, "minWidth", void 0);
334
- __decorate([
335
- Input()
336
- ], ResizeableDirective.prototype, "maxWidth", void 0);
337
- __decorate([
338
- Output()
339
- ], ResizeableDirective.prototype, "resize", void 0);
340
- __decorate([
341
- HostListener('mousedown', ['$event'])
342
- ], ResizeableDirective.prototype, "onMousedown", null);
343
- ResizeableDirective = __decorate([
344
- Directive({
345
- selector: '[resizeable]',
346
- host: {
347
- '[class.resizeable]': 'resizeEnabled'
348
- }
349
- })
350
- ], ResizeableDirective);
321
+ ResizeableDirective.propDecorators = {
322
+ resizeEnabled: [{ type: Input }],
323
+ minWidth: [{ type: Input }],
324
+ maxWidth: [{ type: Input }],
325
+ resize: [{ type: Output }],
326
+ onMousedown: [{ type: HostListener, args: ['mousedown', ['$event'],] }]
327
+ };
351
328
 
352
- let OrderableDirective = class OrderableDirective {
329
+ class OrderableDirective {
353
330
  constructor(differs, document) {
354
331
  this.document = document;
355
332
  this.reorder = new EventEmitter();
@@ -463,26 +440,21 @@ let OrderableDirective = class OrderableDirective {
463
440
  return acc;
464
441
  }, {});
465
442
  }
466
- };
443
+ }
444
+ OrderableDirective.decorators = [
445
+ { type: Directive, args: [{ selector: '[orderable]' },] }
446
+ ];
467
447
  OrderableDirective.ctorParameters = () => [
468
448
  { type: KeyValueDiffers },
469
449
  { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
470
450
  ];
471
- __decorate([
472
- Output()
473
- ], OrderableDirective.prototype, "reorder", void 0);
474
- __decorate([
475
- Output()
476
- ], OrderableDirective.prototype, "targetChanged", void 0);
477
- __decorate([
478
- ContentChildren(DraggableDirective, { descendants: true })
479
- ], OrderableDirective.prototype, "draggables", void 0);
480
- OrderableDirective = __decorate([
481
- Directive({ selector: '[orderable]' }),
482
- __param(1, Inject(DOCUMENT))
483
- ], OrderableDirective);
451
+ OrderableDirective.propDecorators = {
452
+ reorder: [{ type: Output }],
453
+ targetChanged: [{ type: Output }],
454
+ draggables: [{ type: ContentChildren, args: [DraggableDirective, { descendants: true },] }]
455
+ };
484
456
 
485
- let LongPressDirective = class LongPressDirective {
457
+ class LongPressDirective {
486
458
  constructor() {
487
459
  this.pressEnabled = true;
488
460
  this.duration = 500;
@@ -566,39 +538,23 @@ let LongPressDirective = class LongPressDirective {
566
538
  this.subscription = undefined;
567
539
  }
568
540
  }
541
+ }
542
+ LongPressDirective.decorators = [
543
+ { type: Directive, args: [{ selector: '[long-press]' },] }
544
+ ];
545
+ LongPressDirective.propDecorators = {
546
+ pressEnabled: [{ type: Input }],
547
+ pressModel: [{ type: Input }],
548
+ duration: [{ type: Input }],
549
+ longPressStart: [{ type: Output }],
550
+ longPressing: [{ type: Output }],
551
+ longPressEnd: [{ type: Output }],
552
+ press: [{ type: HostBinding, args: ['class.press',] }],
553
+ isLongPress: [{ type: HostBinding, args: ['class.longpress',] }],
554
+ onMouseDown: [{ type: HostListener, args: ['mousedown', ['$event'],] }]
569
555
  };
570
- __decorate([
571
- Input()
572
- ], LongPressDirective.prototype, "pressEnabled", void 0);
573
- __decorate([
574
- Input()
575
- ], LongPressDirective.prototype, "pressModel", void 0);
576
- __decorate([
577
- Input()
578
- ], LongPressDirective.prototype, "duration", void 0);
579
- __decorate([
580
- Output()
581
- ], LongPressDirective.prototype, "longPressStart", void 0);
582
- __decorate([
583
- Output()
584
- ], LongPressDirective.prototype, "longPressing", void 0);
585
- __decorate([
586
- Output()
587
- ], LongPressDirective.prototype, "longPressEnd", void 0);
588
- __decorate([
589
- HostBinding('class.press')
590
- ], LongPressDirective.prototype, "press", null);
591
- __decorate([
592
- HostBinding('class.longpress')
593
- ], LongPressDirective.prototype, "isLongPress", null);
594
- __decorate([
595
- HostListener('mousedown', ['$event'])
596
- ], LongPressDirective.prototype, "onMouseDown", null);
597
- LongPressDirective = __decorate([
598
- Directive({ selector: '[long-press]' })
599
- ], LongPressDirective);
600
556
 
601
- let ScrollerComponent = class ScrollerComponent {
557
+ class ScrollerComponent {
602
558
  constructor(ngZone, element, renderer) {
603
559
  this.ngZone = ngZone;
604
560
  this.renderer = renderer;
@@ -656,55 +612,45 @@ let ScrollerComponent = class ScrollerComponent {
656
612
  this.prevScrollYPos = this.scrollYPos;
657
613
  this.prevScrollXPos = this.scrollXPos;
658
614
  }
659
- };
615
+ }
616
+ ScrollerComponent.decorators = [
617
+ { type: Component, args: [{
618
+ selector: 'datatable-scroller',
619
+ template: ` <ng-content></ng-content> `,
620
+ host: {
621
+ class: 'datatable-scroll'
622
+ },
623
+ changeDetection: ChangeDetectionStrategy.OnPush
624
+ },] }
625
+ ];
660
626
  ScrollerComponent.ctorParameters = () => [
661
627
  { type: NgZone },
662
628
  { type: ElementRef },
663
629
  { type: Renderer2 }
664
630
  ];
665
- __decorate([
666
- Input()
667
- ], ScrollerComponent.prototype, "scrollbarV", void 0);
668
- __decorate([
669
- Input()
670
- ], ScrollerComponent.prototype, "scrollbarH", void 0);
671
- __decorate([
672
- HostBinding('style.height.px'),
673
- Input()
674
- ], ScrollerComponent.prototype, "scrollHeight", void 0);
675
- __decorate([
676
- HostBinding('style.width.px'),
677
- Input()
678
- ], ScrollerComponent.prototype, "scrollWidth", void 0);
679
- __decorate([
680
- Output()
681
- ], ScrollerComponent.prototype, "scroll", void 0);
682
- ScrollerComponent = __decorate([
683
- Component({
684
- selector: 'datatable-scroller',
685
- template: ` <ng-content></ng-content> `,
686
- host: {
687
- class: 'datatable-scroll'
688
- },
689
- changeDetection: ChangeDetectionStrategy.OnPush
690
- })
691
- ], ScrollerComponent);
631
+ ScrollerComponent.propDecorators = {
632
+ scrollbarV: [{ type: Input }],
633
+ scrollbarH: [{ type: Input }],
634
+ scrollHeight: [{ type: HostBinding, args: ['style.height.px',] }, { type: Input }],
635
+ scrollWidth: [{ type: HostBinding, args: ['style.width.px',] }, { type: Input }],
636
+ scroll: [{ type: Output }]
637
+ };
692
638
 
693
- let DatatableGroupHeaderTemplateDirective = class DatatableGroupHeaderTemplateDirective {
639
+ class DatatableGroupHeaderTemplateDirective {
694
640
  constructor(template) {
695
641
  this.template = template;
696
642
  }
697
- };
643
+ }
644
+ DatatableGroupHeaderTemplateDirective.decorators = [
645
+ { type: Directive, args: [{
646
+ selector: '[ngx-datatable-group-header-template]'
647
+ },] }
648
+ ];
698
649
  DatatableGroupHeaderTemplateDirective.ctorParameters = () => [
699
650
  { type: TemplateRef }
700
651
  ];
701
- DatatableGroupHeaderTemplateDirective = __decorate([
702
- Directive({
703
- selector: '[ngx-datatable-group-header-template]'
704
- })
705
- ], DatatableGroupHeaderTemplateDirective);
706
652
 
707
- let DatatableGroupHeaderDirective = class DatatableGroupHeaderDirective {
653
+ class DatatableGroupHeaderDirective {
708
654
  constructor() {
709
655
  /**
710
656
  * Row height is required when virtual scroll is enabled.
@@ -745,22 +691,16 @@ let DatatableGroupHeaderDirective = class DatatableGroupHeaderDirective {
745
691
  value: false
746
692
  });
747
693
  }
694
+ }
695
+ DatatableGroupHeaderDirective.decorators = [
696
+ { type: Directive, args: [{ selector: 'ngx-datatable-group-header' },] }
697
+ ];
698
+ DatatableGroupHeaderDirective.propDecorators = {
699
+ rowHeight: [{ type: Input }],
700
+ _templateInput: [{ type: Input, args: ['template',] }],
701
+ _templateQuery: [{ type: ContentChild, args: [DatatableGroupHeaderTemplateDirective, { read: TemplateRef, static: true },] }],
702
+ toggle: [{ type: Output }]
748
703
  };
749
- __decorate([
750
- Input()
751
- ], DatatableGroupHeaderDirective.prototype, "rowHeight", void 0);
752
- __decorate([
753
- Input('template')
754
- ], DatatableGroupHeaderDirective.prototype, "_templateInput", void 0);
755
- __decorate([
756
- ContentChild(DatatableGroupHeaderTemplateDirective, { read: TemplateRef, static: true })
757
- ], DatatableGroupHeaderDirective.prototype, "_templateQuery", void 0);
758
- __decorate([
759
- Output()
760
- ], DatatableGroupHeaderDirective.prototype, "toggle", void 0);
761
- DatatableGroupHeaderDirective = __decorate([
762
- Directive({ selector: 'ngx-datatable-group-header' })
763
- ], DatatableGroupHeaderDirective);
764
704
 
765
705
  /**
766
706
  * Always returns the empty string ''
@@ -1116,43 +1056,43 @@ var ContextmenuType;
1116
1056
  ContextmenuType["body"] = "body";
1117
1057
  })(ContextmenuType || (ContextmenuType = {}));
1118
1058
 
1119
- let DataTableColumnHeaderDirective = class DataTableColumnHeaderDirective {
1059
+ class DataTableColumnHeaderDirective {
1120
1060
  constructor(template) {
1121
1061
  this.template = template;
1122
1062
  }
1123
- };
1063
+ }
1064
+ DataTableColumnHeaderDirective.decorators = [
1065
+ { type: Directive, args: [{ selector: '[ngx-datatable-header-template]' },] }
1066
+ ];
1124
1067
  DataTableColumnHeaderDirective.ctorParameters = () => [
1125
1068
  { type: TemplateRef }
1126
1069
  ];
1127
- DataTableColumnHeaderDirective = __decorate([
1128
- Directive({ selector: '[ngx-datatable-header-template]' })
1129
- ], DataTableColumnHeaderDirective);
1130
1070
 
1131
- let DataTableColumnCellDirective = class DataTableColumnCellDirective {
1071
+ class DataTableColumnCellDirective {
1132
1072
  constructor(template) {
1133
1073
  this.template = template;
1134
1074
  }
1135
- };
1075
+ }
1076
+ DataTableColumnCellDirective.decorators = [
1077
+ { type: Directive, args: [{ selector: '[ngx-datatable-cell-template]' },] }
1078
+ ];
1136
1079
  DataTableColumnCellDirective.ctorParameters = () => [
1137
1080
  { type: TemplateRef }
1138
1081
  ];
1139
- DataTableColumnCellDirective = __decorate([
1140
- Directive({ selector: '[ngx-datatable-cell-template]' })
1141
- ], DataTableColumnCellDirective);
1142
1082
 
1143
- let DataTableColumnCellTreeToggle = class DataTableColumnCellTreeToggle {
1083
+ class DataTableColumnCellTreeToggle {
1144
1084
  constructor(template) {
1145
1085
  this.template = template;
1146
1086
  }
1147
- };
1087
+ }
1088
+ DataTableColumnCellTreeToggle.decorators = [
1089
+ { type: Directive, args: [{ selector: '[ngx-datatable-tree-toggle]' },] }
1090
+ ];
1148
1091
  DataTableColumnCellTreeToggle.ctorParameters = () => [
1149
1092
  { type: TemplateRef }
1150
1093
  ];
1151
- DataTableColumnCellTreeToggle = __decorate([
1152
- Directive({ selector: '[ngx-datatable-tree-toggle]' })
1153
- ], DataTableColumnCellTreeToggle);
1154
1094
 
1155
- let DataTableColumnDirective = class DataTableColumnDirective {
1095
+ class DataTableColumnDirective {
1156
1096
  constructor(columnChangesService) {
1157
1097
  this.columnChangesService = columnChangesService;
1158
1098
  this.isFirstChange = true;
@@ -1174,113 +1114,59 @@ let DataTableColumnDirective = class DataTableColumnDirective {
1174
1114
  this.columnChangesService.onInputChange();
1175
1115
  }
1176
1116
  }
1177
- };
1117
+ }
1118
+ DataTableColumnDirective.decorators = [
1119
+ { type: Directive, args: [{ selector: 'ngx-datatable-column' },] }
1120
+ ];
1178
1121
  DataTableColumnDirective.ctorParameters = () => [
1179
1122
  { type: ColumnChangesService }
1180
1123
  ];
1181
- __decorate([
1182
- Input()
1183
- ], DataTableColumnDirective.prototype, "name", void 0);
1184
- __decorate([
1185
- Input()
1186
- ], DataTableColumnDirective.prototype, "prop", void 0);
1187
- __decorate([
1188
- Input()
1189
- ], DataTableColumnDirective.prototype, "frozenLeft", void 0);
1190
- __decorate([
1191
- Input()
1192
- ], DataTableColumnDirective.prototype, "frozenRight", void 0);
1193
- __decorate([
1194
- Input()
1195
- ], DataTableColumnDirective.prototype, "flexGrow", void 0);
1196
- __decorate([
1197
- Input()
1198
- ], DataTableColumnDirective.prototype, "resizeable", void 0);
1199
- __decorate([
1200
- Input()
1201
- ], DataTableColumnDirective.prototype, "comparator", void 0);
1202
- __decorate([
1203
- Input()
1204
- ], DataTableColumnDirective.prototype, "pipe", void 0);
1205
- __decorate([
1206
- Input()
1207
- ], DataTableColumnDirective.prototype, "sortable", void 0);
1208
- __decorate([
1209
- Input()
1210
- ], DataTableColumnDirective.prototype, "draggable", void 0);
1211
- __decorate([
1212
- Input()
1213
- ], DataTableColumnDirective.prototype, "canAutoResize", void 0);
1214
- __decorate([
1215
- Input()
1216
- ], DataTableColumnDirective.prototype, "minWidth", void 0);
1217
- __decorate([
1218
- Input()
1219
- ], DataTableColumnDirective.prototype, "width", void 0);
1220
- __decorate([
1221
- Input()
1222
- ], DataTableColumnDirective.prototype, "maxWidth", void 0);
1223
- __decorate([
1224
- Input()
1225
- ], DataTableColumnDirective.prototype, "checkboxable", void 0);
1226
- __decorate([
1227
- Input()
1228
- ], DataTableColumnDirective.prototype, "headerCheckboxable", void 0);
1229
- __decorate([
1230
- Input()
1231
- ], DataTableColumnDirective.prototype, "headerClass", void 0);
1232
- __decorate([
1233
- Input()
1234
- ], DataTableColumnDirective.prototype, "cellClass", void 0);
1235
- __decorate([
1236
- Input()
1237
- ], DataTableColumnDirective.prototype, "isTreeColumn", void 0);
1238
- __decorate([
1239
- Input()
1240
- ], DataTableColumnDirective.prototype, "treeLevelIndent", void 0);
1241
- __decorate([
1242
- Input()
1243
- ], DataTableColumnDirective.prototype, "summaryFunc", void 0);
1244
- __decorate([
1245
- Input()
1246
- ], DataTableColumnDirective.prototype, "summaryTemplate", void 0);
1247
- __decorate([
1248
- Input('cellTemplate')
1249
- ], DataTableColumnDirective.prototype, "_cellTemplateInput", void 0);
1250
- __decorate([
1251
- ContentChild(DataTableColumnCellDirective, { read: TemplateRef, static: true })
1252
- ], DataTableColumnDirective.prototype, "_cellTemplateQuery", void 0);
1253
- __decorate([
1254
- Input('headerTemplate')
1255
- ], DataTableColumnDirective.prototype, "_headerTemplateInput", void 0);
1256
- __decorate([
1257
- ContentChild(DataTableColumnHeaderDirective, { read: TemplateRef, static: true })
1258
- ], DataTableColumnDirective.prototype, "_headerTemplateQuery", void 0);
1259
- __decorate([
1260
- Input('treeToggleTemplate')
1261
- ], DataTableColumnDirective.prototype, "_treeToggleTemplateInput", void 0);
1262
- __decorate([
1263
- ContentChild(DataTableColumnCellTreeToggle, { read: TemplateRef, static: true })
1264
- ], DataTableColumnDirective.prototype, "_treeToggleTemplateQuery", void 0);
1265
- DataTableColumnDirective = __decorate([
1266
- Directive({ selector: 'ngx-datatable-column' })
1267
- ], DataTableColumnDirective);
1124
+ DataTableColumnDirective.propDecorators = {
1125
+ name: [{ type: Input }],
1126
+ prop: [{ type: Input }],
1127
+ frozenLeft: [{ type: Input }],
1128
+ frozenRight: [{ type: Input }],
1129
+ flexGrow: [{ type: Input }],
1130
+ resizeable: [{ type: Input }],
1131
+ comparator: [{ type: Input }],
1132
+ pipe: [{ type: Input }],
1133
+ sortable: [{ type: Input }],
1134
+ draggable: [{ type: Input }],
1135
+ canAutoResize: [{ type: Input }],
1136
+ minWidth: [{ type: Input }],
1137
+ width: [{ type: Input }],
1138
+ maxWidth: [{ type: Input }],
1139
+ checkboxable: [{ type: Input }],
1140
+ headerCheckboxable: [{ type: Input }],
1141
+ headerClass: [{ type: Input }],
1142
+ cellClass: [{ type: Input }],
1143
+ isTreeColumn: [{ type: Input }],
1144
+ treeLevelIndent: [{ type: Input }],
1145
+ summaryFunc: [{ type: Input }],
1146
+ summaryTemplate: [{ type: Input }],
1147
+ _cellTemplateInput: [{ type: Input, args: ['cellTemplate',] }],
1148
+ _cellTemplateQuery: [{ type: ContentChild, args: [DataTableColumnCellDirective, { read: TemplateRef, static: true },] }],
1149
+ _headerTemplateInput: [{ type: Input, args: ['headerTemplate',] }],
1150
+ _headerTemplateQuery: [{ type: ContentChild, args: [DataTableColumnHeaderDirective, { read: TemplateRef, static: true },] }],
1151
+ _treeToggleTemplateInput: [{ type: Input, args: ['treeToggleTemplate',] }],
1152
+ _treeToggleTemplateQuery: [{ type: ContentChild, args: [DataTableColumnCellTreeToggle, { read: TemplateRef, static: true },] }]
1153
+ };
1268
1154
 
1269
- let DatatableRowDetailTemplateDirective = class DatatableRowDetailTemplateDirective {
1155
+ class DatatableRowDetailTemplateDirective {
1270
1156
  constructor(template) {
1271
1157
  this.template = template;
1272
1158
  }
1273
- };
1159
+ }
1160
+ DatatableRowDetailTemplateDirective.decorators = [
1161
+ { type: Directive, args: [{
1162
+ selector: '[ngx-datatable-row-detail-template]'
1163
+ },] }
1164
+ ];
1274
1165
  DatatableRowDetailTemplateDirective.ctorParameters = () => [
1275
1166
  { type: TemplateRef }
1276
1167
  ];
1277
- DatatableRowDetailTemplateDirective = __decorate([
1278
- Directive({
1279
- selector: '[ngx-datatable-row-detail-template]'
1280
- })
1281
- ], DatatableRowDetailTemplateDirective);
1282
1168
 
1283
- let DatatableRowDetailDirective = class DatatableRowDetailDirective {
1169
+ class DatatableRowDetailDirective {
1284
1170
  constructor() {
1285
1171
  /**
1286
1172
  * The detail row height is required especially
@@ -1322,58 +1208,36 @@ let DatatableRowDetailDirective = class DatatableRowDetailDirective {
1322
1208
  value: false
1323
1209
  });
1324
1210
  }
1211
+ }
1212
+ DatatableRowDetailDirective.decorators = [
1213
+ { type: Directive, args: [{ selector: 'ngx-datatable-row-detail' },] }
1214
+ ];
1215
+ DatatableRowDetailDirective.propDecorators = {
1216
+ rowHeight: [{ type: Input }],
1217
+ _templateInput: [{ type: Input, args: ['template',] }],
1218
+ _templateQuery: [{ type: ContentChild, args: [DatatableRowDetailTemplateDirective, { read: TemplateRef, static: true },] }],
1219
+ toggle: [{ type: Output }]
1325
1220
  };
1326
- __decorate([
1327
- Input()
1328
- ], DatatableRowDetailDirective.prototype, "rowHeight", void 0);
1329
- __decorate([
1330
- Input('template')
1331
- ], DatatableRowDetailDirective.prototype, "_templateInput", void 0);
1332
- __decorate([
1333
- ContentChild(DatatableRowDetailTemplateDirective, { read: TemplateRef, static: true })
1334
- ], DatatableRowDetailDirective.prototype, "_templateQuery", void 0);
1335
- __decorate([
1336
- Output()
1337
- ], DatatableRowDetailDirective.prototype, "toggle", void 0);
1338
- DatatableRowDetailDirective = __decorate([
1339
- Directive({ selector: 'ngx-datatable-row-detail' })
1340
- ], DatatableRowDetailDirective);
1341
1221
 
1342
- let DatatableFooterDirective = class DatatableFooterDirective {
1222
+ class DatatableFooterDirective {
1343
1223
  get template() {
1344
1224
  return this._templateInput || this._templateQuery;
1345
1225
  }
1226
+ }
1227
+ DatatableFooterDirective.decorators = [
1228
+ { type: Directive, args: [{ selector: 'ngx-datatable-footer' },] }
1229
+ ];
1230
+ DatatableFooterDirective.propDecorators = {
1231
+ footerHeight: [{ type: Input }],
1232
+ totalMessage: [{ type: Input }],
1233
+ selectedMessage: [{ type: Input }],
1234
+ pagerLeftArrowIcon: [{ type: Input }],
1235
+ pagerRightArrowIcon: [{ type: Input }],
1236
+ pagerPreviousIcon: [{ type: Input }],
1237
+ pagerNextIcon: [{ type: Input }],
1238
+ _templateInput: [{ type: Input, args: ['template',] }],
1239
+ _templateQuery: [{ type: ContentChild, args: [DataTableFooterTemplateDirective, { read: TemplateRef },] }]
1346
1240
  };
1347
- __decorate([
1348
- Input()
1349
- ], DatatableFooterDirective.prototype, "footerHeight", void 0);
1350
- __decorate([
1351
- Input()
1352
- ], DatatableFooterDirective.prototype, "totalMessage", void 0);
1353
- __decorate([
1354
- Input()
1355
- ], DatatableFooterDirective.prototype, "selectedMessage", void 0);
1356
- __decorate([
1357
- Input()
1358
- ], DatatableFooterDirective.prototype, "pagerLeftArrowIcon", void 0);
1359
- __decorate([
1360
- Input()
1361
- ], DatatableFooterDirective.prototype, "pagerRightArrowIcon", void 0);
1362
- __decorate([
1363
- Input()
1364
- ], DatatableFooterDirective.prototype, "pagerPreviousIcon", void 0);
1365
- __decorate([
1366
- Input()
1367
- ], DatatableFooterDirective.prototype, "pagerNextIcon", void 0);
1368
- __decorate([
1369
- Input('template')
1370
- ], DatatableFooterDirective.prototype, "_templateInput", void 0);
1371
- __decorate([
1372
- ContentChild(DataTableFooterTemplateDirective, { read: TemplateRef })
1373
- ], DatatableFooterDirective.prototype, "_templateQuery", void 0);
1374
- DatatableFooterDirective = __decorate([
1375
- Directive({ selector: 'ngx-datatable-footer' })
1376
- ], DatatableFooterDirective);
1377
1241
 
1378
1242
  /**
1379
1243
  * Returns the columns by pin.
@@ -1643,7 +1507,7 @@ function translateXY(styles, x, y) {
1643
1507
  }
1644
1508
  }
1645
1509
 
1646
- let DataTableBodyComponent = class DataTableBodyComponent {
1510
+ class DataTableBodyComponent {
1647
1511
  /**
1648
1512
  * Creates an instance of DataTableBodyComponent.
1649
1513
  */
@@ -2201,132 +2065,11 @@ let DataTableBodyComponent = class DataTableBodyComponent {
2201
2065
  onTreeAction(row) {
2202
2066
  this.treeAction.emit({ row });
2203
2067
  }
2204
- };
2205
- DataTableBodyComponent.ctorParameters = () => [
2206
- { type: ChangeDetectorRef }
2207
- ];
2208
- __decorate([
2209
- Input()
2210
- ], DataTableBodyComponent.prototype, "scrollbarV", void 0);
2211
- __decorate([
2212
- Input()
2213
- ], DataTableBodyComponent.prototype, "scrollbarH", void 0);
2214
- __decorate([
2215
- Input()
2216
- ], DataTableBodyComponent.prototype, "loadingIndicator", void 0);
2217
- __decorate([
2218
- Input()
2219
- ], DataTableBodyComponent.prototype, "externalPaging", void 0);
2220
- __decorate([
2221
- Input()
2222
- ], DataTableBodyComponent.prototype, "rowHeight", void 0);
2223
- __decorate([
2224
- Input()
2225
- ], DataTableBodyComponent.prototype, "offsetX", void 0);
2226
- __decorate([
2227
- Input()
2228
- ], DataTableBodyComponent.prototype, "emptyMessage", void 0);
2229
- __decorate([
2230
- Input()
2231
- ], DataTableBodyComponent.prototype, "selectionType", void 0);
2232
- __decorate([
2233
- Input()
2234
- ], DataTableBodyComponent.prototype, "selected", void 0);
2235
- __decorate([
2236
- Input()
2237
- ], DataTableBodyComponent.prototype, "rowIdentity", void 0);
2238
- __decorate([
2239
- Input()
2240
- ], DataTableBodyComponent.prototype, "rowDetail", void 0);
2241
- __decorate([
2242
- Input()
2243
- ], DataTableBodyComponent.prototype, "groupHeader", void 0);
2244
- __decorate([
2245
- Input()
2246
- ], DataTableBodyComponent.prototype, "selectCheck", void 0);
2247
- __decorate([
2248
- Input()
2249
- ], DataTableBodyComponent.prototype, "displayCheck", void 0);
2250
- __decorate([
2251
- Input()
2252
- ], DataTableBodyComponent.prototype, "trackByProp", void 0);
2253
- __decorate([
2254
- Input()
2255
- ], DataTableBodyComponent.prototype, "rowClass", void 0);
2256
- __decorate([
2257
- Input()
2258
- ], DataTableBodyComponent.prototype, "groupedRows", void 0);
2259
- __decorate([
2260
- Input()
2261
- ], DataTableBodyComponent.prototype, "groupExpansionDefault", void 0);
2262
- __decorate([
2263
- Input()
2264
- ], DataTableBodyComponent.prototype, "innerWidth", void 0);
2265
- __decorate([
2266
- Input()
2267
- ], DataTableBodyComponent.prototype, "groupRowsBy", void 0);
2268
- __decorate([
2269
- Input()
2270
- ], DataTableBodyComponent.prototype, "virtualization", void 0);
2271
- __decorate([
2272
- Input()
2273
- ], DataTableBodyComponent.prototype, "summaryRow", void 0);
2274
- __decorate([
2275
- Input()
2276
- ], DataTableBodyComponent.prototype, "summaryPosition", void 0);
2277
- __decorate([
2278
- Input()
2279
- ], DataTableBodyComponent.prototype, "summaryHeight", void 0);
2280
- __decorate([
2281
- Input()
2282
- ], DataTableBodyComponent.prototype, "pageSize", null);
2283
- __decorate([
2284
- Input()
2285
- ], DataTableBodyComponent.prototype, "rows", null);
2286
- __decorate([
2287
- Input()
2288
- ], DataTableBodyComponent.prototype, "columns", null);
2289
- __decorate([
2290
- Input()
2291
- ], DataTableBodyComponent.prototype, "offset", null);
2292
- __decorate([
2293
- Input()
2294
- ], DataTableBodyComponent.prototype, "rowCount", null);
2295
- __decorate([
2296
- HostBinding('style.width')
2297
- ], DataTableBodyComponent.prototype, "bodyWidth", null);
2298
- __decorate([
2299
- Input(),
2300
- HostBinding('style.height')
2301
- ], DataTableBodyComponent.prototype, "bodyHeight", null);
2302
- __decorate([
2303
- Output()
2304
- ], DataTableBodyComponent.prototype, "scroll", void 0);
2305
- __decorate([
2306
- Output()
2307
- ], DataTableBodyComponent.prototype, "page", void 0);
2308
- __decorate([
2309
- Output()
2310
- ], DataTableBodyComponent.prototype, "activate", void 0);
2311
- __decorate([
2312
- Output()
2313
- ], DataTableBodyComponent.prototype, "select", void 0);
2314
- __decorate([
2315
- Output()
2316
- ], DataTableBodyComponent.prototype, "detailToggle", void 0);
2317
- __decorate([
2318
- Output()
2319
- ], DataTableBodyComponent.prototype, "rowContextmenu", void 0);
2320
- __decorate([
2321
- Output()
2322
- ], DataTableBodyComponent.prototype, "treeAction", void 0);
2323
- __decorate([
2324
- ViewChild(ScrollerComponent)
2325
- ], DataTableBodyComponent.prototype, "scroller", void 0);
2326
- DataTableBodyComponent = __decorate([
2327
- Component({
2328
- selector: 'datatable-body',
2329
- template: `
2068
+ }
2069
+ DataTableBodyComponent.decorators = [
2070
+ { type: Component, args: [{
2071
+ selector: 'datatable-body',
2072
+ template: `
2330
2073
  <datatable-progress *ngIf="loadingIndicator"> </datatable-progress>
2331
2074
  <datatable-selection
2332
2075
  #selector
@@ -2371,6 +2114,7 @@ DataTableBodyComponent = __decorate([
2371
2114
  (rowContextmenu)="rowContextmenu.emit($event)"
2372
2115
  >
2373
2116
  <datatable-body-row
2117
+ role="row"
2374
2118
  *ngIf="!groupedRows; else groupedRowsTemplate"
2375
2119
  tabindex="-1"
2376
2120
  [isSelected]="selector.getRowSelected(group)"
@@ -2390,6 +2134,7 @@ DataTableBodyComponent = __decorate([
2390
2134
  </datatable-body-row>
2391
2135
  <ng-template #groupedRowsTemplate>
2392
2136
  <datatable-body-row
2137
+ role="row"
2393
2138
  *ngFor="let row of group.value; let i = index; trackBy: rowTrackingFn"
2394
2139
  tabindex="-1"
2395
2140
  [isSelected]="selector.getRowSelected(row)"
@@ -2408,6 +2153,7 @@ DataTableBodyComponent = __decorate([
2408
2153
  </ng-template>
2409
2154
  </datatable-row-wrapper>
2410
2155
  <datatable-summary-row
2156
+ role="row"
2411
2157
  *ngIf="summaryRow && summaryPosition === 'bottom'"
2412
2158
  [ngStyle]="getBottomSummaryRowStyles()"
2413
2159
  [rowHeight]="summaryHeight"
@@ -2421,14 +2167,58 @@ DataTableBodyComponent = __decorate([
2421
2167
  <div class="empty-row" *ngIf="!rows?.length && !loadingIndicator" [innerHTML]="emptyMessage"></div>
2422
2168
  </datatable-selection>
2423
2169
  `,
2424
- changeDetection: ChangeDetectionStrategy.OnPush,
2425
- host: {
2426
- class: 'datatable-body'
2427
- }
2428
- })
2429
- ], DataTableBodyComponent);
2170
+ changeDetection: ChangeDetectionStrategy.OnPush,
2171
+ host: {
2172
+ class: 'datatable-body'
2173
+ }
2174
+ },] }
2175
+ ];
2176
+ DataTableBodyComponent.ctorParameters = () => [
2177
+ { type: ChangeDetectorRef }
2178
+ ];
2179
+ DataTableBodyComponent.propDecorators = {
2180
+ scrollbarV: [{ type: Input }],
2181
+ scrollbarH: [{ type: Input }],
2182
+ loadingIndicator: [{ type: Input }],
2183
+ externalPaging: [{ type: Input }],
2184
+ rowHeight: [{ type: Input }],
2185
+ offsetX: [{ type: Input }],
2186
+ emptyMessage: [{ type: Input }],
2187
+ selectionType: [{ type: Input }],
2188
+ selected: [{ type: Input }],
2189
+ rowIdentity: [{ type: Input }],
2190
+ rowDetail: [{ type: Input }],
2191
+ groupHeader: [{ type: Input }],
2192
+ selectCheck: [{ type: Input }],
2193
+ displayCheck: [{ type: Input }],
2194
+ trackByProp: [{ type: Input }],
2195
+ rowClass: [{ type: Input }],
2196
+ groupedRows: [{ type: Input }],
2197
+ groupExpansionDefault: [{ type: Input }],
2198
+ innerWidth: [{ type: Input }],
2199
+ groupRowsBy: [{ type: Input }],
2200
+ virtualization: [{ type: Input }],
2201
+ summaryRow: [{ type: Input }],
2202
+ summaryPosition: [{ type: Input }],
2203
+ summaryHeight: [{ type: Input }],
2204
+ pageSize: [{ type: Input }],
2205
+ rows: [{ type: Input }],
2206
+ columns: [{ type: Input }],
2207
+ offset: [{ type: Input }],
2208
+ rowCount: [{ type: Input }],
2209
+ bodyWidth: [{ type: HostBinding, args: ['style.width',] }],
2210
+ bodyHeight: [{ type: Input }, { type: HostBinding, args: ['style.height',] }],
2211
+ scroll: [{ type: Output }],
2212
+ page: [{ type: Output }],
2213
+ activate: [{ type: Output }],
2214
+ select: [{ type: Output }],
2215
+ detailToggle: [{ type: Output }],
2216
+ rowContextmenu: [{ type: Output }],
2217
+ treeAction: [{ type: Output }],
2218
+ scroller: [{ type: ViewChild, args: [ScrollerComponent,] }]
2219
+ };
2430
2220
 
2431
- let DataTableHeaderComponent = class DataTableHeaderComponent {
2221
+ class DataTableHeaderComponent {
2432
2222
  constructor(cd) {
2433
2223
  this.cd = cd;
2434
2224
  this.sort = new EventEmitter();
@@ -2634,76 +2424,13 @@ let DataTableHeaderComponent = class DataTableHeaderComponent {
2634
2424
  }
2635
2425
  return styles;
2636
2426
  }
2637
- };
2638
- DataTableHeaderComponent.ctorParameters = () => [
2639
- { type: ChangeDetectorRef }
2640
- ];
2641
- __decorate([
2642
- Input()
2643
- ], DataTableHeaderComponent.prototype, "sortAscendingIcon", void 0);
2644
- __decorate([
2645
- Input()
2646
- ], DataTableHeaderComponent.prototype, "sortDescendingIcon", void 0);
2647
- __decorate([
2648
- Input()
2649
- ], DataTableHeaderComponent.prototype, "scrollbarH", void 0);
2650
- __decorate([
2651
- Input()
2652
- ], DataTableHeaderComponent.prototype, "dealsWithGroup", void 0);
2653
- __decorate([
2654
- Input()
2655
- ], DataTableHeaderComponent.prototype, "targetMarkerTemplate", void 0);
2656
- __decorate([
2657
- Input()
2658
- ], DataTableHeaderComponent.prototype, "innerWidth", null);
2659
- __decorate([
2660
- Input()
2661
- ], DataTableHeaderComponent.prototype, "sorts", void 0);
2662
- __decorate([
2663
- Input()
2664
- ], DataTableHeaderComponent.prototype, "sortType", void 0);
2665
- __decorate([
2666
- Input()
2667
- ], DataTableHeaderComponent.prototype, "allRowsSelected", void 0);
2668
- __decorate([
2669
- Input()
2670
- ], DataTableHeaderComponent.prototype, "selectionType", void 0);
2671
- __decorate([
2672
- Input()
2673
- ], DataTableHeaderComponent.prototype, "reorderable", void 0);
2674
- __decorate([
2675
- HostBinding('style.height'),
2676
- Input()
2677
- ], DataTableHeaderComponent.prototype, "headerHeight", null);
2678
- __decorate([
2679
- Input()
2680
- ], DataTableHeaderComponent.prototype, "columns", null);
2681
- __decorate([
2682
- Input()
2683
- ], DataTableHeaderComponent.prototype, "offsetX", null);
2684
- __decorate([
2685
- Output()
2686
- ], DataTableHeaderComponent.prototype, "sort", void 0);
2687
- __decorate([
2688
- Output()
2689
- ], DataTableHeaderComponent.prototype, "reorder", void 0);
2690
- __decorate([
2691
- Output()
2692
- ], DataTableHeaderComponent.prototype, "resize", void 0);
2693
- __decorate([
2694
- Output()
2695
- ], DataTableHeaderComponent.prototype, "select", void 0);
2696
- __decorate([
2697
- Output()
2698
- ], DataTableHeaderComponent.prototype, "columnContextmenu", void 0);
2699
- __decorate([
2700
- HostBinding('style.width')
2701
- ], DataTableHeaderComponent.prototype, "headerWidth", null);
2702
- DataTableHeaderComponent = __decorate([
2703
- Component({
2704
- selector: 'datatable-header',
2705
- template: `
2427
+ }
2428
+ DataTableHeaderComponent.decorators = [
2429
+ { type: Component, args: [{
2430
+ selector: 'datatable-header',
2431
+ template: `
2706
2432
  <div
2433
+ role="row"
2707
2434
  orderable
2708
2435
  (reorder)="onColumnReordered($event)"
2709
2436
  (targetChanged)="onTargetChanged($event)"
@@ -2716,6 +2443,7 @@ DataTableHeaderComponent = __decorate([
2716
2443
  [ngStyle]="_styleByGroup[colGroup.type]"
2717
2444
  >
2718
2445
  <datatable-header-cell
2446
+ role="columnheader"
2719
2447
  *ngFor="let column of colGroup.columns; trackBy: columnTrackingFn"
2720
2448
  resizeable
2721
2449
  [resizeEnabled]="column.resizeable"
@@ -2740,6 +2468,7 @@ DataTableHeaderComponent = __decorate([
2740
2468
  [selectionType]="selectionType"
2741
2469
  [sortAscendingIcon]="sortAscendingIcon"
2742
2470
  [sortDescendingIcon]="sortDescendingIcon"
2471
+ [sortUnsetIcon]="sortUnsetIcon"
2743
2472
  [allRowsSelected]="allRowsSelected"
2744
2473
  (sort)="onSort($event)"
2745
2474
  (select)="select.emit($event)"
@@ -2749,12 +2478,38 @@ DataTableHeaderComponent = __decorate([
2749
2478
  </div>
2750
2479
  </div>
2751
2480
  `,
2752
- host: {
2753
- class: 'datatable-header'
2754
- },
2755
- changeDetection: ChangeDetectionStrategy.OnPush
2756
- })
2757
- ], DataTableHeaderComponent);
2481
+ host: {
2482
+ class: 'datatable-header'
2483
+ },
2484
+ changeDetection: ChangeDetectionStrategy.OnPush
2485
+ },] }
2486
+ ];
2487
+ DataTableHeaderComponent.ctorParameters = () => [
2488
+ { type: ChangeDetectorRef }
2489
+ ];
2490
+ DataTableHeaderComponent.propDecorators = {
2491
+ sortAscendingIcon: [{ type: Input }],
2492
+ sortDescendingIcon: [{ type: Input }],
2493
+ sortUnsetIcon: [{ type: Input }],
2494
+ scrollbarH: [{ type: Input }],
2495
+ dealsWithGroup: [{ type: Input }],
2496
+ targetMarkerTemplate: [{ type: Input }],
2497
+ innerWidth: [{ type: Input }],
2498
+ sorts: [{ type: Input }],
2499
+ sortType: [{ type: Input }],
2500
+ allRowsSelected: [{ type: Input }],
2501
+ selectionType: [{ type: Input }],
2502
+ reorderable: [{ type: Input }],
2503
+ headerHeight: [{ type: HostBinding, args: ['style.height',] }, { type: Input }],
2504
+ columns: [{ type: Input }],
2505
+ offsetX: [{ type: Input }],
2506
+ sort: [{ type: Output }],
2507
+ reorder: [{ type: Output }],
2508
+ resize: [{ type: Output }],
2509
+ select: [{ type: Output }],
2510
+ columnContextmenu: [{ type: Output }],
2511
+ headerWidth: [{ type: HostBinding, args: ['style.width',] }]
2512
+ };
2758
2513
 
2759
2514
  /**
2760
2515
  * Throttle a function
@@ -3091,7 +2846,7 @@ function sortRows(rows, columns, dirs) {
3091
2846
  });
3092
2847
  }
3093
2848
 
3094
- let DatatableComponent = class DatatableComponent {
2849
+ class DatatableComponent {
3095
2850
  constructor(scrollbarHelper, dimensionsHelper, cd, element, differs, columnChangesService, configuration) {
3096
2851
  this.scrollbarHelper = scrollbarHelper;
3097
2852
  this.dimensionsHelper = dimensionsHelper;
@@ -3172,6 +2927,7 @@ let DatatableComponent = class DatatableComponent {
3172
2927
  this.cssClasses = {
3173
2928
  sortAscending: 'datatable-icon-up',
3174
2929
  sortDescending: 'datatable-icon-down',
2930
+ sortUnset: 'datatable-icon-sort-unset',
3175
2931
  pagerLeftArrow: 'datatable-icon-left',
3176
2932
  pagerRightArrow: 'datatable-icon-right',
3177
2933
  pagerPrevious: 'datatable-icon-prev',
@@ -3901,7 +3657,19 @@ let DatatableComponent = class DatatableComponent {
3901
3657
  sortInternalRows() {
3902
3658
  this._internalRows = sortRows(this._internalRows, this._internalColumns, this.sorts);
3903
3659
  }
3904
- };
3660
+ }
3661
+ DatatableComponent.decorators = [
3662
+ { type: Component, args: [{
3663
+ selector: 'ngx-datatable',
3664
+ template: "<div role=\"table\" visibilityObserver (visible)=\"recalculate()\">\n <datatable-header\n role=\"rowgroup\"\n *ngIf=\"headerHeight\"\n [sorts]=\"sorts\"\n [sortType]=\"sortType\"\n [scrollbarH]=\"scrollbarH\"\n [innerWidth]=\"_innerWidth\"\n [offsetX]=\"_offsetX | async\"\n [dealsWithGroup]=\"groupedRows !== undefined\"\n [columns]=\"_internalColumns\"\n [headerHeight]=\"headerHeight\"\n [reorderable]=\"reorderable\"\n [targetMarkerTemplate]=\"targetMarkerTemplate\"\n [sortAscendingIcon]=\"cssClasses.sortAscending\"\n [sortDescendingIcon]=\"cssClasses.sortDescending\"\n [sortUnsetIcon]=\"cssClasses.sortUnset\"\n [allRowsSelected]=\"allRowsSelected\"\n [selectionType]=\"selectionType\"\n (sort)=\"onColumnSort($event)\"\n (resize)=\"onColumnResize($event)\"\n (reorder)=\"onColumnReorder($event)\"\n (select)=\"onHeaderSelect($event)\"\n (columnContextmenu)=\"onColumnContextmenu($event)\"\n >\n </datatable-header>\n <datatable-body\n role=\"rowgroup\"\n [groupRowsBy]=\"groupRowsBy\"\n [groupedRows]=\"groupedRows\"\n [rows]=\"_internalRows\"\n [groupExpansionDefault]=\"groupExpansionDefault\"\n [scrollbarV]=\"scrollbarV\"\n [scrollbarH]=\"scrollbarH\"\n [virtualization]=\"virtualization\"\n [loadingIndicator]=\"loadingIndicator\"\n [externalPaging]=\"externalPaging\"\n [rowHeight]=\"rowHeight\"\n [rowCount]=\"rowCount\"\n [offset]=\"offset\"\n [trackByProp]=\"trackByProp\"\n [columns]=\"_internalColumns\"\n [pageSize]=\"pageSize\"\n [offsetX]=\"_offsetX | async\"\n [rowDetail]=\"rowDetail\"\n [groupHeader]=\"groupHeader\"\n [selected]=\"selected\"\n [innerWidth]=\"_innerWidth\"\n [bodyHeight]=\"bodyHeight\"\n [selectionType]=\"selectionType\"\n [emptyMessage]=\"messages.emptyMessage\"\n [rowIdentity]=\"rowIdentity\"\n [rowClass]=\"rowClass\"\n [selectCheck]=\"selectCheck\"\n [displayCheck]=\"displayCheck\"\n [summaryRow]=\"summaryRow\"\n [summaryHeight]=\"summaryHeight\"\n [summaryPosition]=\"summaryPosition\"\n (page)=\"onBodyPage($event)\"\n (activate)=\"activate.emit($event)\"\n (rowContextmenu)=\"onRowContextmenu($event)\"\n (select)=\"onBodySelect($event)\"\n (scroll)=\"onBodyScroll($event)\"\n (treeAction)=\"onTreeAction($event)\"\n >\n </datatable-body>\n <datatable-footer\n *ngIf=\"footerHeight\"\n [rowCount]=\"rowCount\"\n [pageSize]=\"pageSize\"\n [offset]=\"offset\"\n [footerHeight]=\"footerHeight\"\n [footerTemplate]=\"footer\"\n [totalMessage]=\"messages.totalMessage\"\n [pagerLeftArrowIcon]=\"cssClasses.pagerLeftArrow\"\n [pagerRightArrowIcon]=\"cssClasses.pagerRightArrow\"\n [pagerPreviousIcon]=\"cssClasses.pagerPrevious\"\n [selectedCount]=\"selected.length\"\n [selectedMessage]=\"!!selectionType && messages.selectedMessage\"\n [pagerNextIcon]=\"cssClasses.pagerNext\"\n (page)=\"onFooterPage($event)\"\n >\n </datatable-footer>\n</div>\n",
3665
+ changeDetection: ChangeDetectionStrategy.OnPush,
3666
+ encapsulation: ViewEncapsulation.None,
3667
+ host: {
3668
+ class: 'ngx-datatable'
3669
+ },
3670
+ styles: [".ngx-datatable{display:block;overflow:hidden;justify-content:center;position:relative;transform:translateZ(0)}.ngx-datatable [hidden]{display:none!important}.ngx-datatable *,.ngx-datatable :after,.ngx-datatable :before{box-sizing:border-box}.ngx-datatable.scroll-vertical .datatable-body{overflow-y:auto}.ngx-datatable.scroll-vertical.virtualized .datatable-body .datatable-row-wrapper{position:absolute}.ngx-datatable.scroll-horz .datatable-body{overflow-x:auto;-webkit-overflow-scrolling:touch}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner{white-space:nowrap}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngx-datatable.fixed-row .datatable-scroll,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row{white-space:nowrap}.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-group-cell{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ngx-datatable .datatable-body-row,.ngx-datatable .datatable-header-inner,.ngx-datatable .datatable-row-center{display:flex;flex-direction:row;-o-flex-flow:row;flex-flow:row}.ngx-datatable .datatable-body-cell,.ngx-datatable .datatable-header-cell{overflow-x:hidden;vertical-align:top;display:inline-block;line-height:1.625}.ngx-datatable .datatable-body-cell:focus,.ngx-datatable .datatable-header-cell:focus{outline:none}.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{z-index:9}.ngx-datatable .datatable-row-center,.ngx-datatable .datatable-row-group,.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{position:relative}.ngx-datatable .datatable-header{display:block;overflow:hidden}.ngx-datatable .datatable-header .datatable-header-inner{align-items:stretch;-webkit-align-items:stretch}.ngx-datatable .datatable-header .datatable-header-cell{position:relative;display:inline-block}.ngx-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-wrapper{cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell.longpress .datatable-header-cell-wrapper{cursor:move}.ngx-datatable .datatable-header .datatable-header-cell .sort-btn{line-height:100%;vertical-align:middle;display:inline-block;cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell .resize-handle--not-resizable{display:inline-block;position:absolute;right:0;top:0;bottom:0;width:5px;padding:0 4px;visibility:hidden}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle{cursor:ew-resize}.ngx-datatable .datatable-header .datatable-header-cell.resizeable:hover .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell:hover .resize-handle--not-resizable{visibility:visible}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker{position:absolute;top:0;bottom:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromLeft{right:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromRight{left:0}.ngx-datatable .datatable-header .datatable-header-cell .datatable-header-cell-template-wrap{height:inherit}.ngx-datatable .datatable-body{position:relative;z-index:10;display:block}.ngx-datatable .datatable-body .datatable-scroll{display:inline-block}.ngx-datatable .datatable-body .datatable-row-detail{overflow-y:hidden}.ngx-datatable .datatable-body .datatable-row-wrapper{display:flex;flex-direction:column}.ngx-datatable .datatable-body .datatable-body-row{outline:none}.ngx-datatable .datatable-body .datatable-body-row>div{display:flex}.ngx-datatable .datatable-footer{display:block;width:100%;overflow:auto}.ngx-datatable .datatable-footer .datatable-footer-inner{display:flex;align-items:center;width:100%}.ngx-datatable .datatable-footer .selected-count .page-count{flex:1 1 40%}.ngx-datatable .datatable-footer .selected-count .datatable-pager{flex:1 1 60%}.ngx-datatable .datatable-footer .page-count{flex:1 1 20%}.ngx-datatable .datatable-footer .datatable-pager{flex:1 1 80%;text-align:right}.ngx-datatable .datatable-footer .datatable-pager .pager,.ngx-datatable .datatable-footer .datatable-pager .pager li{padding:0;margin:0;display:inline-block;list-style:none}.ngx-datatable .datatable-footer .datatable-pager .pager li,.ngx-datatable .datatable-footer .datatable-pager .pager li a{outline:none}.ngx-datatable .datatable-footer .datatable-pager .pager li a{cursor:pointer;display:inline-block}.ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a{cursor:not-allowed}"]
3671
+ },] }
3672
+ ];
3905
3673
  DatatableComponent.ctorParameters = () => [
3906
3674
  { type: ScrollbarHelper, decorators: [{ type: SkipSelf }] },
3907
3675
  { type: DimensionsHelper, decorators: [{ type: SkipSelf }] },
@@ -3911,219 +3679,78 @@ DatatableComponent.ctorParameters = () => [
3911
3679
  { type: ColumnChangesService },
3912
3680
  { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: ['configuration',] }] }
3913
3681
  ];
3682
+ DatatableComponent.propDecorators = {
3683
+ targetMarkerTemplate: [{ type: Input }],
3684
+ rows: [{ type: Input }],
3685
+ groupRowsBy: [{ type: Input }],
3686
+ groupedRows: [{ type: Input }],
3687
+ columns: [{ type: Input }],
3688
+ selected: [{ type: Input }],
3689
+ scrollbarV: [{ type: Input }],
3690
+ scrollbarH: [{ type: Input }],
3691
+ rowHeight: [{ type: Input }],
3692
+ columnMode: [{ type: Input }],
3693
+ headerHeight: [{ type: Input }],
3694
+ footerHeight: [{ type: Input }],
3695
+ externalPaging: [{ type: Input }],
3696
+ externalSorting: [{ type: Input }],
3697
+ limit: [{ type: Input }],
3698
+ count: [{ type: Input }],
3699
+ offset: [{ type: Input }],
3700
+ loadingIndicator: [{ type: Input }],
3701
+ selectionType: [{ type: Input }],
3702
+ reorderable: [{ type: Input }],
3703
+ swapColumns: [{ type: Input }],
3704
+ sortType: [{ type: Input }],
3705
+ sorts: [{ type: Input }],
3706
+ cssClasses: [{ type: Input }],
3707
+ messages: [{ type: Input }],
3708
+ rowClass: [{ type: Input }],
3709
+ selectCheck: [{ type: Input }],
3710
+ displayCheck: [{ type: Input }],
3711
+ groupExpansionDefault: [{ type: Input }],
3712
+ trackByProp: [{ type: Input }],
3713
+ selectAllRowsOnPage: [{ type: Input }],
3714
+ virtualization: [{ type: Input }],
3715
+ treeFromRelation: [{ type: Input }],
3716
+ treeToRelation: [{ type: Input }],
3717
+ summaryRow: [{ type: Input }],
3718
+ summaryHeight: [{ type: Input }],
3719
+ summaryPosition: [{ type: Input }],
3720
+ scroll: [{ type: Output }],
3721
+ activate: [{ type: Output }],
3722
+ select: [{ type: Output }],
3723
+ sort: [{ type: Output }],
3724
+ page: [{ type: Output }],
3725
+ reorder: [{ type: Output }],
3726
+ resize: [{ type: Output }],
3727
+ tableContextmenu: [{ type: Output }],
3728
+ treeAction: [{ type: Output }],
3729
+ isFixedHeader: [{ type: HostBinding, args: ['class.fixed-header',] }],
3730
+ isFixedRow: [{ type: HostBinding, args: ['class.fixed-row',] }],
3731
+ isVertScroll: [{ type: HostBinding, args: ['class.scroll-vertical',] }],
3732
+ isVirtualized: [{ type: HostBinding, args: ['class.virtualized',] }],
3733
+ isHorScroll: [{ type: HostBinding, args: ['class.scroll-horz',] }],
3734
+ isSelectable: [{ type: HostBinding, args: ['class.selectable',] }],
3735
+ isCheckboxSelection: [{ type: HostBinding, args: ['class.checkbox-selection',] }],
3736
+ isCellSelection: [{ type: HostBinding, args: ['class.cell-selection',] }],
3737
+ isSingleSelection: [{ type: HostBinding, args: ['class.single-selection',] }],
3738
+ isMultiSelection: [{ type: HostBinding, args: ['class.multi-selection',] }],
3739
+ isMultiClickSelection: [{ type: HostBinding, args: ['class.multi-click-selection',] }],
3740
+ columnTemplates: [{ type: ContentChildren, args: [DataTableColumnDirective,] }],
3741
+ rowDetail: [{ type: ContentChild, args: [DatatableRowDetailDirective,] }],
3742
+ groupHeader: [{ type: ContentChild, args: [DatatableGroupHeaderDirective,] }],
3743
+ footer: [{ type: ContentChild, args: [DatatableFooterDirective,] }],
3744
+ bodyComponent: [{ type: ViewChild, args: [DataTableBodyComponent,] }],
3745
+ headerComponent: [{ type: ViewChild, args: [DataTableHeaderComponent,] }],
3746
+ rowIdentity: [{ type: Input }],
3747
+ onWindowResize: [{ type: HostListener, args: ['window:resize',] }]
3748
+ };
3914
3749
  __decorate([
3915
- Input()
3916
- ], DatatableComponent.prototype, "targetMarkerTemplate", void 0);
3917
- __decorate([
3918
- Input()
3919
- ], DatatableComponent.prototype, "rows", null);
3920
- __decorate([
3921
- Input()
3922
- ], DatatableComponent.prototype, "groupRowsBy", null);
3923
- __decorate([
3924
- Input()
3925
- ], DatatableComponent.prototype, "groupedRows", void 0);
3926
- __decorate([
3927
- Input()
3928
- ], DatatableComponent.prototype, "columns", null);
3929
- __decorate([
3930
- Input()
3931
- ], DatatableComponent.prototype, "selected", void 0);
3932
- __decorate([
3933
- Input()
3934
- ], DatatableComponent.prototype, "scrollbarV", void 0);
3935
- __decorate([
3936
- Input()
3937
- ], DatatableComponent.prototype, "scrollbarH", void 0);
3938
- __decorate([
3939
- Input()
3940
- ], DatatableComponent.prototype, "rowHeight", void 0);
3941
- __decorate([
3942
- Input()
3943
- ], DatatableComponent.prototype, "columnMode", void 0);
3944
- __decorate([
3945
- Input()
3946
- ], DatatableComponent.prototype, "headerHeight", void 0);
3947
- __decorate([
3948
- Input()
3949
- ], DatatableComponent.prototype, "footerHeight", void 0);
3950
- __decorate([
3951
- Input()
3952
- ], DatatableComponent.prototype, "externalPaging", void 0);
3953
- __decorate([
3954
- Input()
3955
- ], DatatableComponent.prototype, "externalSorting", void 0);
3956
- __decorate([
3957
- Input()
3958
- ], DatatableComponent.prototype, "limit", null);
3959
- __decorate([
3960
- Input()
3961
- ], DatatableComponent.prototype, "count", null);
3962
- __decorate([
3963
- Input()
3964
- ], DatatableComponent.prototype, "offset", null);
3965
- __decorate([
3966
- Input()
3967
- ], DatatableComponent.prototype, "loadingIndicator", void 0);
3968
- __decorate([
3969
- Input()
3970
- ], DatatableComponent.prototype, "selectionType", void 0);
3971
- __decorate([
3972
- Input()
3973
- ], DatatableComponent.prototype, "reorderable", void 0);
3974
- __decorate([
3975
- Input()
3976
- ], DatatableComponent.prototype, "swapColumns", void 0);
3977
- __decorate([
3978
- Input()
3979
- ], DatatableComponent.prototype, "sortType", void 0);
3980
- __decorate([
3981
- Input()
3982
- ], DatatableComponent.prototype, "sorts", void 0);
3983
- __decorate([
3984
- Input()
3985
- ], DatatableComponent.prototype, "cssClasses", void 0);
3986
- __decorate([
3987
- Input()
3988
- ], DatatableComponent.prototype, "messages", void 0);
3989
- __decorate([
3990
- Input()
3991
- ], DatatableComponent.prototype, "rowClass", void 0);
3992
- __decorate([
3993
- Input()
3994
- ], DatatableComponent.prototype, "selectCheck", void 0);
3995
- __decorate([
3996
- Input()
3997
- ], DatatableComponent.prototype, "displayCheck", void 0);
3998
- __decorate([
3999
- Input()
4000
- ], DatatableComponent.prototype, "groupExpansionDefault", void 0);
4001
- __decorate([
4002
- Input()
4003
- ], DatatableComponent.prototype, "trackByProp", void 0);
4004
- __decorate([
4005
- Input()
4006
- ], DatatableComponent.prototype, "selectAllRowsOnPage", void 0);
4007
- __decorate([
4008
- Input()
4009
- ], DatatableComponent.prototype, "virtualization", void 0);
4010
- __decorate([
4011
- Input()
4012
- ], DatatableComponent.prototype, "treeFromRelation", void 0);
4013
- __decorate([
4014
- Input()
4015
- ], DatatableComponent.prototype, "treeToRelation", void 0);
4016
- __decorate([
4017
- Input()
4018
- ], DatatableComponent.prototype, "summaryRow", void 0);
4019
- __decorate([
4020
- Input()
4021
- ], DatatableComponent.prototype, "summaryHeight", void 0);
4022
- __decorate([
4023
- Input()
4024
- ], DatatableComponent.prototype, "summaryPosition", void 0);
4025
- __decorate([
4026
- Output()
4027
- ], DatatableComponent.prototype, "scroll", void 0);
4028
- __decorate([
4029
- Output()
4030
- ], DatatableComponent.prototype, "activate", void 0);
4031
- __decorate([
4032
- Output()
4033
- ], DatatableComponent.prototype, "select", void 0);
4034
- __decorate([
4035
- Output()
4036
- ], DatatableComponent.prototype, "sort", void 0);
4037
- __decorate([
4038
- Output()
4039
- ], DatatableComponent.prototype, "page", void 0);
4040
- __decorate([
4041
- Output()
4042
- ], DatatableComponent.prototype, "reorder", void 0);
4043
- __decorate([
4044
- Output()
4045
- ], DatatableComponent.prototype, "resize", void 0);
4046
- __decorate([
4047
- Output()
4048
- ], DatatableComponent.prototype, "tableContextmenu", void 0);
4049
- __decorate([
4050
- Output()
4051
- ], DatatableComponent.prototype, "treeAction", void 0);
4052
- __decorate([
4053
- HostBinding('class.fixed-header')
4054
- ], DatatableComponent.prototype, "isFixedHeader", null);
4055
- __decorate([
4056
- HostBinding('class.fixed-row')
4057
- ], DatatableComponent.prototype, "isFixedRow", null);
4058
- __decorate([
4059
- HostBinding('class.scroll-vertical')
4060
- ], DatatableComponent.prototype, "isVertScroll", null);
4061
- __decorate([
4062
- HostBinding('class.virtualized')
4063
- ], DatatableComponent.prototype, "isVirtualized", null);
4064
- __decorate([
4065
- HostBinding('class.scroll-horz')
4066
- ], DatatableComponent.prototype, "isHorScroll", null);
4067
- __decorate([
4068
- HostBinding('class.selectable')
4069
- ], DatatableComponent.prototype, "isSelectable", null);
4070
- __decorate([
4071
- HostBinding('class.checkbox-selection')
4072
- ], DatatableComponent.prototype, "isCheckboxSelection", null);
4073
- __decorate([
4074
- HostBinding('class.cell-selection')
4075
- ], DatatableComponent.prototype, "isCellSelection", null);
4076
- __decorate([
4077
- HostBinding('class.single-selection')
4078
- ], DatatableComponent.prototype, "isSingleSelection", null);
4079
- __decorate([
4080
- HostBinding('class.multi-selection')
4081
- ], DatatableComponent.prototype, "isMultiSelection", null);
4082
- __decorate([
4083
- HostBinding('class.multi-click-selection')
4084
- ], DatatableComponent.prototype, "isMultiClickSelection", null);
4085
- __decorate([
4086
- ContentChildren(DataTableColumnDirective)
4087
- ], DatatableComponent.prototype, "columnTemplates", null);
4088
- __decorate([
4089
- ContentChild(DatatableRowDetailDirective)
4090
- ], DatatableComponent.prototype, "rowDetail", void 0);
4091
- __decorate([
4092
- ContentChild(DatatableGroupHeaderDirective)
4093
- ], DatatableComponent.prototype, "groupHeader", void 0);
4094
- __decorate([
4095
- ContentChild(DatatableFooterDirective)
4096
- ], DatatableComponent.prototype, "footer", void 0);
4097
- __decorate([
4098
- ViewChild(DataTableBodyComponent)
4099
- ], DatatableComponent.prototype, "bodyComponent", void 0);
4100
- __decorate([
4101
- ViewChild(DataTableHeaderComponent)
4102
- ], DatatableComponent.prototype, "headerComponent", void 0);
4103
- __decorate([
4104
- Input()
4105
- ], DatatableComponent.prototype, "rowIdentity", void 0);
4106
- __decorate([
4107
- HostListener('window:resize'),
4108
3750
  throttleable(5)
4109
3751
  ], DatatableComponent.prototype, "onWindowResize", null);
4110
- DatatableComponent = __decorate([
4111
- Component({
4112
- selector: 'ngx-datatable',
4113
- template: "<div visibilityObserver (visible)=\"recalculate()\">\n <datatable-header\n *ngIf=\"headerHeight\"\n [sorts]=\"sorts\"\n [sortType]=\"sortType\"\n [scrollbarH]=\"scrollbarH\"\n [innerWidth]=\"_innerWidth\"\n [offsetX]=\"_offsetX | async\"\n [dealsWithGroup]=\"groupedRows !== undefined\"\n [columns]=\"_internalColumns\"\n [headerHeight]=\"headerHeight\"\n [reorderable]=\"reorderable\"\n [targetMarkerTemplate]=\"targetMarkerTemplate\"\n [sortAscendingIcon]=\"cssClasses.sortAscending\"\n [sortDescendingIcon]=\"cssClasses.sortDescending\"\n [allRowsSelected]=\"allRowsSelected\"\n [selectionType]=\"selectionType\"\n (sort)=\"onColumnSort($event)\"\n (resize)=\"onColumnResize($event)\"\n (reorder)=\"onColumnReorder($event)\"\n (select)=\"onHeaderSelect($event)\"\n (columnContextmenu)=\"onColumnContextmenu($event)\"\n >\n </datatable-header>\n <datatable-body\n [groupRowsBy]=\"groupRowsBy\"\n [groupedRows]=\"groupedRows\"\n [rows]=\"_internalRows\"\n [groupExpansionDefault]=\"groupExpansionDefault\"\n [scrollbarV]=\"scrollbarV\"\n [scrollbarH]=\"scrollbarH\"\n [virtualization]=\"virtualization\"\n [loadingIndicator]=\"loadingIndicator\"\n [externalPaging]=\"externalPaging\"\n [rowHeight]=\"rowHeight\"\n [rowCount]=\"rowCount\"\n [offset]=\"offset\"\n [trackByProp]=\"trackByProp\"\n [columns]=\"_internalColumns\"\n [pageSize]=\"pageSize\"\n [offsetX]=\"_offsetX | async\"\n [rowDetail]=\"rowDetail\"\n [groupHeader]=\"groupHeader\"\n [selected]=\"selected\"\n [innerWidth]=\"_innerWidth\"\n [bodyHeight]=\"bodyHeight\"\n [selectionType]=\"selectionType\"\n [emptyMessage]=\"messages.emptyMessage\"\n [rowIdentity]=\"rowIdentity\"\n [rowClass]=\"rowClass\"\n [selectCheck]=\"selectCheck\"\n [displayCheck]=\"displayCheck\"\n [summaryRow]=\"summaryRow\"\n [summaryHeight]=\"summaryHeight\"\n [summaryPosition]=\"summaryPosition\"\n (page)=\"onBodyPage($event)\"\n (activate)=\"activate.emit($event)\"\n (rowContextmenu)=\"onRowContextmenu($event)\"\n (select)=\"onBodySelect($event)\"\n (scroll)=\"onBodyScroll($event)\"\n (treeAction)=\"onTreeAction($event)\"\n >\n </datatable-body>\n <datatable-footer\n *ngIf=\"footerHeight\"\n [rowCount]=\"rowCount\"\n [pageSize]=\"pageSize\"\n [offset]=\"offset\"\n [footerHeight]=\"footerHeight\"\n [footerTemplate]=\"footer\"\n [totalMessage]=\"messages.totalMessage\"\n [pagerLeftArrowIcon]=\"cssClasses.pagerLeftArrow\"\n [pagerRightArrowIcon]=\"cssClasses.pagerRightArrow\"\n [pagerPreviousIcon]=\"cssClasses.pagerPrevious\"\n [selectedCount]=\"selected.length\"\n [selectedMessage]=\"!!selectionType && messages.selectedMessage\"\n [pagerNextIcon]=\"cssClasses.pagerNext\"\n (page)=\"onFooterPage($event)\"\n >\n </datatable-footer>\n</div>\n",
4114
- changeDetection: ChangeDetectionStrategy.OnPush,
4115
- encapsulation: ViewEncapsulation.None,
4116
- host: {
4117
- class: 'ngx-datatable'
4118
- },
4119
- styles: [".ngx-datatable{display:block;overflow:hidden;justify-content:center;position:relative;transform:translate3d(0,0,0)}.ngx-datatable [hidden]{display:none!important}.ngx-datatable *,.ngx-datatable :after,.ngx-datatable :before{box-sizing:border-box}.ngx-datatable.scroll-vertical .datatable-body{overflow-y:auto}.ngx-datatable.scroll-vertical.virtualized .datatable-body .datatable-row-wrapper{position:absolute}.ngx-datatable.scroll-horz .datatable-body{overflow-x:auto;-webkit-overflow-scrolling:touch}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner{white-space:nowrap}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngx-datatable.fixed-row .datatable-scroll,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row{white-space:nowrap}.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-group-cell{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ngx-datatable .datatable-body-row,.ngx-datatable .datatable-header-inner,.ngx-datatable .datatable-row-center{display:flex;flex-direction:row;-o-flex-flow:row;flex-flow:row}.ngx-datatable .datatable-body-cell,.ngx-datatable .datatable-header-cell{overflow-x:hidden;vertical-align:top;display:inline-block;line-height:1.625}.ngx-datatable .datatable-body-cell:focus,.ngx-datatable .datatable-header-cell:focus{outline:0}.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{z-index:9}.ngx-datatable .datatable-row-center,.ngx-datatable .datatable-row-group,.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{position:relative}.ngx-datatable .datatable-header{display:block;overflow:hidden}.ngx-datatable .datatable-header .datatable-header-inner{align-items:stretch;-webkit-align-items:stretch}.ngx-datatable .datatable-header .datatable-header-cell{position:relative;display:inline-block}.ngx-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-wrapper{cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell.longpress .datatable-header-cell-wrapper{cursor:move}.ngx-datatable .datatable-header .datatable-header-cell .sort-btn{line-height:100%;vertical-align:middle;display:inline-block;cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell .resize-handle--not-resizable{display:inline-block;position:absolute;right:0;top:0;bottom:0;width:5px;padding:0 4px;visibility:hidden}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle{cursor:ew-resize}.ngx-datatable .datatable-header .datatable-header-cell.resizeable:hover .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell:hover .resize-handle--not-resizable{visibility:visible}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker{position:absolute;top:0;bottom:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromLeft{right:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromRight{left:0}.ngx-datatable .datatable-header .datatable-header-cell .datatable-header-cell-template-wrap{height:inherit}.ngx-datatable .datatable-body{position:relative;z-index:10;display:block}.ngx-datatable .datatable-body .datatable-scroll{display:inline-block}.ngx-datatable .datatable-body .datatable-row-detail{overflow-y:hidden}.ngx-datatable .datatable-body .datatable-row-wrapper{display:flex;flex-direction:column}.ngx-datatable .datatable-body .datatable-body-row{outline:0}.ngx-datatable .datatable-body .datatable-body-row>div{display:flex}.ngx-datatable .datatable-footer{display:block;width:100%;overflow:auto}.ngx-datatable .datatable-footer .datatable-footer-inner{display:flex;align-items:center;width:100%}.ngx-datatable .datatable-footer .selected-count .page-count{flex:1 1 40%}.ngx-datatable .datatable-footer .selected-count .datatable-pager{flex:1 1 60%}.ngx-datatable .datatable-footer .page-count{flex:1 1 20%}.ngx-datatable .datatable-footer .datatable-pager{flex:1 1 80%;text-align:right}.ngx-datatable .datatable-footer .datatable-pager .pager,.ngx-datatable .datatable-footer .datatable-pager .pager li{padding:0;margin:0;display:inline-block;list-style:none}.ngx-datatable .datatable-footer .datatable-pager .pager li,.ngx-datatable .datatable-footer .datatable-pager .pager li a{outline:0}.ngx-datatable .datatable-footer .datatable-pager .pager li a{cursor:pointer;display:inline-block}.ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a{cursor:not-allowed}"]
4120
- }),
4121
- __param(0, SkipSelf()),
4122
- __param(1, SkipSelf()),
4123
- __param(6, Optional()), __param(6, Inject('configuration'))
4124
- ], DatatableComponent);
4125
3752
 
4126
- let DataTableHeaderCellComponent = class DataTableHeaderCellComponent {
3753
+ class DataTableHeaderCellComponent {
4127
3754
  constructor(cd) {
4128
3755
  this.cd = cd;
4129
3756
  this.sort = new EventEmitter();
@@ -4215,6 +3842,9 @@ let DataTableHeaderCellComponent = class DataTableHeaderCellComponent {
4215
3842
  onContextmenu($event) {
4216
3843
  this.columnContextmenu.emit({ event: $event, column: this.column });
4217
3844
  }
3845
+ ngOnInit() {
3846
+ this.sortClass = this.calcSortClass(this.sortDir);
3847
+ }
4218
3848
  calcSortDir(sorts) {
4219
3849
  if (sorts && this.column) {
4220
3850
  const sort = sorts.find((s) => {
@@ -4235,6 +3865,8 @@ let DataTableHeaderCellComponent = class DataTableHeaderCellComponent {
4235
3865
  });
4236
3866
  }
4237
3867
  calcSortClass(sortDir) {
3868
+ if (!this.cellContext.column.sortable)
3869
+ return;
4238
3870
  if (sortDir === SortDirection.asc) {
4239
3871
  return `sort-btn sort-asc ${this.sortAscendingIcon}`;
4240
3872
  }
@@ -4242,78 +3874,14 @@ let DataTableHeaderCellComponent = class DataTableHeaderCellComponent {
4242
3874
  return `sort-btn sort-desc ${this.sortDescendingIcon}`;
4243
3875
  }
4244
3876
  else {
4245
- return `sort-btn`;
3877
+ return `sort-btn ${this.sortUnsetIcon}`;
4246
3878
  }
4247
3879
  }
4248
- };
4249
- DataTableHeaderCellComponent.ctorParameters = () => [
4250
- { type: ChangeDetectorRef }
4251
- ];
4252
- __decorate([
4253
- Input()
4254
- ], DataTableHeaderCellComponent.prototype, "sortType", void 0);
4255
- __decorate([
4256
- Input()
4257
- ], DataTableHeaderCellComponent.prototype, "sortAscendingIcon", void 0);
4258
- __decorate([
4259
- Input()
4260
- ], DataTableHeaderCellComponent.prototype, "sortDescendingIcon", void 0);
4261
- __decorate([
4262
- Input()
4263
- ], DataTableHeaderCellComponent.prototype, "isTarget", void 0);
4264
- __decorate([
4265
- Input()
4266
- ], DataTableHeaderCellComponent.prototype, "targetMarkerTemplate", void 0);
4267
- __decorate([
4268
- Input()
4269
- ], DataTableHeaderCellComponent.prototype, "targetMarkerContext", void 0);
4270
- __decorate([
4271
- Input()
4272
- ], DataTableHeaderCellComponent.prototype, "allRowsSelected", null);
4273
- __decorate([
4274
- Input()
4275
- ], DataTableHeaderCellComponent.prototype, "selectionType", void 0);
4276
- __decorate([
4277
- Input()
4278
- ], DataTableHeaderCellComponent.prototype, "column", null);
4279
- __decorate([
4280
- HostBinding('style.height.px'),
4281
- Input()
4282
- ], DataTableHeaderCellComponent.prototype, "headerHeight", void 0);
4283
- __decorate([
4284
- Input()
4285
- ], DataTableHeaderCellComponent.prototype, "sorts", null);
4286
- __decorate([
4287
- Output()
4288
- ], DataTableHeaderCellComponent.prototype, "sort", void 0);
4289
- __decorate([
4290
- Output()
4291
- ], DataTableHeaderCellComponent.prototype, "select", void 0);
4292
- __decorate([
4293
- Output()
4294
- ], DataTableHeaderCellComponent.prototype, "columnContextmenu", void 0);
4295
- __decorate([
4296
- HostBinding('class')
4297
- ], DataTableHeaderCellComponent.prototype, "columnCssClasses", null);
4298
- __decorate([
4299
- HostBinding('attr.title')
4300
- ], DataTableHeaderCellComponent.prototype, "name", null);
4301
- __decorate([
4302
- HostBinding('style.minWidth.px')
4303
- ], DataTableHeaderCellComponent.prototype, "minWidth", null);
4304
- __decorate([
4305
- HostBinding('style.maxWidth.px')
4306
- ], DataTableHeaderCellComponent.prototype, "maxWidth", null);
4307
- __decorate([
4308
- HostBinding('style.width.px')
4309
- ], DataTableHeaderCellComponent.prototype, "width", null);
4310
- __decorate([
4311
- HostListener('contextmenu', ['$event'])
4312
- ], DataTableHeaderCellComponent.prototype, "onContextmenu", null);
4313
- DataTableHeaderCellComponent = __decorate([
4314
- Component({
4315
- selector: 'datatable-header-cell',
4316
- template: `
3880
+ }
3881
+ DataTableHeaderCellComponent.decorators = [
3882
+ { type: Component, args: [{
3883
+ selector: 'datatable-header-cell',
3884
+ template: `
4317
3885
  <div class="datatable-header-cell-template-wrap">
4318
3886
  <ng-template
4319
3887
  *ngIf="isTarget"
@@ -4336,14 +3904,40 @@ DataTableHeaderCellComponent = __decorate([
4336
3904
  <span (click)="onSort()" [class]="sortClass"> </span>
4337
3905
  </div>
4338
3906
  `,
4339
- host: {
4340
- class: 'datatable-header-cell'
4341
- },
4342
- changeDetection: ChangeDetectionStrategy.OnPush
4343
- })
4344
- ], DataTableHeaderCellComponent);
3907
+ host: {
3908
+ class: 'datatable-header-cell'
3909
+ },
3910
+ changeDetection: ChangeDetectionStrategy.OnPush
3911
+ },] }
3912
+ ];
3913
+ DataTableHeaderCellComponent.ctorParameters = () => [
3914
+ { type: ChangeDetectorRef }
3915
+ ];
3916
+ DataTableHeaderCellComponent.propDecorators = {
3917
+ sortType: [{ type: Input }],
3918
+ sortAscendingIcon: [{ type: Input }],
3919
+ sortDescendingIcon: [{ type: Input }],
3920
+ sortUnsetIcon: [{ type: Input }],
3921
+ isTarget: [{ type: Input }],
3922
+ targetMarkerTemplate: [{ type: Input }],
3923
+ targetMarkerContext: [{ type: Input }],
3924
+ allRowsSelected: [{ type: Input }],
3925
+ selectionType: [{ type: Input }],
3926
+ column: [{ type: Input }],
3927
+ headerHeight: [{ type: HostBinding, args: ['style.height.px',] }, { type: Input }],
3928
+ sorts: [{ type: Input }],
3929
+ sort: [{ type: Output }],
3930
+ select: [{ type: Output }],
3931
+ columnContextmenu: [{ type: Output }],
3932
+ columnCssClasses: [{ type: HostBinding, args: ['class',] }],
3933
+ name: [{ type: HostBinding, args: ['attr.title',] }],
3934
+ minWidth: [{ type: HostBinding, args: ['style.minWidth.px',] }],
3935
+ maxWidth: [{ type: HostBinding, args: ['style.maxWidth.px',] }],
3936
+ width: [{ type: HostBinding, args: ['style.width.px',] }],
3937
+ onContextmenu: [{ type: HostListener, args: ['contextmenu', ['$event'],] }]
3938
+ };
4345
3939
 
4346
- let DataTableFooterComponent = class DataTableFooterComponent {
3940
+ class DataTableFooterComponent {
4347
3941
  constructor() {
4348
3942
  this.selectedCount = 0;
4349
3943
  this.page = new EventEmitter();
@@ -4354,50 +3948,11 @@ let DataTableFooterComponent = class DataTableFooterComponent {
4354
3948
  get curPage() {
4355
3949
  return this.offset + 1;
4356
3950
  }
4357
- };
4358
- __decorate([
4359
- Input()
4360
- ], DataTableFooterComponent.prototype, "footerHeight", void 0);
4361
- __decorate([
4362
- Input()
4363
- ], DataTableFooterComponent.prototype, "rowCount", void 0);
4364
- __decorate([
4365
- Input()
4366
- ], DataTableFooterComponent.prototype, "pageSize", void 0);
4367
- __decorate([
4368
- Input()
4369
- ], DataTableFooterComponent.prototype, "offset", void 0);
4370
- __decorate([
4371
- Input()
4372
- ], DataTableFooterComponent.prototype, "pagerLeftArrowIcon", void 0);
4373
- __decorate([
4374
- Input()
4375
- ], DataTableFooterComponent.prototype, "pagerRightArrowIcon", void 0);
4376
- __decorate([
4377
- Input()
4378
- ], DataTableFooterComponent.prototype, "pagerPreviousIcon", void 0);
4379
- __decorate([
4380
- Input()
4381
- ], DataTableFooterComponent.prototype, "pagerNextIcon", void 0);
4382
- __decorate([
4383
- Input()
4384
- ], DataTableFooterComponent.prototype, "totalMessage", void 0);
4385
- __decorate([
4386
- Input()
4387
- ], DataTableFooterComponent.prototype, "footerTemplate", void 0);
4388
- __decorate([
4389
- Input()
4390
- ], DataTableFooterComponent.prototype, "selectedCount", void 0);
4391
- __decorate([
4392
- Input()
4393
- ], DataTableFooterComponent.prototype, "selectedMessage", void 0);
4394
- __decorate([
4395
- Output()
4396
- ], DataTableFooterComponent.prototype, "page", void 0);
4397
- DataTableFooterComponent = __decorate([
4398
- Component({
4399
- selector: 'datatable-footer',
4400
- template: `
3951
+ }
3952
+ DataTableFooterComponent.decorators = [
3953
+ { type: Component, args: [{
3954
+ selector: 'datatable-footer',
3955
+ template: `
4401
3956
  <div
4402
3957
  class="datatable-footer-inner"
4403
3958
  [ngClass]="{ 'selected-count': selectedMessage }"
@@ -4434,14 +3989,29 @@ DataTableFooterComponent = __decorate([
4434
3989
  </datatable-pager>
4435
3990
  </div>
4436
3991
  `,
4437
- host: {
4438
- class: 'datatable-footer'
4439
- },
4440
- changeDetection: ChangeDetectionStrategy.OnPush
4441
- })
4442
- ], DataTableFooterComponent);
3992
+ host: {
3993
+ class: 'datatable-footer'
3994
+ },
3995
+ changeDetection: ChangeDetectionStrategy.OnPush
3996
+ },] }
3997
+ ];
3998
+ DataTableFooterComponent.propDecorators = {
3999
+ footerHeight: [{ type: Input }],
4000
+ rowCount: [{ type: Input }],
4001
+ pageSize: [{ type: Input }],
4002
+ offset: [{ type: Input }],
4003
+ pagerLeftArrowIcon: [{ type: Input }],
4004
+ pagerRightArrowIcon: [{ type: Input }],
4005
+ pagerPreviousIcon: [{ type: Input }],
4006
+ pagerNextIcon: [{ type: Input }],
4007
+ totalMessage: [{ type: Input }],
4008
+ footerTemplate: [{ type: Input }],
4009
+ selectedCount: [{ type: Input }],
4010
+ selectedMessage: [{ type: Input }],
4011
+ page: [{ type: Output }]
4012
+ };
4443
4013
 
4444
- let DataTablePagerComponent = class DataTablePagerComponent {
4014
+ class DataTablePagerComponent {
4445
4015
  constructor() {
4446
4016
  this.change = new EventEmitter();
4447
4017
  this._count = 0;
@@ -4520,35 +4090,11 @@ let DataTablePagerComponent = class DataTablePagerComponent {
4520
4090
  }
4521
4091
  return pages;
4522
4092
  }
4523
- };
4524
- __decorate([
4525
- Input()
4526
- ], DataTablePagerComponent.prototype, "pagerLeftArrowIcon", void 0);
4527
- __decorate([
4528
- Input()
4529
- ], DataTablePagerComponent.prototype, "pagerRightArrowIcon", void 0);
4530
- __decorate([
4531
- Input()
4532
- ], DataTablePagerComponent.prototype, "pagerPreviousIcon", void 0);
4533
- __decorate([
4534
- Input()
4535
- ], DataTablePagerComponent.prototype, "pagerNextIcon", void 0);
4536
- __decorate([
4537
- Input()
4538
- ], DataTablePagerComponent.prototype, "size", null);
4539
- __decorate([
4540
- Input()
4541
- ], DataTablePagerComponent.prototype, "count", null);
4542
- __decorate([
4543
- Input()
4544
- ], DataTablePagerComponent.prototype, "page", null);
4545
- __decorate([
4546
- Output()
4547
- ], DataTablePagerComponent.prototype, "change", void 0);
4548
- DataTablePagerComponent = __decorate([
4549
- Component({
4550
- selector: 'datatable-pager',
4551
- template: `
4093
+ }
4094
+ DataTablePagerComponent.decorators = [
4095
+ { type: Component, args: [{
4096
+ selector: 'datatable-pager',
4097
+ template: `
4552
4098
  <ul class="pager">
4553
4099
  <li [class.disabled]="!canPrevious()">
4554
4100
  <a role="button" aria-label="go to first page" href="javascript:void(0)" (click)="selectPage(1)">
@@ -4583,28 +4129,38 @@ DataTablePagerComponent = __decorate([
4583
4129
  </li>
4584
4130
  </ul>
4585
4131
  `,
4586
- host: {
4587
- class: 'datatable-pager'
4588
- },
4589
- changeDetection: ChangeDetectionStrategy.OnPush
4590
- })
4591
- ], DataTablePagerComponent);
4592
-
4593
- let ProgressBarComponent = class ProgressBarComponent {
4132
+ host: {
4133
+ class: 'datatable-pager'
4134
+ },
4135
+ changeDetection: ChangeDetectionStrategy.OnPush
4136
+ },] }
4137
+ ];
4138
+ DataTablePagerComponent.propDecorators = {
4139
+ pagerLeftArrowIcon: [{ type: Input }],
4140
+ pagerRightArrowIcon: [{ type: Input }],
4141
+ pagerPreviousIcon: [{ type: Input }],
4142
+ pagerNextIcon: [{ type: Input }],
4143
+ size: [{ type: Input }],
4144
+ count: [{ type: Input }],
4145
+ page: [{ type: Input }],
4146
+ change: [{ type: Output }]
4594
4147
  };
4595
- ProgressBarComponent = __decorate([
4596
- Component({
4597
- selector: 'datatable-progress',
4598
- template: `
4148
+
4149
+ class ProgressBarComponent {
4150
+ }
4151
+ ProgressBarComponent.decorators = [
4152
+ { type: Component, args: [{
4153
+ selector: 'datatable-progress',
4154
+ template: `
4599
4155
  <div class="progress-linear" role="progressbar">
4600
4156
  <div class="container">
4601
4157
  <div class="bar"></div>
4602
4158
  </div>
4603
4159
  </div>
4604
4160
  `,
4605
- changeDetection: ChangeDetectionStrategy.OnPush
4606
- })
4607
- ], ProgressBarComponent);
4161
+ changeDetection: ChangeDetectionStrategy.OnPush
4162
+ },] }
4163
+ ];
4608
4164
 
4609
4165
  var Keys;
4610
4166
  (function (Keys) {
@@ -4616,7 +4172,7 @@ var Keys;
4616
4172
  Keys[Keys["right"] = 39] = "right";
4617
4173
  })(Keys || (Keys = {}));
4618
4174
 
4619
- let DataTableBodyRowComponent = class DataTableBodyRowComponent {
4175
+ class DataTableBodyRowComponent {
4620
4176
  constructor(differs, scrollbarHelper, cd, element) {
4621
4177
  this.differs = differs;
4622
4178
  this.scrollbarHelper = scrollbarHelper;
@@ -4765,79 +4321,19 @@ let DataTableBodyRowComponent = class DataTableBodyRowComponent {
4765
4321
  onTreeAction() {
4766
4322
  this.treeAction.emit();
4767
4323
  }
4768
- };
4769
- DataTableBodyRowComponent.ctorParameters = () => [
4770
- { type: KeyValueDiffers },
4771
- { type: ScrollbarHelper, decorators: [{ type: SkipSelf }] },
4772
- { type: ChangeDetectorRef },
4773
- { type: ElementRef }
4774
- ];
4775
- __decorate([
4776
- Input()
4777
- ], DataTableBodyRowComponent.prototype, "columns", null);
4778
- __decorate([
4779
- Input()
4780
- ], DataTableBodyRowComponent.prototype, "innerWidth", null);
4781
- __decorate([
4782
- Input()
4783
- ], DataTableBodyRowComponent.prototype, "expanded", void 0);
4784
- __decorate([
4785
- Input()
4786
- ], DataTableBodyRowComponent.prototype, "rowClass", void 0);
4787
- __decorate([
4788
- Input()
4789
- ], DataTableBodyRowComponent.prototype, "row", void 0);
4790
- __decorate([
4791
- Input()
4792
- ], DataTableBodyRowComponent.prototype, "group", void 0);
4793
- __decorate([
4794
- Input()
4795
- ], DataTableBodyRowComponent.prototype, "isSelected", void 0);
4796
- __decorate([
4797
- Input()
4798
- ], DataTableBodyRowComponent.prototype, "rowIndex", void 0);
4799
- __decorate([
4800
- Input()
4801
- ], DataTableBodyRowComponent.prototype, "displayCheck", void 0);
4802
- __decorate([
4803
- Input()
4804
- ], DataTableBodyRowComponent.prototype, "treeStatus", void 0);
4805
- __decorate([
4806
- Input()
4807
- ], DataTableBodyRowComponent.prototype, "offsetX", null);
4808
- __decorate([
4809
- HostBinding('class')
4810
- ], DataTableBodyRowComponent.prototype, "cssClass", null);
4811
- __decorate([
4812
- HostBinding('style.height.px'),
4813
- Input()
4814
- ], DataTableBodyRowComponent.prototype, "rowHeight", void 0);
4815
- __decorate([
4816
- HostBinding('style.width.px')
4817
- ], DataTableBodyRowComponent.prototype, "columnsTotalWidths", null);
4818
- __decorate([
4819
- Output()
4820
- ], DataTableBodyRowComponent.prototype, "activate", void 0);
4821
- __decorate([
4822
- Output()
4823
- ], DataTableBodyRowComponent.prototype, "treeAction", void 0);
4824
- __decorate([
4825
- HostListener('keydown', ['$event'])
4826
- ], DataTableBodyRowComponent.prototype, "onKeyDown", null);
4827
- __decorate([
4828
- HostListener('mouseenter', ['$event'])
4829
- ], DataTableBodyRowComponent.prototype, "onMouseenter", null);
4830
- DataTableBodyRowComponent = __decorate([
4831
- Component({
4832
- selector: 'datatable-body-row',
4833
- changeDetection: ChangeDetectionStrategy.OnPush,
4834
- template: `
4324
+ }
4325
+ DataTableBodyRowComponent.decorators = [
4326
+ { type: Component, args: [{
4327
+ selector: 'datatable-body-row',
4328
+ changeDetection: ChangeDetectionStrategy.OnPush,
4329
+ template: `
4835
4330
  <div
4836
4331
  *ngFor="let colGroup of _columnsByPin; let i = index; trackBy: trackByGroups"
4837
4332
  class="datatable-row-{{ colGroup.type }} datatable-row-group"
4838
4333
  [ngStyle]="_groupStyles[colGroup.type]"
4839
4334
  >
4840
4335
  <datatable-body-cell
4336
+ role="cell"
4841
4337
  *ngFor="let column of colGroup.columns; let ii = index; trackBy: columnTrackingFn"
4842
4338
  tabindex="-1"
4843
4339
  [row]="row"
@@ -4855,15 +4351,41 @@ DataTableBodyRowComponent = __decorate([
4855
4351
  </datatable-body-cell>
4856
4352
  </div>
4857
4353
  `
4858
- }),
4859
- __param(1, SkipSelf())
4860
- ], DataTableBodyRowComponent);
4354
+ },] }
4355
+ ];
4356
+ DataTableBodyRowComponent.ctorParameters = () => [
4357
+ { type: KeyValueDiffers },
4358
+ { type: ScrollbarHelper, decorators: [{ type: SkipSelf }] },
4359
+ { type: ChangeDetectorRef },
4360
+ { type: ElementRef }
4361
+ ];
4362
+ DataTableBodyRowComponent.propDecorators = {
4363
+ columns: [{ type: Input }],
4364
+ innerWidth: [{ type: Input }],
4365
+ expanded: [{ type: Input }],
4366
+ rowClass: [{ type: Input }],
4367
+ row: [{ type: Input }],
4368
+ group: [{ type: Input }],
4369
+ isSelected: [{ type: Input }],
4370
+ rowIndex: [{ type: Input }],
4371
+ displayCheck: [{ type: Input }],
4372
+ treeStatus: [{ type: Input }],
4373
+ offsetX: [{ type: Input }],
4374
+ cssClass: [{ type: HostBinding, args: ['class',] }],
4375
+ rowHeight: [{ type: HostBinding, args: ['style.height.px',] }, { type: Input }],
4376
+ columnsTotalWidths: [{ type: HostBinding, args: ['style.width.px',] }],
4377
+ activate: [{ type: Output }],
4378
+ treeAction: [{ type: Output }],
4379
+ onKeyDown: [{ type: HostListener, args: ['keydown', ['$event'],] }],
4380
+ onMouseenter: [{ type: HostListener, args: ['mouseenter', ['$event'],] }]
4381
+ };
4861
4382
 
4862
- let DataTableRowWrapperComponent = class DataTableRowWrapperComponent {
4383
+ class DataTableRowWrapperComponent {
4863
4384
  constructor(cd, differs) {
4864
4385
  this.cd = cd;
4865
4386
  this.differs = differs;
4866
4387
  this.rowContextmenu = new EventEmitter(false);
4388
+ this._expanded = false;
4867
4389
  this.groupContext = {
4868
4390
  group: this.row,
4869
4391
  expanded: this.expanded,
@@ -4874,7 +4396,6 @@ let DataTableRowWrapperComponent = class DataTableRowWrapperComponent {
4874
4396
  expanded: this.expanded,
4875
4397
  rowIndex: this.rowIndex
4876
4398
  };
4877
- this._expanded = false;
4878
4399
  this.rowDiffer = differs.find({}).create();
4879
4400
  }
4880
4401
  set rowIndex(val) {
@@ -4912,49 +4433,12 @@ let DataTableRowWrapperComponent = class DataTableRowWrapperComponent {
4912
4433
  styles['width'] = this.innerWidth;
4913
4434
  return styles;
4914
4435
  }
4915
- };
4916
- DataTableRowWrapperComponent.ctorParameters = () => [
4917
- { type: ChangeDetectorRef },
4918
- { type: KeyValueDiffers }
4919
- ];
4920
- __decorate([
4921
- Input()
4922
- ], DataTableRowWrapperComponent.prototype, "innerWidth", void 0);
4923
- __decorate([
4924
- Input()
4925
- ], DataTableRowWrapperComponent.prototype, "rowDetail", void 0);
4926
- __decorate([
4927
- Input()
4928
- ], DataTableRowWrapperComponent.prototype, "groupHeader", void 0);
4929
- __decorate([
4930
- Input()
4931
- ], DataTableRowWrapperComponent.prototype, "offsetX", void 0);
4932
- __decorate([
4933
- Input()
4934
- ], DataTableRowWrapperComponent.prototype, "detailRowHeight", void 0);
4935
- __decorate([
4936
- Input()
4937
- ], DataTableRowWrapperComponent.prototype, "row", void 0);
4938
- __decorate([
4939
- Input()
4940
- ], DataTableRowWrapperComponent.prototype, "groupedRows", void 0);
4941
- __decorate([
4942
- Output()
4943
- ], DataTableRowWrapperComponent.prototype, "rowContextmenu", void 0);
4944
- __decorate([
4945
- Input()
4946
- ], DataTableRowWrapperComponent.prototype, "rowIndex", null);
4947
- __decorate([
4948
- Input()
4949
- ], DataTableRowWrapperComponent.prototype, "expanded", null);
4950
- __decorate([
4951
- HostListener('contextmenu', ['$event'])
4952
- ], DataTableRowWrapperComponent.prototype, "onContextmenu", null);
4953
- DataTableRowWrapperComponent = __decorate([
4954
- Component({
4955
- selector: 'datatable-row-wrapper',
4956
- changeDetection: ChangeDetectionStrategy.OnPush,
4957
- template: `
4436
+ }
4437
+ DataTableRowWrapperComponent.decorators = [
4438
+ { type: Component, args: [{
4439
+ selector: 'datatable-row-wrapper',
4440
+ changeDetection: ChangeDetectionStrategy.OnPush,
4441
+ template: `
4958
4442
  <div *ngIf="groupHeader && groupHeader.template" class="datatable-group-header" [ngStyle]="getGroupHeaderStyle()">
4959
4443
  <ng-template
4960
4444
  *ngIf="groupHeader && groupHeader.template"
@@ -4978,13 +4462,30 @@ DataTableRowWrapperComponent = __decorate([
4978
4462
  </ng-template>
4979
4463
  </div>
4980
4464
  `,
4981
- host: {
4982
- class: 'datatable-row-wrapper'
4983
- }
4984
- })
4985
- ], DataTableRowWrapperComponent);
4465
+ host: {
4466
+ class: 'datatable-row-wrapper'
4467
+ }
4468
+ },] }
4469
+ ];
4470
+ DataTableRowWrapperComponent.ctorParameters = () => [
4471
+ { type: ChangeDetectorRef },
4472
+ { type: KeyValueDiffers }
4473
+ ];
4474
+ DataTableRowWrapperComponent.propDecorators = {
4475
+ innerWidth: [{ type: Input }],
4476
+ rowDetail: [{ type: Input }],
4477
+ groupHeader: [{ type: Input }],
4478
+ offsetX: [{ type: Input }],
4479
+ detailRowHeight: [{ type: Input }],
4480
+ row: [{ type: Input }],
4481
+ groupedRows: [{ type: Input }],
4482
+ rowContextmenu: [{ type: Output }],
4483
+ rowIndex: [{ type: Input }],
4484
+ expanded: [{ type: Input }],
4485
+ onContextmenu: [{ type: HostListener, args: ['contextmenu', ['$event'],] }]
4486
+ };
4986
4487
 
4987
- let DataTableBodyCellComponent = class DataTableBodyCellComponent {
4488
+ class DataTableBodyCellComponent {
4988
4489
  constructor(element, cd) {
4989
4490
  this.cd = cd;
4990
4491
  this.activate = new EventEmitter();
@@ -5266,85 +4767,12 @@ let DataTableBodyCellComponent = class DataTableBodyCellComponent {
5266
4767
  const levelIndent = column.treeLevelIndent != null ? column.treeLevelIndent : 50;
5267
4768
  return column.isTreeColumn ? row.level * levelIndent : 0;
5268
4769
  }
5269
- };
5270
- DataTableBodyCellComponent.ctorParameters = () => [
5271
- { type: ElementRef },
5272
- { type: ChangeDetectorRef }
5273
- ];
5274
- __decorate([
5275
- Input()
5276
- ], DataTableBodyCellComponent.prototype, "displayCheck", void 0);
5277
- __decorate([
5278
- Input()
5279
- ], DataTableBodyCellComponent.prototype, "group", null);
5280
- __decorate([
5281
- Input()
5282
- ], DataTableBodyCellComponent.prototype, "rowHeight", null);
5283
- __decorate([
5284
- Input()
5285
- ], DataTableBodyCellComponent.prototype, "isSelected", null);
5286
- __decorate([
5287
- Input()
5288
- ], DataTableBodyCellComponent.prototype, "expanded", null);
5289
- __decorate([
5290
- Input()
5291
- ], DataTableBodyCellComponent.prototype, "rowIndex", null);
5292
- __decorate([
5293
- Input()
5294
- ], DataTableBodyCellComponent.prototype, "column", null);
5295
- __decorate([
5296
- Input()
5297
- ], DataTableBodyCellComponent.prototype, "row", null);
5298
- __decorate([
5299
- Input()
5300
- ], DataTableBodyCellComponent.prototype, "sorts", null);
5301
- __decorate([
5302
- Input()
5303
- ], DataTableBodyCellComponent.prototype, "treeStatus", null);
5304
- __decorate([
5305
- Output()
5306
- ], DataTableBodyCellComponent.prototype, "activate", void 0);
5307
- __decorate([
5308
- Output()
5309
- ], DataTableBodyCellComponent.prototype, "treeAction", void 0);
5310
- __decorate([
5311
- ViewChild('cellTemplate', { read: ViewContainerRef, static: true })
5312
- ], DataTableBodyCellComponent.prototype, "cellTemplate", void 0);
5313
- __decorate([
5314
- HostBinding('class')
5315
- ], DataTableBodyCellComponent.prototype, "columnCssClasses", null);
5316
- __decorate([
5317
- HostBinding('style.width.px')
5318
- ], DataTableBodyCellComponent.prototype, "width", null);
5319
- __decorate([
5320
- HostBinding('style.minWidth.px')
5321
- ], DataTableBodyCellComponent.prototype, "minWidth", null);
5322
- __decorate([
5323
- HostBinding('style.maxWidth.px')
5324
- ], DataTableBodyCellComponent.prototype, "maxWidth", null);
5325
- __decorate([
5326
- HostBinding('style.height')
5327
- ], DataTableBodyCellComponent.prototype, "height", null);
5328
- __decorate([
5329
- HostListener('focus')
5330
- ], DataTableBodyCellComponent.prototype, "onFocus", null);
5331
- __decorate([
5332
- HostListener('blur')
5333
- ], DataTableBodyCellComponent.prototype, "onBlur", null);
5334
- __decorate([
5335
- HostListener('click', ['$event'])
5336
- ], DataTableBodyCellComponent.prototype, "onClick", null);
5337
- __decorate([
5338
- HostListener('dblclick', ['$event'])
5339
- ], DataTableBodyCellComponent.prototype, "onDblClick", null);
5340
- __decorate([
5341
- HostListener('keydown', ['$event'])
5342
- ], DataTableBodyCellComponent.prototype, "onKeyDown", null);
5343
- DataTableBodyCellComponent = __decorate([
5344
- Component({
5345
- selector: 'datatable-body-cell',
5346
- changeDetection: ChangeDetectionStrategy.OnPush,
5347
- template: `
4770
+ }
4771
+ DataTableBodyCellComponent.decorators = [
4772
+ { type: Component, args: [{
4773
+ selector: 'datatable-body-cell',
4774
+ changeDetection: ChangeDetectionStrategy.OnPush,
4775
+ template: `
5348
4776
  <div class="datatable-body-cell-label" [style.margin-left.px]="calcLeftMargin(column, row)">
5349
4777
  <label
5350
4778
  *ngIf="column.checkboxable && (!displayCheck || displayCheck(row, column, value))"
@@ -5383,8 +4811,37 @@ DataTableBodyCellComponent = __decorate([
5383
4811
  </ng-template>
5384
4812
  </div>
5385
4813
  `
5386
- })
5387
- ], DataTableBodyCellComponent);
4814
+ },] }
4815
+ ];
4816
+ DataTableBodyCellComponent.ctorParameters = () => [
4817
+ { type: ElementRef },
4818
+ { type: ChangeDetectorRef }
4819
+ ];
4820
+ DataTableBodyCellComponent.propDecorators = {
4821
+ displayCheck: [{ type: Input }],
4822
+ group: [{ type: Input }],
4823
+ rowHeight: [{ type: Input }],
4824
+ isSelected: [{ type: Input }],
4825
+ expanded: [{ type: Input }],
4826
+ rowIndex: [{ type: Input }],
4827
+ column: [{ type: Input }],
4828
+ row: [{ type: Input }],
4829
+ sorts: [{ type: Input }],
4830
+ treeStatus: [{ type: Input }],
4831
+ activate: [{ type: Output }],
4832
+ treeAction: [{ type: Output }],
4833
+ cellTemplate: [{ type: ViewChild, args: ['cellTemplate', { read: ViewContainerRef, static: true },] }],
4834
+ columnCssClasses: [{ type: HostBinding, args: ['class',] }],
4835
+ width: [{ type: HostBinding, args: ['style.width.px',] }],
4836
+ minWidth: [{ type: HostBinding, args: ['style.minWidth.px',] }],
4837
+ maxWidth: [{ type: HostBinding, args: ['style.maxWidth.px',] }],
4838
+ height: [{ type: HostBinding, args: ['style.height',] }],
4839
+ onFocus: [{ type: HostListener, args: ['focus',] }],
4840
+ onBlur: [{ type: HostListener, args: ['blur',] }],
4841
+ onClick: [{ type: HostListener, args: ['click', ['$event'],] }],
4842
+ onDblClick: [{ type: HostListener, args: ['dblclick', ['$event'],] }],
4843
+ onKeyDown: [{ type: HostListener, args: ['keydown', ['$event'],] }]
4844
+ };
5388
4845
 
5389
4846
  function selectRows(selected, row, comparefn) {
5390
4847
  const selectedIndex = comparefn(row, selected);
@@ -5426,7 +4883,7 @@ function selectRowsBetween(selected, rows, index, prevIndex, comparefn) {
5426
4883
  return selected;
5427
4884
  }
5428
4885
 
5429
- let DataTableSelectionComponent = class DataTableSelectionComponent {
4886
+ class DataTableSelectionComponent {
5430
4887
  constructor() {
5431
4888
  this.activate = new EventEmitter();
5432
4889
  this.select = new EventEmitter();
@@ -5543,38 +5000,24 @@ let DataTableSelectionComponent = class DataTableSelectionComponent {
5543
5000
  return id === rowId;
5544
5001
  });
5545
5002
  }
5003
+ }
5004
+ DataTableSelectionComponent.decorators = [
5005
+ { type: Component, args: [{
5006
+ selector: 'datatable-selection',
5007
+ template: ` <ng-content></ng-content> `,
5008
+ changeDetection: ChangeDetectionStrategy.OnPush
5009
+ },] }
5010
+ ];
5011
+ DataTableSelectionComponent.propDecorators = {
5012
+ rows: [{ type: Input }],
5013
+ selected: [{ type: Input }],
5014
+ selectEnabled: [{ type: Input }],
5015
+ selectionType: [{ type: Input }],
5016
+ rowIdentity: [{ type: Input }],
5017
+ selectCheck: [{ type: Input }],
5018
+ activate: [{ type: Output }],
5019
+ select: [{ type: Output }]
5546
5020
  };
5547
- __decorate([
5548
- Input()
5549
- ], DataTableSelectionComponent.prototype, "rows", void 0);
5550
- __decorate([
5551
- Input()
5552
- ], DataTableSelectionComponent.prototype, "selected", void 0);
5553
- __decorate([
5554
- Input()
5555
- ], DataTableSelectionComponent.prototype, "selectEnabled", void 0);
5556
- __decorate([
5557
- Input()
5558
- ], DataTableSelectionComponent.prototype, "selectionType", void 0);
5559
- __decorate([
5560
- Input()
5561
- ], DataTableSelectionComponent.prototype, "rowIdentity", void 0);
5562
- __decorate([
5563
- Input()
5564
- ], DataTableSelectionComponent.prototype, "selectCheck", void 0);
5565
- __decorate([
5566
- Output()
5567
- ], DataTableSelectionComponent.prototype, "activate", void 0);
5568
- __decorate([
5569
- Output()
5570
- ], DataTableSelectionComponent.prototype, "select", void 0);
5571
- DataTableSelectionComponent = __decorate([
5572
- Component({
5573
- selector: 'datatable-selection',
5574
- template: ` <ng-content></ng-content> `,
5575
- changeDetection: ChangeDetectionStrategy.OnPush
5576
- })
5577
- ], DataTableSelectionComponent);
5578
5021
 
5579
5022
  function defaultSumFunc(cells) {
5580
5023
  const cellsWithValues = cells.filter(cell => !!cell);
@@ -5589,7 +5032,7 @@ function defaultSumFunc(cells) {
5589
5032
  function noopSumFunc(cells) {
5590
5033
  return null;
5591
5034
  }
5592
- let DataTableSummaryRowComponent = class DataTableSummaryRowComponent {
5035
+ class DataTableSummaryRowComponent {
5593
5036
  constructor() {
5594
5037
  this.summaryRow = {};
5595
5038
  }
@@ -5626,26 +5069,11 @@ let DataTableSummaryRowComponent = class DataTableSummaryRowComponent {
5626
5069
  return column.summaryFunc;
5627
5070
  }
5628
5071
  }
5629
- };
5630
- __decorate([
5631
- Input()
5632
- ], DataTableSummaryRowComponent.prototype, "rows", void 0);
5633
- __decorate([
5634
- Input()
5635
- ], DataTableSummaryRowComponent.prototype, "columns", void 0);
5636
- __decorate([
5637
- Input()
5638
- ], DataTableSummaryRowComponent.prototype, "rowHeight", void 0);
5639
- __decorate([
5640
- Input()
5641
- ], DataTableSummaryRowComponent.prototype, "offsetX", void 0);
5642
- __decorate([
5643
- Input()
5644
- ], DataTableSummaryRowComponent.prototype, "innerWidth", void 0);
5645
- DataTableSummaryRowComponent = __decorate([
5646
- Component({
5647
- selector: 'datatable-summary-row',
5648
- template: `
5072
+ }
5073
+ DataTableSummaryRowComponent.decorators = [
5074
+ { type: Component, args: [{
5075
+ selector: 'datatable-summary-row',
5076
+ template: `
5649
5077
  <datatable-body-row
5650
5078
  *ngIf="summaryRow && _internalColumns"
5651
5079
  tabindex="-1"
@@ -5658,75 +5086,81 @@ DataTableSummaryRowComponent = __decorate([
5658
5086
  >
5659
5087
  </datatable-body-row>
5660
5088
  `,
5661
- host: {
5662
- class: 'datatable-summary-row'
5663
- }
5664
- })
5665
- ], DataTableSummaryRowComponent);
5089
+ host: {
5090
+ class: 'datatable-summary-row'
5091
+ }
5092
+ },] }
5093
+ ];
5094
+ DataTableSummaryRowComponent.propDecorators = {
5095
+ rows: [{ type: Input }],
5096
+ columns: [{ type: Input }],
5097
+ rowHeight: [{ type: Input }],
5098
+ offsetX: [{ type: Input }],
5099
+ innerWidth: [{ type: Input }]
5100
+ };
5666
5101
 
5667
- var NgxDatatableModule_1;
5668
- let NgxDatatableModule = NgxDatatableModule_1 = class NgxDatatableModule {
5102
+ class NgxDatatableModule {
5669
5103
  /**
5670
5104
  * Configure global configuration via INgxDatatableConfig
5671
5105
  * @param configuration
5672
5106
  */
5673
5107
  static forRoot(configuration) {
5674
5108
  return {
5675
- ngModule: NgxDatatableModule_1,
5109
+ ngModule: NgxDatatableModule,
5676
5110
  providers: [{ provide: 'configuration', useValue: configuration }]
5677
5111
  };
5678
5112
  }
5679
- };
5680
- NgxDatatableModule = NgxDatatableModule_1 = __decorate([
5681
- NgModule({
5682
- imports: [CommonModule],
5683
- providers: [ScrollbarHelper, DimensionsHelper, ColumnChangesService],
5684
- declarations: [
5685
- DataTableFooterTemplateDirective,
5686
- VisibilityDirective,
5687
- DraggableDirective,
5688
- ResizeableDirective,
5689
- OrderableDirective,
5690
- LongPressDirective,
5691
- ScrollerComponent,
5692
- DatatableComponent,
5693
- DataTableColumnDirective,
5694
- DataTableHeaderComponent,
5695
- DataTableHeaderCellComponent,
5696
- DataTableBodyComponent,
5697
- DataTableFooterComponent,
5698
- DataTablePagerComponent,
5699
- ProgressBarComponent,
5700
- DataTableBodyRowComponent,
5701
- DataTableRowWrapperComponent,
5702
- DatatableRowDetailDirective,
5703
- DatatableGroupHeaderDirective,
5704
- DatatableRowDetailTemplateDirective,
5705
- DataTableBodyCellComponent,
5706
- DataTableSelectionComponent,
5707
- DataTableColumnHeaderDirective,
5708
- DataTableColumnCellDirective,
5709
- DataTableColumnCellTreeToggle,
5710
- DatatableFooterDirective,
5711
- DatatableGroupHeaderTemplateDirective,
5712
- DataTableSummaryRowComponent
5713
- ],
5714
- exports: [
5715
- DatatableComponent,
5716
- DatatableRowDetailDirective,
5717
- DatatableGroupHeaderDirective,
5718
- DatatableRowDetailTemplateDirective,
5719
- DataTableColumnDirective,
5720
- DataTableColumnHeaderDirective,
5721
- DataTableColumnCellDirective,
5722
- DataTableColumnCellTreeToggle,
5723
- DataTableFooterTemplateDirective,
5724
- DatatableFooterDirective,
5725
- DataTablePagerComponent,
5726
- DatatableGroupHeaderTemplateDirective
5727
- ]
5728
- })
5729
- ], NgxDatatableModule);
5113
+ }
5114
+ NgxDatatableModule.decorators = [
5115
+ { type: NgModule, args: [{
5116
+ imports: [CommonModule],
5117
+ providers: [ScrollbarHelper, DimensionsHelper, ColumnChangesService],
5118
+ declarations: [
5119
+ DataTableFooterTemplateDirective,
5120
+ VisibilityDirective,
5121
+ DraggableDirective,
5122
+ ResizeableDirective,
5123
+ OrderableDirective,
5124
+ LongPressDirective,
5125
+ ScrollerComponent,
5126
+ DatatableComponent,
5127
+ DataTableColumnDirective,
5128
+ DataTableHeaderComponent,
5129
+ DataTableHeaderCellComponent,
5130
+ DataTableBodyComponent,
5131
+ DataTableFooterComponent,
5132
+ DataTablePagerComponent,
5133
+ ProgressBarComponent,
5134
+ DataTableBodyRowComponent,
5135
+ DataTableRowWrapperComponent,
5136
+ DatatableRowDetailDirective,
5137
+ DatatableGroupHeaderDirective,
5138
+ DatatableRowDetailTemplateDirective,
5139
+ DataTableBodyCellComponent,
5140
+ DataTableSelectionComponent,
5141
+ DataTableColumnHeaderDirective,
5142
+ DataTableColumnCellDirective,
5143
+ DataTableColumnCellTreeToggle,
5144
+ DatatableFooterDirective,
5145
+ DatatableGroupHeaderTemplateDirective,
5146
+ DataTableSummaryRowComponent
5147
+ ],
5148
+ exports: [
5149
+ DatatableComponent,
5150
+ DatatableRowDetailDirective,
5151
+ DatatableGroupHeaderDirective,
5152
+ DatatableRowDetailTemplateDirective,
5153
+ DataTableColumnDirective,
5154
+ DataTableColumnHeaderDirective,
5155
+ DataTableColumnCellDirective,
5156
+ DataTableColumnCellTreeToggle,
5157
+ DataTableFooterTemplateDirective,
5158
+ DatatableFooterDirective,
5159
+ DataTablePagerComponent,
5160
+ DatatableGroupHeaderTemplateDirective
5161
+ ]
5162
+ },] }
5163
+ ];
5730
5164
 
5731
5165
  var ClickType;
5732
5166
  (function (ClickType) {