UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

281 lines (280 loc) 10.7 kB
/* 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 { 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 */ var PivotGrid = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PivotGrid, _super); function PivotGrid() { var _this = _super !== null && _super.apply(this, arguments) || this; _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; return _this; } Object.defineProperty(PivotGrid.prototype, "g1", { get: function () { var ret_ = this.b9.m("dimensionsSortingExpressions", function (a) { return new SortingExpression(); }); return ret_; }, enumerable: false, configurable: true }); Object.defineProperty(PivotGrid.prototype, "hj", { get: function () { return this.hg; }, set: function (a) { this.hg = a; this.b9.t("valueChipTemplate", function (b) { return new PivotGridValueTemplateContext(); }, this.hg); }, enumerable: false, configurable: true }); Object.defineProperty(PivotGrid.prototype, "hi", { get: function () { return this.hf; }, set: function (a) { this.hf = a; this.b9.t("rowDimensionHeaderTemplate", function (b) { return new ColumnTemplateContext(); }, this.hf); }, enumerable: false, configurable: true }); Object.defineProperty(PivotGrid.prototype, "g3", { get: function () { var ret_ = this.b9.m("pivotConfiguration", function (a) { return new PivotConfiguration(); }); return ret_; }, set: function (a) { var value_ = a; this.b9.w("pivotConfiguration", value_); }, enumerable: false, configurable: true }); Object.defineProperty(PivotGrid.prototype, "ha", { get: function () { var ret_ = this.b9.n("autoGenerateConfig"); return ret_; }, set: function (a) { var value_ = a; this.b9.w("autoGenerateConfig", value_); }, enumerable: false, configurable: true }); Object.defineProperty(PivotGrid.prototype, "g6", { get: function () { var ret_ = this.b9.m("pivotUI", function (a) { return new PivotUISettings(); }); return ret_; }, set: function (a) { var value_ = a; this.b9.w("pivotUI", value_); }, enumerable: false, configurable: true }); Object.defineProperty(PivotGrid.prototype, "hc", { get: function () { var ret_ = this.b9.n("superCompactMode"); return ret_; }, set: function (a) { var value_ = a; this.b9.w("superCompactMode", value_); }, enumerable: false, configurable: true }); Object.defineProperty(PivotGrid.prototype, "hb", { get: function () { var ret_ = this.b9.n("defaultExpandState"); return ret_; }, set: function (a) { var value_ = a; this.b9.w("defaultExpandState", value_); }, enumerable: false, configurable: true }); Object.defineProperty(PivotGrid.prototype, "g0", { get: function () { var ret_ = this.b9.m("allDimensions", function (a) { return new PivotDimension(); }); return ret_; }, enumerable: false, configurable: true }); Object.defineProperty(PivotGrid.prototype, "hd", { get: function () { var ret_ = this.b9.n("data"); return ret_; }, set: function (a) { var value_ = a; this.b9.w("data", value_); }, enumerable: false, configurable: true }); Object.defineProperty(PivotGrid.prototype, "hh", { get: function () { return this.he; }, set: function (a) { this.he = a; this.b9.t("emptyPivotGridTemplate", function (b) { return b; }, this.he); }, enumerable: false, configurable: true }); PivotGrid.prototype.dimensionsChangeChanged = function () { var _this = this; if (this.dimensionsChange != null) { this.b9.s("dimensionsChange", function (a) { return _this.dimensionsChange(_this, DimensionsChangeEventArgs.b(a)); }, false); } else { this.b9.v("dimensionsChange"); } }; PivotGrid.prototype.pivotConfigurationChangeChanged = function () { var _this = this; if (this.pivotConfigurationChange != null) { this.b9.s("pivotConfigurationChange", function (a) { return _this.pivotConfigurationChange(_this, PivotConfigurationChangedEventArgs.a(a)); }, false); } else { this.b9.v("pivotConfigurationChange"); } }; PivotGrid.prototype.dimensionInitChanged = function () { var _this = this; if (this.dimensionInit != null) { this.b9.s("dimensionInit", function (a) { return _this.dimensionInit(_this, PivotDimensionEventArgs.b(a)); }, false); } else { this.b9.v("dimensionInit"); } }; PivotGrid.prototype.valueInitChanged = function () { var _this = this; if (this.valueInit != null) { this.b9.s("valueInit", function (a) { return _this.valueInit(_this, PivotValueEventArgs.b(a)); }, false); } else { this.b9.v("valueInit"); } }; PivotGrid.prototype.dimensionsSortingExpressionsChangeChanged = function () { var _this = this; if (this.dimensionsSortingExpressionsChange != null) { this.b9.s("dimensionsSortingExpressionsChange", function (a) { return _this.dimensionsSortingExpressionsChange(_this, SortingExpressionEventArgs.b(a)); }, false); } else { this.b9.v("dimensionsSortingExpressionsChange"); } }; PivotGrid.prototype.valuesChangeChanged = function () { var _this = this; if (this.valuesChange != null) { this.b9.s("valuesChange", function (a) { return _this.valuesChange(_this, ValuesChangeEventArgs.b(a)); }, false); } else { this.b9.v("valuesChange"); } }; PivotGrid.prototype.hu = function (a) { if (a === void 0) { a = false; } this.nativeElement.notifyDimensionChange(this.b9.i(a)); }; PivotGrid.prototype.hz = function (a) { this.nativeElement.toggleColumn(this.b9.i(a)); }; PivotGrid.prototype.hp = function (a) { this.nativeElement.getColumnGroupExpandState(this.b9.i(a)); }; PivotGrid.prototype.h1 = function (a, b) { this.nativeElement.toggleRowGroup(this.b9.i(a), this.b9.i(b)); }; PivotGrid.prototype.hk = function (a) { this.nativeElement.autoSizeRowDimension(this.b9.i(a)); }; PivotGrid.prototype.hq = function (a, b, c) { if (c === void 0) { 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)))); }; PivotGrid.prototype.hs = function (a, b, c) { if (c === void 0) { 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)))); }; PivotGrid.prototype.hw = function (a) { this.nativeElement.removeDimension(this.b9.i(a)); }; PivotGrid.prototype.h0 = function (a) { this.nativeElement.toggleDimension(this.b9.i(a)); }; PivotGrid.prototype.hr = function (a, b) { if (b === void 0) { b = -1; } this.nativeElement.insertValueAt(this.b9.i(a), this.b9.i(b)); }; PivotGrid.prototype.ht = function (a, b) { if (b === void 0) { b = -1; } this.nativeElement.moveValue(this.b9.i(a), this.b9.i(b)); }; PivotGrid.prototype.hx = function (a) { this.nativeElement.removeValue(this.b9.i(a)); }; PivotGrid.prototype.h2 = function (a) { this.nativeElement.toggleValue(this.b9.i(a)); }; PivotGrid.prototype.hy = function (a, b) { this.nativeElement.sortDimension(this.b9.i(a), this.b9.i(typeGetValue(this.b9.f(SortingDirection_$type, b)))); }; PivotGrid.prototype.ho = function (a, b, c) { this.nativeElement.filterDimension(this.b9.i(a), this.b9.i(b), this.b9.i(c)); }; PivotGrid.$t = markType(PivotGrid, 'PivotGrid', GridBaseDirective.$); return PivotGrid; }(GridBaseDirective)); export { PivotGrid };