@catull/igniteui-angular
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
16 lines (14 loc) • 1.37 MB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/animations"),require("@angular/core"),require("@angular/forms"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("resize-observer-polyfill"),require("jszip/dist/jszip"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("igniteui-angular",["exports","@angular/animations","@angular/core","@angular/forms","@angular/common","rxjs","rxjs/operators","resize-observer-polyfill","jszip/dist/jszip","@angular/platform-browser"],t):t((e=e||self)["igniteui-angular"]={},e.ng.animations,e.ng.core,e.ng.forms,e.ng.common,e.rxjs,e.rxjs.operators,e.ResizeObserver,e.JSZip,e.ng.platformBrowser)}(this,(function(e,t,i,n,o,r,s,a,l,c){"use strict";a=a&&a.hasOwnProperty("default")?a.default:a;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function d(e,t){function i(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var u,h,g,f=function(){return(f=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function m(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}function y(e,t){return function(i,n){t(i,n,e)}}function v(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function b(e){var t="function"==typeof Symbol&&e[Symbol.iterator],i=0;return t?t.call(e):{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}}function x(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,r=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return s}function C(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(x(arguments[t]));return e}(u=e.ɵg||(e.ɵg={}))[u.quad="cubic-bezier(0.550, 0.085, 0.680, 0.530)"]="quad",u[u.cubic="cubic-bezier(0.550, 0.055, 0.675, 0.190)"]="cubic",u[u.quart="cubic-bezier(0.895, 0.030, 0.685, 0.220)"]="quart",u[u.quint="cubic-bezier(0.755, 0.050, 0.855, 0.060)"]="quint",u[u.sine="cubic-bezier(0.470, 0.000, 0.745, 0.715)"]="sine",u[u.expo="cubic-bezier(0.950, 0.050, 0.795, 0.035)"]="expo",u[u.circ="cubic-bezier(0.600, 0.040, 0.980, 0.335)"]="circ",u[u.back="cubic-bezier(0.600, -0.280, 0.735, 0.045)"]="back",(h=e.ɵh||(e.ɵh={}))[h.quad="cubic-bezier(0.250, 0.460, 0.450, 0.940)"]="quad",h[h.cubic="cubic-bezier(0.215, 0.610, 0.355, 1.000)"]="cubic",h[h.quart="cubic-bezier(0.165, 0.840, 0.440, 1.000)"]="quart",h[h.quint="cubic-bezier(0.230, 1.000, 0.320, 1.000)"]="quint",h[h.sine="cubic-bezier(0.390, 0.575, 0.565, 1.000)"]="sine",h[h.expo="cubic-bezier(0.190, 1.000, 0.220, 1.000)"]="expo",h[h.circ="cubic-bezier(0.075, 0.820, 0.165, 1.000)"]="circ",h[h.back="cubic-bezier(0.175, 0.885, 0.320, 1.275)"]="back",function(e){e[e.quad="cubic-bezier(0.455, 0.030, 0.515, 0.955)"]="quad",e[e.cubic="cubic-bezier(0.645, 0.045, 0.355, 1.000)"]="cubic",e[e.quart="cubic-bezier(0.770, 0.000, 0.175, 1.000)"]="quart",e[e.quint="cubic-bezier(0.860, 0.000, 0.070, 1.000)"]="quint",e[e.sine="cubic-bezier(0.445, 0.050, 0.550, 0.950)"]="sine",e[e.expo="cubic-bezier(1.000, 0.000, 0.000, 1.000)"]="expo",e[e.circ="cubic-bezier(0.785, 0.135, 0.150, 0.860)"]="circ",e[e.back="cubic-bezier(0.680, -0.550, 0.265, 1.550)"]="back"}(g||(g={}));var w=[t.style({opacity:"{{startOpacity}}"}),t.animate("{{duration}} {{delay}} {{easing}}",t.style({opacity:"{{endOpacity}}"}))],_={delay:"0s",duration:"350ms",easing:e.ɵh.sine,endOpacity:1,startOpacity:0},S=t.animation(w,{params:_}),I=t.animation(w,{params:{delay:"0s",duration:"350ms",easing:e.ɵh.sine,endOpacity:0,startOpacity:1}}),O=[t.style({backfaceVisibility:"hidden",transformStyle:"preserve-3d"}),t.animate("{{duration}} {{delay}} {{easing}}",t.keyframes([t.style({offset:0,transform:"translateZ({{startDistance}})\n rotate3d({{rotateX}}, {{rotateY}}, {{rotateZ}}, {{startAngle}}deg)"}),t.style({offset:1,transform:"translateZ({{endDistance}})\n rotate3d({{rotateX}}, {{rotateY}}, {{rotateZ}}, {{endAngle}}deg)"})]))],E={delay:"0s",duration:"600ms",easing:e.ɵh.quad,endAngle:180,endDistance:"0px",rotateX:1,rotateY:0,rotateZ:0,startAngle:0,startDistance:"0px"},D=t.animation(O,{params:f({},E)}),T=t.animation(O,{params:f(f({},E),{endAngle:-180})}),P=t.animation(O,{params:f(f({},E),{rotateX:0,rotateY:1})}),R=t.animation(O,{params:f(f({},E),{endAngle:-180,rotateX:0,rotateY:1})}),L=t.animation(O,{params:f(f({},E),{endDistance:"170px"})}),j=t.animation(O,{params:f(f({},E),{endDistance:"-170px"})}),k=t.animation(O,{params:f(f({},E),{endDistance:"170px",rotateX:0,rotateY:1})}),A=t.animation(O,{params:f(f({},E),{endDistance:"-170px",rotateX:0,rotateY:1})}),F=[t.style({opacity:"{{startOpacity}}",transform:"rotate3d({{rotateX}},{{rotateY}},{{rotateZ}},{{startAngle}}deg)",transformOrigin:"{{xPos}} {{yPos}}"}),t.animate("{{duration}} {{delay}} {{easing}}",t.style({offset:0,opacity:"{{endOpacity}}",transform:"rotate3d({{rotateX}},{{rotateY}},{{rotateZ}},{{endAngle}}deg)",transformOrigin:"{{xPos}} {{yPos}}"}))],M={delay:"0s",duration:"600ms",easing:e.ɵh.quad,endAngle:0,endOpacity:1,rotateX:0,rotateY:0,rotateZ:1,startAngle:-360,startOpacity:0,xPos:"center",yPos:"center"},B=f(f({},M),{easing:e.ɵg.quad,endOpacity:0,startOpacity:1}),V=t.animation(F,{params:f({},M)}),H=t.animation(F,{params:f({},B)}),N=t.animation(F,{params:f(f({},M),{xPos:"top"})}),G=t.animation(F,{params:f(f({},B),{xPos:"top"})}),z=t.animation(F,{params:f(f({},M),{xPos:"right"})}),W=t.animation(F,{params:f(f({},B),{xPos:"right"})}),K=t.animation(F,{params:f(f({},M),{xPos:"bottom"})}),U=t.animation(F,{params:f(f({},B),{xPos:"bottom"})}),$=t.animation(F,{params:f(f({},M),{xPos:"left"})}),Y=t.animation(F,{params:f(f({},B),{xPos:"left"})}),X=t.animation(F,{params:f(f({},M),{xPos:"right",yPos:"top"})}),q=t.animation(F,{params:f(f({},B),{xPos:"right",yPos:"top"})}),Z=t.animation(F,{params:f(f({},M),{xPos:"right",yPos:"bottom"})}),Q=t.animation(F,{params:f(f({},B),{xPos:"right",yPos:"bottom"})}),J=t.animation(F,{params:f(f({},M),{xPos:"left",yPos:"bottom"})}),ee=t.animation(F,{params:f(f({},B),{xPos:"left",yPos:"bottom"})}),te=t.animation(F,{params:f(f({},M),{xPos:"left",yPos:"top"})}),ie=t.animation(F,{params:f(f({},B),{xPos:"left",yPos:"top"})}),ne=t.animation(F,{params:f(f({},M),{rotateX:1,rotateY:1,rotateZ:0})}),oe=t.animation(F,{params:f(f({},B),{rotateX:1,rotateY:1,rotateZ:0})}),re=t.animation(F,{params:f(f({},M),{rotateX:-1,rotateY:1,rotateZ:0})}),se=t.animation(F,{params:f(f({},B),{rotateX:-1,rotateY:1,rotateZ:0})}),ae=t.animation(F,{params:f(f({},M),{rotateX:0,rotateY:1,rotateZ:0})}),le=t.animation(F,{params:f(f({},B),{rotateX:0,rotateY:1,rotateZ:0})}),ce=t.animation(F,{params:f(f({},M),{rotateX:1,rotateY:0,rotateZ:0})}),pe=t.animation(F,{params:f(f({},B),{rotateX:1,rotateY:0,rotateZ:0})}),de=[t.animate("{{duration}} {{delay}} {{easing}}",t.keyframes([t.style({offset:0,transform:"rotate(0deg) translate{{direction}}(0)",transformOrigin:"{{xPos}} {{yPos}}"}),t.style({offset:.1,transform:"rotate({{endAngle}}deg) translate{{direction}}(-{{startDistance}})"}),t.style({offset:.2,transform:"rotate(-{{startAngle}}deg) translate{{direction}}({{startDistance}})"}),t.style({offset:.3,transform:"rotate({{startAngle}}deg) translate{{direction}}(-{{startDistance}})"}),t.style({offset:.4,transform:"rotate(-{{startAngle}}deg) translate{{direction}}({{startDistance}})"}),t.style({offset:.5,transform:"rotate({{startAngle}}deg) translate{{direction}}(-{{startDistance}})"}),t.style({offset:.6,transform:"rotate(-{{startAngle}}deg) translate{{direction}}({{startDistance}})"}),t.style({offset:.7,transform:"rotate({{startAngle}}deg) translate{{direction}}(-{{startDistance}})"}),t.style({offset:.8,transform:"rotate(-{{endAngle}}deg) translate{{direction}}({{endDistance}})"}),t.style({offset:.9,transform:"rotate({{endAngle}}deg) translate{{direction}}(-{{endDistance}})"}),t.style({offset:1,transform:"rotate(0deg) translate{{direction}}(0)",transformOrigin:"{{xPos}} {{yPos}}"})]))],ue={delay:"0s",direction:"X",duration:"800ms",easing:g.quad,endAngle:0,endDistance:"8px",startAngle:0,startDistance:"10px",xPos:"center",yPos:"center"},he=t.animation(de,{params:f(f({},ue),{direction:"X"})}),ge=t.animation(de,{params:f(f({},ue),{direction:"Y"})}),fe=t.animation(de,{params:f(f({},ue),{endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",yPos:"top"})}),me=t.animation(de,{params:f(f({},ue),{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",yPos:"bottom"})}),ye=t.animation(de,{params:f(f({},ue),{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"right",yPos:"center"})}),ve=t.animation(de,{params:f(f({},ue),{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"left",yPos:"center"})}),be=t.animation(de,{params:f(f({},ue),{direction:"Y",endAngle:8,endDistance:"0",startAngle:10,startDistance:"0",xPos:"center",yPos:"center"})}),xe=t.animation(de,{params:f(f({},ue),{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"right",yPos:"top"})}),Ce=t.animation(de,{params:f(f({},ue),{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"right",yPos:"bottom"})}),we=t.animation(de,{params:f(f({},ue),{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"left",yPos:"bottom"})}),_e=t.animation(de,{params:f(f({},ue),{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"left",yPos:"top"})}),Se=[t.style({animationTimingFunction:"ease-out",transform:"scale(1)",transformOrigin:"center center"}),t.animate("{{duration}} {{delay}} {{easing}}",t.keyframes([t.style({animationTimingFunction:"ease-in",offset:.1,transform:"scale(0.91)"}),t.style({animationTimingFunction:"ease-out",offset:.17,transform:"scale(0.98)"}),t.style({animationTimingFunction:"ease-in",offset:.33,transform:"scale(0.87)"}),t.style({animationTimingFunction:"ease-out",offset:.45,transform:"scale(1)"})]))],Ie=[t.animate("{{duration}} {{delay}} {{easing}}",t.keyframes([t.style({offset:0,transform:"scale({{fromScale}})"}),t.style({offset:.5,transform:"scale({{toScale}})"}),t.style({offset:1,transform:"scale({{fromScale}})"})]))],Oe={delay:"0s",duration:".5s",easing:"ease-in-out",fromScale:1,toScale:1.1},Ee=[t.animate("{{duration}} {{delay}} {{easing}}",t.keyframes([t.style({offset:0,opacity:.8,transform:"scale({{fromScale}})"}),t.style({offset:.8,opacity:0,transform:"scale({{midScale}})"}),t.style({offset:1,opacity:0,transform:"scale({{toScale}})"})]))],De=t.animation(Ie,{params:f({},Oe)}),Te=t.animation(Ie,{params:f(f({},Oe),{toScale:.9})}),Pe=t.animation(Se,{params:f({},{delay:"0s",duration:"1.5s",easing:"ease-in-out"})}),Re=t.animation(Ee,{params:f({},{delay:"0s",duration:".8s",easing:"ease-in-out",fromScale:.2,midScale:1.2,toScale:2.2})}),Le=[t.style({opacity:"{{startOpacity}}",transform:"scale{{direction}}({{fromScale}})",transformOrigin:"{{xPos}} {{yPos}}"}),t.animate("{{duration}} {{delay}} {{easing}}",t.style({opacity:"{{endOpacity}}",transform:"scale{{direction}}({{toScale}})",transformOrigin:"{{xPos}} {{yPos}}"}))],je={delay:"0s",direction:"",duration:"350ms",easing:e.ɵh.quad,endOpacity:1,fromScale:.5,startOpacity:0,toScale:1,xPos:"50%",yPos:"50%"},ke=f(f({},je),{easing:e.ɵh.sine,endOpacity:0,fromScale:1,startOpacity:1,toScale:.5}),Ae=t.animation(Le,{params:je}),Fe=t.animation(Le,{params:f(f({},je),{xPos:"0",yPos:"100%"})}),Me=t.animation(Le,{params:f(f({},je),{direction:"Y",fromScale:.4})}),Be=t.animation(Le,{params:f(f({},je),{xPos:"50%",yPos:"0"})}),Ve=t.animation(Le,{params:f(f({},je),{xPos:"0",yPos:"50%"})}),He=t.animation(Le,{params:f(f({},je),{direction:"Y",fromScale:.4,xPos:"100%",yPos:"0"})}),Ne=t.animation(Le,{params:f(f({},je),{xPos:"100%",yPos:"0"})}),Ge=t.animation(Le,{params:f(f({},je),{xPos:"0",yPos:"0"})}),ze=t.animation(Le,{params:f(f({},je),{direction:"Y",fromScale:.4,xPos:"0",yPos:"100%"})}),We=t.animation(Le,{params:f(f({},je),{xPos:"100%",yPos:"50%"})}),Ke=t.animation(Le,{params:f(f({},je),{direction:"X",fromScale:.4})}),Ue=t.animation(Le,{params:f(f({},je),{xPos:"100%",yPos:"100%"})}),$e=t.animation(Le,{params:f(f({},je),{direction:"X",fromScale:.4,xPos:"0",yPos:"0"})}),Ye=t.animation(Le,{params:f(f({},je),{xPos:"50%",yPos:"100%"})}),Xe=t.animation(Le,{params:f(f({},je),{direction:"X",fromScale:.4,xPos:"100%",yPos:"100%"})}),qe=t.animation(Le,{params:ke}),Ze=t.animation(Le,{params:f(f({},ke),{xPos:"0",yPos:"100%"})}),Qe=t.animation(Le,{params:f(f({},ke),{xPos:"100%",yPos:"100%"})}),Je=t.animation(Le,{params:f(f({},ke),{direction:"Y",toScale:.3})}),et=t.animation(Le,{params:f(f({},ke),{direction:"Y",toScale:.3,xPos:"100%",yPos:"0"})}),tt=t.animation(Le,{params:f(f({},ke),{direction:"Y",toScale:.3,xPos:"0",yPos:"100%"})}),it=t.animation(Le,{params:f(f({},ke),{xPos:"50%",yPos:"0"})}),nt=t.animation(Le,{params:f(f({},ke),{xPos:"0",yPos:"50%"})}),ot=t.animation(Le,{params:f(f({},ke),{xPos:"100%",yPos:"0"})}),rt=t.animation(Le,{params:f(f({},ke),{xPos:"0",yPos:"0"})}),st=t.animation(Le,{params:f(f({},ke),{xPos:"100%",yPos:"50%"})}),at=t.animation(Le,{params:f(f({},ke),{xPos:"50%",yPos:"100%"})}),lt=t.animation(Le,{params:f(f({},ke),{direction:"X",toScale:.3})}),ct=t.animation(Le,{params:f(f({},ke),{direction:"X",toScale:.3,xPos:"0",yPos:"0"})}),pt=t.animation(Le,{params:f(f({},ke),{direction:"X",toScale:.3,xPos:"100%",yPos:"100%"})}),dt=[t.style({opacity:"{{startOpacity}}",transform:"{{fromPosition}}"}),t.animate("{{duration}} {{delay}} {{easing}}",t.style({opacity:"{{endOpacity}}",transform:"{{toPosition}}"}))],ut={delay:"0s",duration:"350ms",easing:e.ɵh.quad,endOpacity:1,fromPosition:"translateY(-500px)",startOpacity:0,toPosition:"translateY(0)"},ht={delay:"0s",duration:"350ms",easing:e.ɵg.quad,endOpacity:0,fromPosition:"translateY(0)",startOpacity:1,toPosition:"translateY(-500px)"},gt=t.animation(dt,{params:ut}),ft=t.animation(dt,{params:{delay:"0s",duration:"350ms",easing:e.ɵh.quad,endOpacity:1,fromPosition:"translateX(-500px)",startOpacity:0,toPosition:"translateY(0)"}}),mt=t.animation(dt,{params:{delay:"0s",duration:"350ms",easing:e.ɵh.quad,endOpacity:1,fromPosition:"translateX(500px)",startOpacity:0,toPosition:"translateY(0)"}}),yt=t.animation(dt,{params:{delay:"0s",duration:"350ms",easing:e.ɵh.quad,endOpacity:1,fromPosition:"translateY(500px)",startOpacity:0,toPosition:"translateY(0)"}}),vt=t.animation(dt,{params:f(f({},ut),{fromPosition:"translateY(-500px) translateX(500px)",toPosition:"translateY(0) translateX(0)"})}),bt=t.animation(dt,{params:f(f({},ut),{fromPosition:"translateY(-500px) translateX(-500px)",toPosition:"translateY(0) translateX(0)"})}),xt=t.animation(dt,{params:f(f({},ut),{fromPosition:"translateY(500px) translateX(500px)",toPosition:"translateY(0) translateX(0)"})}),Ct=t.animation(dt,{params:f(f({},ut),{fromPosition:"translateY(500px) translateX(-500px)",toPosition:"translateY(0) translateX(0)"})}),wt=t.animation(dt,{params:ht}),_t=t.animation(dt,{params:f(f({},ht),{toPosition:"translateX(500px)"})}),St=t.animation(dt,{params:{delay:"0s",duration:"350ms",easing:e.ɵg.quad,endOpacity:0,fromPosition:"translateY(0)",startOpacity:1,toPosition:"translateY(500px)"}}),It=t.animation(dt,{params:f(f({},ht),{toPosition:"translateX(-500px)"})}),Ot=t.animation(dt,{params:f(f({},ht),{fromPosition:"translateY(0) translateX(0)",toPosition:"translateY(-500px) translateX(500px)"})}),Et=t.animation(dt,{params:f(f({},ht),{fromPosition:"translateY(0) translateX(0)",toPosition:"translateY(500px) translateX(500px)"})}),Dt=t.animation(dt,{params:f(f({},ht),{fromPosition:"translateY(0) translateX(0)",toPosition:"translateY(500px) translateX(-500px)"})}),Tt=t.animation(dt,{params:f(f({},ht),{fromPosition:"translateY(0) translateX(0)",toPosition:"translateY(-500px) translateX(-500px)"})}),Pt=[t.style({opacity:"{{startOpacity}}",transform:"rotate{{direction}}({{startAngle}}deg)",transformOrigin:"{{xPos}} {{yPos}}"}),t.animate("{{duration}} {{delay}} {{easing}}",t.style({opacity:"{{endOpacity}}",transform:"rotate{{direction}}({{endAngle}}deg)",transformOrigin:"{{xPos}} {{yPos}}"}))],Rt={delay:"0s",direction:"X",duration:".5s",easing:e.ɵh.back,endAngle:0,endOpacity:1,startAngle:-100,startOpacity:0,xPos:"top",yPos:"center"},Lt=f(f({},Rt),{duration:".55s",easing:e.ɵg.back,endAngle:70,endOpacity:0,startAngle:0,startOpacity:1}),jt=t.animation(Pt,{params:f({},Rt)}),kt=t.animation(Pt,{params:f(f({},Rt),{direction:"Y",xPos:"center",yPos:"right"})}),At=t.animation(Pt,{params:f(f({},Rt),{startAngle:100,xPos:"bottom"})}),Ft=t.animation(Pt,{params:f(f({},Rt),{direction:"Y",startAngle:100,xPos:"center",yPos:"left"})}),Mt=t.animation(Pt,{params:f(f({},Rt),{duration:".6s",startAngle:70})}),Bt=t.animation(Pt,{params:f(f({},Rt),{direction:"Y",duration:".6s",startAngle:70,xPos:"center",yPos:"right"})}),Vt=t.animation(Pt,{params:f(f({},Rt),{duration:".6s",startAngle:-70,xPos:"bottom"})}),Ht=t.animation(Pt,{params:f(f({},Rt),{direction:"Y",duration:".6s",startAngle:-70,xPos:"center",yPos:"left"})}),Nt=t.animation(Pt,{params:f({},Lt)}),Gt=t.animation(Pt,{params:f(f({},Lt),{direction:"Y",xPos:"center",yPos:"right"})}),zt=t.animation(Pt,{params:f(f({},Lt),{endAngle:-70,xPos:"bottom"})}),Wt=t.animation(Pt,{params:f(f({},Lt),{direction:"Y",endAngle:-70,xPos:"center",yPos:"left"})}),Kt=t.animation(Pt,{params:f(f({},Lt),{duration:".45s",endAngle:-100})}),Ut=t.animation(Pt,{params:f(f({},Lt),{direction:"Y",duration:".45s",endAngle:-100,xPos:"center",yPos:"right"})}),$t=t.animation(Pt,{params:f(f({},Lt),{duration:".45s",endAngle:100,xPos:"bottom"})}),Yt=t.animation(Pt,{params:f(f({},Lt),{direction:"Y",duration:".45s",endAngle:100,xPos:"center",yPos:"left"})}),Xt=[t.style({opacity:"{{ startOpacity }}",height:"{{ startHeight }}"}),t.animate("{{duration}} {{delay}} {{easing}}",t.style({opacity:"{{ endOpacity }}",height:"{{ endHeight }}"}))],qt={delay:"0s",duration:"350ms",easing:e.ɵg.quad,startOpacity:0,endOpacity:1,startHeight:"",endHeight:""},Zt=t.animation(Xt,{params:f(f({},qt),{easing:e.ɵh.quad,startOpacity:0,endOpacity:1,startHeight:"0px",endHeight:"*"})}),Qt=t.animation(Xt,{params:f(f({},qt),{easing:e.ɵh.quad,startOpacity:1,endOpacity:0,startHeight:"*",endHeight:"0px"})}),Jt=function(){function e(){this.navs={}}return e.prototype.add=function(e,t){this.navs[e]=t},e.prototype.remove=function(e){delete this.navs[e]},e.prototype.get=function(e){if(e)return this.navs[e]},e.prototype.toggle=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this.navs[e])return(t=this.navs[e]).toggle.apply(t,C(i))},e.prototype.open=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this.navs[e])return(t=this.navs[e]).open.apply(t,C(i))},e.prototype.close=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this.navs[e])return(t=this.navs[e]).close.apply(t,C(i))},e=m([i.Injectable(),v("design:paramtypes",[])],e)}(),ei=function(){function e(e){this.state=e}return e.prototype.toggleNavigationDrawer=function(){this.state.toggle(this.target,!0)},e.ctorParameters=function(){return[{type:Jt}]},m([i.Input("igxNavToggle"),v("design:type",Object)],e.prototype,"target",void 0),m([i.HostListener("click"),v("design:type",Function),v("design:paramtypes",[]),v("design:returntype",void 0)],e.prototype,"toggleNavigationDrawer",null),e=m([i.Directive({selector:"[igxNavToggle]"}),v("design:paramtypes",[Jt])],e)}(),ti=function(){function e(e){this.state=e}return e.prototype.closeNavigationDrawer=function(){this.state.close(this.target,!0)},e.ctorParameters=function(){return[{type:Jt}]},m([i.Input("igxNavClose"),v("design:type",Object)],e.prototype,"target",void 0),m([i.HostListener("click"),v("design:type",Function),v("design:paramtypes",[]),v("design:returntype",void 0)],e.prototype,"closeNavigationDrawer",null),e=m([i.Directive({selector:"[igxNavClose]"}),v("design:paramtypes",[Jt])],e)}(),ii=function(){function e(){}return e=m([i.NgModule({declarations:[ti,ei],exports:[ti,ei],providers:[Jt]})],e)}();function ni(e,t){var i=[];if(!e)return i;for(var n=e.length;n--;)i[n]=t?ri(e[n]):e[n];return i}function oi(e,t){var i,n;if(!si(e))throw new Error("Cannot merge into "+e+". First param must be an object.");if(!si(t))return e;try{for(var o=b(Object.keys(t)),r=o.next();!r.done;r=o.next()){var s=r.value;e[s]=ri(t[s])}}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return e}function ri(e){var t,i;if(ai(e))return new Date(e.getTime());if(Array.isArray(e))return C(e);if(e instanceof Map||e instanceof Set)return e;if(si(e)){var n={};try{for(var o=b(Object.keys(e)),r=o.next();!r.done;r=o.next()){var s=r.value;n[s]=ri(e[s])}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return n}return e}function si(e){return e&&"[object Object]"===e.toString()}function ai(e){return"[object Date]"===Object.prototype.toString.call(e)}function li(e,t){return ai(e)&&ai(t)?e.getTime()===t.getTime():e===t}function ci(e,t){var i=null;ui()||(i=t.style.overflow,t.style.overflow="visible"),e.selectNodeContents(t);var n=e.getBoundingClientRect().width;return ui()||(t.style.overflow=i),n}function pi(){return navigator.appVersion.indexOf("Trident/")>0}function di(){return/Edge[\/\s](\d+\.\d+)/.test(navigator.userAgent)}function ui(){return/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)}var hi=function(){function e(e){this.platformId=e,this.isBrowser=o.isPlatformBrowser(this.platformId),this.isIOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window)}return e.ctorParameters=function(){return[{type:Object,decorators:[{type:i.Inject,args:[i.PLATFORM_ID]}]}]},e.ɵprov=i.ɵɵdefineInjectable({factory:function(){return new e(i.ɵɵinject(i.PLATFORM_ID))},token:e,providedIn:"root"}),e=m([i.Injectable({providedIn:"root"}),y(0,i.Inject(i.PLATFORM_ID)),v("design:paramtypes",[Object])],e)}();function gi(e){return 0===e.button}function fi(e){var t=[];return e.forEach((function(e){if(t.push(e),e.children){var i=Array.isArray(e.children)?e.children:e.children.toArray();t=t.concat(fi(i))}})),t}var mi,yi=new Set(["down","up","left","right","arrowdown","arrowup","arrowleft","arrowright","home","end","space","spacebar"," "]),vi=new Set("right down arrowright arrowdown".split(" ")),bi=new Set("left up arrowleft arrowup".split(" ")),xi=new Set(C(Array.from(yi),["tab","enter","f2","escape","esc"]));function Ci(e,t){return e.length===t.length&&e.every((function(e,i){return e.fieldName===t[i].fieldName&&e.value===t[i].value}))}function wi(e){var t=[];if(void 0!==e&&e.expression)for(t.push({fieldName:e.expression.fieldName,value:e.value});e.groupParent;)e=e.groupParent,t.unshift({fieldName:e.expression.fieldName,value:e.value});return t}(mi=e.SortingDirection||(e.SortingDirection={}))[mi.None=0]="None",mi[mi.Asc=1]="Asc",mi[mi.Desc=2]="Desc";var _i,Si,Ii,Oi=function(){function t(){}return t.instance=function(){return this._instance||(this._instance=new this)},t.prototype.sort=function(t,i,n,o,r){var s=this,a=i,l=n===e.SortingDirection.Desc?-1:1;return this.arraySort(t,(function(e,t){return s.compareObjects(e,t,a,l,o,r)}))},t.prototype.compareValues=function(e,t){var i=null==t;return null==e?i?0:-1:i?1:e>t?1:e<t?-1:0},t.prototype.compareObjects=function(e,t,i,n,o,r){var s=r(e,i),a=r(t,i);return o&&(s=s&&s.toLowerCase?s.toLowerCase():s,a=a&&a.toLowerCase?a.toLowerCase():a),n*this.compareValues(s,a)},t.prototype.arraySort=function(e,t){return e.sort(t)},t._instance=null,t}(),Ei=function(){function e(){}return e.instance=function(){return this._instance||(this._instance=new e)},e.prototype.sort=function(e,t){return e},e._instance=null,e}(),Di=function(){function e(){}return e.prototype.sort=function(e,t){return this.sortDataRecursive(e,t)},e.prototype.groupedRecordsByExpression=function(e,t,i){var n,o,r=[],s=i.fieldName,a=e.length;r.push(e[t]),o=this.getFieldValue(e[t],s),t++;var l=i.groupingComparer||Oi.instance().compareValues;for(n=t;n<a&&0===l(this.getFieldValue(e[n],s),o);n++)r.push(e[n]);return r},e.prototype.sortDataRecursive=function(e,t,i){var n,o,r,s,a;void 0===i&&(i=0);var l=t.length,c=e.length;if((i=i||0)>=l||c<=1)return e;if((r=t[i]).strategy||(r.strategy=Oi.instance()),e=r.strategy.sort(e,r.fieldName,r.dir,r.ignoreCase,this.getFieldValue),i===l-1)return e;for(n=0;n<c;n++){for((a=(s=this.groupedRecordsByExpression(e,n,r)).length)>1&&(s=this.sortDataRecursive(s,t,i+1)),o=0;o<a;o++)e[n+o]=s[o];n+=a-1}return e},e.prototype.groupDataRecursive=function(e,t,i,n,o,r,s,a){void 0===r&&(r=null),void 0===s&&(s=[]),void 0===a&&(a={data:[],metadata:[]});for(var l=t.expressions,c=t.expansion,p=0,d=[],u=function(){var u,g,f=h.groupedRecordsByExpression(e,p,l[i]),m={expression:l[i],level:i,records:ni(f),value:f[0][l[i].fieldName],groupParent:n,groups:[],height:r?r.renderedRowHeight:null};n?n.groups.push(m):s.push(m);var y=wi(m),v=c.find((function(e){return Ci(e.hierarchy||[{fieldName:m.expression.fieldName,value:m.value}],y)})),x=v?v.expanded:t.defaultExpanded,w=void 0;if(d.push(m),o.push(null),a.data.push(m),a.metadata.push(null),i<l.length-1)w=h.groupDataRecursive(f,t,i+1,m,x?o:[],r,s,a),x&&(d=d.concat(w));else{try{for(var _=(u=void 0,b(f)),S=_.next();!S.done;S=_.next()){var I=S.value;a.metadata.push(m),a.data.push(I)}}catch(e){u={error:e}}finally{try{S&&!S.done&&(g=_.return)&&g.call(_)}finally{if(u)throw u.error}}x&&(o.push.apply(o,C(a.metadata.slice(a.metadata.length-f.length))),d.push.apply(d,C(a.data.slice(a.data.length-f.length))))}p+=f.length},h=this;p<e.length;)u();return d},e.prototype.getFieldValue=function(e,t){return e[t]},e}(),Ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.getFieldValue=function(e,t){return e.data[t]},t}(Di),Pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.groupBy=function(e,t,i,n,o){void 0===o&&(o={data:[],metadata:[]});var r=[];return{data:this.groupDataRecursive(e,t,0,null,r,i,n,o),metadata:r}},t}(Di);(_i=e.PagingError||(e.PagingError={}))[_i.None=0]="None",_i[_i.IncorrectPageIndex=1]="IncorrectPageIndex",_i[_i.IncorrectRecordsPerPage=2]="IncorrectRecordsPerPage",(Si=e.FilteringLogic||(e.FilteringLogic={}))[Si.And=0]="And",Si[Si.Or=1]="Or",(Ii=e.FilteringExpressionsTreeType||(e.FilteringExpressionsTreeType={}))[Ii.Regular=0]="Regular",Ii[Ii.Advanced=1]="Advanced";var Ri,Li,ji=function(){function e(e,t){this.filteringOperands=[],this.operator=e,this.fieldName=t}return e.empty=function(e){return!e||!e.filteringOperands||!e.filteringOperands.length},e.prototype.find=function(e){var t=this.findIndex(e);return t>-1?this.filteringOperands[t]:null},e.prototype.findIndex=function(t){for(var i,n=0;n<this.filteringOperands.length;n++)if((i=this.filteringOperands[n])instanceof e){if(this.isFilteringExpressionsTreeForColumn(i,t))return n}else if(i.fieldName===t)return n;return-1},e.prototype.isFilteringExpressionsTreeForColumn=function(t,i){if(t.fieldName===i)return!0;for(var n,o=0;o<t.filteringOperands.length;o++)return(n=t.filteringOperands[o])instanceof e?this.isFilteringExpressionsTreeForColumn(n,i):n.fieldName===i;return!1},e}(),ki=function(){function e(){}return e.instance=function(){return this._instance||(this._instance=new e)},e.prototype.filter=function(e,t,i){return e},e._instance=null,e}(),Ai=function(){function t(){}return t.prototype.findMatchByExpression=function(e,t){var i=t.condition,n=this.getFieldValue(e,t.fieldName);return i.logic(n,t.searchVal,t.ignoreCase)},t.prototype.matchRecord=function(t,i){if(i){if(i instanceof ji){var n=i,o=n.operator,r=void 0,s=void 0;if(n.filteringOperands&&n.filteringOperands.length){for(var a=0;a<n.filteringOperands.length;a++){if(s=n.filteringOperands[a],!(r=this.matchRecord(t,s))&&o===e.FilteringLogic.And)return!1;if(r&&o===e.FilteringLogic.Or)return!0}return r}return!0}var l=i;return this.findMatchByExpression(t,l)}return!0},t}(),Fi=function(e){function t(){return e.call(this)||this}return d(t,e),t.instance=function(){return this._instace||(this._instace=new this)},t.prototype.filter=function(e,t,i){var n,o,r=e.length,s=[];if(ji.empty(t)&&ji.empty(i)||!r)return e;for(n=0;n<r;n++)o=e[n],this.matchRecord(o,t)&&this.matchRecord(o,i)&&s.push(o);return s},t.prototype.getFieldValue=function(e,t){return e[t]},t._instace=null,t}(Ai);(Ri=e.TransactionType||(e.TransactionType={})).ADD="add",Ri.DELETE="delete",Ri.UPDATE="update",(Li=e.DataType||(e.DataType={})).String="string",Li.Number="number",Li.Boolean="boolean",Li.Date="date";var Mi,Bi=function(){function t(){}return t.sort=function(e,t,i){return void 0===i&&(i=new Di),i.sort(e,t)},t.treeGridSort=function(e,i,n,o){void 0===n&&(n=new Ti);var r=[];return e.forEach((function(e){var s=t.cloneTreeGridRecord(e);s.parent=o,s.children&&(s.children=t.treeGridSort(s.children,i,n,s)),r.push(s)})),r=t.sort(r,i,n)},t.cloneTreeGridRecord=function(e){return{rowID:e.rowID,data:e.data,children:e.children,isFilteredOutParent:e.isFilteredOutParent,level:e.level,expanded:e.expanded}},t.group=function(e,t,i,n,o){void 0===i&&(i=null),void 0===n&&(n=[]),void 0===o&&(o={data:[],metadata:[]});var r=new Pi;return n.splice(0,n.length),r.groupBy(e,t,i,n,o)},t.page=function(t,i){if(!i)return t;var n=t.length,o=i.index,r=[],s=i.recordsPerPage;return i.metadata={countPages:0,countRecords:t.length,error:e.PagingError.None},o<0||isNaN(o)?(i.metadata.error=e.PagingError.IncorrectPageIndex,r):s<=0||isNaN(s)?(i.metadata.error=e.PagingError.IncorrectRecordsPerPage,r):(i.metadata.countPages=Math.ceil(n/s),n?o>=i.metadata.countPages?(i.metadata.error=e.PagingError.IncorrectPageIndex,r):t.slice(o*s,(o+1)*s):t)},t.filter=function(e,t){return t.strategy||(t.strategy=new Fi),t.strategy.filter(e,t.expressionsTree,t.advancedExpressionsTree)},t.correctPagingState=function(e,t){var i=Math.ceil(t/e.recordsPerPage)-1;!isNaN(i)&&e.index>i&&(e.index=i)},t.getHierarchy=function(e){return wi(e)},t.isHierarchyMatch=function(e,t){return Ci(e,t)},t.mergeTransactions=function(t,i,n,o){return void 0===o&&(o=!1),t.forEach((function(o,r){var s=n?o[n]:o,a=i.find((function(e){return e.id===s}));a&&a.type===e.TransactionType.UPDATE&&(t[r]=a.newValue)})),o&&i.filter((function(t){return t.type===e.TransactionType.DELETE})).forEach((function(e){var i=n?t.findIndex((function(t){return t[n]===e.id})):t.findIndex((function(t){return t===e.id}));0<=i&&i<t.length&&t.splice(i,1)})),t.push.apply(t,C(i.filter((function(t){return t.type===e.TransactionType.ADD})).map((function(e){return e.newValue})))),t},t.mergeHierarchicalTransactions=function(t,i,n,o,r){var s,a;void 0===r&&(r=!1);var l=function(i){if(i.path){var s=c.findParentFromPath(t,o,n,i.path),a=s?s[n]:t;switch(i.type){case e.TransactionType.ADD:s&&!s[n]&&(s[n]=a=[]),a.push(i.newValue);break;case e.TransactionType.UPDATE:var l=a.findIndex((function(e){return e[o]===i.id}));-1!==l&&(a[l]=oi(ri(a[l]),i.newValue));break;case e.TransactionType.DELETE:if(r){var p=a.findIndex((function(e){return e[o]===i.id}));-1!==p&&a.splice(p,1)}}}else t.push(i.newValue)},c=this;try{for(var p=b(i),d=p.next();!d.done;d=p.next()){l(d.value)}}catch(e){s={error:e}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(s)throw s.error}}return t},t.parseValue=function(t,i){return t===e.DataType.Number&&(i=parseFloat(i)),i},t.findParentFromPath=function(e,t,i,n){var o,r,s,a=e,l=function(e){if(!(s=a&&a.find((function(i){return i[t]===e}))))return"break";a=s[i]};try{for(var c=b(n),p=c.next();!p.done;p=c.next()){if("break"===l(p.value))break}}catch(e){o={error:e}}finally{try{p&&!p.done&&(r=c.return)&&r.call(c)}finally{if(o)throw o.error}}return s},t}(),Vi=function(){function e(){}return e.getKeysFromData=function(t){var i=t.length;if(0===i)return[];var n=t[0],o=t[Math.floor(i/2)],r=t[i-1],s=Object.keys(n),a=Object.keys(o),l=Object.keys(r),c=new Set(s.concat(a).concat(l));return e.isSpecialData(t)?["Column 1"]:Array.from(c)},e.saveBlobToFile=function(e,t){var i=document.createElement("a");if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(e,t);else{var n=window.URL.createObjectURL(e);i.download=t,i.href=n,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}},e.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),i=new Uint8Array(t),n=0;n!==e.length;++n)i[n]=255&e.charCodeAt(n);return t},e.isSpecialData=function(e){var t=e[0];return"string"==typeof t||"number"==typeof t||t instanceof Date},e.hasValue=function(e){return null!=e},e.isNullOrWhitespaces=function(e){return null==e||!e.trim()},e}(),Hi=function(){function t(){this.destroyMap=new Map}return t.prototype.get_column_by_name=function(e){return this.grid.columnList.find((function(t){return t.field===e}))},t.prototype.get_summary_data=function(){var t=this.grid,i=t.filteredData;i||(t.transactions.enabled?(i=Bi.mergeTransactions(ni(t.data),t.transactions.getAggregatedChanges(!0),t.primaryKey),t.transactions.getTransactionLog().filter((function(t){return t.type===e.TransactionType.DELETE})).map((function(e){return e.id})).forEach((function(e){var n=(t.primaryKey?i.map((function(e){return e[t.primaryKey]})):i).indexOf(e);-1!==n&&i.splice(n,1)}))):i=t.data);return i},t.prototype.getRowData=function(e){return this.get_all_data(this.grid.transactions.enabled)[this.get_row_index_in_data(e)]},t.prototype.escape_editMode=function(){this.grid.crudService.end()},t.prototype.get_cell_inEditMode=function(){return this.grid.crudService.cell},t.prototype.get_row_index_in_data=function(e){var t=this.grid;if(!t)return-1;var i=this.get_all_data(t.transactions.enabled);return t.primaryKey?i.findIndex((function(i){return i[t.primaryKey]===e})):i.indexOf(e)},t.prototype.get_row_by_key=function(e){var t=this.grid.primaryKey;return null!=t?this.grid.dataRowList.find((function(i){return i.rowData[t]===e})):this.grid.dataRowList.find((function(t){return t.rowData===e}))},t.prototype.get_row_by_index=function(e){return this.grid.rowList.find((function(t){return t.index===e}))},t.prototype.get_cell_by_key=function(e,t){var i=this.get_row_by_key(e);if(i&&i.cells)return i.cells.find((function(e){return e.column.field===t}))},t.prototype.get_cell_by_index=function(e,t){var i=this.get_row_by_index(e);if(i&&i.cells)return i.cells.find((function(e){return e.columnIndex===t}))},t.prototype.get_cell_by_visible_index=function(e,t){var i=this.get_row_by_index(e);if(i&&i.cells)return i.cells.find((function(e){return e.visibleColumnIndex===t}))},t.prototype.submit_value=function(){var e=this.grid.crudService.cell;if(e){if(this.update_cell(e,e.editValue).cancel)return;this.escape_editMode()}},t.prototype.update_cell=function(e,t){var i,n=this.get_all_data(this.grid.transactions.enabled),o=this.get_row_index_in_data(e.id.rowID);e.editValue=t;var r=e.createEditEventArgs();return this.grid.onCellEdit.emit(r),r.cancel?r:(r.newValue=e.castToNumber(r.newValue),li(r.oldValue,r.newValue)?r:(this.grid.summaryService.clearSummaryCache(r),this.updateData(this.grid,e.id.rowID,n[o],e.rowData,((i={})[e.column.field]=r.newValue,i)),this.grid.primaryKey===e.column.field&&(this.grid.selectionService.isRowSelected(e.id.rowID)&&(this.grid.selectionService.deselectRow(e.id.rowID),this.grid.selectionService.selectRowById(r.newValue)),this.grid.hasSummarizedColumns&&this.grid.summaryService.removeSummaries(e.id.rowID)),this.grid.rowEditable&&this.grid.crudService.row&&this.grid.crudService.row.id===e.id.rowID&&this.grid.transactions.enabled||(this.grid.summaryService.clearSummaryCache(r),this.grid._pipeTrigger++),r))},t.prototype.updateData=function(t,i,n,o,r){if(t.transactions.enabled){var s={id:i,type:e.TransactionType.UPDATE,newValue:r};t.transactions.add(s,o)}else oi(n,r)},t.prototype._update_row=function(e,t){var i=this.grid,n=i.crudService.row;if(e.newData=t||i.transactions.getAggregatedValue(e.id,!0),n&&e.id===n.id)e.data=f(f({},e.data),n.transactionState);else if(this.grid.transactions.enabled){var o=i.transactions.getState(e.id);e.data=o?Object.assign({},e.data,o.value):e.data}},t.prototype.update_row=function(e,t){var i=this.grid,n=i.selectionService.isRowSelected(e.id),o=i.crudService.row,r=this.get_all_data(i.transactions.enabled),s=this.get_row_index_in_data(e.id),a=i.hasSummarizedColumns;this._update_row(e,t);var l=e.createEditEventArgs();if(-1===s)return l;if(i.onRowEdit.emit(l),l.cancel)return l;if(o){var c=i.transactions.getState(l.rowID,!0);if(i.transactions.endPending(!1),!c)return l}if(!l.newValue)return l;a&&i.summaryService.removeSummaries(l.rowID),this.updateData(i,e.id,r[s],l.oldValue,l.newValue);var p=i.primaryKey?l.newValue[i.primaryKey]:l.newValue;return n&&(i.selectionService.deselectRow(e.id),i.selectionService.selectRowById(p)),a&&i.summaryService.removeSummaries(p),i._pipeTrigger++,l},t.prototype.update_row_in_array=function(e,t,i){this.grid.data[i]=e},t.prototype.sort=function(t){t.dir===e.SortingDirection.None&&this.remove_grouping_expression(t.fieldName);var i=ni(this.grid.sortingExpressions);this.prepare_sorting_expression([i],t),this.grid.sortingExpressions=i},t.prototype.sort_multiple=function(t){var i,n,o=ni(this.grid.sortingExpressions);try{for(var r=b(t),s=r.next();!s.done;s=r.next()){var a=s.value;a.dir===e.SortingDirection.None&&this.remove_grouping_expression(a.fieldName),this.prepare_sorting_expression([o],a)}}catch(e){i={error:e}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}this.grid.sortingExpressions=o},t.prototype.filter=function(e,t,i,n){var o=this.grid,r=o.filteringExpressionsTree;o.endEdit(!1),o.paging&&(o.page=0);var s=r.findIndex(e);s>-1&&r.filteringOperands.splice(s,1),this.prepare_filtering_expression(r,e,t,i,n,s),o.filteringExpressionsTree=r},t.prototype.filter_global=function(e,t,i){var n,o;if(t){var r=this.grid,s=r.filteringExpressionsTree;r.endEdit(!1),r.paging&&(r.page=0),s.filteringOperands=[];try{for(var a=b(r.columns),l=a.next();!l.done;l=a.next()){var c=l.value;this.prepare_filtering_expression(s,c.field,e,t,i||c.filteringIgnoreCase)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}r.filteringExpressionsTree=s}},t.prototype.clear_filter=function(e){var t=this.grid;t.endEdit(!1);var i=t.filteringExpressionsTree,n=i.findIndex(e);n>-1?i.filteringOperands.splice(n,1):e||(i.filteringOperands=[]),t.filteringExpressionsTree=i},t.prototype.clear_sort=function(e){var t=this.grid.sortingExpressions,i=t.findIndex((function(t){return t.fieldName===e}));i>-1&&(t.splice(i,1),this.grid.sortingExpressions=t)},t.prototype.prepare_filtering_expression=function(e,t,i,n,o,r){var s;void 0===r&&(r=-1);var a=e.findIndex(t),l=n instanceof ji?n:null,c=n instanceof ji?null:n,p={fieldName:t,searchVal:i,condition:c,ignoreCase:o};-1===a&&(l?r>-1?e.filteringOperands.splice(r,0,l):e.filteringOperands.push(l):c&&((s=new ji(e.operator,t)).filteringOperands.push(p),e.filteringOperands.push(s)))},t.prototype.prepare_sorting_expression=function(t,i){if(i.dir!==e.SortingDirection.None){for(var n=t[0],o=1;o<t.length;o++)n.length<t[o].length&&(n=t[o]);var r=n.find((function(e){return e.fieldName===i.fieldName}));t.forEach((function(e){var t=e.find((function(e){return e.fieldName===i.fieldName}));t||r?!t&&r?(e.push(r),Object.assign(r,i)):Object.assign(t,i):e.push(i)}))}else t.forEach((function(e){e.splice(e.findIndex((function(e){return e.fieldName===i.fieldName})),1)}))},t.prototype.remove_grouping_expression=function(e){},t.prototype.clear_groupby=function(e){},t.prototype.should_apply_number_style=function(t){return t.dataType===e.DataType.Number},t.prototype.get_data=function(){var e=this.grid;return e.data?e.data:[]},t.prototype.get_all_data=function(e){void 0===e&&(e=!1);var t=this.grid,i=t.data?t.data:[];return i=e?t.dataWithAddedInTransactionRows:i},t.prototype.get_filtered_data=function(){return this.grid.filteredData},t.prototype.getSortStrategyPerColumn=function(e){return this.get_column_by_name(e)?this.get_column_by_name(e).sortStrategy:void 0},t.prototype.addRowToData=function(t){var i=this.grid;if(i.transactions.enabled){var n={id:i.primaryKey?t[i.primaryKey]:t,type:e.TransactionType.ADD,newValue:t};i.transactions.add(n)}else i.data.push(t)},t.prototype.deleteRowFromData=function(t,i){var n=this.grid;if(-1!==i)if(n.transactions.enabled){var o={id:t,type:e.TransactionType.DELETE,newValue:null};n.transactions.add(o,n.data[i])}else n.data.splice(i,1);else{var r=n.transactions.getState(t);n.transactions.add({id:t,type:e.TransactionType.DELETE,newValue:null},r&&r.recordRef)}},t.prototype.deleteRowById=function(t){var i,n=this.grid,o=this.get_all_data();i=n.primaryKey?o.map((function(e){return e[n.primaryKey]})).indexOf(t):o.indexOf(t);var r=n.transactions.getState(t),s=r&&r.type!==e.TransactionType.DELETE;if(-1!==i||s){n.endEdit(!0),n.onRowDeleted.emit({data:o[i]}),this.deleteRowFromData(t,i),n.selectionService.isRowSelected(t)?n.selectionService.deselectRow(t):n.selectionService.clearHeaderCBState(),n._pipeTrigger++,n.notifyChanges();var a=n.transactions.enabled?n.dataWithAddedInTransactionRows:o;n.refreshSearch(),a.length%n.perPage==0&&a.length/n.perPage-1<n.page&&0!==n.page&&n.page--}},t.prototype.get_row_id=function(e){return this.grid.primaryKey?e[this.grid.primaryKey]:e},t.prototype.row_deleted_transaction=function(t){var i=this.grid;if(!i)return!1;if(!i.transactions.enabled)return!1;var n=i.transactions.getState(t);return!!n&&n.type===e.TransactionType.DELETE},t.prototype.atInexistingPage=function(){return this.grid.totalPages-1>this.grid.page},t=m([i.Injectable()],t)}(),Ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.filter=function(e,t,i){return this.filterImpl(e,t,i,void 0)},t.prototype.filterImpl=function(e,t,i,n){var o,r,s=e.length,a=[];if(ji.empty(t)&&ji.empty(i)||!s)return e;for(o=0;o<s;o++){if((r=Bi.cloneTreeGridRecord(e[o])).parent=n,r.children){var l=this.filterImpl(r.children,t,i,r);r.children=l.length>0?l:null}this.matchRecord(r,t)&&this.matchRecord(r,i)?a.push(r):r.children&&r.children.length>0&&(r.isFilteredOutParent=!0,a.push(r))}return a},t.prototype.getFieldValue=function(e,t){return e.data[t]},t}(Ai),Gi=function(){function e(e){this.gridAPI=e}return e.prototype.transform=function(e,t,i,n,o,r){var s=this.gridAPI.grid,a={expressionsTree:t,advancedExpressionsTree:n,strategy:new Ni};if(i&&(a.strategy=i),this.resetFilteredOutProperty(s.records),ji.empty(a.expressionsTree)&&ji.empty(a.advancedExpressionsTree))return s.filteredData=null,e;var l=this.filter(e,a),c=[];return this.expandAllRecursive(s,l,s.expansionStates,c),s.filteredData=c,l},e.prototype.resetFilteredOutProperty=function(e){for(var t=Array.from(e.keys()),i=0;i<t.length;i++)e.get(t[i]).isFilteredOutParent=void 0},e.prototype.expandAllRecursive=function(e,t,i,n){for(var o=0;o<t.length;o++){var r=t[o];n.push(r.data),this.updateNonProcessedRecord(e,r),r.children&&r.children.length>0&&(i.set(r.rowID,!0),this.expandAllRecursive(e,r.children,i,n))}},e.prototype.updateNonProcessedRecord=function(e,t){e.records.get(t.rowID).isFilteredOutParent=t.isFilteredOutParent},e.prototype.filter=function(e,t){return t.strategy.filter(e,t.expressionsTree,t.advancedExpressionsTree)},e.ctorParameters=function(){return[{type:Hi}]},e=m([i.Pipe({name:"treeGridFiltering",pure:!0}),v("design:paramtypes",[Hi])],e)}(),zi=function(){function e(){this.flatRecords=[],this._isTreeGrid=!1,this._indexOfLastPinnedColumn=-1,this._sort=null,this.onRowExport=new i.EventEmitter,this.onColumnExport=new i.EventEmitter}return e.prototype.export=function(e,t){var i=this;if(null==t)throw Error("No options provided!");var n=e.columnList.toArray();this._columnList=new Array(n.length);var o=[],r=-1;n.forEach((function(e){var n=""!==e.header?e.header:e.field,s=!e.hidden||t.ignoreColumnsVisibility,a=t.ignoreColumnsOrder?e.index:e.visibleIndex,l={header:n,field:e.field,skip:!s,formatter:e.formatter,skipFormatter:!1};-1!==a?(i._columnList[a]=l,r=Math.max(r,a)):o.push(l),e.pinned&&s&&i._indexOfLastPinnedColumn++})),o.forEach((function(e){i._columnList[++r]=e}));var s=this.prepareData(e,t);this.exportData(s,t)},e.prototype.exportData=function(e,t){var i=this;if(null==t)throw Error("No options provided!");if(!this._columnList||0===this._columnList.length){var n=Vi.getKeysFromData(e);this._columnList=n.map((function(e){return{header:e,field:e,skip:!1}}))}var o=0,r=1;this._columnList.forEach((function(e,t){if(!e.skip){var n={header:Vi.isNullOrWhitespaces(e.header)?"Column"+r++:e.header,field:e.field,columnIndex:t,cancel:!1,skipFormatter:!1};i.onColumnExport.emit(n),e.header=n.header,e.skip=n.cancel,e.skipFormatter=n.skipFormatter,e.skip&&t<=i._indexOfLastPinnedColumn&&o++,i._sort&&i._sort.fieldName===e.field&&(e.skip?i._sort=null:i._sort.fieldName=e.header)}})),this._indexOfLastPinnedColumn-=o;var s=new Array,a=Vi.isSpecialData(e);e.forEach((function(e,t){i.exportRow(s,e,t,a)})),this.exportDataImplementation(s,t),this.resetDefaults()},e.prototype.exportRow=function(e,t,i,n){var o=this,r={rowData:n?this._isTreeGrid?t.data:t:this._columnList.reduce((function(e,i){if(!i.skip){var n=o._isTreeGrid?t.data[i.field]:t[i.field];e[i.header]=i.formatter&&!i.skipFormatter?i.formatter(n):n}return e}),{}),rowIndex:i,cancel:!1};this.onRowExport.emit(r),r.cancel||e.push({rowData:r.rowData,originalRowData:t})},e.prototype.prepareData=function(e,t){this.flatRecords=[];var i=e.rootRecords;this._isTreeGrid=void 0!==i,this._isTreeGrid&&this.prepareHierarchicalData(i);var n=this._isTreeGrid?this.flatRecords:e.data;if((e.filteringExpressionsTree&&e.filteringExpressionsTree.filteringOperands.length>0||e.advancedFilteringExpressionsTree&&e.advancedFilteringExpressionsTree.filteringOperands.length>0)&&!t.ignoreFiltering){var o={expressionsTree:e.filteringExpressionsTree,advancedExpressionsTree:e.advancedFilteringExpressionsTree,logic:e.filteringLogic};this._isTreeGrid?(this.flatRecords=[],o.strategy=e.filterStrategy?e.filterStrategy:new Ni,i=o.strategy.filter(i,o.expressionsTree,o.advancedExpressionsTree),this.prepareHierarchicalData(i),n=this.flatRecords):(o.strategy=e.filterStrategy,n=Bi.filter(n,o))}return e.sortingExpressions&&e.sortingExpressions.length>0&&!t.ignoreSorting&&(this._sort=ri(e.sortingExpressions[0]),this._isTreeGrid?(this.flatRecords=[],i=Bi.treeGridSort(i,e.sortingExpressions,e.sortStrategy),this.prepareHierarchicalData(i),n=this.flatRecords):n=Bi.sort(n,e.sortingExpressions,e.sortStrategy)),n},e.prototype.prepareHierarchicalData=function(e){if(e)for(var t=0;t<e.length;t++){var i=e[t];this.flatRecords.push(i),this.prepareHierarchicalData(i.children)}},e.prototype.resetDefaults=function(){this._columnList=[],this._indexOfLastPinnedColumn=-1,this._sort=null,this.flatRecords=[]},e}(),Wi=function(){function e(e,t){this._data=e,this._headerRecord="",this._dataRecords="",this._eor="\r\n",this._escapeCharacters=["\r","\n","\r\n"],this._delimiterLength=1,this._isSpecialData=!1,this.setDelimiter(t)}return e.prototype.prepareData=function(){if(!this._data||0===this._data.length)return"";var e=Vi.getKeysFromData(this._data);return 0===e.length?"":(this._isSpecialData=Vi.isSpecialData(this._data),this._escapeCharacters.push(this._delimiter),this._headerRecord=this.processHeaderRecord(e,this._escapeCharacters),this._dataRecords=this.processDataRecords(this._data,e,this._escapeCharacters),this._headerRecord+this._dataRecords)},e.prototype.processField=function(e,t){var i=Vi.hasValue(e)?String(e):"";return t.some((function(e){return i.includes(e)}))&&(i='"'+i+'"'),i+this._delimiter},e.prototype.processHeaderRecord=function(e,t){var i,n,o="";try{for(var r=b(e),s=r.next();!s.done;s=r.next()){var a=s.value;o+=this.processField(a,this._escapeCharacters)}}catch(e){i={error:e}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return o.slice(0,-this._delimiterLength)+this._eor},e.prototype.processRecord=function(e,t,i){var n,o,r="";try{for(var s=b(t),a=s.next();!a.done;a=s.next()){var l=a.value,c=void 0!==e[l]?e[l]:this._isSpecialData?e:"";r+=this.processField(c,this._escapeCharacters)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return r.slice(0,-this._delimiterLength)+this._eor},e.prototype.processDataRecords=function(e,t,i){var n,o,r="";try{for(var s=b(e),a=s.next();!a.done;a=s.next()){var l=a.value;r+=this.processRecord(l,t,i)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return r},e.prototype.setDelimiter=function(e){this._delimiter=e,this._delimiterLength=e.l