igniteui-webcomponents-data-grids 7.0.1 → 7.1.0-alpha.1

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 (41) hide show
  1. package/bundles/igniteui-webcomponents-data-grids.umd.js +767 -690
  2. package/bundles/igniteui-webcomponents-data-grids.umd.min.js +1 -1
  3. package/esm2015/lib/CheckboxListView_combined.js +2 -2
  4. package/esm2015/lib/ColumnFilterCondition_combined.js +680 -640
  5. package/esm2015/lib/ColumnGroupingView_combined.js +1 -1
  6. package/esm2015/lib/ComparisonOperatorSelectorView_combined.js +1 -1
  7. package/esm2015/lib/DataGridScrollerKeyboardListener.js +4 -1
  8. package/esm2015/lib/DataGridToolbarView_combined.js +1 -1
  9. package/esm2015/lib/DraggerView.js +8 -8
  10. package/esm2015/lib/GridExternalWrapper.js +6 -0
  11. package/esm2015/lib/GridFilterDialogView_combined.js +36 -35
  12. package/esm2015/lib/NativeUIComboFactory.js +1 -1
  13. package/esm2015/lib/NativeUIGridFactory.js +2 -2
  14. package/esm2015/lib/SectionHeaderCell.js +12 -0
  15. package/esm2015/lib/SummaryCell.js +9 -0
  16. package/esm2015/lib/TemplateCell.js +1 -1
  17. package/esm2015/lib/igc-data-grid-component.js +7 -1
  18. package/esm5/lib/CheckboxListView_combined.js +2 -2
  19. package/esm5/lib/ColumnFilterCondition_combined.js +677 -637
  20. package/esm5/lib/ColumnGroupingView_combined.js +1 -1
  21. package/esm5/lib/ComparisonOperatorSelectorView_combined.js +1 -1
  22. package/esm5/lib/DataGridScrollerKeyboardListener.js +4 -1
  23. package/esm5/lib/DataGridToolbarView_combined.js +1 -1
  24. package/esm5/lib/DraggerView.js +8 -8
  25. package/esm5/lib/GridExternalWrapper.js +6 -0
  26. package/esm5/lib/GridFilterDialogView_combined.js +36 -35
  27. package/esm5/lib/NativeUIComboFactory.js +1 -1
  28. package/esm5/lib/NativeUIGridFactory.js +2 -2
  29. package/esm5/lib/SectionHeaderCell.js +12 -0
  30. package/esm5/lib/SummaryCell.js +9 -0
  31. package/esm5/lib/TemplateCell.js +1 -1
  32. package/esm5/lib/igc-data-grid-component.js +7 -1
  33. package/fesm2015/igniteui-webcomponents-data-grids.js +769 -692
  34. package/fesm5/igniteui-webcomponents-data-grids.js +768 -691
  35. package/lib/ColumnFilterCondition_combined.d.ts +117 -114
  36. package/lib/DataGridScrollerKeyboardListener.d.ts +1 -0
  37. package/lib/GridExternalWrapper.d.ts +2 -0
  38. package/lib/SectionHeaderCell.d.ts +2 -0
  39. package/lib/SummaryCell.d.ts +2 -0
  40. package/lib/igc-data-grid-component.d.ts +2 -0
  41. package/package.json +4 -4
@@ -106,7 +106,7 @@ export var ColumnGroupingView = /** @class */ /*@__PURE__*/ (function (_super) {
106
106
  }
107
107
  this.n = a;
108
108
  this.d = new CanvasGestureDOMEventProxy(this.o.rootWrapper, this.o, true);
109
- this.d.c9 = true;
109
+ this.d.dc = true;
110
110
  var b = this.d;
111
111
  b.onMouseDown = delegateCombine(b.onMouseDown, runOn(this, this.z));
112
112
  var c = this.d;
@@ -163,7 +163,7 @@ export var ComparisonOperatorSelectorView = /** @class */ /*@__PURE__*/ (functio
163
163
  };
164
164
  ComparisonOperatorSelectorView.prototype.onDocumentKeyDown = function (a) {
165
165
  var b = a;
166
- if (BaseDOMEventProxy.c1(b) == 8) {
166
+ if (BaseDOMEventProxy.c4(b) == 8) {
167
167
  this.a.d8();
168
168
  }
169
169
  };
@@ -46,7 +46,7 @@ export var DataGridScrollerKeyboardListener = /** @class */ /*@__PURE__*/ (funct
46
46
  return this.a.k1(a, b);
47
47
  };
48
48
  DataGridScrollerKeyboardListener.prototype.onWheel = function () {
49
- this.a.x4();
49
+ this.a.x5();
50
50
  };
51
51
  DataGridScrollerKeyboardListener.prototype.onEnter = function (a, b) {
52
52
  return this.a.kq(a, b);
@@ -63,6 +63,9 @@ export var DataGridScrollerKeyboardListener = /** @class */ /*@__PURE__*/ (funct
63
63
  DataGridScrollerKeyboardListener.prototype.onKeyDown = function (a, b, c) {
64
64
  return this.a.ku(a, b, c);
65
65
  };
66
+ DataGridScrollerKeyboardListener.prototype.onGotFocus = function (a, b) {
67
+ this.a.xf(a, b);
68
+ };
66
69
  DataGridScrollerKeyboardListener.$t = markType(DataGridScrollerKeyboardListener, 'DataGridScrollerKeyboardListener', Base.$, [IScrollerKeyboardListener_$type]);
67
70
  return DataGridScrollerKeyboardListener;
68
71
  }(Base));
@@ -285,7 +285,7 @@ export var DataGridToolbarView = /** @class */ /*@__PURE__*/ (function (_super)
285
285
  a.stopPropagation();
286
286
  };
287
287
  DataGridToolbarView.prototype.q = function (a) {
288
- if (BaseDOMEventProxy.c1(a) == 8) {
288
+ if (BaseDOMEventProxy.c4(a) == 8) {
289
289
  this.a.av();
290
290
  }
291
291
  };
@@ -42,8 +42,8 @@ export var DraggerView = /** @class */ /*@__PURE__*/ (function (_super) {
42
42
  this.c = null;
43
43
  }
44
44
  if (this.a != null) {
45
- this.a.ap = null;
46
- this.a.aw();
45
+ this.a.aq = null;
46
+ this.a.ax();
47
47
  }
48
48
  return;
49
49
  }
@@ -51,23 +51,23 @@ export var DraggerView = /** @class */ /*@__PURE__*/ (function (_super) {
51
51
  var b = Math.round(this.c.rootWrapper.width());
52
52
  var c = Math.round(this.c.rootWrapper.height());
53
53
  this.a = new CanvasGestureDOMEventProxy(this.c.rootWrapper, this.c, true);
54
- this.a.c9 = true;
54
+ this.a.dc = true;
55
55
  var d = this.a;
56
56
  d.onMouseOver = delegateCombine(d.onMouseOver, runOn(this, this.e));
57
57
  var e = this.a;
58
58
  e.onMouseUp = delegateCombine(e.onMouseUp, runOn(this, this.f));
59
- this.a.ap = runOn(this, this.b);
59
+ this.a.aq = runOn(this, this.b);
60
60
  this.model.viewportWidth = b;
61
61
  this.model.viewportHeight = c;
62
62
  };
63
63
  DraggerView.prototype.onDetachedFromUI = function () {
64
64
  if (this.a != null && this.c != null) {
65
- this.a.bi(this.c.rootWrapper, "");
65
+ this.a.bk(this.c.rootWrapper, "");
66
66
  }
67
67
  };
68
68
  DraggerView.prototype.onAttachedToUI = function () {
69
69
  if (this.a != null) {
70
- this.a.au(this.c.rootWrapper, "");
70
+ this.a.av(this.c.rootWrapper, "");
71
71
  }
72
72
  };
73
73
  DraggerView.prototype.b = function (a) {
@@ -84,7 +84,7 @@ export var DraggerView = /** @class */ /*@__PURE__*/ (function (_super) {
84
84
  DraggerView.prototype.releaseMouse = function () {
85
85
  };
86
86
  DraggerView.prototype.transformPoint = function (a, b) {
87
- var c = BaseDOMEventProxy.c5(this.c.rootWrapper);
87
+ var c = BaseDOMEventProxy.c8(this.c.rootWrapper);
88
88
  var d = { $type: Point_$type, x: a - c.x, y: b - c.y };
89
89
  return d;
90
90
  };
@@ -95,7 +95,7 @@ export var DraggerView = /** @class */ /*@__PURE__*/ (function (_super) {
95
95
  this.model.onMouseUp(a.x, a.y);
96
96
  };
97
97
  DraggerView.prototype.onViewportSizeChanged = function (a, b) {
98
- this.a.bm = new Rect(0, 0, 0, a, b);
98
+ this.a.bo = new Rect(0, 0, 0, a, b);
99
99
  };
100
100
  DraggerView.prototype.addCloneCellToDom = function () {
101
101
  if (this.c != null) {
@@ -155,6 +155,12 @@ export var GridExternalWrapper = /** @class */ /*@__PURE__*/ (function (_super)
155
155
  var grid_ = this.a;
156
156
  grid_._ensureColumnsAreManual();
157
157
  };
158
+ GridExternalWrapper.prototype.moveFocusPrevious = function () {
159
+ this.a._moveFocusPrevious();
160
+ };
161
+ GridExternalWrapper.prototype.moveFocusNext = function () {
162
+ this.a._moveFocusNext();
163
+ };
158
164
  GridExternalWrapper.$t = markType(GridExternalWrapper, 'GridExternalWrapper', Base.$, [IExternalGrid_$type]);
159
165
  return GridExternalWrapper;
160
166
  }(Base));
@@ -110,7 +110,7 @@ export var GridFilterDialogView = /** @class */ /*@__PURE__*/ (function (_super)
110
110
  };
111
111
  GridFilterDialogView.prototype.r = function (a) {
112
112
  var b = a;
113
- this.m.append(b.an);
113
+ this.m.append(b.ao);
114
114
  };
115
115
  GridFilterDialogView.prototype.p = function () {
116
116
  return this.m;
@@ -203,7 +203,7 @@ export var GridFilterDialogPanel = /** @class */ /*@__PURE__*/ (function (_super
203
203
  a.stopPropagation();
204
204
  };
205
205
  GridFilterDialogPanel.prototype.onDocumentKeyDown = function (a) {
206
- if (BaseDOMEventProxy.c1(a) == 8) {
206
+ if (BaseDOMEventProxy.c4(a) == 8) {
207
207
  }
208
208
  };
209
209
  GridFilterDialogPanel.prototype.onDocumentMouseClick = function (e_) {
@@ -585,7 +585,7 @@ export var GridFilterDialog = /** @class */ /*@__PURE__*/ (function (_super) {
585
585
  });
586
586
  Object.defineProperty(GridFilterDialog.prototype, "ae", {
587
587
  get: function () {
588
- return this.v != null ? this.v.bx : false;
588
+ return this.v != null ? this.v.by : false;
589
589
  },
590
590
  enumerable: false,
591
591
  configurable: true
@@ -619,41 +619,41 @@ export var GridFilterDialog = /** @class */ /*@__PURE__*/ (function (_super) {
619
619
  break;
620
620
  case "ColumnOptionsBackground":
621
621
  if (this.v != null) {
622
- this.v.cg = this.cd;
623
- this.v.ck = this.cd;
622
+ this.v.ch = this.cd;
623
+ this.v.cl = this.cd;
624
624
  }
625
625
  break;
626
626
  case "ColumnOptionsTextColor":
627
627
  if (this.v != null) {
628
- this.v.ci = this.ch;
629
628
  this.v.cj = this.ch;
630
- this.v.b8 = this.ch;
631
- this.v.cc = this.ch;
629
+ this.v.ck = this.ch;
630
+ this.v.b9 = this.ch;
632
631
  this.v.cd = this.ch;
633
632
  this.v.ce = this.ch;
633
+ this.v.cf = this.ch;
634
634
  }
635
635
  break;
636
636
  case "ColumnOptionsSeparatorColor":
637
637
  if (this.v != null) {
638
- this.v.cf = this.cg;
638
+ this.v.cg = this.cg;
639
639
  }
640
640
  break;
641
641
  case "ColumnOptionsGroupHeaderBackground":
642
642
  if (this.v != null) {
643
- this.v.b9 = this.ce;
643
+ this.v.ca = this.ce;
644
644
  }
645
645
  break;
646
646
  case "ColumnOptionsGroupHeaderTextColor":
647
647
  if (this.v != null) {
648
- this.v.cb = this.cf;
648
+ this.v.cc = this.cf;
649
649
  }
650
650
  break;
651
651
  case "ColumnOptionsAccentColor":
652
652
  if (this.v != null) {
653
- this.v.b4 = this.cc;
654
- this.v.b6 = this.cc;
653
+ this.v.b5 = this.cc;
655
654
  this.v.b7 = this.cc;
656
- this.v.cl = this.cc;
655
+ this.v.b8 = this.cc;
656
+ this.v.cm = this.cc;
657
657
  }
658
658
  break;
659
659
  }
@@ -681,38 +681,39 @@ export var GridFilterDialog = /** @class */ /*@__PURE__*/ (function (_super) {
681
681
  };
682
682
  GridFilterDialog.prototype.bq = function () {
683
683
  var _this = this;
684
- NativeUIComponent.au(this.s.p(), 18, function (a) {
684
+ NativeUIComponent.av(this.s.p(), 18, function (a) {
685
685
  var b = a;
686
686
  _this.v = b;
687
- _this.v.b0 = 16;
688
- _this.v.b5 = BrushUtil.l(0, 0, 0, 0);
689
- _this.v.bq = runOn(_this, _this.bg);
690
- _this.v.bo = runOn(_this, _this.bf);
691
- _this.v.by = false;
687
+ _this.v.b1 = 16;
688
+ _this.v.b6 = BrushUtil.l(0, 0, 0, 0);
689
+ _this.v.v = false;
690
+ _this.v.br = runOn(_this, _this.bg);
691
+ _this.v.bp = runOn(_this, _this.bf);
692
+ _this.v.bz = false;
692
693
  _this.s.r(_this.v);
693
694
  _this.v.c = _this.x;
694
- _this.v.cg = _this.cd;
695
- _this.v.ck = _this.cd;
696
- _this.v.ci = _this.ch;
697
- _this.v.cb = _this.cf;
695
+ _this.v.ch = _this.cd;
696
+ _this.v.cl = _this.cd;
698
697
  _this.v.cj = _this.ch;
699
- _this.v.b8 = _this.ch;
700
- _this.v.cc = _this.ch;
698
+ _this.v.cc = _this.cf;
699
+ _this.v.ck = _this.ch;
700
+ _this.v.b9 = _this.ch;
701
701
  _this.v.cd = _this.ch;
702
702
  _this.v.ce = _this.ch;
703
- _this.v.cf = _this.cg;
704
- _this.v.b9 = _this.ce;
705
- _this.v.b4 = _this.cc;
706
- _this.v.b6 = _this.cc;
703
+ _this.v.cf = _this.ch;
704
+ _this.v.cg = _this.cg;
705
+ _this.v.ca = _this.ce;
706
+ _this.v.b5 = _this.cc;
707
707
  _this.v.b7 = _this.cc;
708
- _this.v.cl = _this.cc;
709
- _this.v.b1 = _this;
708
+ _this.v.b8 = _this.cc;
709
+ _this.v.cm = _this.cc;
710
+ _this.v.b2 = _this;
710
711
  });
711
712
  };
712
713
  GridFilterDialog.prototype.bg = function (a, b) {
713
714
  if (this.z) {
714
715
  this.z = false;
715
- this.v.b1 = this.n;
716
+ this.v.b2 = this.n;
716
717
  }
717
718
  if (this.n != null) {
718
719
  if (this.n.grid != null) {
@@ -1023,8 +1024,8 @@ export var GridFilterDialog = /** @class */ /*@__PURE__*/ (function (_super) {
1023
1024
  };
1024
1025
  GridFilterDialog.prototype.bk = function () {
1025
1026
  if (this.v != null) {
1026
- if (this.n != null && this.v.b1 != this.n) {
1027
- this.v.b1 = this.n;
1027
+ if (this.n != null && this.v.b2 != this.n) {
1028
+ this.v.b2 = this.n;
1028
1029
  }
1029
1030
  }
1030
1031
  };
@@ -29,7 +29,7 @@ export var NativeUIComboFactory = /** @class */ /*@__PURE__*/ (function (_super)
29
29
  configurable: true
30
30
  });
31
31
  NativeUIComboFactory.register = function () {
32
- NativeUIComponent.as(NativeUIComboFactory.instance);
32
+ NativeUIComponent.at(NativeUIComboFactory.instance);
33
33
  };
34
34
  Object.defineProperty(NativeUIComboFactory.prototype, "flavor", {
35
35
  get: function () {
@@ -31,7 +31,7 @@ export var NativeUIGridFactory = /** @class */ /*@__PURE__*/ (function (_super)
31
31
  configurable: true
32
32
  });
33
33
  NativeUIGridFactory.register = function () {
34
- NativeUIComponent.as(NativeUIGridFactory.instance);
34
+ NativeUIComponent.at(NativeUIGridFactory.instance);
35
35
  };
36
36
  Object.defineProperty(NativeUIGridFactory.prototype, "flavor", {
37
37
  get: function () {
@@ -68,7 +68,7 @@ export var NativeUIGridFactory = /** @class */ /*@__PURE__*/ (function (_super)
68
68
  var f = (comp_.i);
69
69
  var g = new CheckboxListBridge(f);
70
70
  var h = new NativeUICheckboxList();
71
- h.an = d;
71
+ h.ao = d;
72
72
  h.d = g;
73
73
  b(h);
74
74
  }, false);
@@ -16,6 +16,12 @@ export var SectionHeaderCell = /** @class */ /*@__PURE__*/ (function (_super) {
16
16
  var _this = _super.call(this, a) || this;
17
17
  _this.dw = null;
18
18
  _this.dw = a.createElement("span");
19
+ _this.dw.setRawStyleProperty("display", "inline-block");
20
+ _this.dw.setRawStyleProperty("line-height", "normal");
21
+ _this.dw.setRawStyleProperty("vertical-align", "middle");
22
+ _this.dw.setRawStyleProperty("overflow", "hidden");
23
+ _this.dw.setRawStyleProperty("white-space", "nowrap");
24
+ _this.dw.setRawStyleProperty("text-overflow", "ellipsis");
19
25
  _this.ar.setRawStyleProperty("text-align", "left");
20
26
  _this.ar.setRawStyleProperty("vertical-align", "middle");
21
27
  _this.ar.setRawStyleProperty("overflow", "hidden");
@@ -31,6 +37,12 @@ export var SectionHeaderCell = /** @class */ /*@__PURE__*/ (function (_super) {
31
37
  enumerable: false,
32
38
  configurable: true
33
39
  });
40
+ SectionHeaderCell.prototype.c0 = function (a, b) {
41
+ _super.prototype.c0.call(this, a, b);
42
+ if (a == this.dw) {
43
+ this.dw.setRawStyleProperty("line-height", (this.bg - this.bh).toString() + "px");
44
+ }
45
+ };
34
46
  SectionHeaderCell.prototype.get_ae = function () {
35
47
  return true;
36
48
  };
@@ -69,6 +69,15 @@ export var SummaryCell = /** @class */ /*@__PURE__*/ (function (_super) {
69
69
  this.d1 = c;
70
70
  }
71
71
  };
72
+ SummaryCell.prototype.c0 = function (a, b) {
73
+ _super.prototype.c0.call(this, a, b);
74
+ if (a == this.dw) {
75
+ this.dw.setRawStyleProperty("line-height", (this.bg - this.bh).toString() + "px");
76
+ }
77
+ else if (a == this.dx) {
78
+ this.dx.setRawStyleProperty("line-height", (this.bg - this.bh).toString() + "px");
79
+ }
80
+ };
72
81
  SummaryCell.prototype.get_ae = function () {
73
82
  return false;
74
83
  };
@@ -49,7 +49,7 @@ export var TemplateCell = /** @class */ /*@__PURE__*/ (function (_super) {
49
49
  TemplateCell.prototype.dy = function (a) {
50
50
  var b = this.dw.element.getNativeElement();
51
51
  if (b.contains(document.activeElement) && document.activeElement.nodeName == "INPUT") {
52
- var c = BaseDOMEventProxy.c1(a);
52
+ var c = BaseDOMEventProxy.c4(a);
53
53
  if (c == 14 || c == 16) {
54
54
  a.stopPropagation();
55
55
  }
@@ -27,7 +27,7 @@ import { IgcGridSortDescriptionsChangedEventArgs } from './igc-grid-sort-descrip
27
27
  import { IgcGridGroupDescriptionsChangedEventArgs } from './igc-grid-group-descriptions-changed-event-args';
28
28
  import { IgcGridSummaryDescriptionsChangedEventArgs } from './igc-grid-summary-descriptions-changed-event-args';
29
29
  import { DataGrid } from "./DataGrid";
30
- import { ensureEnum, ensureBool, CollectionAdapter, getAllPropertyNames, enumToString, fromSpinal, toSpinal, brushToString, stringToBrush, initializePropertiesFromCss, NamePatcher } from "igniteui-webcomponents-core";
30
+ import { ensureEnum, ensureBool, CollectionAdapter, getAllPropertyNames, enumToString, fromSpinal, toSpinal, brushToString, stringToBrush, initializePropertiesFromCss, NamePatcher, moveFocusNext, moveFocusPrevious } from "igniteui-webcomponents-core";
31
31
  import { Thickness } from "igniteui-webcomponents-core";
32
32
  import { WebComponentRenderer, WebComponentWrapper, PortalManager } from "igniteui-webcomponents-core";
33
33
  import { DataGridColumn } from './DataGridColumn';
@@ -469,6 +469,12 @@ export var IgcDataGridComponent = /** @class */ /*@__PURE__*/ (function (_super)
469
469
  this._scroller.scrollbarBrush = color;
470
470
  }
471
471
  };
472
+ IgcDataGridComponent.prototype._moveFocusNext = function () {
473
+ moveFocusNext(this, true);
474
+ };
475
+ IgcDataGridComponent.prototype._moveFocusPrevious = function () {
476
+ moveFocusPrevious(this);
477
+ };
472
478
  IgcDataGridComponent.prototype.createImplementation = function () {
473
479
  //let test = Grid;
474
480
  return new DataGrid();