igniteui-react-grids
Version:
Ignite UI React grid components.
214 lines (213 loc) • 8.1 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 { GridBaseDirective } from "./GridBaseDirective";
import { SortingExpression } from "./SortingExpression";
import { typeGetValue, markType } from "igniteui-react-core";
import { PivotGridValueTemplateContext } from "./PivotGridValueTemplateContext";
import { ColumnTemplateContext } from "./ColumnTemplateContext";
import { PivotConfiguration } from "./PivotConfiguration";
import { PivotUISettings } from "./PivotUISettings";
import { PivotDimension } from "./PivotDimension";
import { DimensionsChangeEventArgs } from "./DimensionsChangeEventArgs";
import { PivotConfigurationChangedEventArgs } from "./PivotConfigurationChangedEventArgs";
import { PivotDimensionEventArgs } from "./PivotDimensionEventArgs";
import { PivotValueEventArgs } from "./PivotValueEventArgs";
import { SortingExpressionEventArgs } from "./SortingExpressionEventArgs";
import { ValuesChangeEventArgs } from "./ValuesChangeEventArgs";
import { PivotDimensionType_$type } from "./PivotDimensionType";
import { SortingDirection_$type } from "./SortingDirection";
/**
* @hidden
*/
export let PivotGrid = /*@__PURE__*/ (() => {
class PivotGrid extends GridBaseDirective {
constructor() {
super(...arguments);
this.hg = null;
this.hf = null;
this.he = null;
this.dimensionsChange = null;
this.pivotConfigurationChange = null;
this.dimensionInit = null;
this.valueInit = null;
this.dimensionsSortingExpressionsChange = null;
this.valuesChange = null;
}
get g1() {
let ret_ = this.b9.m("dimensionsSortingExpressions", (a) => new SortingExpression());
return ret_;
}
get hj() {
return this.hg;
}
set hj(a) {
this.hg = a;
this.b9.t("valueChipTemplate", (b) => new PivotGridValueTemplateContext(), this.hg);
}
get hi() {
return this.hf;
}
set hi(a) {
this.hf = a;
this.b9.t("rowDimensionHeaderTemplate", (b) => new ColumnTemplateContext(), this.hf);
}
get g3() {
let ret_ = this.b9.m("pivotConfiguration", (a) => new PivotConfiguration());
return ret_;
}
set g3(a) {
let value_ = a;
this.b9.w("pivotConfiguration", value_);
}
get ha() {
let ret_ = this.b9.n("autoGenerateConfig");
return ret_;
}
set ha(a) {
let value_ = a;
this.b9.w("autoGenerateConfig", value_);
}
get g6() {
let ret_ = this.b9.m("pivotUI", (a) => new PivotUISettings());
return ret_;
}
set g6(a) {
let value_ = a;
this.b9.w("pivotUI", value_);
}
get hc() {
let ret_ = this.b9.n("superCompactMode");
return ret_;
}
set hc(a) {
let value_ = a;
this.b9.w("superCompactMode", value_);
}
get hb() {
let ret_ = this.b9.n("defaultExpandState");
return ret_;
}
set hb(a) {
let value_ = a;
this.b9.w("defaultExpandState", value_);
}
get g0() {
let ret_ = this.b9.m("allDimensions", (a) => new PivotDimension());
return ret_;
}
get hd() {
let ret_ = this.b9.n("data");
return ret_;
}
set hd(a) {
let value_ = a;
this.b9.w("data", value_);
}
get hh() {
return this.he;
}
set hh(a) {
this.he = a;
this.b9.t("emptyPivotGridTemplate", (b) => b, this.he);
}
dimensionsChangeChanged() {
if (this.dimensionsChange != null) {
this.b9.s("dimensionsChange", (a) => this.dimensionsChange(this, DimensionsChangeEventArgs.b(a)), false);
}
else {
this.b9.v("dimensionsChange");
}
}
pivotConfigurationChangeChanged() {
if (this.pivotConfigurationChange != null) {
this.b9.s("pivotConfigurationChange", (a) => this.pivotConfigurationChange(this, PivotConfigurationChangedEventArgs.a(a)), false);
}
else {
this.b9.v("pivotConfigurationChange");
}
}
dimensionInitChanged() {
if (this.dimensionInit != null) {
this.b9.s("dimensionInit", (a) => this.dimensionInit(this, PivotDimensionEventArgs.b(a)), false);
}
else {
this.b9.v("dimensionInit");
}
}
valueInitChanged() {
if (this.valueInit != null) {
this.b9.s("valueInit", (a) => this.valueInit(this, PivotValueEventArgs.b(a)), false);
}
else {
this.b9.v("valueInit");
}
}
dimensionsSortingExpressionsChangeChanged() {
if (this.dimensionsSortingExpressionsChange != null) {
this.b9.s("dimensionsSortingExpressionsChange", (a) => this.dimensionsSortingExpressionsChange(this, SortingExpressionEventArgs.b(a)), false);
}
else {
this.b9.v("dimensionsSortingExpressionsChange");
}
}
valuesChangeChanged() {
if (this.valuesChange != null) {
this.b9.s("valuesChange", (a) => this.valuesChange(this, ValuesChangeEventArgs.b(a)), false);
}
else {
this.b9.v("valuesChange");
}
}
hu(a = false) {
this.nativeElement.notifyDimensionChange(this.b9.i(a));
}
hz(a) {
this.nativeElement.toggleColumn(this.b9.i(a));
}
hp(a) {
this.nativeElement.getColumnGroupExpandState(this.b9.i(a));
}
h1(a, b) {
this.nativeElement.toggleRowGroup(this.b9.i(a), this.b9.i(b));
}
hk(a) {
this.nativeElement.autoSizeRowDimension(this.b9.i(a));
}
hq(a, b, c = -1) {
this.nativeElement.insertDimensionAt(this.b9.i(a), this.b9.i(typeGetValue(this.b9.f(PivotDimensionType_$type, b))), this.b9.i(typeGetValue(this.b9.f(PivotDimensionType_$type, c))));
}
hs(a, b, c = -1) {
this.nativeElement.moveDimension(this.b9.i(a), this.b9.i(typeGetValue(this.b9.f(PivotDimensionType_$type, b))), this.b9.i(typeGetValue(this.b9.f(PivotDimensionType_$type, c))));
}
hw(a) {
this.nativeElement.removeDimension(this.b9.i(a));
}
h0(a) {
this.nativeElement.toggleDimension(this.b9.i(a));
}
hr(a, b = -1) {
this.nativeElement.insertValueAt(this.b9.i(a), this.b9.i(b));
}
ht(a, b = -1) {
this.nativeElement.moveValue(this.b9.i(a), this.b9.i(b));
}
hx(a) {
this.nativeElement.removeValue(this.b9.i(a));
}
h2(a) {
this.nativeElement.toggleValue(this.b9.i(a));
}
hy(a, b) {
this.nativeElement.sortDimension(this.b9.i(a), this.b9.i(typeGetValue(this.b9.f(SortingDirection_$type, b))));
}
ho(a, b, c) {
this.nativeElement.filterDimension(this.b9.i(a), this.b9.i(b), this.b9.i(c));
}
}
PivotGrid.$t = /*@__PURE__*/ markType(PivotGrid, 'PivotGrid', GridBaseDirective.$);
return PivotGrid;
})();