UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

162 lines (161 loc) 4.92 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 { Base, markType, enumGetBox, EnumUtil } from "igniteui-react-core"; import { WCNativeHelper } from "igniteui-react"; import { PivotDimension } from "./PivotDimension"; import { PivotAggregator } from "./PivotAggregator"; import { GridColumnDataType_$type } from "./GridColumnDataType"; /** * @hidden */ export let PivotGridColumn = /*@__PURE__*/ (() => { class PivotGridColumn extends Base { constructor() { super(...arguments); this.c = new WCNativeHelper(); this.e = null; } get d() { return this.c; } get nativeElement() { return this.e; } set nativeElement(a) { this.e = a; this.c.o = this.e; } setNativeElement(a) { this.nativeElement = a; } get g() { let ret_ = this.d.n("field"); return ret_; } set g(a) { let value_ = a; this.d.w("field", value_); } get a() { let ret_ = this.d.m("dimensions", (a) => new PivotDimension()); return ret_; } set a(a) { let value_ = a; this.d.w("dimensions", value_); } get b() { let ret_ = this.d.m("value", (a) => new PivotValue()); return ret_; } set b(a) { let value_ = a; this.d.w("value", value_); } } PivotGridColumn.$t = /*@__PURE__*/ markType(PivotGridColumn, 'PivotGridColumn'); return PivotGridColumn; })(); /** * @hidden */ export let PivotValue = /*@__PURE__*/ (() => { class PivotValue extends Base { constructor() { super(...arguments); this.e = new WCNativeHelper(); this.h = null; this.formatter = null; } get f() { return this.e; } get nativeElement() { return this.h; } set nativeElement(a) { this.h = a; this.e.o = this.h; } setNativeElement(a) { this.nativeElement = a; } get l() { let ret_ = this.f.n("member"); return ret_; } set l(a) { let value_ = a; this.f.w("member", value_); } get k() { let ret_ = this.f.n("displayName"); return ret_; } set k(a) { let value_ = a; this.f.w("displayName", value_); } get c() { let ret_ = this.f.m("aggregate", (a) => new PivotAggregator()); return ret_; } set c(a) { let value_ = a; this.f.w("aggregate", value_); } get a() { let ret_ = this.f.m("aggregateList", (a) => new PivotAggregator()); return ret_; } set a(a) { let value_ = a; this.f.w("aggregateList", value_); } get g() { let ret_ = this.f.n("enabled"); return ret_; } set g(a) { let value_ = a; this.f.w("enabled", value_); } get j() { let ret_ = this.f.n("styles"); return ret_; } set j(a) { let value_ = a; this.f.w("styles", value_); } get b() { let ret_ = this.f.n("dataType"); if ((ret_ === undefined && this.___rawMode)) { return undefined; } ret_ = enumGetBox(GridColumnDataType_$type, EnumUtil.getEnumValue(GridColumnDataType_$type, this.f.f(GridColumnDataType_$type, ret_))); return EnumUtil.getEnumValue(GridColumnDataType_$type, ret_); } set b(a) { let value_ = enumGetBox(GridColumnDataType_$type, a); value_ = WCNativeHelper.camel(value_.toString()); this.f.w("dataType", value_); } formatterChanged() { if (this.formatter != null) { let value_ = this.formatter; this.f.w("formatter", value_); } else { let value_ = null; this.f.w("formatter", value_); } } } PivotValue.$t = /*@__PURE__*/ markType(PivotValue, 'PivotValue'); return PivotValue; })();