UNPKG

igniteui-react-grids

Version:

Ignite UI React grid components.

86 lines (85 loc) 3.09 kB
import { IgrHeadSelectorTemplateDetails } from "./igr-head-selector-template-details"; import { HeadSelectorTemplateContext as HeadSelectorTemplateContext_internal } from "./HeadSelectorTemplateContext"; var IgrHeadSelectorTemplateContext = /** @class */ /*@__PURE__*/ (function () { function IgrHeadSelectorTemplateContext() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } IgrHeadSelectorTemplateContext.prototype.createImplementation = function () { return new HeadSelectorTemplateContext_internal(); }; Object.defineProperty(IgrHeadSelectorTemplateContext.prototype, "nativeElement", { get: function () { return this._implementation.nativeElement; }, enumerable: false, configurable: true }); Object.defineProperty(IgrHeadSelectorTemplateContext.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrHeadSelectorTemplateContext.prototype.onImplementationCreated = function () { }; IgrHeadSelectorTemplateContext.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } }; Object.defineProperty(IgrHeadSelectorTemplateContext.prototype, "implicit", { get: function () { var r = this.i.a; if (r == null) { return null; } if (!r.externalObject) { var e = new IgrHeadSelectorTemplateDetails(); if (r.$type) { e._implementation = r; } else { if (e.i.setNativeElement) { e.i.setNativeElement(r); } } r.externalObject = e; } return r.externalObject; }, set: function (v) { v == null ? this.i.a = null : this.i.a = v.i; }, enumerable: false, configurable: true }); IgrHeadSelectorTemplateContext.prototype.findByName = function (name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } if (this.implicit && this.implicit.name && this.implicit.name == name) { return this.implicit; } return null; }; IgrHeadSelectorTemplateContext.prototype.setNativeElement = function (element) { this.i.setNativeElement(element); }; return IgrHeadSelectorTemplateContext; }()); export { IgrHeadSelectorTemplateContext };