igniteui-react-grids
Version:
Ignite UI React grid components.
106 lines (105 loc) • 4.08 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 { PivotRowLayoutType_$type } from "./PivotRowLayoutType";
import { PivotSummaryPosition_$type } from "./PivotSummaryPosition";
/**
* @hidden
*/
var PivotUISettings = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PivotUISettings, _super);
function PivotUISettings() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.c = new WCNativeHelper();
_this.g = null;
return _this;
}
Object.defineProperty(PivotUISettings.prototype, "d", {
get: function () {
return this.c;
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotUISettings.prototype, "nativeElement", {
get: function () {
return this.g;
},
set: function (a) {
this.g = a;
this.c.o = this.g;
},
enumerable: false,
configurable: true
});
PivotUISettings.prototype.setNativeElement = function (a) {
this.nativeElement = a;
};
Object.defineProperty(PivotUISettings.prototype, "e", {
get: function () {
var ret_ = this.d.n("showConfiguration");
return ret_;
},
set: function (a) {
var value_ = a;
this.d.w("showConfiguration", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotUISettings.prototype, "f", {
get: function () {
var ret_ = this.d.n("showRowHeaders");
return ret_;
},
set: function (a) {
var value_ = a;
this.d.w("showRowHeaders", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotUISettings.prototype, "a", {
get: function () {
var ret_ = this.d.n("rowLayout");
if ((ret_ === undefined && this.___rawMode)) {
return undefined;
}
ret_ = enumGetBox(PivotRowLayoutType_$type, EnumUtil.getEnumValue(PivotRowLayoutType_$type, this.d.f(PivotRowLayoutType_$type, ret_)));
return EnumUtil.getEnumValue(PivotRowLayoutType_$type, ret_);
},
set: function (a) {
var value_ = enumGetBox(PivotRowLayoutType_$type, a);
value_ = WCNativeHelper.camel(value_.toString());
this.d.w("rowLayout", value_);
},
enumerable: false,
configurable: true
});
Object.defineProperty(PivotUISettings.prototype, "b", {
get: function () {
var ret_ = this.d.n("horizontalSummariesPosition");
if ((ret_ === undefined && this.___rawMode)) {
return undefined;
}
ret_ = enumGetBox(PivotSummaryPosition_$type, EnumUtil.getEnumValue(PivotSummaryPosition_$type, this.d.f(PivotSummaryPosition_$type, ret_)));
return EnumUtil.getEnumValue(PivotSummaryPosition_$type, ret_);
},
set: function (a) {
var value_ = enumGetBox(PivotSummaryPosition_$type, a);
value_ = WCNativeHelper.camel(value_.toString());
this.d.w("horizontalSummariesPosition", value_);
},
enumerable: false,
configurable: true
});
PivotUISettings.$t = markType(PivotUISettings, 'PivotUISettings');
return PivotUISettings;
}(Base));
export { PivotUISettings };