igniteui-react-grids
Version:
Ignite UI React grid components.
280 lines (279 loc) • 8.52 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends } from "tslib";
import { Base, runOn, delegateRemove, delegateCombine, markType } from "igniteui-react-core";
import { MinSummaryCalculator } from "igniteui-react-core";
import { MaxSummaryCalculator } from "igniteui-react-core";
import { SumSummaryCalculator } from "igniteui-react-core";
import { AverageSummaryCalculator } from "igniteui-react-core";
import { CountSummaryCalculator } from "igniteui-react-core";
import { BindingFormatter } from "igniteui-react-core";
import { FormatSummaryTextEventArgs } from "./FormatSummaryTextEventArgs";
/**
* @hidden
*/
var ColumnSummaryDescription = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ColumnSummaryDescription, _super);
function ColumnSummaryDescription(a) {
var _rest = [];
for (var _i = 1; _i < arguments.length; _i++) {
_rest[_i - 1] = arguments[_i];
}
var _this = _super.call(this) || this;
_this.s = false;
_this.g = 0;
_this.ac = null;
_this.h = 0;
_this.k = null;
_this.z = null;
_this.ab = null;
_this.ad = null;
_this.q = true;
_this.b = null;
_this.aa = null;
_this.a = null;
_this.f = null;
_this.e = null;
_this.x = null;
_this.u = 10;
_this.formatText = null;
_this.provideCalculator = null;
_this.m = null;
a = (a == void 0) ? 0 : a;
switch (a) {
case 0: break;
case 1:
{
var c = _rest[0];
_this.ah = c;
_this.i = 4;
}
break;
case 2:
{
var c = _rest[0];
var d = _rest[1];
_this.ah = c;
_this.i = d;
}
break;
}
return _this;
}
Object.defineProperty(ColumnSummaryDescription.prototype, "ah", {
get: function () {
return this.ac;
},
set: function (a) {
this.ac = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ColumnSummaryDescription.prototype, "i", {
get: function () {
return this.h;
},
set: function (a) {
this.h = a;
switch (this.h) {
case 0:
this.l = new MinSummaryCalculator();
break;
case 1:
this.l = new MaxSummaryCalculator();
break;
case 2:
this.l = new SumSummaryCalculator();
break;
case 3:
this.l = new AverageSummaryCalculator();
break;
case 4:
this.l = new CountSummaryCalculator();
break;
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(ColumnSummaryDescription.prototype, "l", {
get: function () {
return this.k;
},
set: function (a) {
this.k = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ColumnSummaryDescription.prototype, "ae", {
get: function () {
return this.z;
},
set: function (a) {
this.z = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ColumnSummaryDescription.prototype, "ag", {
get: function () {
return this.ab;
},
set: function (a) {
this.ab = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ColumnSummaryDescription.prototype, "ai", {
get: function () {
return this.ad;
},
set: function (a) {
this.ad = a;
this.aj();
},
enumerable: false,
configurable: true
});
Object.defineProperty(ColumnSummaryDescription.prototype, "t", {
get: function () {
return this.q;
},
set: function (a) {
this.q = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ColumnSummaryDescription.prototype, "d", {
get: function () {
return this.b;
},
set: function (a) {
this.b = a;
this.aj();
},
enumerable: false,
configurable: true
});
Object.defineProperty(ColumnSummaryDescription.prototype, "af", {
get: function () {
return this.aa;
},
set: function (a) {
this.aa = a;
this.aj();
},
enumerable: false,
configurable: true
});
Object.defineProperty(ColumnSummaryDescription.prototype, "c", {
get: function () {
return this.a;
},
set: function (a) {
this.a = a;
this.aj();
},
enumerable: false,
configurable: true
});
ColumnSummaryDescription.prototype.aj = function () {
if (this.ai != null) {
this.f = new BindingFormatter();
this.f.j = this.ai;
this.f.d = this.d;
}
else {
this.f = null;
}
if (this.af != null) {
this.e = new BindingFormatter();
this.e.j = this.af;
this.e.d = this.c;
}
else {
this.e = null;
}
};
Object.defineProperty(ColumnSummaryDescription.prototype, "y", {
get: function () {
return this.x;
},
set: function (a) {
this.x = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ColumnSummaryDescription.prototype, "w", {
get: function () {
return this.u;
},
set: function (a) {
this.u = a;
},
enumerable: false,
configurable: true
});
ColumnSummaryDescription.prototype.equals = function (a) {
var b = a;
if (b == null) {
return _super.prototype.equals.call(this, a);
}
return b.ah == this.ah && b.i == this.i;
};
ColumnSummaryDescription.prototype.getHashCode = function () {
return Base.getHashCodeStatic(this.ah) * 17 + this.i;
};
ColumnSummaryDescription.prototype.o = function (a, b, c) {
var _this = this;
var d = ((function () {
var $ret = new FormatSummaryTextEventArgs();
$ret.c = _this.ah;
$ret.b = _this.ag;
$ret.a = a;
$ret.d = b;
$ret.e = c;
return $ret;
})());
if (this.formatText != null) {
this.formatText(this, d);
}
return d;
};
Object.defineProperty(ColumnSummaryDescription.prototype, "n", {
get: function () {
return this.m;
},
set: function (a) {
var b = this.m;
if (b != null) {
b.provideCalculator = delegateRemove(b.provideCalculator, runOn(this, this.ak));
}
this.m = a;
if (this.m != null) {
var c = this.m;
c.provideCalculator = delegateCombine(c.provideCalculator, runOn(this, this.ak));
}
},
enumerable: false,
configurable: true
});
ColumnSummaryDescription.prototype.ak = function (a, b) {
if (this.provideCalculator != null) {
this.provideCalculator(this, b);
this.l = b.a;
}
};
ColumnSummaryDescription.$t = markType(ColumnSummaryDescription, 'ColumnSummaryDescription');
return ColumnSummaryDescription;
}(Base));
export { ColumnSummaryDescription };