igniteui-react-grids
Version:
Ignite UI React grid components.
52 lines (51 loc) • 2.1 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 { JsonDictionaryItem } from "igniteui-react-core";
import { toNullable, markType } from "igniteui-react-core";
import { ListSortDirection_$type } from "igniteui-react-core";
import { nullableNotEquals, unwrapNullable, nullableConcat } from "igniteui-react-core";
/**
* @hidden
*/
export let SaveLayoutGroupInfo = /*@__PURE__*/ (() => {
class SaveLayoutGroupInfo extends JsonDictionaryItem {
g(a) {
let b = a;
if (b.g("ColumnName")) {
let c = b.item("ColumnName");
this.f = c.value.toString();
}
if (b.g("GroupSortDirection")) {
let d = b.item("GroupSortDirection");
this.e = toNullable(ListSortDirection_$type, parseInt(d.value.toString()));
}
}
d(a) {
a.i("{");
a.h();
a.g();
a.i("\"ColumnName\": " + "\"" + this.f + "\"");
if (nullableNotEquals(this.e, null)) {
a.i(",");
a.h();
a.i(nullableConcat("\"GroupSortDirection\" : ", unwrapNullable(this.e)));
}
a.h();
a.e();
a.i("}");
}
constructor() {
super();
this.f = null;
this.e = toNullable(ListSortDirection_$type, null);
this.f = null;
this.e = toNullable(ListSortDirection_$type, null);
}
}
SaveLayoutGroupInfo.$t = /*@__PURE__*/ markType(SaveLayoutGroupInfo, 'SaveLayoutGroupInfo', JsonDictionaryItem.$);
return SaveLayoutGroupInfo;
})();