UNPKG

devextreme-angular

Version:

Angular UI and visualization components based on DevExtreme widgets

67 lines (65 loc) 22.9 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/platform-browser"),require("devextreme/core/utils/common"),require("devextreme/core/dom_adapter"),require("devextreme/events"),require("devextreme/core/renderer"),require("@angular/common/http"),require("devextreme/core/http_request"),require("devextreme/core/utils/ready_callbacks"),require("devextreme/events/core/events_engine"),require("devextreme/core/utils/ajax"),require("devextreme/core/utils/deferred")):"function"==typeof define&&define.amd?define("devextreme-angular/core",["exports","@angular/core","@angular/common","@angular/platform-browser","devextreme/core/utils/common","devextreme/core/dom_adapter","devextreme/events","devextreme/core/renderer","@angular/common/http","devextreme/core/http_request","devextreme/core/utils/ready_callbacks","devextreme/events/core/events_engine","devextreme/core/utils/ajax","devextreme/core/utils/deferred"],e):e(((t=t||self)["devextreme-angular"]=t["devextreme-angular"]||{},t["devextreme-angular"].core={}),t.ng.core,t.ng.common,t.ng.platformBrowser,t.common$1,t.dom_adapter,t.events,t.render,t.ng.common.http,t.http_request,t.ready_callbacks,t.events_engine,t.ajax,t.deferred)}(this,(function(t,e,n,i,o,r,s,a,p,c,u,h,f,l){"use strict";a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var d=function(t,e){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function m(t,e){function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function y(t,e,n,i){var o,r=arguments.length,s=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s}function g(t,e){return function(n,i){e(n,i,t)}}function v(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function _(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var O=function(){function t(){}return t.prototype.setHost=function(t){this.host=t},t.prototype.setTemplate=function(t){this.host.setTemplate(t)},t}(),b=function(){function t(t,e){this.instance=t,this.zone=e,this.subscriptions={},this.events={}}return t.prototype.hasEvent=function(t){return 0!==this.getEmitter(t).observers.length},t.prototype.fireEvent=function(t,e){var n=this.getEmitter(t);n.observers.length&&((this.subscriptions[t]||[]).length===n.observers.length?n.next(e&&e[0]):this.zone.run((function(){return n.next(e&&e[0])})))},t.prototype.on=function(t,e){var n=this;if("string"==typeof t){var i=this.subscriptions[t]||[],o=this.getEmitter(t).subscribe(e.bind(this.instance)),r=o.unsubscribe.bind(o);i.push({handler:e,unsubscribe:r}),this.subscriptions[t]=i}else{var s=t;Object.keys(s).forEach((function(t){return n.on(t,s[t])}))}},t.prototype.off=function(t,e){var n=this.subscriptions[t]||[];e?n.some((function(t,i){if(t.handler===e)return t.unsubscribe(),n.splice(i,1),!0})):(n.forEach((function(t){t.unsubscribe()})),n.splice(0,n.length))},t.prototype.dispose=function(){},t.prototype.addEmitter=function(t,e){this.events[t]=e},t.prototype.getEmitter=function(t){return this.events[t]||(this.events[t]=new e.EventEmitter),this.events[t]},t}(),C=function(){function t(t,e){this.zone=t,this.component=e,this.lockedValueChangeEvent=!1}return t.prototype.fireNgEvent=function(t,e){if(!this.lockedValueChangeEvent||"valueChange"!==t){var n=this.component[t];n&&n.observers.length&&this.zone.run((function(){n.next(e&&e[0])}))}},t.prototype.createEmitters=function(t){var n=this;t.forEach((function(t){n.component[t.emit]=new e.EventEmitter}))},t}(),x=function(){function t(){this._watchers=[]}return t.prototype.getWatchMethod=function(){var t=this;return function(e,n,i){var o=e();(i=i||{}).skipImmediate||n(o);var r=function(){var r=e();t._isDifferentValues(o,r,i.deep)&&(n(r),o=r)};return t._watchers.push(r),function(){var e=t._watchers.indexOf(r);-1!==e&&t._watchers.splice(e,1)}}},t.prototype._isDifferentValues=function(t,e,n){var i=this._toComparable(e),o=this._toComparable(t);return n&&(i instanceof Object&&o instanceof Object)?this._checkObjectsFields(e,t):i!==o},t.prototype._toComparable=function(t){return t instanceof Date?t.getTime():t},t.prototype._checkObjectsFields=function(t,e){for(var n in t){var i=this._toComparable(t[n]),r=this._toComparable(e[n]),s=!1;if("object"==typeof i&&"object"==typeof r&&(s=o.equalByValue(i,r)),i!==r&&!s)return!0}},t.prototype.checkWatchers=function(){var t,e;try{for(var n=_(this._watchers),i=n.next();!i.done;i=n.next()){(0,i.value)()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},t=y([e.Injectable()],t)}(); /*! * devextreme-angular * Version: 20.2.5 * Build date: Fri Jan 15 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */ /*! * devextreme-angular * Version: 20.2.5 * Build date: Fri Jan 15 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */ function E(t){return t.get?t.get(0):t} /*! * devextreme-angular * Version: 20.2.5 * Build date: Fri Jan 15 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */ var N=function(){},w=function(){function t(t,e,n,i,o){this.templateRef=t,this.viewContainerRef=e,this.renderer=i,this.zone=o,n.setTemplate(this)}return Object.defineProperty(t.prototype,"dxTemplateOf",{set:function(t){this.name=t},enumerable:!0,configurable:!0}),t.prototype.renderTemplate=function(t){var e=this,n=this.viewContainerRef.createEmbeddedView(this.templateRef,{$implicit:t.model,index:t.index}),i=E(t.container);return t.container&&n.rootNodes.forEach((function(t){e.renderer.appendChild(i,t)})),n},t.prototype.render=function(t){var e,n=this;return this.zone.isStable?e=this.zone.run((function(){return n.renderTemplate(t)})):(e=this.renderTemplate(t)).detectChanges(),e.rootNodes.forEach((function(t){1===t.nodeType&&r.setClass(t,"dx-template-wrapper",!0),s.one(t,"dxremove",(function(t,n){n&&n._angularIntegration||e.destroy()}))})),e.rootNodes},t.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef},{type:O},{type:e.Renderer2},{type:e.NgZone}]},y([e.Input(),v("design:type",Object),v("design:paramtypes",[Object])],t.prototype,"dxTemplateOf",null),t=y([e.Directive({selector:"[dxTemplate]"}),v("design:paramtypes",[e.TemplateRef,e.ViewContainerRef,O,e.Renderer2,e.NgZone])],t)}(),P=function(){function t(){}return t=y([e.NgModule({declarations:[w],exports:[w]})],t)}(),j=function(){function t(){this._initialOptions={},this._collectionContainerImpl=new T(this._setOption.bind(this),this._filterItems.bind(this))}return t.prototype._optionChangedHandler=function(t){var e=this._fullOptionPath();if(0===t.fullName.indexOf(e)){var n=this[t.fullName.slice(e.length)+"Change"];n&&n.next(t.value)}},t.prototype._createEventEmitters=function(t){var n=this;t.forEach((function(t){n[t.emit]=new e.EventEmitter}))},t.prototype._getOption=function(t){return this.isLinked?this.instance.option(this._fullOptionPath()+t):this._initialOptions[t]},t.prototype._setOption=function(t,e){if(this.isLinked){var n=this._fullOptionPath()+t;this.instance.option(n,e)}else this._initialOptions[t]=e},t.prototype._addRemovedOption=function(t){this.instance&&this.removedNestedComponents&&this.removedNestedComponents.push(t)},t.prototype._deleteRemovedOptions=function(t){this.instance&&this.removedNestedComponents&&(this.removedNestedComponents=this.removedNestedComponents.filter((function(e){return!e.startsWith(t)})))},t.prototype._addRecreatedComponent=function(){var t=this;this.instance&&this.recreatedNestedComponents&&this.recreatedNestedComponents.push({getOptionPath:function(){return t._getOptionPath()}})},t.prototype._getOptionPath=function(){return this._hostOptionPath()+this._optionPath},t.prototype.setHost=function(t,e){this._host=t,this._hostOptionPath=e,this.optionChangedHandlers.subscribe(this._optionChangedHandler.bind(this))},t.prototype.setChildren=function(t,e){return this.resetOptions(t),this._collectionContainerImpl.setChildren(t,e)},t.prototype._filterItems=function(t){var e=this;return t.filter((function(t){return t!==e}))},Object.defineProperty(t.prototype,"instance",{get:function(){return this._host&&this._host.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resetOptions",{get:function(){return this._host&&this._host.resetOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRecreated",{get:function(){return this._host&&this._host.isRecreated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removedNestedComponents",{get:function(){return this._host&&this._host.removedNestedComponents},set:function(t){this._host.removedNestedComponents=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"recreatedNestedComponents",{get:function(){return this._host&&this._host.recreatedNestedComponents},set:function(t){this._host.recreatedNestedComponents=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLinked",{get:function(){return!!this.instance&&this._host.isLinked},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionChangedHandlers",{get:function(){return this._host&&this._host.optionChangedHandlers},enumerable:!0,configurable:!0}),t}(),T=function(){function t(t,e){this._setOption=t,this._filterItems=e,this._activatedQueries={}}return t.prototype.setChildren=function(t,e){if(this._filterItems&&(e=this._filterItems(e)),e.length&&(this._activatedQueries[t]=!0),this._activatedQueries[t]){var n=e.map((function(t,e){return t._index=e,t._value}));this._setOption(t,n)}},t}(),I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.setHost=function(e,n){t.prototype.setHost.call(this,e,n),this._host[this._optionPath]=this._initialOptions},e.prototype._fullOptionPath=function(){return this._getOptionPath()+"."},e}(j),k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype._fullOptionPath=function(){return this._getOptionPath()+"["+this._index+"]."},Object.defineProperty(e.prototype,"_value",{get:function(){return this._initialOptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLinked",{get:function(){return void 0!==this._index&&!!this.instance&&this._host.isLinked},enumerable:!0,configurable:!0}),e}(j),D=function(t){var e=[];a(t).hasClass("dx-visibility-change-handler")||e.push(t),e.push.apply(e,t.querySelectorAll(".dx-visibility-change-handler"));for(var n=0;n<e.length;n++)s.triggerHandler(e[n],"dxshown")};var R,S,H=function(){function t(){}return t.prototype.getHost=function(){return this._host},t.prototype.setHost=function(t,e){this._host=t,this._optionPath=e||function(){return""}},t.prototype.setNestedOption=function(t){t.setHost(this._host,this._optionPath)},t}(),U=function(){return R||(R=i.makeStateKey("DX_isPlatformServer")),R},q=function(){function t(t,n,i,o,r,s){this.element=t,this.ngZone=n,this.watcherHelper=o,this.transferState=r,this.platformId=s,this._initialOptions={},this._optionsToUpdate={},this.optionChangedHandlers=new e.EventEmitter,this.isLinked=!0,this.changedOptions={},this.removedNestedComponents=[],this.widgetUpdateLocked=!1,this.templates=[],i.setHost(this),this._collectionContainerImpl=new T(this._setOption.bind(this)),this.eventHelper=new C(n,this)}return t.prototype._initTemplates=function(){if(this.templates.length){var t={};this.templates.forEach((function(e){t[e.name]=e})),this.instance.option("integrationOptions.templates",t)}},t.prototype._initEvents=function(){var t=this;this.instance.on("optionChanged",(function(e){t.changedOptions[e.name]=e.value;var n=e.name===e.fullName?e.value:e.component.option(e.name);t.eventHelper.fireNgEvent(e.name+"Change",[n]),t.optionChangedHandlers.emit(e)}))},t.prototype._initOptions=function(){this._initialOptions.integrationOptions.watchMethod=this.watcherHelper.getWatchMethod()},t.prototype._initPlatform=function(){this.transferState.hasKey(U())?this._initialOptions.integrationOptions.renderedOnServer=this.transferState.get(U(),null):n.isPlatformServer(this.platformId)&&this.transferState.set(U(),!0)},t.prototype._createEventEmitters=function(t){var e=this,n=this.ngZone;this.eventHelper.createEmitters(t),this._initialOptions.eventsStrategy=function(i){var o=new b(i,n);return t.filter((function(t){return t.subscribe})).forEach((function(t){o.addEmitter(t.subscribe,e[t.emit])})),o},this._initialOptions.nestedComponentOptions=function(t){return{eventsStrategy:function(t){return new b(t,n)},nestedComponentOptions:t.option("nestedComponentOptions")}}},t.prototype._shouldOptionChange=function(t,e){if(this.changedOptions.hasOwnProperty(t)){var n=this.changedOptions[t];return delete this.changedOptions[t],e!==n}return!0},t.prototype.clearChangedOptions=function(){this.changedOptions={}},t.prototype._getOption=function(t){return this.instance?this.instance.option(t):this._initialOptions[t]},t.prototype.lockWidgetUpdate=function(){!this.widgetUpdateLocked&&this.instance&&(this.instance.beginUpdate(),this.widgetUpdateLocked=!0)},t.prototype.unlockWidgetUpdate=function(){this.widgetUpdateLocked&&(this.widgetUpdateLocked=!1,this.instance.endUpdate())},t.prototype._setOption=function(t,e){this.lockWidgetUpdate(),this._shouldOptionChange(t,e)&&(this.instance?this.instance.option(t,e):this._initialOptions[t]=e)},t.prototype._createWidget=function(t){this._initialOptions.integrationOptions={},this._initPlatform(),this._initOptions(),this._initialOptions.onInitializing=function(){this.beginUpdate()},this.instance=this._createInstance(t,this._initialOptions),this._initEvents(),this._initialOptions={}},t.prototype._destroyWidget=function(){if(this.removedNestedComponents=[],this.instance){var t=this.instance.element();s.triggerHandler(t,"dxremove",{_angularIntegration:!0}),this.instance.dispose(),r.removeElement(t)}},t.prototype.ngOnChanges=function(t){for(var e in t){t[e].currentValue!==this[e]&&(this._optionsToUpdate[e]=t[e].currentValue)}},t.prototype.ngOnInit=function(){this._createWidget(this.element.nativeElement)},t.prototype.ngDoCheck=function(){this.applyOptions()},t.prototype.ngAfterContentChecked=function(){this.applyOptions(),this.resetOptions(),this.unlockWidgetUpdate()},t.prototype.ngAfterViewInit=function(){this._initTemplates(),this.instance.endUpdate(),this.recreatedNestedComponents=[]},t.prototype.applyOptions=function(){Object.keys(this._optionsToUpdate).length&&(this.instance&&this.instance.option(this._optionsToUpdate),this._optionsToUpdate={})},t.prototype.resetOptions=function(t){var e=this;this.instance&&(this.removedNestedComponents.filter((function(n){return!(n&&!e.isRecreated(n)&&t)||n.startsWith(t)})).forEach((function(t){e.instance.resetOption(t)})),this.removedNestedComponents=[],this.recreatedNestedComponents=[])},t.prototype.isRecreated=function(t){return this.recreatedNestedComponents&&this.recreatedNestedComponents.some((function(e){return e.getOptionPath()===t}))},t.prototype.setTemplate=function(t){this.templates.push(t)},t.prototype.setChildren=function(t,e){return this.resetOptions(t),this._collectionContainerImpl.setChildren(t,e)},t=y([g(5,e.Inject(e.PLATFORM_ID)),v("design:paramtypes",[e.ElementRef,e.NgZone,O,x,i.TransferState,Object])],t)}(),L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.createInstance=function(t){this._createWidget(t)},e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this._createWidget(this.element.nativeElement),this.instance.endUpdate()},e}(q),M=["mousemove","mouseover","mouseout"],W=["mouseup","click","mousedown","transitionend","wheel"],A=function(t){S||(S=this.callBase.bind(this)),B.push(t)},V=A,B=[]; /*! * devextreme-angular * Version: 20.2.5 * Build date: Fri Jan 15 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */u.inject({add:function(t){return A.call(this,t)}});var z=function(t,n,i){Number(e.VERSION.major)<7&&console.warn("Your version of Angular is not supported (https://supportcenter.devexpress.com/ticket/details/t879496). Please update your project to version 7 or later. Please refer to the Angular Update Guide for more information: https://update.angular.io"),r.inject({_document:t,listen:function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=e[1];return-1!==M.indexOf(o)?n.runOutsideAngular((function(){return t.callBase.apply(t,e)})):n.isStable&&-1!==W.indexOf(o)?n.run((function(){return t.callBase.apply(t,e)})):this.callBase.apply(this,e)},isElementNode:function(t){return t&&1===t.nodeType},isTextNode:function(t){return t&&3===t.nodeType},isDocument:function(t){return t&&9===t.nodeType}}),c.inject({getXhr:function(){if(!i)return this.callBase.apply(this);var t=i.build();return"withCredentials"in t||(t.withCredentials=!1),t}});var o=function(){n.run((function(){h.set({}),B.forEach((function(t){return S.call(null,t)})),B=[],u.fire()}))};o(),A=function(t){return n.run((function(){return t()}))},z=o},F=z,K=function(){function t(t,e,n){z(t,e,n)}return t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:e.NgZone},{type:p.XhrFactory,decorators:[{type:e.Optional}]}]},t=y([e.NgModule({}),g(0,e.Inject(n.DOCUMENT)),g(2,e.Optional()),v("design:paramtypes",[Object,e.NgZone,p.XhrFactory])],t)}(),Z=function(){function t(t){this._differs=t,this._propertyDiffers={}}return t.prototype.setHost=function(t){this._host=t},t.prototype.setup=function(t,e){if(t in e){var n=e[t].currentValue;this.setupSingle(t,n)}},t.prototype.setupSingle=function(t,e){if(e&&Array.isArray(e)){if(!this._propertyDiffers[t])try{return this._propertyDiffers[t]=this._differs.find(e).create(null),!0}catch(t){}}else delete this._propertyDiffers[t];return!1},t.prototype.getChanges=function(t,e){if(this._propertyDiffers[t])return this._propertyDiffers[t].diff(e)},t.prototype.checkChangedOptions=function(t,e){return this._host.changedOptions[t]===e},t.prototype.doCheck=function(t){if(this._propertyDiffers[t]){var e=this._host[t],n=this.checkChangedOptions(t,e);this.getChanges(t,e)&&this._host.instance&&!n&&(this._host.lockWidgetUpdate(),this._host.instance.option(t,e))}},t.ctorParameters=function(){return[{type:e.IterableDiffers}]},t=y([e.Injectable(),v("design:paramtypes",[e.IterableDiffers])],t)}(),X=function(){function t(t,e){this.state=t,this.platformId=e;var o=this;f.inject({sendRequest:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=i.makeStateKey(o.generateKey(t)),s=o.state.get(r,null);if(n.isPlatformServer(o.platformId)){var a=this.callBase.apply(this,t);return a.always((function(t,e){var n={data:t,status:e};o.state.set(r,n)})),a}if(s){var p=l.Deferred();return p.resolve(s.data,s.status),o.state.set(r,null),p.promise()}return this.callBase.apply(this,t)}})}return t.prototype.generateKey=function(t){var e="";for(var n in t){if("object"==typeof t[n])e+=n+this.generateKey(t[n]);else e+=n+t[n]}return e},t.ctorParameters=function(){return[{type:i.TransferState},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t=y([e.NgModule({imports:[i.BrowserTransferStateModule]}),g(1,e.Inject(e.PLATFORM_ID)),v("design:paramtypes",[i.TransferState,Object])],t)}();t.BaseNestedOption=j,t.CollectionNestedOption=k,t.CollectionNestedOptionContainerImpl=T,t.DX_TEMPLATE_WRAPPER_CLASS="dx-template-wrapper",t.DxComponent=q,t.DxComponentExtension=L,t.DxIntegrationModule=K,t.DxServerTransferStateModule=X,t.DxTemplateDirective=w,t.DxTemplateHost=O,t.DxTemplateModule=P,t.EmitterHelper=C,t.IterableDifferHelper=Z,t.NestedOption=I,t.NestedOptionHost=H,t.NgEventsStrategy=b,t.RenderData=N,t.WatcherHelper=x,t.extractTemplate=function(t,e,n,i){void 0!==!t.template&&e.nativeElement.hasChildNodes()&&[].slice.call(e.nativeElement.childNodes).filter((function(t){if(t.tagName){var e=t.tagName.toLowerCase().substr(0,3);return!("dxi"===e||"dxo"===e)}return"#comment"!==t.nodeName&&t.textContent.replace(/\s/g,"").length})).length&&(t.template={render:function(t){var o=e.nativeElement;if(r.setClass(o,"dx-template-wrapper",!0),t.container){var s=E(t.container),a=s.contains(e.nativeElement);if(n.appendChild(s,e.nativeElement),!a)i.body.contains(s)&&D(o)}return o}})},t.getElement=E,t.getServerStateKey=U,t.ɵ0=V,t.ɵ1=F,Object.defineProperty(t,"__esModule",{value:!0})})); //# sourceMappingURL=devextreme-angular-core.umd.min.js.map