igniteui-react-grids
Version:
Ignite UI React grid components.
234 lines (233 loc) • 8.71 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 { XComponentBridge } from "igniteui-react-inputs";
import { INativeUICheckboxListBridge_$type } from "igniteui-react-core";
import { runOn, delegateCombine, delegateRemove, EnumUtil, enumGetBox, markType } from "igniteui-react-core";
import { NativeUICheckboxListChangeEventArgs } from "igniteui-react-core";
import { NativeUICheckboxListIndexTypeChangedEventArgs } from "igniteui-react-core";
import { NativeUICheckboxListKeysClearedEventArgs } from "igniteui-react-core";
import { ControlDisplayDensity_$type } from "igniteui-react-core";
import { BaseControlTheme_$type } from "igniteui-react-core";
import { NativeUICheckboxListIndexType_$type } from "igniteui-react-core";
import { CheckboxListExternalIndexType_$type } from "./CheckboxListExternalIndexType";
/**
* @hidden
*/
export let CheckboxListBridge = /*@__PURE__*/ (() => {
class CheckboxListBridge extends XComponentBridge {
constructor(a) {
super(a);
this.ab = null;
this.ac = null;
this.ad = null;
this.u = null;
this.v = null;
this.w = null;
this.x = null;
this.z = null;
this.y = null;
this.aa = null;
}
getDesiredSize(a, b) {
return this.t.getDesiredSize(b);
}
addHandler(a, b, c, d) {
let e = a;
switch (c) {
case 2:
e.checkedChanged = delegateCombine(e.checkedChanged, runOn(this, this.ae));
this.u = d;
this.ab = b;
break;
case 18:
e.selectedKeyAdded = delegateCombine(e.selectedKeyAdded, runOn(this, this.ag));
this.v = d;
this.ac = b;
break;
case 19:
e.selectedKeyRemoved = delegateCombine(e.selectedKeyRemoved, runOn(this, this.ah));
this.w = d;
this.ad = b;
break;
case 21:
e.indexTypeChanged = delegateCombine(e.indexTypeChanged, runOn(this, this.af));
this.x = d;
this.z = b;
break;
case 25:
e.keysCleared = delegateCombine(e.keysCleared, runOn(this, this.ai));
this.y = d;
this.aa = b;
break;
}
}
ai(a, b) {
if (this.y != null) {
this.y(this.aa, ((() => {
let $ret = new NativeUICheckboxListKeysClearedEventArgs();
return $ret;
})()));
}
}
af(a, b) {
if (this.x != null) {
this.x(this.z, ((() => {
let $ret = new NativeUICheckboxListIndexTypeChangedEventArgs();
$ret.b = b.b;
$ret.a = b.a;
return $ret;
})()));
}
}
removeHandler(a, b, c, d) {
let e = a;
switch (c) {
case 2:
e.checkedChanged = delegateRemove(e.checkedChanged, runOn(this, this.ae));
this.u = null;
this.ab = null;
break;
case 18:
e.selectedKeyAdded = delegateRemove(e.selectedKeyAdded, runOn(this, this.ag));
this.v = null;
this.ac = null;
break;
case 19:
e.selectedKeyRemoved = delegateRemove(e.selectedKeyRemoved, runOn(this, this.ah));
this.w = null;
this.ad = null;
break;
case 21:
e.indexTypeChanged = delegateRemove(e.indexTypeChanged, runOn(this, this.af));
this.x = null;
this.z = null;
break;
}
}
ae(a, b) {
let c = a;
if (this.u != null) {
this.u(this.ab, ((() => {
let $ret = new NativeUICheckboxListChangeEventArgs();
$ret.c = b.c;
$ret.b = b.b;
$ret.a = b.a;
return $ret;
})()));
}
}
ag(a, b) {
let c = a;
if (this.v != null) {
this.v(this.ac, ((() => {
let $ret = new NativeUICheckboxListChangeEventArgs();
$ret.c = b.c;
$ret.b = b.b;
$ret.a = b.a;
return $ret;
})()));
}
}
ah(a, b) {
let c = a;
if (this.w != null) {
this.w(this.ad, ((() => {
let $ret = new NativeUICheckboxListChangeEventArgs();
$ret.c = b.c;
$ret.b = b.b;
$ret.a = b.a;
return $ret;
})()));
}
}
setValue(a, b, c) {
let d = a;
switch (b) {
case 23:
d.backgroundColor = c;
break;
case 8:
d.itemsSource = c;
break;
case 75:
d.selectedMemberPath = c;
break;
case 76:
d.dataMemberPath = c;
break;
case 77:
d.showSelectAll = c;
break;
case 78:
d.primaryKey = c;
break;
case 1:
d.density = EnumUtil.getEnumValue(ControlDisplayDensity_$type, c);
break;
case 18:
d.baseTheme = EnumUtil.getEnumValue(BaseControlTheme_$type, c);
break;
case 33:
d.textColor = c;
break;
case 24:
d.rowHoverBackgroundColor = c;
break;
case 79:
d.searchIconColor = c;
break;
case 80:
d.searchTextColor = c;
break;
case 97:
d.indexType = EnumUtil.getEnumValue(NativeUICheckboxListIndexType_$type, c);
break;
}
}
getValue(a, b) {
let c = a;
switch (b) {
case 23: return c.backgroundColor;
case 8: return c.itemsSource;
case 75: return c.selectedMemberPath;
case 76: return c.dataMemberPath;
case 77: return c.showSelectAll;
case 78: return c.primaryKey;
case 1: return enumGetBox(ControlDisplayDensity_$type, c.density);
case 18: return enumGetBox(BaseControlTheme_$type, c.baseTheme);
case 33: return c.textColor;
case 24: return c.rowHoverBackgroundColor;
case 79: return c.searchIconColor;
case 80: return c.searchTextColor;
case 97: return enumGetBox(CheckboxListExternalIndexType_$type, c.indexType);
}
return null;
}
clearSelectedKeys(a) {
let b = a;
b.clearSelectedKeys();
}
addSelectedKey(a, b, c) {
let d = a;
d.addSelectedKey(b, c);
}
insertSelectedKey(a, b, c, d) {
let e = a;
e.insertSelectedKey(b, c, d);
}
removeSelectedKeyAt(a, b) {
let c = a;
c.removeSelectedKeyAt(b);
}
ak(a) {
}
aj(a, b) {
}
}
CheckboxListBridge.$t = /*@__PURE__*/ markType(CheckboxListBridge, 'CheckboxListBridge', XComponentBridge.$, [INativeUICheckboxListBridge_$type]);
return CheckboxListBridge;
})();