igniteui-react-grids
Version:
Ignite UI React grid components.
91 lines (90 loc) • 2.9 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 { Base, markType } from "igniteui-react-core";
import { SyncableObservableCollection$2 } from "igniteui-react-core";
import { ColumnGroupDescription } from "./ColumnGroupDescription";
import { SortDescription } from "igniteui-react-core";
/**
* @hidden
*/
export let ColumnGroupDescriptionCollection = /*@__PURE__*/ (() => {
class ColumnGroupDescriptionCollection extends Base {
get i() {
return this.f.shouldDetachOnTargetChange;
}
set i(a) {
this.f.shouldDetachOnTargetChange = a;
}
constructor() {
super();
this.f = new SyncableObservableCollection$2(ColumnGroupDescription.$, SortDescription.$, 0);
this.a = null;
let a = this.f;
a.compare = (b, c) => {
if (b.f == c.propertyName) {
return true;
}
return false;
};
a.createFrom = (b) => new ColumnGroupDescription(3, b.propertyName, b.direction, b.displayName);
a.createTo = (b) => {
let c = b.c;
return SortDescription.create(b.f, c, b.v);
};
}
get b() {
return this.a;
}
set b(a) {
if (a == null) {
this.f.syncTarget = null;
this.a = null;
return;
}
this.a = a;
this.f.syncTarget = this.a.getInner();
}
g(a) {
return this.f.add(a);
}
o(a, b) {
this.f.add1(a, b);
}
n() {
this.f.clear();
}
get(a) {
return this.f.get(a);
}
k(a) {
return this.f.indexOf(a);
}
h(a) {
return this.f.remove1(a);
}
d(a) {
return this.f.remove(a);
}
set(a, b) {
return this.f.set(a, b);
}
size() {
return this.f.size();
}
m(a) {
this.f.addListener(a);
}
p(a) {
this.f.removeListener(a);
}
get j() {
return this.f.all;
}
}
ColumnGroupDescriptionCollection.$t = /*@__PURE__*/ markType(ColumnGroupDescriptionCollection, 'ColumnGroupDescriptionCollection');
return ColumnGroupDescriptionCollection;
})();