UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

71 lines (70 loc) 2.6 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, 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 */ export let NativeUIGridFactory = /*@__PURE__*/ (() => { class NativeUIGridFactory extends Base { constructor() { super(...arguments); this.c = 2; } static get instance() { if (NativeUIGridFactory.a == null) { NativeUIGridFactory.a = new NativeUIGridFactory(); } return NativeUIGridFactory.a; } static register() { NativeUIComponent.as(NativeUIGridFactory.instance); } get flavor() { return this.c; } createComponent(a, b, c) { switch (b) { case 16: this.d(a, c); break; } } createComponentSync(a, b, c) { this.createComponent(a, b, c); } supportsComponent(a) { switch (a) { case 16: return true; } return false; } d(a, b) { let c = a; let d = c.createElement("div"); d.setStyleProperty("width", "100%"); d.setStyleProperty("height", "100%"); c.getPortal(d, "CheckboxList", (e) => { let comp_ = e.componentRef; comp_.width = '100%'; comp_.height = '100%'; let f = (comp_.i); let g = new CheckboxListBridge(f); let h = new NativeUICheckboxList(); h.an = d; h.d = g; b(h); }, false); } } NativeUIGridFactory.$t = /*@__PURE__*/ markType(NativeUIGridFactory, 'NativeUIGridFactory', Base.$, [INativeUIElementFactory_$type]); NativeUIGridFactory.a = null; return NativeUIGridFactory; })();