igniteui-react-grids
Version:
Ignite UI React grid components.
144 lines (143 loc) • 4.6 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 { GridBaseDirective } from "./GridBaseDirective";
import { markType } from "igniteui-react-core";
import { TreeGridRecord } from "./TreeGridRecord";
import { CellType } from "./CellType";
import { RowType } from "./RowType";
/**
* @hidden
*/
export let TreeGrid = /*@__PURE__*/ (() => {
class TreeGrid extends GridBaseDirective {
constructor() {
super(...arguments);
this.hd = null;
}
get hf() {
let ret_ = this.b9.n("childDataKey");
return ret_;
}
set hf(a) {
let value_ = a;
this.b9.w("childDataKey", value_);
}
get hg() {
let ret_ = this.b9.n("foreignKey");
return ret_;
}
set hg(a) {
let value_ = a;
this.b9.w("foreignKey", value_);
}
get hh() {
let ret_ = this.b9.n("hasChildrenKey");
return ret_;
}
set hh(a) {
let value_ = a;
this.b9.w("hasChildrenKey", value_);
}
get g9() {
let ret_ = this.b9.n("cascadeOnDelete");
return ret_;
}
set g9(a) {
let value_ = a;
this.b9.w("cascadeOnDelete", value_);
}
get hi() {
let ret_ = this.b9.n("id");
return ret_;
}
set hi(a) {
let value_ = a;
this.b9.w("id", value_);
}
get g3() {
let ret_ = this.b9.m("rootRecords", (a) => new TreeGridRecord());
return ret_;
}
set g3(a) {
let value_ = a;
this.b9.w("rootRecords", value_);
}
get g2() {
let ret_ = this.b9.m("processedRootRecords", (a) => new TreeGridRecord());
return ret_;
}
set g2(a) {
let value_ = a;
this.b9.w("processedRootRecords", value_);
}
get g0() {
let ret_ = this.b9.n("data");
return ret_;
}
set g0(a) {
let value_ = a;
this.b9.w("data", value_);
}
get hc() {
let ret_ = this.b9.n("expansionDepth");
return ret_;
}
set hc(a) {
let value_ = a;
this.b9.w("expansionDepth", value_);
}
get he() {
return this.hd;
}
set he(a) {
this.hd = a;
this.b9.t("rowLoadingIndicatorTemplate", (b) => b, this.hd);
}
get g4() {
let ret_ = this.b9.m("selectedCells", (a) => new CellType());
return ret_;
}
hn(a) {
this.nativeElement.getDefaultExpandState(this.b9.i(a));
}
hm() {
this.nativeElement.expandAll();
}
hl() {
this.nativeElement.collapseAll();
}
hj(a, b) {
this.nativeElement.addRow(this.b9.i(a), this.b9.i(b));
}
hk(a, b = false) {
this.nativeElement.beginAddRowByIndex(this.b9.i(a), this.b9.i(b));
}
g1(a = false, b = false) {
return (this.nativeElement.getSelectedData(this.b9.i(a), this.b9.i(b)));
}
g7(a) {
return this.b9.g(this.nativeElement.getRowByIndex(this.b9.i(a)), (b) => new RowType());
}
g8(a) {
return this.b9.g(this.nativeElement.getRowByKey(this.b9.i(a)), (b) => new RowType());
}
g5(a, b) {
return this.b9.g(this.nativeElement.getCellByColumn(this.b9.i(a), this.b9.i(b)), (c) => new CellType());
}
g6(a, b) {
return this.b9.g(this.nativeElement.getCellByKey(this.b9.i(a), this.b9.i(b)), (c) => new CellType());
}
ha(a, b = -1) {
return (this.nativeElement.pinRow(this.b9.i(a), this.b9.i(b)));
}
hb(a) {
return (this.nativeElement.unpinRow(this.b9.i(a)));
}
}
TreeGrid.$t = /*@__PURE__*/ markType(TreeGrid, 'TreeGrid', GridBaseDirective.$);
return TreeGrid;
})();