UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

176 lines (175 loc) 5.45 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 { JsonDictionaryItem } from "igniteui-react-core"; import { toNullable, Number_$type, markType } from "igniteui-react-core"; import { List$1 } from "igniteui-react-core"; import { nullableNotEquals } from "igniteui-react-core"; /** * @hidden */ var SaveLayoutFilterInfo = /** @class */ /*@__PURE__*/ (function (_super) { __extends(SaveLayoutFilterInfo, _super); function SaveLayoutFilterInfo() { var _this = _super.call(this) || this; _this.o = null; _this.n = toNullable(Number_$type, null); _this.p = null; _this.m = null; _this.e = null; _this.f = null; _this.h = false; _this.i = false; _this.k = false; _this.l = false; _this.j = false; _this.g = false; _this.o = null; _this.n = toNullable(Number_$type, null); _this.p = null; _this.e = null; _this.f = null; _this.h = false; _this.i = false; _this.k = false; _this.l = false; _this.j = false; _this.g = false; return _this; } SaveLayoutFilterInfo.prototype.q = function (a) { var b = a; if (b.g("ColumnName")) { var c = b.item("ColumnName"); this.o = c.value.toString(); } if (b.g("Operator")) { var d = b.item("Operator"); this.n = toNullable(Number_$type, parseInt(d.value.toString())); } if (b.g("Value")) { var e = b.item("Value"); this.p = e.value.toString(); } if (b.g("FilterArguments")) { var f = b.item("FilterArguments"); var g = f.items.length; if (g > 0) { if (this.m == null) { this.m = new List$1(SaveLayoutFilterInfo.$, 0); } } for (var h = 0; h < g; h++) { var i = new SaveLayoutFilterInfo(); i.q(f.items[h]); this.m.add(i); } } if (b.g("Left")) { var j = b.item("Left"); if (this.e == null) { this.e = new SaveLayoutFilterInfo(); } this.e.q(j); } if (b.g("Right")) { var k = b.item("Right"); if (this.f == null) { this.f = new SaveLayoutFilterInfo(); } this.f.q(k); } if (b.g("IsFunction")) { var l = b.item("IsFunction"); this.h = l.value; } if (b.g("IsLiteral")) { var m = b.item("IsLiteral"); this.i = m.value; } if (b.g("IsOperation")) { var n = b.item("IsOperation"); this.k = n.value; } if (b.g("IsPropertyReference")) { var o = b.item("IsPropertyReference"); this.l = o.value; } if (b.g("IsNull")) { var p = b.item("IsNull"); this.j = p.value; } if (b.g("IsAutoGenerated")) { var q = b.item("IsAutoGenerated"); this.g = q.value; } }; SaveLayoutFilterInfo.prototype.d = function (a) { a.i("{"); a.h(); a.g(); a.i("\"ColumnName\": " + "\"" + this.o + "\""); if (nullableNotEquals(this.n, null)) { a.i(","); a.h(); a.i("\"Operator\": " + this.n.value); } if (this.p != null) { a.i(","); a.h(); a.i("\"Value\": " + "\"" + this.p + "\""); } if (this.m != null) { a.i(","); a.h(); a.i("\"FilterArguments\": ["); for (var b = 0; b < this.m.count; b++) { if (b != 0) { a.i(","); } this.m._inner[b].d(a); } a.i("]"); } if (this.e != null) { a.i(","); a.h(); a.i("\"Left\": "); this.e.d(a); } if (this.f != null) { a.i(","); a.h(); a.i("\"Right\": "); this.f.d(a); } a.i(","); a.h(); a.i("\"IsFunction\": " + this.h); a.i(","); a.h(); a.i("\"IsLiteral\": " + this.i); a.i(","); a.h(); a.i("\"IsOperation\": " + this.k); a.i(","); a.h(); a.i("\"IsPropertyReference\": " + this.l); a.i(","); a.h(); a.i("\"IsNull\": " + this.j); a.i(","); a.h(); a.i("\"IsAutoGenerated\": " + this.g); a.h(); a.e(); a.i("}"); }; SaveLayoutFilterInfo.$t = markType(SaveLayoutFilterInfo, 'SaveLayoutFilterInfo', JsonDictionaryItem.$); return SaveLayoutFilterInfo; }(JsonDictionaryItem)); export { SaveLayoutFilterInfo };