UNPKG

ng2-bingmaps

Version:
148 lines (146 loc) 7.86 kB
/** * ng2-bingmaps - Angular 2 components for Bing Maps * @version v0.2.0 * @link https://github.com/youjustgo/ng2-bingmaps * @license MIT */ /** * This file is generated by the Angular 2 template compiler. * Do not edit. */ /* tslint:disable */ "use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var import1 = require('@angular/core/src/linker/view'); var import2 = require('@angular/core/src/linker/element'); var import3 = require('../services/bing-maps-api-wrapper'); var import4 = require('./bing-map'); var import5 = require('../services/marker-manager'); var import6 = require('../services/info-window-manager'); var import7 = require('@angular/core/src/linker/view_utils'); var import9 = require('@angular/core/src/linker/view_type'); var import10 = require('@angular/core/src/change_detection/change_detection'); var import11 = require('@angular/core/src/zone/ng_zone'); var import12 = require('../services/maps-api-loader/maps-api-loader'); var import13 = require('../services/maps-api-loader/lazy-maps-api-loader'); var import14 = require('@angular/core/src/linker/element_ref'); var import15 = require('@angular/core/src/metadata/view'); var import16 = require('@angular/core/src/linker/component_factory'); var renderType_BingMap_Host = null; var _View_BingMap_Host0 = (function (_super) { __extends(_View_BingMap_Host0, _super); function _View_BingMap_Host0(viewUtils, parentInjector, declarationEl) { _super.call(this, _View_BingMap_Host0, renderType_BingMap_Host, import9.ViewType.HOST, viewUtils, parentInjector, declarationEl, import10.ChangeDetectorStatus.CheckAlways); } Object.defineProperty(_View_BingMap_Host0.prototype, "_MarkerManager_0_6", { get: function () { if ((this.__MarkerManager_0_6 == null)) { (this.__MarkerManager_0_6 = new import5.MarkerManager(this._BingMapsAPIWrapper_0_4, this.parentInjector.get(import11.NgZone))); } return this.__MarkerManager_0_6; }, enumerable: true, configurable: true }); Object.defineProperty(_View_BingMap_Host0.prototype, "_InfoWindowManager_0_7", { get: function () { if ((this.__InfoWindowManager_0_7 == null)) { (this.__InfoWindowManager_0_7 = new import6.InfoWindowManager(this._BingMapsAPIWrapper_0_4, this.parentInjector.get(import11.NgZone))); } return this.__InfoWindowManager_0_7; }, enumerable: true, configurable: true }); _View_BingMap_Host0.prototype.createInternal = function (rootSelector) { this._el_0 = this.selectOrCreateHostElement('bing-map', rootSelector, null); this._appEl_0 = new import2.AppElement(0, null, this, this._el_0); var compView_0 = viewFactory_BingMap0(this.viewUtils, this.injector(0), this._appEl_0); this._BingMapsAPIWrapper_0_4 = new import3.BingMapsAPIWrapper(this.parentInjector.get(import12.MapsAPILoader), this.parentInjector.get(import11.NgZone), this.parentInjector.get(import13.LazyMapsAPILoaderConfig)); this._BingMap_0_5 = new import4.BingMap(new import14.ElementRef(this._el_0), this._BingMapsAPIWrapper_0_4); this._appEl_0.initComponent(this._BingMap_0_5, [], compView_0); compView_0.create(this._BingMap_0_5, this.projectableNodes, null); this._expr_0 = import10.UNINITIALIZED; this.init([].concat([this._el_0]), [this._el_0], [], []); return this._appEl_0; }; _View_BingMap_Host0.prototype.injectorGetInternal = function (token, requestNodeIndex, notFoundResult) { if (((token === import3.BingMapsAPIWrapper) && (0 === requestNodeIndex))) { return this._BingMapsAPIWrapper_0_4; } if (((token === import4.BingMap) && (0 === requestNodeIndex))) { return this._BingMap_0_5; } if (((token === import5.MarkerManager) && (0 === requestNodeIndex))) { return this._MarkerManager_0_6; } if (((token === import6.InfoWindowManager) && (0 === requestNodeIndex))) { return this._InfoWindowManager_0_7; } return notFoundResult; }; _View_BingMap_Host0.prototype.detectChangesInternal = function (throwOnChange) { if (((this.numberOfChecks === 0) && !throwOnChange)) { this._BingMap_0_5.ngOnInit(); } this.detectContentChildrenChanges(throwOnChange); var currVal_0 = true; if (import7.checkBinding(throwOnChange, this._expr_0, currVal_0)) { this.renderer.setElementClass(this._el_0, 'bing-map-container', currVal_0); this._expr_0 = currVal_0; } this.detectViewChildrenChanges(throwOnChange); }; return _View_BingMap_Host0; }(import1.AppView)); function viewFactory_BingMap_Host0(viewUtils, parentInjector, declarationEl) { if ((renderType_BingMap_Host === null)) { (renderType_BingMap_Host = viewUtils.createRenderComponentType('', 0, import15.ViewEncapsulation.None, [], {})); } return new _View_BingMap_Host0(viewUtils, parentInjector, declarationEl); } exports.BingMapNgFactory = new import16.ComponentFactory('bing-map', viewFactory_BingMap_Host0, import4.BingMap); var styles_BingMap = ['.bing-map-container-inner[_ngcontent-%COMP%] {\n width: inherit;\n height: inherit;\n }\n .bing-map-content[_ngcontent-%COMP%] {\n display:none;\n }']; var renderType_BingMap = null; var _View_BingMap0 = (function (_super) { __extends(_View_BingMap0, _super); function _View_BingMap0(viewUtils, parentInjector, declarationEl) { _super.call(this, _View_BingMap0, renderType_BingMap, import9.ViewType.COMPONENT, viewUtils, parentInjector, declarationEl, import10.ChangeDetectorStatus.CheckAlways); } _View_BingMap0.prototype.createInternal = function (rootSelector) { var parentRenderNode = this.renderer.createViewRoot(this.declarationAppElement.nativeElement); this._text_0 = this.renderer.createText(parentRenderNode, '\n ', null); this._el_1 = this.renderer.createElement(parentRenderNode, 'div', null); this.renderer.setElementAttribute(this._el_1, 'class', 'bing-map-container-inner'); this._text_2 = this.renderer.createText(parentRenderNode, '\n ', null); this._el_3 = this.renderer.createElement(parentRenderNode, 'div', null); this.renderer.setElementAttribute(this._el_3, 'class', 'bing-map-content'); this._text_4 = this.renderer.createText(this._el_3, '\n ', null); this.renderer.projectNodes(this._el_3, import7.flattenNestedViewRenderNodes(this.projectableNodes[0])); this._text_5 = this.renderer.createText(this._el_3, '\n ', null); this._text_6 = this.renderer.createText(parentRenderNode, '\n ', null); this.init([], [ this._text_0, this._el_1, this._text_2, this._el_3, this._text_4, this._text_5, this._text_6 ], [], []); return null; }; return _View_BingMap0; }(import1.AppView)); function viewFactory_BingMap0(viewUtils, parentInjector, declarationEl) { if ((renderType_BingMap === null)) { (renderType_BingMap = viewUtils.createRenderComponentType('C:/Projects/git/youjustgo/ng2-bingmaps/src/directives/bing-map.ts class BingMap - inline template', 1, import15.ViewEncapsulation.Emulated, styles_BingMap, {})); } return new _View_BingMap0(viewUtils, parentInjector, declarationEl); } exports.viewFactory_BingMap0 = viewFactory_BingMap0; //# sourceMappingURL=bing-map.ngfactory.js.map