igniteui-angular-data-grids 20.0.0 → 20.0.1-beta.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.
- package/bundles/igniteui-angular-data-grids.umd.js +3900 -3533
- package/bundles/igniteui-angular-data-grids.umd.min.js +1 -1
- package/esm2015/lib/CanvasCellPresenterBase.js +3 -3
- package/esm2015/lib/CanvasContentCellModelHelper.js +4 -4
- package/esm2015/lib/CanvasDateTimeCellPresenter.js +10 -6
- package/esm2015/lib/CanvasGridCellBase.js +1 -1
- package/esm2015/lib/CanvasImageCellPresenter.js +6 -6
- package/esm2015/lib/CanvasNumericCellPresenter.js +9 -6
- package/esm2015/lib/CanvasSectionHeaderCellPresenter.js +9 -9
- package/esm2015/lib/CanvasSummaryCellPresenter.js +3 -3
- package/esm2015/lib/CanvasTemplateCellPresenter.js +2 -2
- package/esm2015/lib/CanvasTemplateHeaderCellPresenter.js +1 -1
- package/esm2015/lib/CanvasTextCellPresenter.js +20 -15
- package/esm2015/lib/CanvasTextHeaderCell.js +4 -4
- package/esm2015/lib/CanvasTextHeaderCellPresenter.js +9 -9
- package/esm2015/lib/CellPresenterBase.js +5 -5
- package/esm2015/lib/CheckboxListView_combined.js +479 -435
- package/esm2015/lib/ColumnChooserView_combined.js +13 -13
- package/esm2015/lib/ColumnFilterCondition_combined.js +2442 -2384
- package/esm2015/lib/ColumnGroupingView_combined.js +4 -4
- package/esm2015/lib/ColumnPinningView_combined.js +13 -13
- package/esm2015/lib/ComparisonOperatorSelectorView_combined.js +6 -6
- package/esm2015/lib/ContentCellModelHelper.js +4 -4
- package/esm2015/lib/DataGridCellLayoutPanel.js +8 -8
- package/esm2015/lib/DataGridToolbarView_combined.js +2 -2
- package/esm2015/lib/DateTimeCellPresenter.js +10 -6
- package/esm2015/lib/EditorCellPresenter.js +19 -19
- package/esm2015/lib/FilterCellPresenter.js +11 -11
- package/esm2015/lib/FormatCellEventArgs.js +31 -0
- package/esm2015/lib/GridCellBase.js +1 -1
- package/esm2015/lib/GridColumnFilterOptionsView_combined.js +10 -10
- package/esm2015/lib/GridColumnGroupOptionsView_combined.js +5 -5
- package/esm2015/lib/GridColumnHideOptionsView_combined.js +3 -3
- package/esm2015/lib/GridColumnMoveOptionsView_combined.js +1 -1
- package/esm2015/lib/GridColumnOptionsView_combined.js +1 -1
- package/esm2015/lib/GridColumnPinOptionsView_combined.js +4 -4
- package/esm2015/lib/GridColumnSummaryOptionsView_combined.js +7 -7
- package/esm2015/lib/GridExternalWrapper.js +6 -6
- package/esm2015/lib/GridFilterDialogView_combined.js +9 -4
- package/esm2015/lib/GridSortIndicatorView_combined.js +136 -120
- package/esm2015/lib/ISummaryChooserView_combined.js +9 -9
- package/esm2015/lib/ImageCellPresenter.js +6 -6
- package/esm2015/lib/MultiColumnComboBoxView_combined.js +2 -2
- package/esm2015/lib/NumericCellPresenter.js +9 -6
- package/esm2015/lib/PropertyEditorView_combined.js +17 -17
- package/esm2015/lib/SectionHeaderCellPresenter.js +9 -9
- package/esm2015/lib/SummaryCellPresenter.js +6 -6
- package/esm2015/lib/TemplateCellPresenter.js +2 -2
- package/esm2015/lib/TemplateHeader.js +2 -2
- package/esm2015/lib/TemplateHeaderCellModel.js +18 -18
- package/esm2015/lib/TemplateHeaderCellPresenter.js +1 -1
- package/esm2015/lib/TextCellPresenter.js +20 -15
- package/esm2015/lib/TextHeaderCell.js +6 -5
- package/esm2015/lib/TextHeaderCellPresenter.js +16 -16
- package/esm2015/lib/igx-cell-info.js +58 -49
- package/esm2015/lib/igx-checkbox-list-component.js +58 -55
- package/esm2015/lib/igx-combo-box-column-component.js +10 -10
- package/esm2015/lib/igx-data-grid-column-component.js +121 -97
- package/esm2015/lib/igx-data-grid-sort-indicator-component.js +20 -12
- package/esm2015/lib/igx-date-time-cell-info.js +12 -12
- package/esm2015/lib/igx-date-time-column-component.js +20 -20
- package/esm2015/lib/igx-editor-cell-info.js +23 -23
- package/esm2015/lib/igx-filter-cell-info.js +26 -26
- package/esm2015/lib/igx-format-cell-event-args.js +82 -0
- package/esm2015/lib/igx-image-cell-info.js +6 -6
- package/esm2015/lib/igx-image-column-component.js +10 -10
- package/esm2015/lib/igx-numeric-cell-info.js +26 -26
- package/esm2015/lib/igx-numeric-column-component.js +30 -30
- package/esm2015/lib/igx-section-header-cell-info.js +6 -6
- package/esm2015/lib/igx-summary-cell-info.js +9 -9
- package/esm2015/lib/igx-template-cell-info.js +2 -2
- package/esm2015/lib/igx-template-header-cell-info.js +2 -2
- package/esm2015/lib/igx-text-cell-info.js +2 -2
- package/esm2015/lib/igx-text-column-component.js +8 -8
- package/esm2015/lib/igx-text-header-cell-info.js +10 -10
- package/esm2015/public_api.js +2 -0
- package/esm5/lib/CanvasCellPresenterBase.js +3 -3
- package/esm5/lib/CanvasContentCellModelHelper.js +4 -4
- package/esm5/lib/CanvasDateTimeCellPresenter.js +10 -6
- package/esm5/lib/CanvasGridCellBase.js +1 -1
- package/esm5/lib/CanvasImageCellPresenter.js +6 -6
- package/esm5/lib/CanvasNumericCellPresenter.js +9 -6
- package/esm5/lib/CanvasSectionHeaderCellPresenter.js +9 -9
- package/esm5/lib/CanvasSummaryCellPresenter.js +3 -3
- package/esm5/lib/CanvasTemplateCellPresenter.js +2 -2
- package/esm5/lib/CanvasTemplateHeaderCellPresenter.js +1 -1
- package/esm5/lib/CanvasTextCellPresenter.js +20 -15
- package/esm5/lib/CanvasTextHeaderCell.js +4 -4
- package/esm5/lib/CanvasTextHeaderCellPresenter.js +9 -9
- package/esm5/lib/CellPresenterBase.js +5 -5
- package/esm5/lib/CheckboxListView_combined.js +461 -413
- package/esm5/lib/ColumnChooserView_combined.js +13 -13
- package/esm5/lib/ColumnFilterCondition_combined.js +2343 -2281
- package/esm5/lib/ColumnGroupingView_combined.js +4 -4
- package/esm5/lib/ColumnPinningView_combined.js +13 -13
- package/esm5/lib/ComparisonOperatorSelectorView_combined.js +6 -6
- package/esm5/lib/ContentCellModelHelper.js +4 -4
- package/esm5/lib/DataGridCellLayoutPanel.js +8 -8
- package/esm5/lib/DataGridToolbarView_combined.js +2 -2
- package/esm5/lib/DateTimeCellPresenter.js +10 -6
- package/esm5/lib/EditorCellPresenter.js +19 -19
- package/esm5/lib/FilterCellPresenter.js +11 -11
- package/esm5/lib/FormatCellEventArgs.js +37 -0
- package/esm5/lib/GridCellBase.js +1 -1
- package/esm5/lib/GridColumnFilterOptionsView_combined.js +10 -10
- package/esm5/lib/GridColumnGroupOptionsView_combined.js +5 -5
- package/esm5/lib/GridColumnHideOptionsView_combined.js +3 -3
- package/esm5/lib/GridColumnMoveOptionsView_combined.js +1 -1
- package/esm5/lib/GridColumnOptionsView_combined.js +1 -1
- package/esm5/lib/GridColumnPinOptionsView_combined.js +4 -4
- package/esm5/lib/GridColumnSummaryOptionsView_combined.js +7 -7
- package/esm5/lib/GridExternalWrapper.js +6 -6
- package/esm5/lib/GridFilterDialogView_combined.js +9 -4
- package/esm5/lib/GridSortIndicatorView_combined.js +135 -115
- package/esm5/lib/ISummaryChooserView_combined.js +9 -9
- package/esm5/lib/ImageCellPresenter.js +6 -6
- package/esm5/lib/MultiColumnComboBoxView_combined.js +2 -2
- package/esm5/lib/NumericCellPresenter.js +9 -6
- package/esm5/lib/PropertyEditorView_combined.js +17 -17
- package/esm5/lib/SectionHeaderCellPresenter.js +9 -9
- package/esm5/lib/SummaryCellPresenter.js +6 -6
- package/esm5/lib/TemplateCellPresenter.js +2 -2
- package/esm5/lib/TemplateHeader.js +2 -2
- package/esm5/lib/TemplateHeaderCellModel.js +17 -17
- package/esm5/lib/TemplateHeaderCellPresenter.js +1 -1
- package/esm5/lib/TextCellPresenter.js +20 -15
- package/esm5/lib/TextHeaderCell.js +6 -5
- package/esm5/lib/TextHeaderCellPresenter.js +16 -16
- package/esm5/lib/igx-cell-info.js +62 -49
- package/esm5/lib/igx-checkbox-list-component.js +62 -55
- package/esm5/lib/igx-combo-box-column-component.js +10 -10
- package/esm5/lib/igx-data-grid-column-component.js +126 -97
- package/esm5/lib/igx-data-grid-sort-indicator-component.js +24 -12
- package/esm5/lib/igx-date-time-cell-info.js +12 -12
- package/esm5/lib/igx-date-time-column-component.js +20 -20
- package/esm5/lib/igx-editor-cell-info.js +23 -23
- package/esm5/lib/igx-filter-cell-info.js +26 -26
- package/esm5/lib/igx-format-cell-event-args.js +112 -0
- package/esm5/lib/igx-image-cell-info.js +6 -6
- package/esm5/lib/igx-image-column-component.js +10 -10
- package/esm5/lib/igx-numeric-cell-info.js +26 -26
- package/esm5/lib/igx-numeric-column-component.js +30 -30
- package/esm5/lib/igx-section-header-cell-info.js +6 -6
- package/esm5/lib/igx-summary-cell-info.js +9 -9
- package/esm5/lib/igx-template-cell-info.js +2 -2
- package/esm5/lib/igx-template-header-cell-info.js +2 -2
- package/esm5/lib/igx-text-cell-info.js +2 -2
- package/esm5/lib/igx-text-column-component.js +8 -8
- package/esm5/lib/igx-text-header-cell-info.js +10 -10
- package/esm5/public_api.js +2 -0
- package/fesm2015/igniteui-angular-data-grids.js +3969 -3666
- package/fesm5/igniteui-angular-data-grids.js +3900 -3535
- package/lib/CanvasTextCellPresenter.d.ts +1 -0
- package/lib/CheckboxListView_combined.d.ts +127 -120
- package/lib/ColumnFilterCondition_combined.d.ts +643 -636
- package/lib/FormatCellEventArgs.d.ts +15 -0
- package/lib/GridSortIndicatorView_combined.d.ts +41 -38
- package/lib/TemplateHeaderCellModel.d.ts +7 -7
- package/lib/TextCellPresenter.d.ts +1 -0
- package/lib/igx-cell-info.d.ts +5 -0
- package/lib/igx-checkbox-list-component.d.ts +2 -0
- package/lib/igx-data-grid-column-component.d.ts +10 -1
- package/lib/igx-data-grid-sort-indicator-component.d.ts +4 -1
- package/lib/igx-format-cell-event-args.d.ts +45 -0
- package/package.json +4 -5
- package/public_api.d.ts +2 -0
|
@@ -836,15 +836,15 @@ var PropertyEditor = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
836
836
|
}
|
|
837
837
|
else {
|
|
838
838
|
var a = new TextColumn();
|
|
839
|
-
a.
|
|
840
|
-
a.
|
|
841
|
-
a.
|
|
839
|
+
a.kl = 10;
|
|
840
|
+
a.km = 5;
|
|
841
|
+
a.lp = "PropertyPath";
|
|
842
842
|
a.dataBinding = delegateCombine(a.dataBinding, runOn(this, this.dp));
|
|
843
843
|
this.l.columns.add(a);
|
|
844
844
|
var b = new TemplateColumn();
|
|
845
|
-
b.
|
|
846
|
-
b.kk = 5;
|
|
845
|
+
b.lp = "ValueType";
|
|
847
846
|
b.kl = 5;
|
|
847
|
+
b.km = 5;
|
|
848
848
|
b.dataBinding = delegateCombine(b.dataBinding, runOn(this, this.cu));
|
|
849
849
|
b.cellStyleKeyRequested = delegateCombine(b.cellStyleKeyRequested, runOn(this, this.cs));
|
|
850
850
|
b.cellUpdating = delegateCombine(b.cellUpdating, runOn(this, this.ct));
|
|
@@ -924,8 +924,8 @@ var PropertyEditor = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
924
924
|
var r = this_1.cc(l);
|
|
925
925
|
if (c.count <= g) {
|
|
926
926
|
var s = new TextColumn();
|
|
927
|
-
s.
|
|
928
|
-
s.
|
|
927
|
+
s.kl = 10;
|
|
928
|
+
s.km = 5;
|
|
929
929
|
s.width = ((function () {
|
|
930
930
|
var $ret = new ColumnWidth();
|
|
931
931
|
$ret.c = false;
|
|
@@ -933,8 +933,8 @@ var PropertyEditor = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
933
933
|
return $ret;
|
|
934
934
|
})());
|
|
935
935
|
s.dataBinding = delegateCombine(s.dataBinding, runOn(this_1, this_1.dp));
|
|
936
|
-
s.
|
|
937
|
-
s.
|
|
936
|
+
s.mg = "PropertyName_" + k;
|
|
937
|
+
s.lp = "PropertyName";
|
|
938
938
|
c.add(s);
|
|
939
939
|
this_1.au.item(s, c.count - 1);
|
|
940
940
|
g++;
|
|
@@ -971,10 +971,10 @@ var PropertyEditor = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
971
971
|
}
|
|
972
972
|
if (c.count <= g) {
|
|
973
973
|
var v = new TemplateColumn();
|
|
974
|
-
v.
|
|
975
|
-
v.
|
|
976
|
-
v.kk = 5;
|
|
974
|
+
v.mg = "ValueType_" + k;
|
|
975
|
+
v.lp = "ValueType";
|
|
977
976
|
v.kl = 5;
|
|
977
|
+
v.km = 5;
|
|
978
978
|
v.dataBinding = delegateCombine(v.dataBinding, runOn(this_1, this_1.cu));
|
|
979
979
|
v.width = ((function () {
|
|
980
980
|
var $ret = new ColumnWidth();
|
|
@@ -1190,7 +1190,7 @@ var PropertyEditor = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1190
1190
|
};
|
|
1191
1191
|
PropertyEditor.prototype.ct = function (a, b) {
|
|
1192
1192
|
var c = a;
|
|
1193
|
-
var d = this.s(c, b.cellInfo.fb, b.cellInfo.
|
|
1193
|
+
var d = this.s(c, b.cellInfo.fb, b.cellInfo.ho);
|
|
1194
1194
|
var e = d != null ? d.w : 0;
|
|
1195
1195
|
switch (e) {
|
|
1196
1196
|
case 10:
|
|
@@ -1288,7 +1288,7 @@ var PropertyEditor = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1288
1288
|
if (c.t != 3) {
|
|
1289
1289
|
c.t = 3;
|
|
1290
1290
|
}
|
|
1291
|
-
var e = _this.s(a, b.cellInfo.fb, b.cellInfo.
|
|
1291
|
+
var e = _this.s(a, b.cellInfo.fb, b.cellInfo.ho);
|
|
1292
1292
|
var f = c.inputs._inner[0];
|
|
1293
1293
|
f.bh = e;
|
|
1294
1294
|
f.cq = (e.ar != null ? e.ar.toString() : "");
|
|
@@ -1303,7 +1303,7 @@ var PropertyEditor = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1303
1303
|
if (c.r != 3) {
|
|
1304
1304
|
c.r = 3;
|
|
1305
1305
|
}
|
|
1306
|
-
var e = _this.s(a, b.cellInfo.fb, b.cellInfo.
|
|
1306
|
+
var e = _this.s(a, b.cellInfo.fb, b.cellInfo.ho);
|
|
1307
1307
|
c.ed = e;
|
|
1308
1308
|
var f = e.ar;
|
|
1309
1309
|
if (typeof e.ar === 'number' || typeof e.ar === 'number') {
|
|
@@ -1321,7 +1321,7 @@ var PropertyEditor = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1321
1321
|
if (c.density != 3) {
|
|
1322
1322
|
c.density = 3;
|
|
1323
1323
|
}
|
|
1324
|
-
var e = _this.s(a, b.cellInfo.fb, b.cellInfo.
|
|
1324
|
+
var e = _this.s(a, b.cellInfo.fb, b.cellInfo.ho);
|
|
1325
1325
|
if (c.dd != e) {
|
|
1326
1326
|
if (!d) {
|
|
1327
1327
|
c.selectedValueChanged = delegateRemove(c.selectedValueChanged, runOn(_this, _this.cq));
|
|
@@ -1593,7 +1593,7 @@ var PropertyEditor = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1593
1593
|
if (!c.y) {
|
|
1594
1594
|
c.y = true;
|
|
1595
1595
|
}
|
|
1596
|
-
var e = _this.s(a, b.cellInfo.fb, b.cellInfo.
|
|
1596
|
+
var e = _this.s(a, b.cellInfo.fb, b.cellInfo.ho);
|
|
1597
1597
|
var f = e.ar;
|
|
1598
1598
|
if (f == null) {
|
|
1599
1599
|
f = false;
|
|
@@ -28,24 +28,24 @@ var SectionHeaderCellPresenter = /** @class */ /*@__PURE__*/ (function (_super)
|
|
|
28
28
|
_super.prototype.b.call(this, a);
|
|
29
29
|
var b = a;
|
|
30
30
|
if (a.a3) {
|
|
31
|
-
if (a.a8(SectionHeaderCellModel.
|
|
32
|
-
if (b.
|
|
33
|
-
if (b.
|
|
34
|
-
b.
|
|
31
|
+
if (a.a8(SectionHeaderCellModel.mp) || a.a8(SectionHeaderCellModel.mr) || a.a8(SectionHeaderCellModel.mq) || a.a8(SectionHeaderCellModel.mt)) {
|
|
32
|
+
if (b.ml == null || (b.ml.length == 0 && b.mz == null)) {
|
|
33
|
+
if (b.hn == null) {
|
|
34
|
+
b.j3 = "";
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
|
-
b.
|
|
37
|
+
b.j3 = b.hn.toString();
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
|
-
if (b.
|
|
42
|
-
b.
|
|
41
|
+
if (b.mx != null && b.mo == 0) {
|
|
42
|
+
b.j3 = b.mz + " " + b.mx;
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
45
|
-
b.
|
|
45
|
+
b.j3 = b.mz;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
this.d.cl.setRawText(b.
|
|
48
|
+
this.d.cl.setRawText(b.j3);
|
|
49
49
|
}
|
|
50
50
|
ContentCellModelHelper.a(this.a.ae, b, this.a.ah, this.d.cl, this.a);
|
|
51
51
|
}
|
|
@@ -31,18 +31,18 @@ var SummaryCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
31
31
|
ContentCellModelHelper.a(this.a.ae, b, this.a.ah, this.d.cn, this.a);
|
|
32
32
|
ContentCellModelHelper.a(this.a.ae, b, this.a.ah, this.d.co, this.a);
|
|
33
33
|
if (a.a7("ResolvedSummaryLabel") || a.a7("ResolvedSummaryValue")) {
|
|
34
|
-
if (b.
|
|
35
|
-
this.d.cn.setRawText(b.
|
|
34
|
+
if (b.mr != null) {
|
|
35
|
+
this.d.cn.setRawText(b.mr);
|
|
36
36
|
}
|
|
37
|
-
if (b.
|
|
38
|
-
this.d.co.setRawText(b.
|
|
37
|
+
if (b.mt != null) {
|
|
38
|
+
this.d.co.setRawText(b.mt);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
if (a.a7("SummaryLabelTextColor")) {
|
|
42
|
-
this.d.cn.setRawStyleProperty("color", b.
|
|
42
|
+
this.d.cn.setRawStyleProperty("color", b.my._fill);
|
|
43
43
|
}
|
|
44
44
|
if (a.a7("SummaryLabelFontInfo")) {
|
|
45
|
-
var c = b.
|
|
45
|
+
var c = b.mk;
|
|
46
46
|
if (c == null) {
|
|
47
47
|
c = FontUtil.getDefaultFont(this.a.ae);
|
|
48
48
|
}
|
|
@@ -30,12 +30,12 @@ var TemplateCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
30
30
|
_super.prototype.b.call(this, a);
|
|
31
31
|
var b = a;
|
|
32
32
|
var c = this.d.actualColumns._inner[a.l.a5];
|
|
33
|
-
if (a.a8(CellModel.fa) || a.a8(CellModel.
|
|
33
|
+
if (a.a8(CellModel.fa) || a.a8(CellModel.hd)) {
|
|
34
34
|
var d = Math.min(1, Math.max(0, a.ct));
|
|
35
35
|
var e = a.cj * (1 - d);
|
|
36
36
|
this.e.cl.element.setRawStyleProperty("opacity", e.toString());
|
|
37
37
|
}
|
|
38
|
-
c.
|
|
38
|
+
c.n6(a, this.e.cl);
|
|
39
39
|
};
|
|
40
40
|
TemplateCellPresenter.$t = markType(TemplateCellPresenter, 'TemplateCellPresenter', CellPresenterBase.$);
|
|
41
41
|
return TemplateCellPresenter;
|
|
@@ -30,9 +30,9 @@ var TemplateHeader = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
30
30
|
_super.prototype.eo.call(this, a, b, c, d);
|
|
31
31
|
var e = a;
|
|
32
32
|
var f = b.cf(a.l);
|
|
33
|
-
e.
|
|
33
|
+
e.ml = f.k4;
|
|
34
34
|
e.n = f.hr;
|
|
35
|
-
e.
|
|
35
|
+
e.mo = f.jb;
|
|
36
36
|
};
|
|
37
37
|
TemplateHeader.prototype.hq = function (a, b) {
|
|
38
38
|
if (this.cellUpdating != null) {
|
|
@@ -16,40 +16,40 @@ var TemplateHeaderCellModel = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
16
16
|
__extends(TemplateHeaderCellModel, _super);
|
|
17
17
|
function TemplateHeaderCellModel() {
|
|
18
18
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
-
_this.
|
|
19
|
+
_this.mn = false;
|
|
20
20
|
return _this;
|
|
21
21
|
}
|
|
22
|
-
Object.defineProperty(TemplateHeaderCellModel.prototype, "
|
|
22
|
+
Object.defineProperty(TemplateHeaderCellModel.prototype, "mo", {
|
|
23
23
|
get: function () {
|
|
24
|
-
return this.
|
|
24
|
+
return this.mn;
|
|
25
25
|
},
|
|
26
26
|
set: function (a) {
|
|
27
|
-
var b = this.
|
|
28
|
-
this.
|
|
29
|
-
if (this.
|
|
30
|
-
this.
|
|
27
|
+
var b = this.mn;
|
|
28
|
+
this.mn = a;
|
|
29
|
+
if (this.mn != b) {
|
|
30
|
+
this.k4("IsFilterUIVisible", TemplateHeaderCellModel.mp, b, this.mn);
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
enumerable: false,
|
|
34
34
|
configurable: true
|
|
35
35
|
});
|
|
36
|
-
TemplateHeaderCellModel.prototype.
|
|
37
|
-
_super.prototype.
|
|
36
|
+
TemplateHeaderCellModel.prototype.ld = function (a, b) {
|
|
37
|
+
_super.prototype.ld.call(this, a, b);
|
|
38
38
|
if (a == "IsFilterUIVisible") {
|
|
39
|
-
this.
|
|
39
|
+
this.mo = b;
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
TemplateHeaderCellModel.prototype.
|
|
42
|
+
TemplateHeaderCellModel.prototype.kp = function (a) {
|
|
43
43
|
switch (a) {
|
|
44
44
|
case "IsFilterUIVisible": return Boolean_$type;
|
|
45
45
|
}
|
|
46
|
-
return _super.prototype.
|
|
46
|
+
return _super.prototype.kp.call(this, a);
|
|
47
47
|
};
|
|
48
|
-
TemplateHeaderCellModel.prototype.
|
|
48
|
+
TemplateHeaderCellModel.prototype.hm = function (a) {
|
|
49
49
|
if (a == "IsFilterUIVisible") {
|
|
50
|
-
return this.
|
|
50
|
+
return this.mo;
|
|
51
51
|
}
|
|
52
|
-
return _super.prototype.
|
|
52
|
+
return _super.prototype.hm.call(this, a);
|
|
53
53
|
};
|
|
54
54
|
TemplateHeaderCellModel.prototype.b = function (a) {
|
|
55
55
|
if (a == null) {
|
|
@@ -57,11 +57,11 @@ var TemplateHeaderCellModel = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
57
57
|
}
|
|
58
58
|
a = _super.prototype.b.call(this, a);
|
|
59
59
|
var b = a;
|
|
60
|
-
b.ae = this.
|
|
60
|
+
b.ae = this.ml;
|
|
61
61
|
return b;
|
|
62
62
|
};
|
|
63
63
|
TemplateHeaderCellModel.$t = markType(TemplateHeaderCellModel, 'TemplateHeaderCellModel', TemplateCellModel.$);
|
|
64
|
-
TemplateHeaderCellModel.
|
|
64
|
+
TemplateHeaderCellModel.mp = CellModel.ft("IsFilterUIVisible");
|
|
65
65
|
return TemplateHeaderCellModel;
|
|
66
66
|
}(TemplateCellModel));
|
|
67
67
|
export { TemplateHeaderCellModel };
|
|
@@ -30,7 +30,7 @@ var TemplateHeaderCellPresenter = /** @class */ /*@__PURE__*/ (function (_super)
|
|
|
30
30
|
_super.prototype.b.call(this, a);
|
|
31
31
|
var b = this.d.actualColumns._inner[a.l.a5];
|
|
32
32
|
var c = b.header;
|
|
33
|
-
if (a.a8(CellModel.fa) || a.a8(CellModel.
|
|
33
|
+
if (a.a8(CellModel.fa) || a.a8(CellModel.hd)) {
|
|
34
34
|
var d = Math.min(1, Math.max(0, a.ct));
|
|
35
35
|
var e = a.cj * (1 - d);
|
|
36
36
|
this.e.cl.element.setRawStyleProperty("opacity", e.toString());
|
|
@@ -6,10 +6,9 @@ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOA
|
|
|
6
6
|
*/
|
|
7
7
|
import { __extends } from "tslib";
|
|
8
8
|
import { CellPresenterBase } from "./CellPresenterBase";
|
|
9
|
-
import { CellModel } from "./CellModel";
|
|
10
9
|
import { TextCellModel } from "./TextCellModel";
|
|
11
|
-
import { markType } from "igniteui-angular-core";
|
|
12
10
|
import { ContentCellModelHelper } from "./ContentCellModelHelper";
|
|
11
|
+
import { markType } from "igniteui-angular-core";
|
|
13
12
|
/**
|
|
14
13
|
* @hidden
|
|
15
14
|
*/
|
|
@@ -29,23 +28,29 @@ var TextCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
29
28
|
_super.prototype.b.call(this, a);
|
|
30
29
|
var b = a;
|
|
31
30
|
if (a.a3) {
|
|
32
|
-
if (a.a8(TextCellModel.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
if (b.hm == null) {
|
|
38
|
-
b.j1 = "";
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
b.j1 = b.hm.toString();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
this.d.cl.setRawText(b.j1);
|
|
31
|
+
if (a.a8(TextCellModel.mj) || a.a8(TextCellModel.hb) || a.a8(TextCellModel.gj)) {
|
|
32
|
+
b.j3 = this.e(b);
|
|
33
|
+
this.d.cl.setRawText(b.j3);
|
|
45
34
|
}
|
|
46
35
|
ContentCellModelHelper.a(this.a.ae, b, this.a.ah, this.d.cl, this.a);
|
|
47
36
|
}
|
|
48
37
|
};
|
|
38
|
+
TextCellPresenter.prototype.e = function (a) {
|
|
39
|
+
if (a.ki != null) {
|
|
40
|
+
return a.ki;
|
|
41
|
+
}
|
|
42
|
+
if (a.ml != null) {
|
|
43
|
+
return a.ml;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
if (a.hn == null) {
|
|
47
|
+
return "";
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
return a.hn.toString();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
49
54
|
TextCellPresenter.$t = markType(TextCellPresenter, 'TextCellPresenter', CellPresenterBase.$);
|
|
50
55
|
return TextCellPresenter;
|
|
51
56
|
}(CellPresenterBase));
|
|
@@ -44,7 +44,7 @@ var TextHeaderCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
44
44
|
var c = 18;
|
|
45
45
|
var d = a.createElement("div");
|
|
46
46
|
d.setAttribute("aria-hidden", "true");
|
|
47
|
-
d.setRawStyleProperty("display", "
|
|
47
|
+
d.setRawStyleProperty("display", "inline-block");
|
|
48
48
|
d.setRawStyleProperty("vertical-align", "middle");
|
|
49
49
|
d.setRawStyleProperty("width", b + "px");
|
|
50
50
|
d.setRawStyleProperty("height", c + "px");
|
|
@@ -71,10 +71,11 @@ var TextHeaderCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
71
71
|
_this.cx = d;
|
|
72
72
|
e = a.getSubRenderer(d);
|
|
73
73
|
_this.cr = new GridSortIndicator();
|
|
74
|
-
_this.cr.
|
|
75
|
-
_this.cr.
|
|
74
|
+
_this.cr.n = false;
|
|
75
|
+
_this.cr.m = false;
|
|
76
|
+
_this.cr.a0(e);
|
|
76
77
|
_this.ah.append(d);
|
|
77
|
-
_this.cr.
|
|
78
|
+
_this.cr.au(g, h);
|
|
78
79
|
var i = _this.cr;
|
|
79
80
|
i.propertyChanged = delegateCombine(i.propertyChanged, runOn(_this, _this.c3));
|
|
80
81
|
var j = _this.cp;
|
|
@@ -161,7 +162,7 @@ var TextHeaderCell = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
161
162
|
TextHeaderCell.prototype.c3 = function (a, b) {
|
|
162
163
|
switch (b.propertyName) {
|
|
163
164
|
case "CurrentOpacity":
|
|
164
|
-
if (this.cs.
|
|
165
|
+
if (this.cs.t > 0) {
|
|
165
166
|
this.cx.setRawStyleProperty("width", "18px");
|
|
166
167
|
if (this.ck == 2) {
|
|
167
168
|
this.cx.setRawStyleProperty("margin", "0 5px 0 0");
|
|
@@ -29,50 +29,50 @@ var TextHeaderCellPresenter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
29
29
|
_super.prototype.b.call(this, a);
|
|
30
30
|
var b = a;
|
|
31
31
|
if (a.a3) {
|
|
32
|
-
if (a.a8(TextCellModel.
|
|
33
|
-
b.
|
|
34
|
-
this.d.cy.setRawText(b.
|
|
32
|
+
if (a.a8(TextCellModel.mj)) {
|
|
33
|
+
b.j3 = b.ml;
|
|
34
|
+
this.d.cy.setRawText(b.j3);
|
|
35
35
|
}
|
|
36
36
|
if (a.a8(CellModel.g4)) {
|
|
37
|
-
var c = this.d.cs.
|
|
37
|
+
var c = this.d.cs.m;
|
|
38
38
|
if (a.bp) {
|
|
39
|
-
this.d.cs.
|
|
39
|
+
this.d.cs.m = false;
|
|
40
40
|
}
|
|
41
41
|
this.d.cs.b = a.n;
|
|
42
42
|
if (a.bp) {
|
|
43
|
-
this.d.cs.
|
|
43
|
+
this.d.cs.m = c;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
if (a.a8(CellModel.g5)) {
|
|
47
|
-
var d = this.d.cs.
|
|
47
|
+
var d = this.d.cs.m;
|
|
48
48
|
if (a.bp) {
|
|
49
|
-
this.d.cs.
|
|
49
|
+
this.d.cs.m = false;
|
|
50
50
|
}
|
|
51
|
-
this.d.cs.
|
|
51
|
+
this.d.cs.a3 = a.me;
|
|
52
52
|
if (a.bp) {
|
|
53
|
-
this.d.cs.
|
|
53
|
+
this.d.cs.m = d;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
if (a.a7("IsColumnOptionsEnabled")) {
|
|
57
|
-
var e = b.
|
|
57
|
+
var e = b.mu;
|
|
58
58
|
if (e) {
|
|
59
59
|
e = this.e();
|
|
60
60
|
}
|
|
61
61
|
this.d.cu = e;
|
|
62
62
|
this.d.cw.setRawStyleProperty("display", e ? "inline-block" : "none");
|
|
63
|
-
this.a.b9(a.
|
|
63
|
+
this.a.b9(a.he, (a.gm + a.go + a.e2 + a.e5));
|
|
64
64
|
}
|
|
65
65
|
if (a.a7("SortIndicatorStyle")) {
|
|
66
|
-
this.d.cs.f = b.
|
|
66
|
+
this.d.cs.f = b.ms;
|
|
67
67
|
}
|
|
68
68
|
if (a.a7("ColumnOptionsIconAlignment")) {
|
|
69
|
-
this.d.cm = b.
|
|
69
|
+
this.d.cm = b.mo;
|
|
70
70
|
}
|
|
71
71
|
if (a.a7("ColumnOptionsIconBehavior")) {
|
|
72
|
-
this.d.co = b.
|
|
72
|
+
this.d.co = b.mq;
|
|
73
73
|
}
|
|
74
74
|
if (a.a7("ColumnOptionsIconColor")) {
|
|
75
|
-
this.d.cq.bw = b.
|
|
75
|
+
this.d.cq.bw = b.m6;
|
|
76
76
|
}
|
|
77
77
|
if (a.a7("Path") || (this.d.cq.n != null && this.d.cq.n.grid == null)) {
|
|
78
78
|
var f = a.e.getColumn();
|