UNPKG

igniteui-react-core

Version:
497 lines (496 loc) 13.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 { Base, Type, enumGetBox, EnumUtil, markType } from "./type"; import { BaseControlTheme_$type } from "./BaseControlTheme"; import { NativeUICursor_$type } from "./NativeUICursor"; import { Visibility_$type } from "./Visibility"; import { INativeUIElementFactory_$type } from "./INativeUIElementFactory"; import { List$1 } from "./List$1"; import { NativeUI } from "./NativeUI"; /** * @hidden */ export let INativeUIElementBridge_$type = /*@__PURE__*/ new Type(null, 'INativeUIElementBridge'); /** * @hidden */ export let INativeUIContainerBridge_$type = /*@__PURE__*/ new Type(null, 'INativeUIContainerBridge', null, [INativeUIElementBridge_$type]); /** * @hidden */ export let NativeUIComponent = /*@__PURE__*/ (() => { class NativeUIComponent extends Base { constructor() { super(...arguments); this.j = null; this.ap = null; this.d = null; this.ao = null; this.p = null; this.r = null; this.l = null; this.m = null; } a2() { if (this.j != null) { this.j.bq(this); } } bg(a) { return this.d.getDesiredSize(this.ao, a); } bf() { return this.d.getBoundingRect(this.ao); } t(a) { return this.d.contains(this.ao, a); } a0() { this.d.focus(this.ao); } a1() { this.d.focusWithScrollPrevented(this.ao); } get_e() { return 8; } get e() { return this.get_e(); } get an() { return this.d.getMethodTarget(this.ao); } static at(a) { if (!NativeUIComponent.x.contains(a)) { NativeUIComponent.x.add(a); } } static a(a, b) { let c = new List$1(INativeUIElementFactory_$type, 0); let d = new List$1(INativeUIElementFactory_$type, 0); for (let e = 0; e < a.length; e++) { let f = a[e]; let g = b[e]; for (let h = 0; h < NativeUIComponent.x.count; h++) { if (NativeUIComponent.x._inner[h].flavor == g) { d.add(NativeUIComponent.x._inner[h]); } } for (let i = 0; i < d.count; i++) { if (d._inner[i].supportsComponent(f)) { c.add(d._inner[i]); break; } } if (c.count - 1 == e) { d.clear(); continue; } for (let j = 0; j < NativeUIComponent.x.count; j++) { if (NativeUIComponent.x._inner[j].supportsComponent(f)) { c.add(NativeUIComponent.x._inner[j]); break; } } if (c.count - 1 != e) { c.add(null); } d.clear(); } return c.toArray(); } static w(a, b) { let c = NativeUIComponent.a([a], [b]); return c != null && c.length > 0 && c[0] != null; } static au(a, b, c, d) { let e = NativeUIComponent.a([b], [c]); if (e.length > 0 && e[0] != null) { e[0].createComponent(a, b, d); } } static av(a, b, c) { NativeUIComponent.au(a, b, 0, c); } static aw(a, b, c, d) { let e = 0; let f = new Array(b.length); let g = NativeUIComponent.a(b, c); for (let h = 0; h < g.length; h++) { let i = g[h]; let j = b[h]; if (i != null) { i.createComponent(a, j, (k) => { f[h] = k; e++; if (e == b.length) { d(f); } }); } else { f[h] = null; e++; if (e == b.length) { d(f); } } } } static ax(a, b, c) { let d = new Array(b.length); for (let e = 0; e < d.length; e++) { d[e] = 0; } NativeUIComponent.aw(a, b, d, c); } static ay(a, b, c, d) { let e = NativeUIComponent.a([b], [c]); if (e.length > 0 && e[0] != null) { e[0].createComponentSync(a, b, d); } } static az(a, b, c) { NativeUIComponent.ay(a, b, 0, c); } am(a) { return this.d.getTargetForProperty(a, this.ao); } aj(a) { let b = this.am(a); return NativeUI.l(a, b); } a7(a, b) { let c = this.am(a); this.d.beforeSetNativeValue(a, b); NativeUI.aj(a, c, b); this.d.afterSetNativeValue(a, b); } ah(a) { let b = this.al(a); return this.ai(b, a); } a5(a, b) { let c = this.al(a); this.a6(c, a, b); } ar(a, b) { let c = this.ak(a); this.as(c, this, a, b); } as(a, b, c, d) { this.d.addHandler(a, b, c, d); } a3(a, b) { let c = this.ak(a); this.a4(c, this, a, b); } a4(a, b, c, d) { this.d.removeHandler(a, b, c, d); } ai(a, b) { return this.d.getValue(a, b); } a6(a, b, c) { this.d.setValue(a, b, c); } al(a) { let b = this.ao; b = this.d.getTargetForBuildInProperty(b, a); return b; } ak(a) { let b = this.ao; b = this.d.getTargetForBuildInEvent(b, a); return b; } get aq() { return this.ah(109); } set aq(a) { this.a5(109, a); } get v() { return this.ah(122); } set v(a) { this.a5(122, a); } get af() { return this.aj(9); } set af(a) { this.a7(9, a); } get z() { return this.aj(10); } set z(a) { this.a7(10, a); } get ab() { return this.aj(1); } set ab(a) { this.a7(1, a); } get c() { let a = this.ah(18); return EnumUtil.getEnumValue(BaseControlTheme_$type, a); } set c(a) { this.a5(18, enumGetBox(BaseControlTheme_$type, a)); } get a9() { return this.aj(2); } set a9(a) { this.a7(2, a); } get ba() { return this.aj(3); } set ba(a) { this.a7(3, a); } get bh() { return this.aj(4); } set bh(a) { this.a7(4, a); } get a8() { return this.aj(5); } set a8(a) { this.a7(5, a); } get bj() { return this.aj(6); } set bj(a) { this.a7(6, a); } get bb() { return this.aj(7); } set bb(a) { this.a7(7, a); } get y() { return this.aj(8); } set y(a) { this.a7(8, a); } get aa() { return this.aj(11); } set aa(a) { this.a7(11, a); } get ae() { return this.aj(12); } set ae(a) { this.a7(12, a); } get bi() { return this.aj(13); } set bi(a) { this.a7(13, a); } get be() { return this.aj(14); } set be(a) { this.a7(14, a); } get bd() { return this.aj(15); } set bd(a) { this.a7(15, a); } get bc() { return this.aj(16); } set bc(a) { this.a7(16, a); } get ad() { return this.aj(17); } set ad(a) { this.a7(17, a); } get b() { return this.aj(18); } set b(a) { this.a7(18, a); } get ac() { return this.aj(19); } set ac(a) { this.a7(19, a); } get f() { return this.d.getHorizontalAlignment(this.ao); } set f(a) { this.d.setHorizontalAlignment(this.ao, a); } get h() { return this.d.getVerticalAlignment(this.ao); } set h(a) { this.d.setVerticalAlignment(this.ao, a); } get g() { return this.d.getHorizontalContentAlignment(this.ao); } set g(a) { this.d.setHorizontalContentAlignment(this.ao, a); } get i() { return this.d.getVerticalContentAlignment(this.ao); } set i(a) { this.d.setVerticalContentAlignment(this.ao, a); } get k() { return EnumUtil.getEnumValue(NativeUICursor_$type, this.aj(20)); } set k(a) { this.a7(20, enumGetBox(NativeUICursor_$type, a)); } get_u() { return this.aj(21); } set_u(a) { this.a7(21, a); } get u() { return this.get_u(); } set u(a) { this.set_u(a); } get bk() { return EnumUtil.getEnumValue(Visibility_$type, this.aj(24)); } set bk(a) { this.a7(24, enumGetBox(Visibility_$type, a)); } get q() { return this.p; } set q(a) { let b = this.p; this.p = a; if (this.p != b) { if (b != null) { this.a3(7, b); } if (this.p != null) { this.ar(7, this.p); } } } get s() { return this.r; } set s(a) { let b = this.r; this.r = a; if (this.r != b) { if (b != null) { this.a3(8, b); } if (this.p != null) { this.ar(8, this.r); } } } get n() { return this.l; } set n(a) { let b = this.l; this.l = a; if (this.l != b) { if (b != null) { this.a3(13, b); } if (this.l != null) { this.ar(13, this.l); } } } get o() { return this.m; } set o(a) { let b = this.m; this.m = a; if (this.m != b) { if (b != null) { this.a3(14, b); } if (this.m != null) { this.ar(14, this.m); } } } ag() { return this.d.exportVisualData(this.an); } } NativeUIComponent.$t = /*@__PURE__*/ markType(NativeUIComponent, 'NativeUIComponent'); NativeUIComponent.x = /*@__PURE__*/ new List$1(INativeUIElementFactory_$type, 0); return NativeUIComponent; })(); /** * @hidden */ export let NativeUIContainer = /*@__PURE__*/ (() => { class NativeUIContainer extends NativeUIComponent { get bn() { return this.bl.getChildrenCount(this.an); } get bl() { return this.d; } bm(a) { return this.bl.getChildAt(this.an, a); } br(a) { let b = this.bm(a); if (b != null) { b.j = null; } this.bl.removeChildAt(this.an, a); } bo(a) { a.j = this; this.bl.addChild(this.an, a); } bp(a, b) { b.j = this; this.bl.insertChild(this.an, a, b); } bq(a) { a.j = null; this.bl.removeChild(this.an, a); } } NativeUIContainer.$t = /*@__PURE__*/ markType(NativeUIContainer, 'NativeUIContainer', NativeUIComponent.$); return NativeUIContainer; })();