UNPKG

igniteui-webcomponents-inputs

Version:

Ignite UI Web Components inputs components.

324 lines (323 loc) 11.5 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 { XComponentBridge } from "./XComponentBridge"; import { INativeUIPopupBridge_$type } from "igniteui-webcomponents-core"; import { List$1 } from "igniteui-webcomponents-core"; import { NativeUIComponent } from "igniteui-webcomponents-core"; import { runOn, delegateCombine, delegateRemove, enumGetBox, typeGetValue, EnumUtil, markType } from "igniteui-webcomponents-core"; import { NativeUIPopupOpenedEventArgs } from "igniteui-webcomponents-core"; import { NativeUIPopupClosedEventArgs } from "igniteui-webcomponents-core"; import { NativeUIMouseEventArgs } from "igniteui-webcomponents-core"; import { NativeUIFocusEventArgs } from "igniteui-webcomponents-core"; import { NativeUIPopupMeasuringContentEventArgs } from "igniteui-webcomponents-core"; import { NativeUIPopupAnimationType_$type } from "igniteui-webcomponents-core"; import { NativeUIPopupPointerPosition_$type } from "igniteui-webcomponents-core"; let XPopupBridge = /*@__PURE__*/ (() => { class XPopupBridge extends XComponentBridge { constructor(a) { super(a); this.ak = null; this.af = null; this.ai = null; this.aj = null; this.ag = null; this.ah = null; this.ad = null; this.ab = null; this.z = null; this.aa = null; this.x = null; this.y = null; this.ac = null; this.w = null; this.ae = null; this.ae = new List$1(NativeUIComponent.$, 0); } contains(a, b) { let c = this.t; return c.contains(b); } addHandler(a, b, c, d) { let e = a; switch (c) { case 5: e.onPopup = delegateCombine(e.onPopup, runOn(this, this.aq)); this.ad = d; this.ak = b; break; case 6: e.onClosed = delegateCombine(e.onClosed, runOn(this, this.al)); this.ab = d; this.af = b; break; case 7: e.popupMouseEnter = delegateCombine(e.popupMouseEnter, runOn(this, this.ao)); this.z = d; this.ai = b; break; case 8: e.popupMouseLeave = delegateCombine(e.popupMouseLeave, runOn(this, this.ap)); this.aa = d; this.aj = b; break; case 13: e.popupGotFocus = delegateCombine(e.popupGotFocus, runOn(this, this.am)); this.x = d; this.ag = b; break; case 14: e.popupLostFocus = delegateCombine(e.popupLostFocus, runOn(this, this.an)); this.y = d; this.ah = b; break; case 29: e.measuringContentSize = delegateCombine(e.measuringContentSize, runOn(this, this.ar)); this.ac = d; this.w = b; break; } } ar(a, b) { if (this.ac != null) { this.ac(this.w, new NativeUIPopupMeasuringContentEventArgs()); } } removeHandler(a, b, c, d) { let e = a; switch (c) { case 5: e.onPopup = delegateRemove(e.onPopup, runOn(this, this.aq)); this.ad = null; this.ak = null; break; case 6: e.onClosed = delegateRemove(e.onClosed, runOn(this, this.al)); this.ab = null; this.af = null; break; case 7: e.popupMouseEnter = delegateRemove(e.popupMouseEnter, runOn(this, this.ao)); this.z = null; this.ai = null; break; case 8: e.popupMouseLeave = delegateRemove(e.popupMouseLeave, runOn(this, this.ap)); this.aa = null; this.aj = null; break; case 13: e.popupGotFocus = delegateRemove(e.popupGotFocus, runOn(this, this.am)); this.x = null; this.ag = null; break; case 14: e.popupLostFocus = delegateRemove(e.popupLostFocus, runOn(this, this.an)); this.y = null; this.ah = null; break; case 29: e.measuringContentSize = delegateRemove(e.measuringContentSize, runOn(this, this.ar)); this.ac = null; this.w = null; break; } } aq(a, b) { if (this.ad != null) { this.ad(this.ak, new NativeUIPopupOpenedEventArgs()); } } al(a, b) { if (this.ab != null) { this.ab(this.af, new NativeUIPopupClosedEventArgs()); } } ao(a, b) { if (this.z != null) { this.z(this.ai, new NativeUIMouseEventArgs()); } } ap(a, b) { if (this.aa != null) { this.aa(this.aj, new NativeUIMouseEventArgs()); } } am(a, b) { if (this.x != null) { this.x(this.ag, new NativeUIFocusEventArgs()); } } an(a, b) { if (this.y != null) { this.y(this.ah, ((() => { let $ret = new NativeUIFocusEventArgs(); $ret.b = b.b; $ret.a = b.a; return $ret; })())); } } getValue(a, b) { let c = a; switch (b) { case 22: return c.ax; case 60: return c.av; case 61: return c.aq; case 25: return c.am; case 26: return c.a9; case 17: return c.a1; case 23: return c.c0; case 35: switch (c.p) { case 1: return enumGetBox(NativeUIPopupAnimationType_$type, 1); default: return enumGetBox(NativeUIPopupAnimationType_$type, 0); } case 36: return c.at; case 37: return c.as; case 40: return c.bb; case 41: return c.au; case 43: switch (c.v) { case 1: return enumGetBox(NativeUIPopupPointerPosition_$type, 1); default: return enumGetBox(NativeUIPopupPointerPosition_$type, 2); } case 42: return c.c4; case 39: return c.ao; case 62: return c.a4; case 110: return c.ay; } return super.getValue(a, b); } setValue(a, b, c) { let d = a; switch (b) { case 25: d.am = c; break; case 26: d.a9 = typeGetValue(c); break; case 17: d.a1 = c; break; case 23: d.c0 = c; break; case 35: switch (EnumUtil.getEnumValue(NativeUIPopupAnimationType_$type, c)) { case 1: d.p = 1; break; default: d.p = 0; break; } break; case 36: d.at = c; break; case 37: d.as = c; break; case 40: d.bb = typeGetValue(c); break; case 41: d.au = c; break; case 42: d.c4 = c; break; case 43: switch (EnumUtil.getEnumValue(NativeUIPopupPointerPosition_$type, c)) { case 1: d.v = 1; break; case 2: d.v = 2; break; } break; case 39: d.ao = c; break; case 62: d.a4 = c; break; case 110: d.ay = c; break; } super.setValue(a, b, c); } showRelativeToExclusionRect(a, b, c, d) { a.showRelativeToExclusionRect(b, this.v(c), this.u(d)); } showRelativeToTarget(a, b, c, d) { let e = b.an.getNativeElement(); a.cr(e, this.v(c), this.u(d)); } close(a) { a.b6(); } notifyContentSizeChanged(a) { a.b9(); } notifyExclusionRectChanged(a, b) { a.ca(b); } v(a) { switch (a) { case 0: return 0; case 1: return 1; case 2: return 2; case 3: return 3; case 4: return 4; default: return 0; } } u(a) { switch (a) { case 0: return 0; case 2: return 2; case 1: return 1; case 3: return 3; default: return 0; } } exportVisualData(a) { return a.bg(); } addChild(a, b) { this.ae.add(b); let c = a; c.appendPopupContent(b.an); } insertChild(a, b, c) { this.ae.add(c); let d = a; d.appendPopupContent(c.an); } getChildAt(a, b) { return this.ae._inner[b]; } getChildrenCount(a) { return this.ae.count; } removeChild(a, b) { let c = a; c.removePopupContent(b.an); this.ae.remove(b); } removeChildAt(a, b) { let c = a; c.removePopupContent(this.ae._inner[b].an); this.ae.removeAt(b); } } XPopupBridge.$t = /*@__PURE__*/ markType(XPopupBridge, 'XPopupBridge', XComponentBridge.$, [INativeUIPopupBridge_$type]); return XPopupBridge; })(); export { XPopupBridge };