igniteui-react-grids
Version:
Ignite UI React grid components.
221 lines (220 loc) • 6.33 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 { 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
*/
export let ColumnSummaryDescription = /*@__PURE__*/ (() => {
class ColumnSummaryDescription extends Base {
constructor(a, ..._rest) {
super();
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:
{
let c = _rest[0];
this.ah = c;
this.i = 4;
}
break;
case 2:
{
let c = _rest[0];
let d = _rest[1];
this.ah = c;
this.i = d;
}
break;
}
}
get ah() {
return this.ac;
}
set ah(a) {
this.ac = a;
}
get i() {
return this.h;
}
set i(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;
}
}
get l() {
return this.k;
}
set l(a) {
this.k = a;
}
get ae() {
return this.z;
}
set ae(a) {
this.z = a;
}
get ag() {
return this.ab;
}
set ag(a) {
this.ab = a;
}
get ai() {
return this.ad;
}
set ai(a) {
this.ad = a;
this.aj();
}
get t() {
return this.q;
}
set t(a) {
this.q = a;
}
get d() {
return this.b;
}
set d(a) {
this.b = a;
this.aj();
}
get af() {
return this.aa;
}
set af(a) {
this.aa = a;
this.aj();
}
get c() {
return this.a;
}
set c(a) {
this.a = a;
this.aj();
}
aj() {
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;
}
}
get y() {
return this.x;
}
set y(a) {
this.x = a;
}
get w() {
return this.u;
}
set w(a) {
this.u = a;
}
equals(a) {
let b = a;
if (b == null) {
return super.equals(a);
}
return b.ah == this.ah && b.i == this.i;
}
getHashCode() {
return Base.getHashCodeStatic(this.ah) * 17 + this.i;
}
o(a, b, c) {
let d = ((() => {
let $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;
}
get n() {
return this.m;
}
set n(a) {
let b = this.m;
if (b != null) {
b.provideCalculator = delegateRemove(b.provideCalculator, runOn(this, this.ak));
}
this.m = a;
if (this.m != null) {
let c = this.m;
c.provideCalculator = delegateCombine(c.provideCalculator, runOn(this, this.ak));
}
}
ak(a, b) {
if (this.provideCalculator != null) {
this.provideCalculator(this, b);
this.l = b.a;
}
}
}
ColumnSummaryDescription.$t = /*@__PURE__*/ markType(ColumnSummaryDescription, 'ColumnSummaryDescription');
return ColumnSummaryDescription;
})();