igniteui-react-grids
Version:
Ignite UI React grid components.
202 lines (201 loc) • 6.9 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, enumGetBox, EnumUtil, markType } from "igniteui-react-core";
import { WCNativeHelper } from "igniteui-react";
import { FilteringExpressionsTree } from "./FilteringExpressionsTree";
import { SortingDirection_$type } from "./SortingDirection";
import { GridColumnDataType_$type } from "./GridColumnDataType";
/**
* @hidden
*/
var PivotDimension = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PivotDimension, _super);
function PivotDimension() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.f = new WCNativeHelper();
_this.l = null;
_this.memberFunction = null;
return _this;
}
Object.defineProperty(PivotDimension.prototype, "g", {
get: function () {
return this.f;
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotDimension.prototype, "nativeElement", {
get: function () {
return this.l;
},
set: function (a) {
this.l = a;
this.f.o = this.l;
},
enumerable: false,
configurable: true
});
PivotDimension.prototype.setNativeElement = function (a) {
this.nativeElement = a;
};
Object.defineProperty(PivotDimension.prototype, "d", {
get: function () {
var ret_ = this.g.m("childLevel", function (a) { return new PivotDimension(); });
return ret_;
},
set: function (a) {
var value_ = a;
this.g.w("childLevel", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotDimension.prototype, "o", {
get: function () {
var ret_ = this.g.n("memberName");
return ret_;
},
set: function (a) {
var value_ = a;
this.g.w("memberName", value_);
},
enumerable: false,
configurable: true
});
PivotDimension.prototype.memberFunctionChanged = function () {
if (this.memberFunction != null) {
var value_ = this.memberFunction;
this.g.w("memberFunction", value_);
}
else {
var value_ = null;
this.g.w("memberFunction", value_);
}
};
Object.defineProperty(PivotDimension.prototype, "n", {
get: function () {
var ret_ = this.g.n("displayName");
return ret_;
},
set: function (a) {
var value_ = a;
this.g.w("displayName", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotDimension.prototype, "h", {
get: function () {
var ret_ = this.g.n("enabled");
return ret_;
},
set: function (a) {
var value_ = a;
this.g.w("enabled", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotDimension.prototype, "a", {
get: function () {
var ret_ = this.g.m("filter", function (a) { return new FilteringExpressionsTree(); });
return ret_;
},
set: function (a) {
var value_ = a;
this.g.w("filter", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotDimension.prototype, "j", {
get: function () {
var ret_ = this.g.n("sortable");
return ret_;
},
set: function (a) {
var value_ = a;
this.g.w("sortable", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotDimension.prototype, "e", {
get: function () {
var ret_ = this.g.n("sortDirection");
if ((ret_ === undefined && this.___rawMode)) {
return undefined;
}
ret_ = enumGetBox(SortingDirection_$type, EnumUtil.getEnumValue(SortingDirection_$type, this.g.f(SortingDirection_$type, ret_)));
return EnumUtil.getEnumValue(SortingDirection_$type, ret_);
},
set: function (a) {
var value_ = enumGetBox(SortingDirection_$type, a);
value_ = this.g.f(SortingDirection_$type, value_);
this.g.w("sortDirection", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotDimension.prototype, "b", {
get: function () {
var ret_ = this.g.n("dataType");
if ((ret_ === undefined && this.___rawMode)) {
return undefined;
}
ret_ = enumGetBox(GridColumnDataType_$type, EnumUtil.getEnumValue(GridColumnDataType_$type, this.g.f(GridColumnDataType_$type, ret_)));
return EnumUtil.getEnumValue(GridColumnDataType_$type, ret_);
},
set: function (a) {
var value_ = enumGetBox(GridColumnDataType_$type, a);
value_ = WCNativeHelper.camel(value_.toString());
this.g.w("dataType", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotDimension.prototype, "p", {
get: function () {
var ret_ = this.g.n("width");
return ret_;
},
set: function (a) {
var value_ = a;
this.g.w("width", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotDimension.prototype, "k", {
get: function () {
var ret_ = this.g.n("level");
return ret_;
},
set: function (a) {
var value_ = a;
this.g.w("level", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotDimension.prototype, "i", {
get: function () {
var ret_ = this.g.n("horizontalSummary");
return ret_;
},
set: function (a) {
var value_ = a;
this.g.w("horizontalSummary", value_);
},
enumerable: false,
configurable: true
});
PivotDimension.$t = markType(PivotDimension, 'PivotDimension');
return PivotDimension;
}(Base));
export { PivotDimension };