igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
259 lines (258 loc) • 7.04 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, Type, markType } from "./type";
import { INativeUIElementFactory_$type } from "./INativeUIElementFactory";
import { List$1 } from "./List$1";
import { NativeUI } from "./NativeUI";
/**
* @hidden
*/
export let INativeUIElementBridge_$type = new Type(null, 'INativeUIElementBridge');
/**
* @hidden
*/
export let NativeUIComponent = /*@__PURE__*/ (() => {
class NativeUIComponent extends Base {
constructor() {
super(...arguments);
this.w = null;
this.b = null;
this.v = null;
}
ap(a) {
return this.b.getDesiredSize(this.u, a);
}
get_c() {
return 8;
}
get c() {
return this.get_c();
}
get u() {
return this.b.getMethodTarget(this.v);
}
static z(a) {
if (!NativeUIComponent.f.contains(a)) {
NativeUIComponent.f.add(a);
}
}
static aa(a, b, c) {
for (let d = 0; d < NativeUIComponent.f.count; d++) {
if (NativeUIComponent.f._inner[d].supportsComponent(b)) {
NativeUIComponent.f._inner[d].createComponent(a, b, c);
break;
}
}
}
static ab(a, b, c) {
let d = 0;
let e = new Array(b.length);
for (let f = 0; f < b.length; f++) {
let g = b[f];
for (let h = 0; h < NativeUIComponent.f.count; h++) {
if (NativeUIComponent.f._inner[h].supportsComponent(g)) {
let i = f;
NativeUIComponent.f._inner[h].createComponent(a, g, (j) => {
e[f] = j;
d++;
if (d == b.length) {
c(e);
}
});
break;
}
}
}
}
static ac(a, b, c) {
for (let d = 0; d < NativeUIComponent.f.count; d++) {
if (NativeUIComponent.f._inner[d].supportsComponent(b)) {
NativeUIComponent.f._inner[d].createComponentSync(a, b, c);
break;
}
}
}
t(a) {
return this.b.getTargetForProperty(a, this.v);
}
q(a) {
let b = this.t(a);
return NativeUI.j(a, b);
}
ah(a, b) {
let c = this.t(a);
NativeUI.ac(a, c, b);
}
o(a) {
let b = this.s(a);
return this.p(b, a);
}
af(a, b) {
let c = this.s(a);
this.ag(c, a, b);
}
x(a, b) {
let c = this.r(a);
this.y(c, this, a, b);
}
y(a, b, c, d) {
this.b.addHandler(a, b, c, d);
}
ad(a, b) {
let c = this.r(a);
this.ae(c, this, a, b);
}
ae(a, b, c, d) {
this.b.removeHandler(a, b, c, d);
}
p(a, b) {
return this.b.getValue(a, b);
}
ag(a, b, c) {
this.b.setValue(a, b, c);
}
s(a) {
let b = this.v;
b = this.b.getTargetForBuildInProperty(b, a);
return b;
}
r(a) {
let b = this.v;
b = this.b.getTargetForBuildInEvent(b, a);
return b;
}
get n() {
return this.q(9);
}
set n(a) {
this.ah(9, a);
}
get h() {
return this.q(10);
}
set h(a) {
this.ah(10, a);
}
get j() {
return this.q(1);
}
set j(a) {
this.ah(1, a);
}
get aj() {
return this.q(2);
}
set aj(a) {
this.ah(2, a);
}
get ak() {
return this.q(3);
}
set ak(a) {
this.ah(3, a);
}
get aq() {
return this.q(4);
}
set aq(a) {
this.ah(4, a);
}
get ai() {
return this.q(5);
}
set ai(a) {
this.ah(5, a);
}
get as() {
return this.q(6);
}
set as(a) {
this.ah(6, a);
}
get al() {
return this.q(7);
}
set al(a) {
this.ah(7, a);
}
get g() {
return this.q(8);
}
set g(a) {
this.ah(8, a);
}
get i() {
return this.q(11);
}
set i(a) {
this.ah(11, a);
}
get m() {
return this.q(12);
}
set m(a) {
this.ah(12, a);
}
get ar() {
return this.q(13);
}
set ar(a) {
this.ah(13, a);
}
get ao() {
return this.q(14);
}
set ao(a) {
this.ah(14, a);
}
get an() {
return this.q(15);
}
set an(a) {
this.ah(15, a);
}
get am() {
return this.q(16);
}
set am(a) {
this.ah(16, a);
}
get l() {
return this.q(17);
}
set l(a) {
this.ah(17, a);
}
get a() {
return this.q(18);
}
set a(a) {
this.ah(18, a);
}
get k() {
return this.q(19);
}
set k(a) {
this.ah(19, a);
}
get d() {
return this.b.getHorizontalAlignment(this.v);
}
set d(a) {
this.b.setHorizontalAlignment(this.v, a);
}
get e() {
return this.b.getVerticalAlignment(this.v);
}
set e(a) {
this.b.setVerticalAlignment(this.v, a);
}
}
NativeUIComponent.$t = markType(NativeUIComponent, 'NativeUIComponent');
NativeUIComponent.f = new List$1(INativeUIElementFactory_$type, 0);
return NativeUIComponent;
})();