igniteui-react-grids
Version:
Ignite UI React grid components.
81 lines (80 loc) • 3.06 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 { __extends } from "tslib";
import { Base, markType } from "igniteui-react-core";
import { INativeUIElementFactory_$type } from "igniteui-react-core";
import { NativeUIComponent } from "igniteui-react-core";
import { CheckboxListBridge } from "./CheckboxListBridge";
import { NativeUICheckboxList } from "igniteui-react-core";
/**
* @hidden
*/
var NativeUIGridFactory = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(NativeUIGridFactory, _super);
function NativeUIGridFactory() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.c = 2;
return _this;
}
Object.defineProperty(NativeUIGridFactory, "instance", {
get: function () {
if (NativeUIGridFactory.a == null) {
NativeUIGridFactory.a = new NativeUIGridFactory();
}
return NativeUIGridFactory.a;
},
enumerable: false,
configurable: true
});
NativeUIGridFactory.register = function () {
NativeUIComponent.as(NativeUIGridFactory.instance);
};
Object.defineProperty(NativeUIGridFactory.prototype, "flavor", {
get: function () {
return this.c;
},
enumerable: false,
configurable: true
});
NativeUIGridFactory.prototype.createComponent = function (a, b, c) {
switch (b) {
case 16:
this.d(a, c);
break;
}
};
NativeUIGridFactory.prototype.createComponentSync = function (a, b, c) {
this.createComponent(a, b, c);
};
NativeUIGridFactory.prototype.supportsComponent = function (a) {
switch (a) {
case 16: return true;
}
return false;
};
NativeUIGridFactory.prototype.d = function (a, b) {
var c = a;
var d = c.createElement("div");
d.setStyleProperty("width", "100%");
d.setStyleProperty("height", "100%");
c.getPortal(d, "CheckboxList", function (e) {
var comp_ = e.componentRef;
comp_.width = '100%';
comp_.height = '100%';
var f = (comp_.i);
var g = new CheckboxListBridge(f);
var h = new NativeUICheckboxList();
h.an = d;
h.d = g;
b(h);
}, false);
};
NativeUIGridFactory.$t = markType(NativeUIGridFactory, 'NativeUIGridFactory', Base.$, [INativeUIElementFactory_$type]);
NativeUIGridFactory.a = null;
return NativeUIGridFactory;
}(Base));
export { NativeUIGridFactory };