UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

284 lines (283 loc) 10.4 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 { 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 */ var CheckboxListBridge = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CheckboxListBridge, _super); function CheckboxListBridge(a) { var _this = _super.call(this, a) || this; _this.ac = null; _this.af = null; _this.ad = null; _this.ae = null; _this.u = null; _this.x = null; _this.v = null; _this.w = null; _this.y = null; _this.aa = null; _this.z = null; _this.ab = null; return _this; } CheckboxListBridge.prototype.getDesiredSize = function (a, b) { return this.t.getDesiredSize(b); }; CheckboxListBridge.prototype.addHandler = function (a, b, c, d) { var e = a; switch (c) { case 2: e.checkedChanged = delegateCombine(e.checkedChanged, runOn(this, this.ag)); this.u = d; this.ac = b; break; case 20: e.labelClicked = delegateCombine(e.labelClicked, runOn(this, this.al)); this.x = d; this.af = b; break; case 18: e.selectedKeyAdded = delegateCombine(e.selectedKeyAdded, runOn(this, this.ai)); this.v = d; this.ad = b; break; case 19: e.selectedKeyRemoved = delegateCombine(e.selectedKeyRemoved, runOn(this, this.aj)); this.w = d; this.ae = b; break; case 22: e.indexTypeChanged = delegateCombine(e.indexTypeChanged, runOn(this, this.ah)); this.y = d; this.aa = b; break; case 26: e.keysCleared = delegateCombine(e.keysCleared, runOn(this, this.ak)); this.z = d; this.ab = b; break; } }; CheckboxListBridge.prototype.ak = function (a, b) { if (this.z != null) { this.z(this.ab, ((function () { var $ret = new NativeUICheckboxListKeysClearedEventArgs(); return $ret; })())); } }; CheckboxListBridge.prototype.ah = function (a, b) { if (this.y != null) { this.y(this.aa, ((function () { var $ret = new NativeUICheckboxListIndexTypeChangedEventArgs(); $ret.b = b.b; $ret.a = b.a; return $ret; })())); } }; CheckboxListBridge.prototype.removeHandler = function (a, b, c, d) { var e = a; switch (c) { case 2: e.checkedChanged = delegateRemove(e.checkedChanged, runOn(this, this.ag)); this.u = null; this.ac = null; break; case 20: e.labelClicked = delegateRemove(e.labelClicked, runOn(this, this.al)); this.x = null; this.af = null; break; case 18: e.selectedKeyAdded = delegateRemove(e.selectedKeyAdded, runOn(this, this.ai)); this.v = null; this.ad = null; break; case 19: e.selectedKeyRemoved = delegateRemove(e.selectedKeyRemoved, runOn(this, this.aj)); this.w = null; this.ae = null; break; case 22: e.indexTypeChanged = delegateRemove(e.indexTypeChanged, runOn(this, this.ah)); this.y = null; this.aa = null; break; } }; CheckboxListBridge.prototype.ag = function (a, b) { var c = a; if (this.u != null) { this.u(this.ac, ((function () { var $ret = new NativeUICheckboxListChangeEventArgs(); $ret.c = b.c; $ret.b = b.b; $ret.a = b.a; return $ret; })())); } }; CheckboxListBridge.prototype.al = function (a, b) { if (this.x != null) { this.x(this.af, ((function () { var $ret = new NativeUICheckboxListChangeEventArgs(); $ret.c = b.c; $ret.b = b.b; $ret.a = b.a; return $ret; })())); } }; CheckboxListBridge.prototype.ai = function (a, b) { var c = a; if (this.v != null) { this.v(this.ad, ((function () { var $ret = new NativeUICheckboxListChangeEventArgs(); $ret.c = b.c; $ret.b = b.b; $ret.a = b.a; return $ret; })())); } }; CheckboxListBridge.prototype.aj = function (a, b) { var c = a; if (this.w != null) { this.w(this.ae, ((function () { var $ret = new NativeUICheckboxListChangeEventArgs(); $ret.c = b.c; $ret.b = b.b; $ret.a = b.a; return $ret; })())); } }; CheckboxListBridge.prototype.setValue = function (a, b, c) { var 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.subtitleMemberPath = c; break; case 79: d.showSelectAll = c; break; case 80: 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 81: d.searchIconColor = c; break; case 82: d.searchTextColor = c; break; case 99: d.indexType = EnumUtil.getEnumValue(NativeUICheckboxListIndexType_$type, c); break; case 113: d.checkboxAlignedRight = c; break; case 114: d.labelClickTriggersChange = c; break; case 115: d.dataLegendTarget = c; break; case 78: d.propertyTypeMemberPath = c; break; case 17: d.checkboxCornerRadius = c; break; } }; CheckboxListBridge.prototype.getValue = function (a, b) { var 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.subtitleMemberPath; case 79: return c.showSelectAll; case 80: 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 81: return c.searchIconColor; case 82: return c.searchTextColor; case 99: return enumGetBox(CheckboxListExternalIndexType_$type, c.indexType); case 113: return c.checkboxAlignedRight; case 114: return c.labelClickTriggersChange; case 115: return c.dataLegendTarget; case 78: return c.propertyTypeMemberPath; case 17: return c.checkboxCornerRadius; } return null; }; CheckboxListBridge.prototype.clearSelectedKeys = function (a) { var b = a; b.clearSelectedKeys(); }; CheckboxListBridge.prototype.addSelectedKey = function (a, b, c) { var d = a; d.addSelectedKey(b, c); }; CheckboxListBridge.prototype.insertSelectedKey = function (a, b, c, d) { var e = a; e.insertSelectedKey(b, c, d); }; CheckboxListBridge.prototype.removeSelectedKeyAt = function (a, b) { var c = a; c.removeSelectedKeyAt(b); }; CheckboxListBridge.prototype.refresh = function (a) { a.refresh(); }; CheckboxListBridge.prototype.am = function (a, b) { }; CheckboxListBridge.$t = markType(CheckboxListBridge, 'CheckboxListBridge', XComponentBridge.$, [INativeUICheckboxListBridge_$type]); return CheckboxListBridge; }(XComponentBridge)); export { CheckboxListBridge };