<!DOCTYPE html>
<html>

  <head>
    <title>angular2 playground</title>
    <script src="https://npmcdn.com/zone.js@0.6.12/dist/zone.js"></script>
    <script src="https://npmcdn.com/reflect-metadata@0.1.3/Reflect.js"></script>
    <script src="https://npmcdn.com/systemjs@0.19.31/dist/system.js"></script>
    <script src="https://npmcdn.com/typescript@1.8.10/lib/typescript.js"></script>
    <script src="config.js"></script>
    
    <!-- Wijmo -->
    <script src="vendor/wijmo.min.js" type="text/javascript"></script>
    <script src="vendor/wijmo.grid.min.js" type="text/javascript"></script>
    <script src="vendor/wijmo.grid.detail.min.js" type="text/javascript"></script>
    <link href="vendor/wijmo.min.css" rel="stylesheet">
    <!-- Wijmo Angular2 -->
    <script src="vendor/wijmo.angular2.min.js" type="text/javascript"></script>
    
  <script>
    System.import('app').catch(console.error.bind(console));
  </script>
  </head>

  <body>
    <app>
    loading...
  </app>
  </body>

</html>
System.config({
  //use typescript for compilation
  transpiler: 'typescript',
  //typescript compiler options
  typescriptOptions: {
    emitDecoratorMetadata: true
  },
  //map tells the System loader where to look for things
  map: {
    app: "./src",
    '@angular': 'https://npmcdn.com/@angular',
    'rxjs': 'https://npmcdn.com/rxjs@5.0.0-beta.6'
  },
  //packages defines our app package
  packages: {
    app: {
      main: './main.ts',
      defaultExtension: 'ts'
    },
    '@angular/core': {
      main: 'bundles/core.umd.js',
      defaultExtension: 'js'
    },
    '@angular/compiler': {
      main: 'bundles/compiler.umd.js',
      defaultExtension: 'js'
    },
    '@angular/common': {
      main: 'bundles/common.umd.js',
      defaultExtension: 'js'
    },
    '@angular/platform-browser-dynamic': {
      main: 'bundles/platform-browser-dynamic.umd.js',
      defaultExtension: 'js'
    },
    '@angular/platform-browser': {
      main: 'bundles/platform-browser.umd.js',
      defaultExtension: 'js'
    },
    rxjs: {
      defaultExtension: 'js'
    }
  }
});
//main entry point
import {bootstrap} from '@angular/platform-browser-dynamic';
import {App} from './app';

bootstrap(App, [])
  .catch(err => console.error(err));
//our root app component
import {Component, ViewChild} from '@angular/core'
import * as wjGrid from 'wijmo/wijmo.angular2.grid';
import {WjFlexGridDetail}  from 'wijmo/wijmo.angular2.grid.detail';
@Component({
  selector: 'app',
  providers: [], 
  template: `
  <h3>Wijmo FlexGrid example to save grid column layout - (Angular2 TypeScript)</h3>
    <wj-flex-grid #flex [itemsSource]="dataSource">
       <wj-flex-grid-column [header]="' '" [binding]="'active'"></wj-flex-grid-column>
      <wj-flex-grid-column [header]="'Country'" [binding]="'country'"></wj-flex-grid-column>
      <wj-flex-grid-column [header]="'Downloads'" [binding]="'downloads'"></wj-flex-grid-column>
       <wj-flex-grid-column [header]="'Sale'" [binding]="'sales'"></wj-flex-grid-column>
        <wj-flex-grid-column [header]="'Expense'" [binding]="'expenses'"></wj-flex-grid-column>
    </wj-flex-grid> 
 <button (click)="saveColumnLayout()">  Save layout </button>
 <button (click)="loadColumnLayout()"> Load layout </button>
  `,
  directives: [
    wjGrid.WjFlexGrid, wjGrid.WjFlexGridCellTemplate,
    wjGrid.WjFlexGridColumn,WjFlexGridDetail,
    wjGrid.WjFlexGridCellTemplate
  ]
})
export class App {
  dataSource: any;
  @ViewChild('flex') flex: any;
  itemClicked: any;
  constructor() {
    let data = new wijmo.collections.ObservableArray();
    let countries = 'US,Germany,UK,Japan,Italy,Greece'.split(',');
      var sortedProp = [];


    for (var i = 0; i < 20; i++) {
            data.push({
                country: countries[i%countries.length],
                downloads: Math.round(Math.random() * 20000),
                sales: Math.random() * 10000,
                expenses: Math.random() * 5000,
                active: i % 4 == 0
            });
        
     
    this.dataSource = new wijmo.collections.CollectionView(data);
    
     }
  }

    saveColumnLayout() {
        if (localStorage) {
            localStorage['columns'] = this.flex.columnLayout;
            console.log('** Saved layout: ' + this.flex.columnLayout);
        }
    }
    loadColumnLayout() {
        if (localStorage) {
            if (!localStorage['columns']) {
                alert('Please save a layout first...');
            } else {
                this.flex.columnLayout = localStorage['columns'];
                console.log('** Loaded layout: ' + this.flex.columnLayout);
            }
        }
    }

  
  init() {
    this.flex.addEventListener(this.flex.hostElement, 'click', (e:MouseEvent) => {
      var ht = this.flex.hitTest(e);
      this.itemClicked = ht.col;
    })
  }
}
/*
    *
    * Wijmo Library 5.20162.188
    * http://wijmo.com/
    *
    * Copyright(c) GrapeCity, Inc.  All rights reserved.
    *
    * Licensed under the Wijmo Commercial License.
    * sales@wijmo.com
    * http://wijmo.com/products/wijmo-5/license/
    *
    */
var __extends,wijmo;(function(n){'use strict';function ct(){return ht}function a(n,t){return n==null?null:f(t)?h(n.implementsInterface)&&n.implementsInterface(t)?n:null:n instanceof t?n:null}function at(n){return f(n)||e(n)||l(n)||u(n)}function f(n){return typeof n=='string'}function vt(n){return n==null?!0:n.replace(/\s/g,'').length<1}function e(n){return typeof n=='number'}function b(n){return e(n)&&n==Math.round(n)}function l(n){return typeof n=='boolean'}function h(n){return typeof n=='function'}function yt(n){return typeof n=='undefined'}function u(n){return n instanceof Date&&!isNaN(n.getTime())}function o(n){return n instanceof Array}function v(n){return n!=null&&typeof n=='object'&&!u(n)&&!o(n)}function pt(n){if(n instanceof c)return n;if(n.touches&&n.touches.length>0&&(n=n.touches[0]),e(n.clientX)&&e(n.clientY))return new c(n.clientX+pageXOffset,n.clientY+pageYOffset);throw'Mouse or touch event expected.';}function wt(n){return e(n)?r.Number:l(n)?r.Boolean:u(n)?r.Date:f(n)?r.String:o(n)?r.Array:r.Object}function bt(t,i,u){var o,e;if(t!=null){if(f(t))switch(i){case r.Number:return o=n.Globalize.parseFloat(t,u),isNaN(o)?t:o;case r.Date:return e=n.Globalize.parseDate(t,u),e||u||!t||(e=new Date(t)),e&&isFinite(e.getTime())?e:t;case r.Boolean:switch(t.toLowerCase()){case'true':return!0;case'false':return!1}return t}if(i==r.String)return n.Globalize.format(t,u)}return t}function kt(n,t,i){var u,r;return i?(r=n.toString(),u=r.indexOf('.'),u>-1&&(r=r.substr(0,u+1+t),n=parseFloat(r))):(r=n.toFixed(t),n=parseFloat(r)),n}function dt(t,i,r){return t=y(t),t.replace(/\{(.*?)(:(.*?))?\}/g,function(t,u,f,e){var o=t;return u&&u[0]!='{'&&i&&(o=i[u],e&&(o=n.Globalize.format(o,e)),r&&(o=r(i,u,e,o))),o==null?'':o})}function gt(n,t,i){return n!=null&&(i!=null&&n>i&&(n=i),t!=null&&n<t&&(n=t)),n}function k(i,r){var u,f;if(r)for(u in r)u[0]!='_'&&(t(u in i,'Unknown property "'+u+'".'),f=r[u],i._copy&&i._copy(u,f)||(i[u]instanceof n.Event&&h(f)?i[u].addHandler(f):v(f)&&i[u]&&u!='itemsSource'?k(i[u],f):i[u]=f))}function t(n,t){if(!n)throw'** Assertion failed in Wijmo: '+t;}function y(n,i){return i===void 0&&(i=!0),t(i&&n==null||f(n),'String expected.'),n}function i(n,i,r){if(i===void 0&&(i=!1),r===void 0&&(r=!1),t(i&&n==null||e(n),'Number expected.'),r&&n&&n<0)throw'Positive number expected.';return n}function ni(n,i,r){if(i===void 0&&(i=!1),r===void 0&&(r=!1),t(i&&n==null||b(n),'Integer expected.'),r&&n&&n<0)throw'Positive integer expected.';return n}function d(n,i){return i===void 0&&(i=!1),t(i&&n==null||l(n),'Boolean expected.'),n}function ti(n,i){return i===void 0&&(i=!1),t(i&&n==null||u(n),'Date expected.'),n}function s(n,i){return i===void 0&&(i=!0),t(i&&n==null||h(n),'Function expected.'),n}function ii(n,i){return i===void 0&&(i=!0),t(i&&n==null||o(n),'Array expected.'),n}function g(n,i,r){return r===void 0&&(r=!1),n=a(n,i),t(r||n!=null,i+' expected.'),n}function ri(n,i,r){if(r===void 0&&(r=!1),n==null&&r)return null;var u=i[n];return t(u!=null,'Invalid enum value.'),e(u)?u:n}function ui(i,r){if(r===void 0&&(r=!0),i==null&&r)return null;var u=a(i,'ICollectionView');return u!=null?u:(o(i)||t(!1,'Array or ICollectionView expected.'),new n.collections.CollectionView(i))}function fi(n){return n&&n.items&&n.items.length}function ei(n){return n&&n.length?n[0].toUpperCase()+n.substr(1).replace(/([a-z])([A-Z])/g,'$1 $2'):''}function oi(n){return f(n)&&(n=n.replace(/[&<>"'\/]/g,function(n){return nt[n]})),n}function p(n,t){if(n&&n.getAttribute){var i=new RegExp('\\b'+t+'\\b');return n&&i.test(n.getAttribute('class'))}return!1}function tt(n,t){if(n&&t&&n.setAttribute&&p(n,t)){var i=new RegExp('\\s?\\b'+t+'\\b','g'),r=n.getAttribute('class');n.setAttribute('class',r.replace(i,''))}}function it(n,t){if(n&&t&&n.setAttribute&&!p(n,t)){var i=n.getAttribute('class');n.setAttribute('class',i?i+' '+t:t)}}function rt(n,t,i){i?it(n,t):tt(n,t)}function si(n,t,r){if(r===void 0&&(r=t),n=g(n,HTMLInputElement),ft(document.body,n)&&!n.disabled&&n.style.display!='none')try{n.focus();n.setSelectionRange(i(t),i(r))}catch(u){}}function ut(){var n=document.activeElement,t;return n&&(t=n.shadowRoot,t&&t.activeElement&&(n=t.activeElement)),n}function hi(n,t){for(var f,i,e=n.querySelectorAll('input,select,textarea,button,a'),r=[],u=0;u<e.length;u++)i=e[u],!i.disabled&&i.tabIndex>-1&&i.clientHeight>0&&!et(i,'[disabled],.wj-state-disabled')&&r.push(i);f=0;t&&(u=r.indexOf(ut()),u>-1&&(f=(u+t+r.length)%r.length));f<r.length&&(i=r[f],i.focus(),i instanceof HTMLInputElement&&i.select())}function ci(n){return n instanceof Element?n:f(n)?document.querySelector(n):n&&n.jquery?n[0]:null}function li(n,t){var i=document.createElement('div'),r;return i.innerHTML=n,r=i.removeChild(i.firstChild),t instanceof HTMLElement?t.appendChild(r):r}function ai(n,t){if(t==null){n.hasChildNodes()&&(n.textContent='');return}var i=n.firstChild;n.childNodes.length==1&&i.nodeType==3?i.nodeValue!=t&&(i.nodeValue=t):(i||t)&&(n.textContent=t)}function ft(n,t){for(var i=t;i;){if(i===n)return!0;i=i.parentNode||i.host}return!1}function et(n,t){var i=n?n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector:null;if(i)for(;n;n=n.parentNode)if(n instanceof Element&&i.call(n,t))return n;return null}function vi(n,t){var r,i,u;for(rt(n,'wj-state-disabled',!t),t?n.removeAttribute('disabled'):n.setAttribute('disabled','true'),r=n.querySelectorAll('input'),i=0;i<r.length;i++)u=r[i],t?u.removeAttribute('disabled'):u.setAttribute('disabled','true')}function yi(n){var t=n.getBoundingClientRect();return new w(t.left+pageXOffset,t.top+pageYOffset,t.width,t.height)}function pi(n,t){var u=n.style,i,r;for(i in t)r=t[i],typeof r=='number'&&i.match(/width|height|left|top|right|bottom|size|padding|margin'/i)&&(r+='px'),u[i]!=r&&(u[i]=r.toString())}function wi(n,t,r){t===void 0&&(t=400);r===void 0&&(r=35);s(n);i(t,!1,!0);i(r,!1,!0);var f=Date.now(),u=setInterval(function(){var i=Math.min(1,(Date.now()-f)/t);i=Math.sin(i*Math.PI/2);i*=i;requestAnimationFrame(function(){n(i)});i>=1&&clearInterval(u)},r);return u}function bi(n,t){var u,e,a,i,o,c;t||(t={});var l=t.method?y(t.method).toUpperCase():'GET',p=t.async!=null?d(t.async):!0,r=t.data;if(r!=null&&l=='GET'){u=[];for(e in r)u.push(e+'='+r[e]);u.length&&(a=n.indexOf('?')<0?'?':'&',n+=a+u.join('&'));r=null}if(i=new XMLHttpRequest,i.URL_DEBUG=n,o=!1,r==null||f(r)||(o=v(r),r=JSON.stringify(r)),i.onload=function(){i.readyState==4&&(i.status<300?t.success&&s(t.success)(i):t.error&&s(t.error)(i),t.complete&&s(t.complete)(i))},i.onerror=function(){if(t.error)s(t.error)(i);else throw'HttpRequest Error: '+i.status+' '+i.statusText;},i.open(l,n,p,t.user,t.password),t.user&&t.password&&i.setRequestHeader('Authorization','Basic '+btoa(t.user+':'+t.password)),o&&i.setRequestHeader('Content-Type','application/json'),t.requestHeaders)for(c in t.requestHeaders)i.setRequestHeader(c,t.requestHeaders[c]);return h(t.beforeSend)&&t.beforeSend(i),i.send(r),i}var ht='5.20162.188',lt,r,nt,c,ot,w,st;n.getVersion=ct,function(n){n[n.Back=8]="Back";n[n.Tab=9]="Tab";n[n.Enter=13]="Enter";n[n.Escape=27]="Escape";n[n.Space=32]="Space";n[n.PageUp=33]="PageUp";n[n.PageDown=34]="PageDown";n[n.End=35]="End";n[n.Home=36]="Home";n[n.Left=37]="Left";n[n.Up=38]="Up";n[n.Right=39]="Right";n[n.Down=40]="Down";n[n.Delete=46]="Delete";n[n.F1=112]="F1";n[n.F2=113]="F2";n[n.F3=114]="F3";n[n.F4=115]="F4";n[n.F5=116]="F5";n[n.F6=117]="F6";n[n.F7=118]="F7";n[n.F8=119]="F8";n[n.F9=120]="F9";n[n.F10=121]="F10";n[n.F11=122]="F11";n[n.F12=123]="F12"}(n.Key||(n.Key={}));lt=n.Key,function(n){n[n.Object=0]="Object";n[n.String=1]="String";n[n.Number=2]="Number";n[n.Boolean=3]="Boolean";n[n.Date=4]="Date";n[n.Array=5]="Array"}(n.DataType||(n.DataType={}));r=n.DataType;n.tryCast=a;n.isPrimitive=at;n.isString=f;n.isNullOrWhiteSpace=vt;n.isNumber=e;n.isInt=b;n.isBoolean=l;n.isFunction=h;n.isUndefined=yt;n.isDate=u;n.isArray=o;n.isObject=v;n.mouseToPage=pt;n.getType=wt;n.changeType=bt;n.toFixed=kt;n.format=dt;n.clamp=gt;n.copy=k;n.assert=t;n.asString=y;n.asNumber=i;n.asInt=ni;n.asBoolean=d;n.asDate=ti;n.asFunction=s;n.asArray=ii;n.asType=g;n.asEnum=ri;n.asCollectionView=ui;n.hasItems=fi;n.toHeaderCase=ei;n.escapeHtml=oi;nt={'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;','/':'&#x2F;'};n.hasClass=p;n.removeClass=tt;n.addClass=it;n.toggleClass=rt;n.setSelectionRange=si;n.getActiveElement=ut;n.moveFocus=hi;n.getElement=ci;n.createElement=li;n.setText=ai;n.contains=ft;n.closest=et;n.enable=vi;n.getElementRect=yi;n.setCss=pi;n.animate=wi;c=function(){function n(n,t){n===void 0&&(n=0);t===void 0&&(t=0);this.x=i(n);this.y=i(t)}return n.prototype.equals=function(t){return t instanceof n&&this.x==t.x&&this.y==t.y},n.prototype.clone=function(){return new n(this.x,this.y)},n}();n.Point=c;ot=function(){function n(n,t){n===void 0&&(n=0);t===void 0&&(t=0);this.width=i(n);this.height=i(t)}return n.prototype.equals=function(t){return t instanceof n&&this.width==t.width&&this.height==t.height},n.prototype.clone=function(){return new n(this.width,this.height)},n}();n.Size=ot;w=function(){function n(n,t,r,u){this.left=i(n);this.top=i(t);this.width=i(r);this.height=i(u)}return Object.defineProperty(n.prototype,"right",{get:function(){return this.left+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bottom",{get:function(){return this.top+this.height},enumerable:!0,configurable:!0}),n.prototype.equals=function(t){return t instanceof n&&this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height},n.prototype.clone=function(){return new n(this.left,this.top,this.width,this.height)},n.fromBoundingRect=function(i){if(i.left!=null)return new n(i.left,i.top,i.width,i.height);if(i.x!=null)return new n(i.x,i.y,i.width,i.height);t(!1,'Invalid source rectangle.')},n.union=function(t,i){var r=Math.min(t.left,i.left),u=Math.min(t.top,i.top),f=Math.max(t.right,i.right),e=Math.max(t.bottom,i.bottom);return new n(r,u,f-r,e-u)},n.intersection=function(t,i){var r=Math.max(t.left,i.left),u=Math.max(t.top,i.top),f=Math.min(t.right,i.right),e=Math.min(t.bottom,i.bottom);return new n(r,u,f-r,e-u)},n.prototype.contains=function(i){if(i instanceof c)return i.x>=this.left&&i.x<=this.right&&i.y>=this.top&&i.y<=this.bottom;if(i instanceof n){var r=i;return r.left>=this.left&&r.right<=this.right&&r.top>=this.top&&r.bottom<=this.bottom}t(!1,'Point or Rect expected.')},n.prototype.inflate=function(t,i){return new n(this.left-t,this.top-i,this.width+2*t,this.height+2*i)},n}();n.Rect=w;st=function(){function t(){}return t.addDays=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate()+t)},t.addMonths=function(n,t){return new Date(n.getFullYear(),n.getMonth()+t,n.getDate())},t.addYears=function(n,t){return new Date(n.getFullYear()+t,n.getMonth(),n.getDate())},t.addHours=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours()+t)},t.addMinutes=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes()+t)},t.addSeconds=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds()+t)},t.sameDate=function(n,t){return u(n)&&u(t)&&n.getFullYear()==t.getFullYear()&&n.getMonth()==t.getMonth()&&n.getDate()==t.getDate()},t.sameTime=function(n,t){return u(n)&&u(t)&&n.getHours()==t.getHours()&&n.getMinutes()==t.getMinutes()&&n.getSeconds()==t.getSeconds()},t.equals=function(n,t){return u(n)&&u(t)&&n.getTime()==t.getTime()},t.fromDateTime=function(n,t){return!n&&!t?null:(n||(n=t),t||(t=n),new Date(n.getFullYear(),n.getMonth(),n.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))},t.toFiscal=function(i,r){var u=n.culture.Globalize.calendar;return o(u.fiscalYearOffsets)?t.addMonths(i,-u.fiscalYearOffsets[r?0:1]):i},t.fromFiscal=function(i,r){var u=n.culture.Globalize.calendar;return o(u.fiscalYearOffsets)?t.addMonths(i,+u.fiscalYearOffsets[r?0:1]):i},t.newDate=function(){var n=new Date;return new Date(n.getFullYear(),n.getMonth(),n.getDate())},t.clone=function(n){return t.fromDateTime(n,n)},t}();n.DateTime=st;n.httpRequest=bi})(wijmo||(wijmo={})),function(n){'use strict';n.culture={Globalize:{numberFormat:{'.':'.',',':',',percent:{pattern:['-n %','n %']},currency:{decimals:2,symbol:'$',pattern:['($n)','$n']}},calendar:{'/':'/',':':':',firstDay:0,days:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],daysAbbr:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],months:['January','February','March','April','May','June','July','August','September','October','November','December'],monthsAbbr:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],am:['AM','A'],pm:['PM','P'],eras:['A.D.','B.C.'],patterns:{d:'M/d/yyyy',D:'dddd, MMMM dd, yyyy',f:'dddd, MMMM dd, yyyy h:mm tt',F:'dddd, MMMM dd, yyyy h:mm:ss tt',t:'h:mm tt',T:'h:mm:ss tt',M:'MMMM d',m:'MMMM d',Y:'MMMM, yyyy',y:'MMMM, yyyy',g:'M/d/yyyy h:mm tt',G:'M/d/yyyy h:mm:ss tt',s:'yyyy"-"MM"-"dd"T"HH":"mm":"ss',o:'yyyy"-"MM"-"dd"T"HH":"mm":"ss"."fffffffK',O:'yyyy"-"MM"-"dd"T"HH":"mm":"ss"."fffffffK',U:'dddd, MMMM dd, yyyy h:mm:ss tt'},fiscalYearOffsets:[-3,-3]}}};var t=function(){function t(){}return t.format=function(i,r,u,f){return n.isString(i)?i:n.isNumber(i)?(r=r||(i==Math.round(i)?'n0':'n2'),t.formatNumber(i,r,u,f)):n.isDate(i)?(r=r||'d',t.formatDate(i,r)):i!=null?i.toString():''},t.formatNumber=function(t,i,r,u){var c,y,l;n.asNumber(t);n.asString(i);var f,o=i?i.match(/([a-z])(\d*)(,*)(.*)/i):null,s=n.culture.Globalize.numberFormat,e=o?o[1].toLowerCase():'n',h=o&&o[2]?parseInt(o[2]):e=='c'?s.currency.decimals:t==Math.round(t)?0:2,p=o&&o[3]?3*o[3].length:0,w=o&&o[4]?o[4]:s.currency.symbol,a=s['.'],v=s[','];if(p&&(t/=Math.pow(10,p)),e=='d'||e=='x'){for(f=Math.round(Math.abs(t)).toString(e=='d'?10:16);f.length<h;)f='0'+f;return t<0&&(f='-'+f),i&&i[0]=='X'&&(f=f.toUpperCase()),f}return e=='p'&&(t=n.toFixed(t*100,h,u)),u&&(t=n.toFixed(t,h,!0)),f=e=='c'||e=='p'?Math.abs(t).toFixed(h):t.toFixed(h),(r||e=='g')&&f.indexOf('.')>-1&&(f=f.replace(/(\.[0-9]*?)0+$/g,'$1'),f=f.replace(/\.$/,'')),a!='.'&&(f=f.replace('.',a)),v&&(e=='n'||e=='c'||e=='p')&&(c=f.indexOf(a),y=/\B(?=(\d\d\d)+(?!\d))/g,f=c>-1?f.substr(0,c).replace(y,v)+f.substr(c):f.replace(y,v)),e=='c'&&(l=s.currency.pattern[t<0?0:1],f=l.replace('n',f).replace('$',w)),e=='p'&&(l=s.percent.pattern[t<0?0:1],f=l.replace('n',f)),f},t.formatDate=function(i,r){var f,e,u;i=n.asDate(i);switch(r){case'r':case'R':return i.toUTCString();case'u':return i.toISOString().replace(/\.\d{3}/,'')}for(r=t._expandFormat(r),f=t._parseDateFormat(r),e='',u=0;u<f.length;u++)e+=t._formatDatePart(i,r,f[u]);return e},t.parseInt=function(n,i){return Math.round(t.parseFloat(n,i))},t.parseFloat=function(t,i){var r=t.indexOf('-')>-1||t.indexOf('(')>-1&&t.indexOf(')')>-1?-1:1,u=t.indexOf('%')>-1?.01:1,f=i?i.match(/,+/):null,e=f?f[0].length*3:0;if(i&&(i[0]=='x'||i[0]=='X'))return t=t.replace(/[^0-9a-f]+.*$/gi,''),parseInt(t,16)*r*u*Math.pow(10,e);var o=n.culture.Globalize.numberFormat['.'],s=new RegExp('[^\\d\\'+o+']','g'),h=t.replace(s,'').replace(o,'.');return parseFloat(h)*r*u*Math.pow(10,e)},t.parseDate=function(i,r){var ut,s,e,p,ht,nt;if(i=n.asString(i),!i)return null;if(r=='u')return new Date(i);if(r=='R'||r=='r')return ut=/(([0-9]+)\-([0-9]+)\-([0-9]+))?\s?(([0-9]+):([0-9]+)(:([0-9]+))?)?/,s=i.match(ut),s[1]||s[5]?(e=s[1]?new Date(parseInt(s[2]),parseInt(s[3])-1,parseInt(s[4])):new Date,s[5]&&(e.setHours(parseInt(s[6])),e.setMinutes(parseInt(s[7])),e.setSeconds(s[8]?parseInt(s[9]):0))):e=new Date(i),isNaN(e.getTime())?null:e;r=t._expandFormat(r?r:'d');var h=n.culture.Globalize.calendar,ft=t._CJK,ct=new RegExp('(\\'+h['/']+')|(\\'+h[':']+")|(\\d+)|(["+ft+"\\.]{2,})|(["+ft+']+)','gi'),c=i.match(ct),w=t._parseDateFormat(r),y=0,l=-1,a=0,d=1,o=0,b=0,k=0,et=0,tt=-1,ot,it,st,g,rt;if(!c||!c.length||!w||!w.length)return null;for(p=0;p<w.length&&c;p++){var v=p-y,u=v>-1&&v<c.length?c[v]:'',f=w[p].length;switch(w[p]){case'EEEE':case'EEE':case'EE':case'E':case'eeee':case'eee':case'ee':case'e':rt=w[p];case'yyyy':case'yyy':case'yy':case'y':f>1&&u.length>f&&(c[v]=u.substr(f),u=u.substr(0,f),y++);l=parseInt(u);break;case'MMMM':case'MMM':for(g=!0,ht=u.toLowerCase(),a=-1,nt=0;nt<12;nt++)if(h.months[nt].toLowerCase().indexOf(ht)==0){a=nt;break}if(a>-1)break;case'MM':case'M':g=!0;f>1&&u.length>f&&(c[v]=u.substr(f),u=u.substr(0,f),y++);a=parseInt(u)-1;break;case'dddd':case'ddd':ot=!0;break;case'dd':case'd':f>1&&u.length>f&&(c[v]=u.substr(f),u=u.substr(0,f),y++);d=parseInt(u);it=!0;break;case'hh':case'h':f>1&&u.length>f&&(c[v]=u.substr(f),u=u.substr(0,f),y++);o=parseInt(u);o=o==12?0:o;break;case'HH':f>1&&u.length>f&&(c[v]=u.substr(f),u=u.substr(0,f),y++);o=parseInt(u);break;case'H':o=parseInt(u);break;case'mm':case'm':f>1&&u.length>f&&(c[v]=u.substr(f),u=u.substr(0,f),y++);b=parseInt(u);break;case'ss':case's':f>1&&u.length>f&&(c[v]=u.substr(f),u=u.substr(0,f),y++);k=parseInt(u);break;case'fffffff':case'FFFFFFF':case'ffffff':case'FFFFFF':case'fffff':case'FFFFF':case'ffff':case'FFFF':case'fff':case'FFF':case'ff':case'FF':case'f':case'F':et=parseInt(u)/Math.pow(10,f-3);break;case'tt':case't':u=u.toUpperCase();(h.pm[0]&&u==h.pm[0]&&o<12||h.pm[1]&&u==h.pm[1]&&o<12)&&(o+=12);break;case'q':case'Q':case'u':case'U':st=!0;break;case'ggg':case'gg':case'g':tt=h.eras.length>1?t._getEra(u,h):-1;break;case h['/']:case h[':']:if(u&&u!=w[p])return null;break;case'K':break;default:t._unquote(w[p])!=u&&y++}}if(g&&it&&(isNaN(o)&&(o=0),isNaN(b)&&(b=0),isNaN(k)&&(k=0)),a<0||a>11||isNaN(a)||d<0||d>31||isNaN(d)||o<0||o>24||isNaN(o)||b<0||b>60||isNaN(b)||k<0||k>60||isNaN(k))return null;if(rt){if(!g)return null;e=new Date(l,a);e=n.DateTime.fromFiscal(e,rt[0]=='E');l=e.getFullYear();a=e.getMonth()}return ot&&!it?null:st&&!g?null:(l<0&&(l=(new Date).getFullYear()),tt>-1?l=l+h.eras[tt].start.getFullYear()-1:l<100&&(l+=l>=30?1900:2e3),e=new Date(l,a,d,o,b+0,k,et),isNaN(e.getTime())?null:e)},t.getFirstDayOfWeek=function(){var t=n.culture.Globalize.calendar.firstDay;return t?t:0},t.getNumberDecimalSeparator=function(){var t=n.culture.Globalize.numberFormat['.'];return t?t:'.'},t._unquote=function(n){return n.length>1&&n[0]==n[n.length-1]&&(n[0]=='\''||n[0]=='\"')?n.substr(1,n.length-2):n},t._parseDateFormat=function(n){var u,e,i,r,f;if(n in t._dateFomatParts)return t._dateFomatParts[n];for(u=[],e='',i=0;i>-1&&i<n.length;i++){if(f=n[i],(f=='\''||f=='"')&&(r=n.indexOf(f,i+1),r>-1)){u.push(n.substring(i,r+1));i=r;continue}for(r=i+1;r<n.length;r++)if(n[r]!=f)break;u.push(n.substring(i,r));i=r-1}return t._dateFomatParts[n]=u,u},t._formatDatePart=function(i,r,u){var f=n.culture.Globalize.calendar,o=0,h=0,l=0,c,e=u.length,s;switch(u){case'yyyy':case'yyy':case'yy':case'y':case'EEEE':case'EEE':case'EE':case'E':case'eeee':case'eee':case'ee':case'e':return c=u[0]=='E'?n.DateTime.toFiscal(i,!0):u[0]=='e'?n.DateTime.toFiscal(i,!1):i,h=c.getFullYear(),f.eras.length>1&&r.indexOf('g')>-1&&(o=t._getEra(i,f),o>-1&&(h=h-f.eras[o].start.getFullYear()+1)),t._zeroPad(h,4).substr(4-u.length);case'MMMM':return f.months[i.getMonth()];case'MMM':return f.monthsAbbr[i.getMonth()];case'MM':case'M':return t._zeroPad(i.getMonth()+1,e);case'dddd':return f.days[i.getDay()];case'ddd':return f.daysAbbr[i.getDay()];case'dd':return t._zeroPad(i.getDate(),2);case'd':return i.getDate().toString();case'hh':case'h':return t._zeroPad(t._h12(i),e);case'HH':case'H':return t._zeroPad(i.getHours(),e);case'mm':case'm':return t._zeroPad(i.getMinutes(),e);case'ss':case's':return t._zeroPad(i.getSeconds(),e);case'fffffff':case'FFFFFFF':case'ffffff':case'FFFFFF':case'fffff':case'FFFFF':case'ffff':case'FFFF':case'fff':case'FFF':case'ff':case'FF':case'f':case'F':return l=i.getMilliseconds()*Math.pow(10,e-3),u[0]=='f'?t._zeroPad(l,e):l.toFixed(0);case'tt':return i.getHours()<12?f.am[0]:f.pm[0];case't':return i.getHours()<12?f.am[1]:f.pm[1];case'q':case'Q':return(Math.floor(i.getMonth()/3)+1).toString();case'u':case'U':return c=n.DateTime.toFiscal(i,u=='U'),(Math.floor(c.getMonth()/3)+1).toString();case'ggg':case'gg':case'g':return f.eras.length>1&&(o=t._getEra(i,f),o>-1)?u=='ggg'?f.eras[o].name:u=='gg'?f.eras[o].name[0]:f.eras[o].symbol:f.eras[0];case':':case'/':return f[u];case'K':return s=i.toString().match(/(\+|\-)(\d{2})(\d{2})/),s?s[1]+s[2]+s[3]:''}return e>1&&u[0]==u[e-1]&&(u[0]=='\"'||u[0]=='\'')?u.substr(1,e-2):u},t._getEra=function(t,i){var r;if(n.isDate(t)){for(r=0;r<i.eras.length;r++)if(t>=i.eras[r].start)return r}else if(n.isString(t))for(r=0;r<i.eras.length;r++)if(i.eras[r].name&&(i.eras[r].name.indexOf(t)==0||i.eras[r].symbol.indexOf(t)==0))return r;return-1},t._expandFormat=function(t){var i=n.culture.Globalize.calendar.patterns[t];return i?i:t},t._zeroPad=function(n,t){var i=n.toFixed(0),r=t-i.length+1;return r>0?Array(r).join('0')+i:i},t._h12=function(t){var r=n.culture.Globalize.calendar,i=t.getHours();return r.am&&r.am[0]&&(i=i%12,i==0&&(i=12)),i},t._CJK='a-z'+'u00c0-u017fu3000-u30ffu4e00-u9faf'.replace(/u/g,'\\u')+'u1100-u11ffu3130-u318fua960-ua97fuac00-ud7afud7b0-ud7ff'.replace(/u/g,'\\u'),t._dateFomatParts={},t}();n.Globalize=t}(wijmo||(wijmo={})),function(n){'use strict';var t=function(){function n(n){this.path=n}return Object.defineProperty(n.prototype,"path",{get:function(){return this._path},set:function(n){var t,i,r;for(this._path=n,this._parts=n?n.split('.'):[],t=0;t<this._parts.length;t++)i=this._parts[t],r=i.indexOf('['),r>-1&&(this._parts[t]=i.substr(0,r),this._parts.splice(++t,0,parseInt(i.substr(r+1))));this._key=this._parts.length==1?this._parts[0]:null},enumerable:!0,configurable:!0}),n.prototype.getValue=function(n){if(n){if(this._key)return n[this._key];if(this._path in n)return n[this._path];for(var t=0;t<this._parts.length&&n;t++)n=n[this._parts[t]]}return n},n.prototype.setValue=function(n,t){if(n){if(this._path in n){n[this._path]=t;return}for(var i=0;i<this._parts.length-1;i++)if(n=n[this._parts[i]],n==null)return;n[this._parts[this._parts.length-1]]=t}},n}();n.Binding=t}(wijmo||(wijmo={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){'use strict';var f=function(){function n(n,t){this.handler=n;this.self=t}return n}(),e=function(){function i(){this._handlers=[]}return i.prototype.addHandler=function(t,i){n.asFunction(t);this._handlers.push(new f(t,i))},i.prototype.removeHandler=function(t,i){var r,u;for(n.asFunction(t),r=0;r<this._handlers.length;r++)if(u=this._handlers[r],(u.handler==t||t==null)&&(u.self==i||i==null)&&(this._handlers.splice(r,1),t&&i))break},i.prototype.removeAllHandlers=function(){this._handlers.length=0},i.prototype.raise=function(n,i){var r,u;for(i===void 0&&(i=t.empty),r=0;r<this._handlers.length;r++)u=this._handlers[r],u.handler.call(u.self,n,i)},Object.defineProperty(i.prototype,"hasHandlers",{get:function(){return this._handlers.length>0},enumerable:!0,configurable:!0}),i}(),t,i,r,u;n.Event=e;t=function(){function n(){}return n.empty=new n,n}();n.EventArgs=t;i=function(n){function t(){n.apply(this,arguments);this.cancel=!1}return __extends(t,n),t}(t);n.CancelEventArgs=i;r=function(n){function t(t,i,r){n.call(this);this._name=t;this._oldVal=i;this._newVal=r}return __extends(t,n),Object.defineProperty(t.prototype,"propertyName",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oldValue",{get:function(){return this._oldVal},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"newValue",{get:function(){return this._newVal},enumerable:!0,configurable:!0}),t}(t);n.PropertyChangedEventArgs=r;u=function(n){function t(t){n.call(this);this._xhr=t}return __extends(t,n),Object.defineProperty(t.prototype,"request",{get:function(){return this._xhr},enumerable:!0,configurable:!0}),t}(i);n.RequestErrorEventArgs=u}(wijmo||(wijmo={})),function(n){'use strict';var t=function(){function t(i,r,u){var c=this,f,l,s,v,o;if(r===void 0&&(r=null),u===void 0&&(u=!1),this._focus=!1,this._updating=0,this._fullUpdate=!1,this.gotFocus=new n.Event,this.lostFocus=new n.Event,n.assert(t.getControl(i)==null,'Element is already hosting a control.'),f=n.getElement(i),n.assert(f!=null,'Cannot find the host element.'),this._orgOuter=f.outerHTML,this._orgInner=f.innerHTML,this._orgTag=f.tagName,(f.tagName=='INPUT'||f.tagName=='SELECT')&&(f=this._replaceWithDiv(f)),this._e=f,f[t._DATA_KEY]=this,u==!0&&(this._szCtl=new n.Size(f.offsetWidth,f.offsetHeight),l=this._handleResize.bind(this),this.addEventListener(window,'resize',l)),this.addEventListener(f,'focus',function(){setTimeout(function(){c._updateFocusState()})},!0),this.addEventListener(f,'blur',function(){setTimeout(function(){c._updateFocusState()},20)},!0),s=this._handleDisabled.bind(this),this.addEventListener(f,'mousedown',s,!0),this.addEventListener(f,'mouseup',s,!0),this.addEventListener(f,'click',s,!0),this.addEventListener(f,'dblclick',s,!0),this.addEventListener(f,'keydown',s,!0),this.addEventListener(f,'onmousewheel'in document?'mousewheel':'DOMMouseScroll',s,!0),t._touching==null&&(t._touching=!1,'ontouchstart'in window||'onpointerdown'in window)){var e=document.body,a=this._handleTouchStart,h=this._handleTouchEnd;'ontouchstart'in window?(e.addEventListener('touchstart',a),e.addEventListener('touchend',h),e.addEventListener('touchcancel',h),e.addEventListener('touchleave',h)):'onpointerdown'in window&&(e.addEventListener('pointerdown',a),e.addEventListener('pointerup',h),e.addEventListener('pointerout',h),e.addEventListener('pointercancel',h),e.addEventListener('pointerleave',h))}if(!t._wme||!t._wme.parentElement){v='Wijmo '+n.getVersion()+' eval';t._wme=n.createElement('<div><a href="http://wijmo.com/products/wijmo-5/eval/">'+v+'</a></div>');o={position:'fixed',padding:5,margin:5,background:'#fff',boxShadow:'0 0 10px rgba(0,0,0,0.25)',fontSize:'11pt',zIndex:1e3,opacity:.8,display:'block',visibility:'visible',height:'auto',width:'auto',transform:'none'};switch(Math.round(Math.random()*100)%2){case 0:o.right=o.bottom=0;break;case 1:o.left=o.bottom=0;break;case 2:o.right=o.top=0}n.setCss(t._wme,o);document.body.appendChild(t._wme)}}return t.prototype.getTemplate=function(){for(var t,n=Object.getPrototypeOf(this);n;n=Object.getPrototypeOf(n))if(t=n.constructor.controlTemplate,t)return t;return null},t.prototype.applyTemplate=function(t,i,r,u){var e=this._e,h,c,y,v,o,a,s;t&&n.addClass(e,t);h=null;i&&(h=n.createElement(i,e));var p=e.querySelectorAll('input'),f=p.length==1?p[0]:null,l=e.attributes;if(f&&l)for(c=0;c<l.length;c++)l[c].name.match(/name|autofocus|minlength|maxlength|pattern/i)&&f.setAttribute(l[c].name,l[c].value);if(f&&(y=document.createEvent('HTMLEvents'),v='',y.initEvent('change',!0,!1),this.addEventListener(f,'input',function(){v=f.value},!0),this.gotFocus.addHandler(function(){f&&(v=f.value)}),this.lostFocus.addHandler(function(){f&&v!=f.value&&f.dispatchEvent(y)})),e.getAttribute('tabindex')||(e.tabIndex=f!=null?-1:0),r)for(o in r){if(a=r[o],this[o]=h.querySelector('[wj-part="'+a+'"]'),this[o]==null&&h.getAttribute('wj-part')==a&&(this[o]=h),this[o]==null)throw'Missing template part: "'+a+'"';a==u&&(s=e.attributes.name,s&&s.value&&this[o].setAttribute('name',s.value),s=e.attributes.accesskey,s&&s.value&&(this[o].setAttribute('accesskey',s.value),e.removeAttribute('accesskey')))}return h},t.prototype.dispose=function(){for(var e,u,i,r,o=this._e.querySelectorAll('.wj-control'),f=0;f<o.length;f++)e=t.getControl(o[f]),e&&e.dispose();this._toInv&&clearTimeout(this._toInv);this.removeEventListener();for(i in this)i.length>2&&i.indexOf('on')==0&&(r=this[i[2].toLowerCase()+i.substr(3)],r instanceof n.Event&&r.removeAllHandlers());if(u=this.collectionView,u instanceof n.collections.CollectionView)for(i in u)r=u[i],r instanceof n.Event&&r.removeHandler(null,this);this._e.parentNode&&(this._e.outerHTML=this._orgOuter);this._e[t._DATA_KEY]=null;this._e=this._orgOuter=this._orgInner=this._orgTag=null},t.getControl=function(i){var r=n.getElement(i);return r?n.asType(r[t._DATA_KEY],t,!0):null},Object.defineProperty(t.prototype,"hostElement",{get:function(){return this._e},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this._e.focus()},t.prototype.containsFocus=function(){var f,i,r,e,u;if(!this._e)return!1;for(f=this._e.getElementsByClassName('wj-control'),i=0;i<f.length;i++)if(r=t.getControl(f[i]),r&&r!=this&&r.containsFocus())return!0;return(e=n.getActiveElement(),u=t.getControl(n.closest(e,'.wj-control.wj-popup')),u&&u.owner&&n.contains(this._e,u.owner))?!0:n.contains(this._e,e)},t.prototype.invalidate=function(n){var i=this;n===void 0&&(n=!0);this._fullUpdate=this._fullUpdate||n;this._toInv&&(clearTimeout(this._toInv),this._toInv=null);this.isUpdating||(this._toInv=setTimeout(function(){i.refresh(i._fullUpdate)},t._REFRESH_INTERVAL))},t.prototype.refresh=function(n){n===void 0&&(n=!0);!this.isUpdating&&this._toInv&&(clearTimeout(this._toInv),this._toInv=null,this._fullUpdate=!1)},t.invalidateAll=function(n){var i,r;if(n||(n=document.body),n.children)for(i=0;i<n.children.length;i++)t.invalidateAll(n.children[i]);r=t.getControl(n);r&&r.invalidate()},t.refreshAll=function(n){var i,r;if(n||(n=document.body),n.children)for(i=0;i<n.children.length;i++)t.refreshAll(n.children[i]);r=t.getControl(n);r&&r.refresh()},t.disposeAll=function(n){var r=t.getControl(n),i;if(r)r.dispose();else if(n.children)for(i=0;i<n.children.length;i++)t.disposeAll(n.children[i])},t.prototype.beginUpdate=function(){this._updating++},t.prototype.endUpdate=function(){this._updating--;this._updating<=0&&this.invalidate()},Object.defineProperty(t.prototype,"isUpdating",{get:function(){return this._updating>0},enumerable:!0,configurable:!0}),t.prototype.deferUpdate=function(n){try{this.beginUpdate();n()}finally{this.endUpdate()}},Object.defineProperty(t.prototype,"isTouching",{get:function(){return t._touching},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._e&&this._e.getAttribute('disabled')!=null},set:function(t){t=n.asBoolean(t,!0);t!=this.disabled&&n.enable(this._e,!t)},enumerable:!0,configurable:!0}),t.prototype.initialize=function(t){t&&(this.beginUpdate(),n.copy(this,t),this.endUpdate())},t.prototype.addEventListener=function(n,t,i,r){r===void 0&&(r=!1);n&&(n.addEventListener(t,i,r),this._listeners==null&&(this._listeners=[]),this._listeners.push({target:n,type:t,fn:i,capture:r}))},t.prototype.removeEventListener=function(n,t,i){var f=0,u,r;if(this._listeners)for(u=0;u<this._listeners.length;u++)r=this._listeners[u],(n==null||n==r.target)&&(t==null||t==r.type)&&(i==null||i==r.capture)&&(r.target.removeEventListener(r.type,r.fn,r.capture),this._listeners.splice(u,1),u--,f++);return f},t.prototype.onGotFocus=function(n){this.gotFocus.raise(this,n)},t.prototype.onLostFocus=function(n){this.lostFocus.raise(this,n)},t.prototype._handleResize=function(){if(this._e.parentElement){var t=new n.Size(this._e.offsetWidth,this._e.offsetHeight);t.equals(this._szCtl)||(this._szCtl=t,this.invalidate())}},t.prototype._updateFocusState=function(){var i=this;setTimeout(function(){for(var r,f,u=i._e;u;u=u.parentElement)r=t.getControl(u),r&&(f=r.containsFocus(),f!=r._focus&&(r._focus=f,f?r.onGotFocus():r.onLostFocus(),n.toggleClass(u,'wj-state-focused',f)))})},t.prototype._handleTouchStart=function(n){(n.pointerType==null||n.pointerType=='touch')&&(t._touching=!0)},t.prototype._handleTouchEnd=function(n){(n.pointerType==null||n.pointerType=='touch')&&setTimeout(function(){t._touching=!1},400)},t.prototype._handleDisabled=function(n){this.disabled&&(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation())},t.prototype._replaceWithDiv=function(n){var r=document.createElement('div'),i,t,u;for(n.parentElement.replaceChild(r,n),r.innerHTML=n.innerHTML,i=n.attributes,t=0;t<i.length;t++)u=i[t].name,i[t].name.match(/id|style|class/i)&&r.setAttribute(u,i[t].value);return r},t._DATA_KEY='wj-Control',t._REFRESH_INTERVAL=10,t}();n.Control=t}(wijmo||(wijmo={})),function(n){'use strict';function i(i,r,u){var v=0,f=0,l=0,s=0,h=null,c=null,y=u?new n.Binding(u):null,a,e,o;for(i=n.asEnum(i,t),a=0;a<r.length;a++)e=r[a],y&&(e=y.getValue(e)),e!=null&&(v++,(h==null||e<h)&&(h=e),(c==null||e>c)&&(c=e),n.isNumber(e)&&!isNaN(e)?(f++,l+=e,s+=e*e):n.isBoolean(e)&&(f++,e==!0&&(l++,s++)));o=f==0?0:l/f;switch(i){case t.Avg:return o;case t.Cnt:return v;case t.Max:return c;case t.Min:return h;case t.Rng:return c-h;case t.Sum:return l;case t.VarPop:return f<=1?0:s/f-o*o;case t.StdPop:return f<=1?0:Math.sqrt(s/f-o*o);case t.Var:return f<=1?0:(s/f-o*o)*f/(f-1);case t.Std:return f<=1?0:Math.sqrt((s/f-o*o)*f/(f-1))}throw'Invalid aggregate type.';}(function(n){n[n.None=0]="None";n[n.Sum=1]="Sum";n[n.Cnt=2]="Cnt";n[n.Avg=3]="Avg";n[n.Max=4]="Max";n[n.Min=5]="Min";n[n.Rng=6]="Rng";n[n.Std=7]="Std";n[n.Var=8]="Var";n[n.StdPop=9]="StdPop";n[n.VarPop=10]="VarPop"})(n.Aggregate||(n.Aggregate={}));var t=n.Aggregate;n.getAggregate=i}(wijmo||(wijmo={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){'use strict';var i,u,f,e,r,o;(function(n){n[n.Add=0]="Add";n[n.Remove=1]="Remove";n[n.Change=2]="Change";n[n.Reset=3]="Reset"})(t.NotifyCollectionChangedAction||(t.NotifyCollectionChangedAction={}));i=t.NotifyCollectionChangedAction;u=function(n){function t(t,r,u){t===void 0&&(t=i.Reset);r===void 0&&(r=null);u===void 0&&(u=-1);n.call(this);this.action=t;this.item=r;this.index=u}return __extends(t,n),t.reset=new t(i.Reset),t}(n.EventArgs);t.NotifyCollectionChangedEventArgs=u;f=function(){function t(t,i){this._bnd=new n.Binding(t);this._asc=i}return Object.defineProperty(t.prototype,"property",{get:function(){return this._bnd.path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ascending",{get:function(){return this._asc},enumerable:!0,configurable:!0}),t}();t.SortDescription=f;e=function(n){function t(t){n.call(this);this.newPageIndex=t}return __extends(t,n),t}(n.CancelEventArgs);t.PageChangingEventArgs=e;r=function(){function n(){}return n.prototype.groupNameFromItem=function(){return''},n.prototype.namesMatch=function(n,t){return n===t},n}();t.GroupDescription=r;o=function(t){function i(i,r){t.call(this);this._bnd=new n.Binding(i);this._converter=r}return __extends(i,t),Object.defineProperty(i.prototype,"propertyName",{get:function(){return this._bnd.path},enumerable:!0,configurable:!0}),i.prototype.groupNameFromItem=function(n){return this._converter?this._converter(n,this.propertyName):this._bnd.getValue(n)},i.prototype.namesMatch=function(n,t){return n===t},i}(r);t.PropertyGroupDescription=o})(t=n.collections||(n.collections={}))}(wijmo||(wijmo={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){'use strict';var i=function(){function n(){this.length=0;Array.apply(this,arguments)}return n.prototype.pop=function(){return null},n.prototype.push=function(){for(var t=[],n=0;n<arguments.length;n++)t[+n]=arguments[n];return 0},n.prototype.splice=function(){return null},n.prototype.slice=function(){return null},n.prototype.indexOf=function(){return-1},n.prototype.sort=function(){return null},n}(),r;t.ArrayBase=i;i.prototype=Array.prototype;r=function(i){function r(t){if(i.call(this),this._updating=0,this.collectionChanged=new n.Event,t){t=n.asArray(t);this._updating++;for(var r=0;r<t.length;r++)this.push(t[r]);this._updating--}}return __extends(r,i),r.prototype.push=function(){for(var f,r,n=[],u=0;u<arguments.length;u++)n[+u]=arguments[u];for(f=this.length,r=0;n&&r<n.length;r++)f=i.prototype.push.call(this,n[r]),this._updating||this._raiseCollectionChanged(t.NotifyCollectionChangedAction.Add,n[r],f-1);return f},r.prototype.pop=function(){var n=i.prototype.pop.call(this);return this._raiseCollectionChanged(t.NotifyCollectionChangedAction.Remove,n,this.length),n},r.prototype.splice=function(n,r,u){var f;return r&&u?(f=i.prototype.splice.call(this,n,r,u),r==1?this._raiseCollectionChanged(t.NotifyCollectionChangedAction.Change,u,n):this._raiseCollectionChanged(),f):u?(f=i.prototype.splice.call(this,n,0,u),this._raiseCollectionChanged(t.NotifyCollectionChangedAction.Add,u,n),f):(f=i.prototype.splice.call(this,n,r),r==1?this._raiseCollectionChanged(t.NotifyCollectionChangedAction.Remove,f[0],n):this._raiseCollectionChanged(),f)},r.prototype.slice=function(n,t){return i.prototype.slice.call(this,n,t)},r.prototype.indexOf=function(n,t){return i.prototype.indexOf.call(this,n,t)},r.prototype.sort=function(n){var t=i.prototype.sort.call(this,n);return this._raiseCollectionChanged(),t},r.prototype.insert=function(n,t){this.splice(n,0,t)},r.prototype.remove=function(n){var t=this.indexOf(n);return t>-1?(this.removeAt(t),!0):!1},r.prototype.removeAt=function(n){this.splice(n,1)},r.prototype.setAt=function(n,t){n>this.length&&(this.length=n);this.splice(n,1,t)},r.prototype.clear=function(){this.length!==0&&(this.splice(0,this.length),this._raiseCollectionChanged())},r.prototype.beginUpdate=function(){this._updating++},r.prototype.endUpdate=function(){this._updating>0&&(this._updating--,this._updating==0&&this._raiseCollectionChanged())},Object.defineProperty(r.prototype,"isUpdating",{get:function(){return this._updating>0},enumerable:!0,configurable:!0}),r.prototype.deferUpdate=function(n){try{this.beginUpdate();n()}finally{this.endUpdate()}},r.prototype.implementsInterface=function(n){return n=='INotifyCollectionChanged'},r.prototype.onCollectionChanged=function(n){n===void 0&&(n=t.NotifyCollectionChangedEventArgs.reset);this.isUpdating||this.collectionChanged.raise(this,n)},r.prototype._raiseCollectionChanged=function(n,i,r){if(n===void 0&&(n=t.NotifyCollectionChangedAction.Reset),!this.isUpdating){var u=new t.NotifyCollectionChangedEventArgs(n,i,r);this.onCollectionChanged(u)}},r}(i);t.ObservableArray=r})(t=n.collections||(n.collections={}))}(wijmo||(wijmo={})),function(n){var t;(function(t){'use strict';var r=function(){function r(i,r){var u=this;this._idx=-1;this._srtDsc=new t.ObservableArray;this._grpDesc=new t.ObservableArray;this._newItem=null;this._edtItem=null;this._pgSz=0;this._pgIdx=0;this._updating=0;this._canFilter=!0;this._canGroup=!0;this._canSort=!0;this._canAddNew=!0;this._canCancelEdit=!0;this._canRemove=!0;this._canChangePage=!0;this._trackChanges=!1;this._chgAdded=new t.ObservableArray;this._chgRemoved=new t.ObservableArray;this._chgEdited=new t.ObservableArray;this.collectionChanged=new n.Event;this.sourceCollectionChanging=new n.Event;this.sourceCollectionChanged=new n.Event;this.currentChanged=new n.Event;this.currentChanging=new n.Event;this.pageChanged=new n.Event;this.pageChanging=new n.Event;this._srtDsc.collectionChanged.addHandler(function(){for(var r=u._srtDsc,i=0;i<r.length;i++)n.assert(r[i]instanceof t.SortDescription,'sortDescriptions array must contain SortDescription objects.');u.canSort&&u.refresh()});this._grpDesc.collectionChanged.addHandler(function(){for(var r=u._grpDesc,i=0;i<r.length;i++)n.assert(r[i]instanceof t.GroupDescription,'groupDescriptions array must contain GroupDescription objects.');u.canGroup&&u.refresh()});this.sourceCollection=i?i:new t.ObservableArray;r&&(this.beginUpdate(),n.copy(this,r),this.endUpdate())}return r.prototype._copy=function(i,r){var e,f,u;if(i=='sortDescriptions'){for(this.sortDescriptions.clear(),e=n.asArray(r),f=0;f<e.length;f++)u=e[f],n.isString(u)&&(u=new t.SortDescription(u,!0)),this.sortDescriptions.push(u);return!0}if(i=='groupDescriptions'){for(this.groupDescriptions.clear(),e=n.asArray(r),f=0;f<e.length;f++)u=e[f],n.isString(u)&&(u=new t.PropertyGroupDescription(u)),this.groupDescriptions.push(u);return!0}return!1},Object.defineProperty(r.prototype,"newItemCreator",{get:function(){return this._itemCreator},set:function(t){this._itemCreator=n.asFunction(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sortConverter",{get:function(){return this._srtCvt},set:function(t){t!=this._srtCvt&&(this._srtCvt=n.asFunction(t,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sortComparer",{get:function(){return this._srtCmp},set:function(t){t!=this._srtCmp&&(this._srtCmp=n.asFunction(t,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"useStableSort",{get:function(){return this._stableSort},set:function(t){this._stableSort=n.asBoolean(t)},enumerable:!0,configurable:!0}),r.prototype.getAggregate=function(t,i){return n.getAggregate(t,this.items,i)},r.prototype.implementsInterface=function(n){switch(n){case'ICollectionView':case'IEditableCollectionView':case'IPagedCollectionView':case'INotifyCollectionChanged':return!0}return!1},Object.defineProperty(r.prototype,"trackChanges",{get:function(){return this._trackChanges},set:function(t){this._trackChanges=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"itemsAdded",{get:function(){return this._chgAdded},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"itemsRemoved",{get:function(){return this._chgRemoved},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"itemsEdited",{get:function(){return this._chgEdited},enumerable:!0,configurable:!0}),r.prototype.clearChanges=function(){this._chgAdded.clear();this._chgRemoved.clear();this._chgEdited.clear()},r.prototype.onCollectionChanged=function(n){n===void 0&&(n=t.NotifyCollectionChangedEventArgs.reset);this._committing||n.action!=t.NotifyCollectionChangedAction.Change||n.item==this.currentEditItem||this._trackItemChanged(n.item);this.collectionChanged.raise(this,n)},r.prototype._raiseCollectionChanged=function(n,i,r){n===void 0&&(n=t.NotifyCollectionChangedAction.Reset);var u=new t.NotifyCollectionChangedEventArgs(n,i,r);this.onCollectionChanged(u)},r.prototype.onSourceCollectionChanging=function(n){return this.sourceCollectionChanging.raise(this,n),!n.cancel},r.prototype.onSourceCollectionChanged=function(){this.sourceCollectionChanged.raise(this)},Object.defineProperty(r.prototype,"canFilter",{get:function(){return this._canFilter},set:function(t){this._canFilter=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"canGroup",{get:function(){return this._canGroup},set:function(t){this._canGroup=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"canSort",{get:function(){return this._canSort},set:function(t){this._canSort=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentItem",{get:function(){return this._pgView&&this._idx>-1&&this._idx<this._pgView.length?this._pgView[this._idx]:null},set:function(n){this.moveCurrentTo(n)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentPosition",{get:function(){return this._idx},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"filter",{get:function(){return this._filter},set:function(t){this._filter!=t&&(this._filter=n.asFunction(t),this.canFilter&&this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"groupDescriptions",{get:function(){return this._grpDesc},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"groups",{get:function(){return this._groups},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isEmpty",{get:function(){return this._pgView.length==0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sortDescriptions",{get:function(){return this._srtDsc},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sourceCollection",{get:function(){return this._src},set:function(t){if(t!=this._src){if(!this.onSourceCollectionChanging(new n.CancelEventArgs))return;var i=this.currentPosition;this.commitEdit();this.commitNew();this._ncc!=null&&this._ncc.collectionChanged.removeHandler(this._sourceChanged);this._src=n.asArray(t,!1);this._ncc=n.tryCast(this._src,'INotifyCollectionChanged');this._ncc&&this._ncc.collectionChanged.addHandler(this._sourceChanged,this);this.clearChanges();this.refresh();this.moveCurrentToFirst();this.onSourceCollectionChanged();this.currentPosition<0&&i>-1&&this.onCurrentChanged()}},enumerable:!0,configurable:!0}),r.prototype._sourceChanged=function(){this._updating<=0&&this.refresh()},r.prototype.contains=function(n){return this._pgView.indexOf(n)>-1},r.prototype.moveCurrentTo=function(n){return this.moveCurrentToPosition(this._pgView.indexOf(n))},r.prototype.moveCurrentToFirst=function(){return this.moveCurrentToPosition(0)},r.prototype.moveCurrentToLast=function(){return this.moveCurrentToPosition(this._pgView.length-1)},r.prototype.moveCurrentToPrevious=function(){return this._idx>0?this.moveCurrentToPosition(this._idx-1):!1},r.prototype.moveCurrentToNext=function(){return this.moveCurrentToPosition(this._idx+1)},r.prototype.moveCurrentToPosition=function(t){if(t>=-1&&t<this._pgView.length){var i=new n.CancelEventArgs;this._idx!=t&&this.onCurrentChanging(i)&&(this._edtItem&&this._pgView[t]!=this._edtItem&&this.commitEdit(),this._newItem&&this._pgView[t]!=this._newItem&&this.commitNew(),this._idx=t,this.onCurrentChanged())}return this._idx==t},r.prototype.refresh=function(){this._updating>0||this._newItem||this._edtItem||(this._performRefresh(),this.onCollectionChanged())},r.prototype._performRefresh=function(){var i=this.currentItem,t;this._view=this._src?this._filter&&this.canFilter?this._performFilter(this._src):this._srtDsc.length>0&&this.canSort?this._src.slice(0):this._src:[];this.canSort&&this._srtDsc.length>0&&this._performSort(this._view);this._groups=this.canGroup?this._createGroups(this._view):null;this._fullGroups=this._groups;this._groups&&(this._view=this._mergeGroupItems(this._groups));this._pgIdx=n.clamp(this._pgIdx,0,this.pageCount-1);this._pgView=this._getPageView();this._groups&&this.pageCount>1&&(this._groups=this._createGroups(this._pgView),this._mergeGroupItems(this._groups));t=this._pgView.indexOf(i);t<0&&(t=Math.min(this._idx,this._pgView.length-1));this._idx=t;this._digest=this._getGroupsDigest(this.groups);this.currentItem!==i&&this.onCurrentChanged()},r.prototype._performSort=function(n){var i,r,t;if(this._stableSort)for(i=n.map(function(n,t){return{item:n,index:t}}),r=this._compareItems(),i.sort(function(n,t){var i=r(n.item,t.item);return i==0?n.index-t.index:i}),t=0;t<n.length;t++)n[t]=i[t].item;else n.sort(this._compareItems())},r.prototype._compareItems=function(){var i=this._srtDsc,t=this._srtCvt,r=this._srtCmp,u=!0,n=0;return function(f,e){for(var l,a,c=0;c<i.length;c++){var h=i[c],o=h._bnd.getValue(f),s=h._bnd.getValue(e);if(t&&(o=t(h,f,o,u),s=t(h,e,s,!1),u=!1),r&&(n=r(o,s),n!=null))return h.ascending?+n:-n;if(o!==o&&(o=null),s!==s&&(s=null),typeof o=='string'&&typeof s=='string'&&(l=o.toLowerCase(),a=s.toLowerCase(),l!=a&&(o=l,s=a)),o!=null&&s==null)return-1;if(o==null&&s!=null)return 1;if(n=o<s?-1:o>s?1:0,n!=0)return h.ascending?+n:-n}return 0}},r.prototype._performFilter=function(n){return this.canFilter&&this._filter?n.filter(this._filter,this):n},r.prototype.onCurrentChanged=function(t){t===void 0&&(t=n.EventArgs.empty);this.currentChanged.raise(this,t)},r.prototype.onCurrentChanging=function(n){return this.currentChanging.raise(this,n),!n.cancel},Object.defineProperty(r.prototype,"items",{get:function(){return this._pgView},enumerable:!0,configurable:!0}),r.prototype.beginUpdate=function(){this._updating++},r.prototype.endUpdate=function(){this._updating--;this._updating<=0&&this.refresh()},Object.defineProperty(r.prototype,"isUpdating",{get:function(){return this._updating>0},enumerable:!0,configurable:!0}),r.prototype.deferUpdate=function(n){try{this.beginUpdate();n()}finally{this.endUpdate()}},Object.defineProperty(r.prototype,"canAddNew",{get:function(){return this._canAddNew},set:function(t){this._canAddNew=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"canCancelEdit",{get:function(){return this._canCancelEdit},set:function(t){this._canCancelEdit=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"canRemove",{get:function(){return this._canRemove},set:function(t){this._canRemove=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentAddItem",{get:function(){return this._newItem},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentEditItem",{get:function(){return this._edtItem},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isAddingNew",{get:function(){return this._newItem!=null},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isEditingItem",{get:function(){return this._edtItem!=null},enumerable:!0,configurable:!0}),r.prototype.addNew=function(){var i,u,r;if(arguments.length>0&&n.assert(!1,'addNew does not take any parameters, it creates the new items.'),this.commitEdit(),this.commitNew(),!this.canAddNew)return n.assert(!1,'cannot add items (canAddNew == false).'),null;if(i=null,u=this.sourceCollection,i=this.newItemCreator?this.newItemCreator():u&&u.length?new u[0].constructor:{},i!=null){if(this._newItem=i,this._updating++,this._src.push(i),this._updating--,this._pgView!=this._src&&this._pgView.push(i),this.groups&&this.groups.length)for(r=this.groups[this.groups.length-1],r.items.push(i);r.groups&&r.groups.length;)r=r.groups[r.groups.length-1],r.items.push(i);this._raiseCollectionChanged(t.NotifyCollectionChangedAction.Add,i,this._pgView.length-1);this.moveCurrentTo(i)}return this._newItem},r.prototype.cancelEdit=function(){var r=this._edtItem,i;if(r!=null){if(this._edtItem=null,!this.canCancelEdit){n.assert(!1,'cannot cancel edits (canCancelEdit == false).');return}if(i=this._src.indexOf(r),i<0||!this._edtClone)return;this._extend(this._src[i],this._edtClone);this._edtClone=null;this._raiseCollectionChanged(t.NotifyCollectionChangedAction.Change,r,i)}},r.prototype.cancelNew=function(){var n=this._newItem;n!=null&&this.remove(n)},r.prototype.commitEdit=function(){var n=this._edtItem,r,i,u;n!=null&&(this._committing=!0,r=this._sameContent(n,this._edtClone),this._edtItem=null,this._edtClone=null,i=this._pgView.indexOf(n),u=this._digest,this._performRefresh(),r||this._trackItemChanged(n),this._pgView.indexOf(n)==i&&u==this._digest?this._raiseCollectionChanged(t.NotifyCollectionChangedAction.Change,n,i):this._raiseCollectionChanged(),this._committing=!1)},r.prototype.commitNew=function(){var n=this._newItem,i,u,r;n!=null&&(this._newItem=null,i=this._pgView.indexOf(n),u=this._digest,this._performRefresh(),this._trackChanges==!0&&(r=this._chgEdited.indexOf(n),r>-1&&this._chgEdited.removeAt(r),this._chgAdded.indexOf(n)<0&&this._chgAdded.push(n)),this._pgView.indexOf(n)==i&&u==this._digest?this._raiseCollectionChanged(t.NotifyCollectionChangedAction.Change,n,i):this._raiseCollectionChanged())},r.prototype.editItem=function(n){n!=this._edtItem&&this.moveCurrentTo(n)&&(this.commitEdit(),this._edtItem=n,this._edtClone={},this._extend(this._edtClone,this._edtItem))},r.prototype.remove=function(i){var e=i==this._newItem,r,o,s,u,f,h,c,l;if(e&&(this._newItem=null),i==this._edtItem&&this.cancelEdit(),!this.canRemove){n.assert(!1,'cannot remove items (canRemove == false).');return}r=this._src.indexOf(i);r>-1&&(o=this.currentItem,this._updating++,this._src.splice(r,1),this._updating--,s=this._digest,this._performRefresh(),this._trackChanges==!0&&(u=this._chgAdded.indexOf(i),u>-1&&this._chgAdded.removeAt(u),f=this._chgEdited.indexOf(i),f>-1&&this._chgEdited.removeAt(f),h=this._chgRemoved.indexOf(i),h<0&&!e&&u<0&&this._chgRemoved.push(i)),c=this.sortDescriptions.length>0,l=this.pageSize>0&&this._pgIdx>-1,c||l||s!=this._getGroupsDigest(this.groups)?this._raiseCollectionChanged():this._raiseCollectionChanged(t.NotifyCollectionChangedAction.Remove,i,r),this.currentItem!==o&&this.onCurrentChanged())},r.prototype.removeAt=function(t){t=n.asInt(t);this.remove(this._pgView[t])},r.prototype._trackItemChanged=function(n){var i,r;if(this._trackChanges)if(i=this._chgEdited.indexOf(n),i<0&&this._chgAdded.indexOf(n)<0)this._chgEdited.push(n);else if(i>-1){r=new t.NotifyCollectionChangedEventArgs(t.NotifyCollectionChangedAction.Change,n,i);this._chgEdited.onCollectionChanged(r)}else if(i=this._chgAdded.indexOf(n),i>-1){r=new t.NotifyCollectionChangedEventArgs(t.NotifyCollectionChangedAction.Change,n,i);this._chgAdded.onCollectionChanged(r)}},r.prototype._extend=function(n,t){for(var i in t)n[i]=t[i]},r.prototype._sameContent=function(n,t){for(var i in t)if(!this._sameValue(n[i],t[i]))return!1;for(i in n)if(!this._sameValue(n[i],t[i]))return!1;return!0},r.prototype._sameValue=function(t,i){return t==i||n.DateTime.equals(t,i)},Object.defineProperty(r.prototype,"canChangePage",{get:function(){return this._canChangePage},set:function(t){this._canChangePage=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isPageChanging",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"itemCount",{get:function(){return this._pgView.length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pageIndex",{get:function(){return this._pgIdx},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pageSize",{get:function(){return this._pgSz},set:function(t){t!=this._pgSz&&(this._pgSz=n.asInt(t),this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"totalItemCount",{get:function(){return this._view.length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pageCount",{get:function(){return this.pageSize?Math.ceil(this.totalItemCount/this.pageSize):1},enumerable:!0,configurable:!0}),r.prototype.moveToFirstPage=function(){return this.moveToPage(0)},r.prototype.moveToLastPage=function(){return this.moveToPage(this.pageCount-1)},r.prototype.moveToNextPage=function(){return this.moveToPage(this.pageIndex+1)},r.prototype.moveToPage=function(i){var r=n.clamp(i,0,this.pageCount-1),u;return r!=this._pgIdx&&(this.canChangePage||n.assert(!1,'cannot change pages (canChangePage == false).'),u=new t.PageChangingEventArgs(r),this.onPageChanging(u)&&(this._pgIdx=r,this._pgView=this._getPageView(),this._idx=0,this.groupDescriptions&&this.groupDescriptions.length!=0?this.refresh():(this.onPageChanged(),this.onCollectionChanged()))),this._pgIdx==i},r.prototype.moveToPreviousPage=function(){return this.moveToPage(this.pageIndex-1)},r.prototype.onPageChanged=function(t){t===void 0&&(t=n.EventArgs.empty);this.pageChanged.raise(this,t)},r.prototype.onPageChanging=function(n){return this.pageChanging.raise(this,n),!n.cancel},r.prototype._getFullGroup=function(n){var t=this._getGroupByPath(this._fullGroups,n.level,n._path);return t!=null&&(n=t),n},r.prototype._getGroupByPath=function(n,t,i){for(var r,u=0;u<n.length;u++)if((r=n[u],r.level==t&&r._path==i)||r.level<t&&i.indexOf(r._path)==0&&(r=this._getGroupByPath(r.groups,t,i),r!=null))return r;return null},r.prototype._getPageView=function(){if(this.pageSize<=0||this._pgIdx<0)return this._view;var n=this._pgSz*this._pgIdx,t=Math.min(n+this._pgSz,this._view.length);return this._view.slice(n,t)},r.prototype._createGroups=function(t){var u,i,e;if(!this._grpDesc||!this._grpDesc.length)return null;var s=[],h={},r=null;for(u=0;u<t.length;u++){var c=t[u],l=s,a=this._grpDesc.length,f='';for(i=0;i<a;i++){var v=this._grpDesc[i],o=v.groupNameFromItem(c,i),y=i==a-1;r=h[f];!r&&n.isPrimitive(o)&&(r={},h[f]=r);e=this._getGroup(v,l,r,o,i,y);f+='/'+o;e._path=f;y&&e.items.push(c);l=e.groups}}return s},r.prototype._getGroupsDigest=function(n){for(var t,i='',r=0;n!=null&&r<n.length;r++)t=n[r],i+='{'+t.name+':'+(t.items?t.items.length:'*'),t.groups.length>0&&(i+=',',i+=this._getGroupsDigest(t.groups)),i+='}';return i},r.prototype._mergeGroupItems=function(n){for(var i,f,t,r,e=[],u=0;u<n.length;u++){if(i=n[u],!i._isBottomLevel)for(f=this._mergeGroupItems(i.groups),t=0,r=f.length;t<r;t++)i._items.push(f[t]);for(t=0,r=i._items.length;t<r;t++)e.push(i._items[t])}return e},r.prototype._getGroup=function(t,r,u,f,e,o){var c,s,h;if(u&&n.isPrimitive(f)){if(c=u[f],c)return c}else for(s=0;s<r.length;s++)if(t.namesMatch(r[s].name,f))return r[s];return h=new i(t,f,e,o),r.push(h),u&&(u[f]=h),h},r}(),i;t.CollectionView=r;i=function(){function t(n,t,i,r){this._gd=n;this._name=t;this._level=i;this._isBottomLevel=r;this._groups=[];this._items=[]}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"level",{get:function(){return this._level},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBottomLevel",{get:function(){return this._isBottomLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this._groups},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupDescription",{get:function(){return this._gd},enumerable:!0,configurable:!0}),t.prototype.getAggregate=function(t,i,u){var f=n.tryCast(u,r),e=f?f._getFullGroup(this):this;return n.getAggregate(t,e.items,i)},t}();t.CollectionViewGroup=i})(t=n.collections||(n.collections={}))}(wijmo||(wijmo={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){'use strict';var i=function(){function i(t){this._showAutoTipBnd=this._showAutoTip.bind(this);this._hideAutoTipBnd=this._hideAutoTip.bind(this);this._html=!0;this._gap=6;this._showAtMouse=!1;this._showDelay=500;this._hideDelay=0;this._tips=[];this.popup=new n.Event;n.copy(this,t)}return i.prototype.setTooltip=function(t,i){t=n.getElement(t);i=this._getContent(i);var r=this._indexOf(t);r>-1&&(this._detach(t),this._tips.splice(r,1));i&&(this._attach(t),this._tips.push({element:t,content:i}))},i.prototype.show=function(r,u,f){var e,o;r=n.getElement(r);u=this._getContent(u);f||(f=n.Rect.fromBoundingRect(r.getBoundingClientRect()));e=i._eTip;e||(e=i._eTip=document.createElement('div'),n.addClass(e,'wj-tooltip'),e.style.visibility='none',document.body.appendChild(e));this._setContent(u);o=new t(u);this.onPopup(o);o.content&&!o.cancel&&(this._setContent(o.content),e.style.minWidth='',f=new n.Rect(f.left-(e.offsetWidth-f.width)/2,f.top-this.gap,e.offsetWidth,f.height+2*this.gap),n.showPopup(e,f,!0),document.addEventListener('mousedown',this._hideAutoTipBnd))},i.prototype.hide=function(){i._eTip&&(i._eTip.style.visibility='hidden',i._eTip.innerHTML='');document.removeEventListener('mousedown',this._hideAutoTipBnd)},Object.defineProperty(i.prototype,"isVisible",{get:function(){return i._eTip&&i._eTip.style.visibility!='hidden'},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isContentHtml",{get:function(){return this._html},set:function(t){this._html=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gap",{get:function(){return this._gap},set:function(t){this._gap=n.asNumber(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showAtMouse",{get:function(){return this._showAtMouse},set:function(t){this._showAtMouse=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showDelay",{get:function(){return this._showDelay},set:function(t){this._showDelay=n.asInt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideDelay",{get:function(){return this._hideDelay},set:function(t){this._hideDelay=n.asInt(t)},enumerable:!0,configurable:!0}),i.prototype.onPopup=function(n){this.popup&&this.popup.raise(this,n)},i.prototype._indexOf=function(n){for(var t=0;t<this._tips.length;t++)if(this._tips[t].element==n)return t;return-1},i.prototype._attach=function(n){n.addEventListener('mouseenter',this._showAutoTipBnd);n.addEventListener('mouseleave',this._hideAutoTipBnd);n.addEventListener('click',this._showAutoTipBnd)},i.prototype._detach=function(n){n.removeEventListener('mouseenter',this._showAutoTipBnd);n.removeEventListener('mouseleave',this._hideAutoTipBnd);n.removeEventListener('click',this._showAutoTipBnd)},i.prototype._showAutoTip=function(t){var i=this,r=t.type=='mouseenter'?this._showDelay:0;this._clearTimeouts();this._toShow=setTimeout(function(){var u=i._indexOf(t.target),r,f;u>-1&&(r=i._tips[u],f=i._showAtMouse?new n.Rect(t.clientX,t.clientY,0,0):null,i.show(r.element,r.content,f),i._hideDelay>0&&(i._toHide=setTimeout(function(){i.hide()},i._hideDelay)))},r)},i.prototype._hideAutoTip=function(){this._clearTimeouts();this.hide()},i.prototype._clearTimeouts=function(){this._toShow&&(clearTimeout(this._toShow),this._toShow=null);this._toHide&&(clearTimeout(this._toHide),this._toHide=null)},i.prototype._getContent=function(t){if(t=n.asString(t),t&&t[0]=='#'){var i=n.getElement(t);i&&(t=i.innerHTML)}return t},i.prototype._setContent=function(n){var t=i._eTip;t&&(this.isContentHtml?t.innerHTML=n:t.textContent=n)},i}(),r,t;n.Tooltip=i;r=function(){function n(){}return n}();t=function(t){function i(i){t.call(this);this._content=n.asString(i)}return __extends(i,t),Object.defineProperty(i.prototype,"content",{get:function(){return this._content},set:function(t){this._content=n.asString(t)},enumerable:!0,configurable:!0}),i}(n.CancelEventArgs);n.TooltipEventArgs=t}(wijmo||(wijmo={})),function(n){'use strict';var t=function(){function t(n){this._r=0;this._g=0;this._b=0;this._a=1;n&&this._parse(n)}return Object.defineProperty(t.prototype,"r",{get:function(){return this._r},set:function(t){this._r=n.clamp(n.asNumber(t),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this._g},set:function(t){this._g=n.clamp(n.asNumber(t),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this._b},set:function(t){this._b=n.clamp(n.asNumber(t),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this._a},set:function(t){this._a=n.clamp(n.asNumber(t),0,1)},enumerable:!0,configurable:!0}),t.prototype.equals=function(n){return n instanceof t&&this.r==n.r&&this.g==n.g&&this.b==n.b&&this.a==n.a},t.prototype.toString=function(){var n=Math.round(this.a*100);return n>99?'#'+(16777216+(this.r<<16)+(this.g<<8)+this.b).toString(16).slice(1):'rgba('+this.r+','+this.g+','+this.b+','+n/100+')'},t.fromRgba=function(i,r,u,f){f===void 0&&(f=1);var e=new t(null);return e.r=Math.round(n.clamp(n.asNumber(i),0,255)),e.g=Math.round(n.clamp(n.asNumber(r),0,255)),e.b=Math.round(n.clamp(n.asNumber(u),0,255)),e.a=n.clamp(n.asNumber(f),0,1),e},t.fromHsb=function(i,r,u,f){f===void 0&&(f=1);var e=t._hsbToRgb(n.clamp(n.asNumber(i),0,1),n.clamp(n.asNumber(r),0,1),n.clamp(n.asNumber(u),0,1));return t.fromRgba(e[0],e[1],e[2],f)},t.fromHsl=function(i,r,u,f){f===void 0&&(f=1);var e=t._hslToRgb(n.clamp(n.asNumber(i),0,1),n.clamp(n.asNumber(r),0,1),n.clamp(n.asNumber(u),0,1));return t.fromRgba(e[0],e[1],e[2],f)},t.fromString=function(i){var r=new t(null);return r._parse(n.asString(i))?r:null},t.prototype.getHsb=function(){return t._rgbToHsb(this.r,this.g,this.b)},t.prototype.getHsl=function(){return t._rgbToHsl(this.r,this.g,this.b)},t.interpolate=function(i,r,u){u=n.clamp(n.asNumber(u),0,1);var e=t._rgbToHsl(i.r,i.g,i.b),o=t._rgbToHsl(r.r,r.g,r.b),f=1-u,c=i.a*f+r.a*u,s=[e[0]*f+o[0]*u,e[1]*f+o[1]*u,e[2]*f+o[2]*u],h=t._hslToRgb(s[0],s[1],s[2]);return t.fromRgba(h[0],h[1],h[2],c)},t.toOpaque=function(i,r){if(i=n.isString(i)?t.fromString(i):n.asType(i,t),i.a==1)return i;r=r==null?t.fromRgba(255,255,255,1):n.isString(r)?t.fromString(r):n.asType(r,t);var u=i.a,f=1-u;return t.fromRgba(i.r*u+r.r*f,i.g*u+r.g*f,i.b*u+r.b*f)},t.prototype._parse=function(n){var u,f,r,e,i,o;if(n=n.toLowerCase(),n=='transparent')return this._r=this._g=this._b=this._a=0,!0;if(n&&n.indexOf('#')!=0&&n.indexOf('rgb')!=0&&n.indexOf('hsl')!=0&&(u=document.createElement('div'),u.style.color=n,f=u.style.color,f==n&&(f=window.getComputedStyle(u).color,f||(document.body.appendChild(u),f=window.getComputedStyle(u).color,document.body.removeChild(u))),n=f.toLowerCase()),n.indexOf('#')==0)return n.length==4?(this.r=parseInt(n[1]+n[1],16),this.g=parseInt(n[2]+n[2],16),this.b=parseInt(n[3]+n[3],16),this.a=1,!0):n.length==7?(this.r=parseInt(n.substr(1,2),16),this.g=parseInt(n.substr(3,2),16),this.b=parseInt(n.substr(5,2),16),this.a=1,!0):!1;if(n.indexOf('rgb')==0&&(r=n.indexOf('('),e=n.indexOf(')'),r>-1&&e>-1&&(i=n.substr(r+1,e-(r+1)).split(','),i.length>2)))return this.r=parseInt(i[0]),this.g=parseInt(i[1]),this.b=parseInt(i[2]),this.a=i.length>3?parseFloat(i[3]):1,!0;if(n.indexOf('hsl')==0&&(r=n.indexOf('('),e=n.indexOf(')'),r>-1&&e>-1&&(i=n.substr(r+1,e-(r+1)).split(','),i.length>2))){var c=parseInt(i[0])/360,s=parseInt(i[1]),h=parseInt(i[2]);return i[1].indexOf('%')>-1&&(s/=100),i[2].indexOf('%')>-1&&(h/=100),o=t._hslToRgb(c,s,h),this.r=o[0],this.g=o[1],this.b=o[2],this.a=i.length>3?parseFloat(i[3]):1,!0}return!1},t._hslToRgb=function(i,r,u){var o,s,h,f,e;return n.assert(i>=0&&i<=1&&r>=0&&r<=1&&u>=0&&u<=1,'bad HSL values'),r==0?o=s=h=u:(f=u<.5?u*(1+r):u+r-u*r,e=2*u-f,o=t._hue2rgb(e,f,i+1/3),s=t._hue2rgb(e,f,i),h=t._hue2rgb(e,f,i-1/3)),[Math.round(o*255),Math.round(s*255),Math.round(h*255)]},t._hue2rgb=function(n,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?n+(t-n)*6*i:i<1/2?t:i<2/3?n+(t-n)*(2/3-i)*6:n},t._rgbToHsl=function(t,i,r){var e;n.assert(t>=0&&t<=255&&i>=0&&i<=255&&r>=0&&r<=255,'bad RGB values');t/=255;i/=255;r/=255;var u=Math.max(t,i,r),o=Math.min(t,i,r),f,s,h=(u+o)/2;if(u==o)f=s=0;else{e=u-o;s=h>.5?e/(2-u-o):e/(u+o);switch(u){case t:f=(i-r)/e+(i<r?6:0);break;case i:f=(r-t)/e+2;break;case r:f=(t-i)/e+4}f/=6}return[f,s,h]},t._rgbToHsb=function(i,r,u){n.assert(i>=0&&i<=255&&r>=0&&r<=255&&u>=0&&u<=255,'bad RGB values');var f=t._rgbToHsl(i,r,u);return t._hslToHsb(f[0],f[1],f[2])},t._hsbToRgb=function(n,i,r){var u=t._hsbToHsl(n,i,r);return t._hslToRgb(u[0],u[1],u[2])},t._hsbToHsl=function(t,i,r){n.assert(t>=0&&t<=1&&i>=0&&i<=1&&r>=0&&r<=1,'bad HSB values');var u=n.clamp(r*(2-i)/2,0,1),f=1-Math.abs(2*u-1),e=n.clamp(f>0?r*i/f:i,0,1);return n.assert(!isNaN(u)&&!isNaN(e),'bad conversion to HSL'),[t,e,u]},t._hslToHsb=function(t,i,r){n.assert(t>=0&&t<=1&&i>=0&&i<=1&&r>=0&&r<=1,'bad HSL values');var u=n.clamp(r==1?1:(2*r+i*(1-Math.abs(2*r-1)))/2,0,1),f=n.clamp(u>0?2*(u-r)/u:i,0,1);return n.assert(!isNaN(u)&&!isNaN(f),'bad conversion to HSB'),[t,f,u]},t}();n.Color=t}(wijmo||(wijmo={})),function(n){'use strict';var t=function(){function t(){}return t.copy=function(n){t._copyPasteInternal(n)},t.paste=function(n){t._copyPasteInternal(n)},t._copyPasteInternal=function(t){var u=n.getActiveElement(),r=n.closest(r,'div')||document.body,i=document.createElement('textarea');i.style.position='fixed';i.style.opacity='0';r.appendChild(i);typeof t=='string'&&(i.value=t);i.select();i.onkeydown=function(n){i.value&&n.preventDefault()};setTimeout(function(){var n=i.value;r.removeChild(i);u.focus();typeof t=='function'&&t(n)},100)},t}();n.Clipboard=t}(wijmo||(wijmo={})),function(n){'use strict';function i(i,r,u,f,e){var v,a,c,nt,p,d,tt,g,w,h;if(r===void 0&&(r=null),u===void 0&&(u=!1),f===void 0&&(f=!1),e===void 0&&(e=!0),v=document.body,r instanceof HTMLElement){if(!n.contains(document.body,r))return;for(a=r.parentElement;a;a=a.parentElement)if(getComputedStyle(a).position=='fixed'){v=a;break}}v.appendChild(i);r instanceof HTMLElement&&e&&(c=getComputedStyle(r),nt=new n.Color(c.backgroundColor),nt.a&&n.setCss(i,{color:c.color,backgroundColor:c.backgroundColor,fontFamily:c.fontFamily,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}));n.setCss(i,{position:'absolute',visibility:'hidden',display:''});n.Control.refreshAll(i);var y=getComputedStyle(i),it=parseFloat(y.marginTop)+parseFloat(y.marginBottom),rt=parseFloat(y.marginLeft)+parseFloat(y.marginRight),l=new n.Size(i.offsetWidth+rt,i.offsetHeight+it),s=new n.Point,o=null;if(r&&r.clientX!=null&&r.clientY!=null&&r.pageX!=null&&r.pageY!=null)r.clientX<=0&&r.clientY<=0&&r.target?o=r.target.getBoundingClientRect():(s.x=Math.max(0,r.pageX-pageXOffset),s.y=Math.max(0,r.pageY-pageYOffset));else if(r instanceof n.Point)s=r;else if(r instanceof HTMLElement)o=r.getBoundingClientRect();else if(r&&r.top!=null&&r.left!=null)o=r;else if(r==null)s.x=Math.max(0,(innerWidth-l.width)/2),s.y=Math.max(0,Math.round((innerHeight-l.height)/2*.7));else throw'Invalid ref parameter.';if(p=parseFloat(y.minWidth),o){var b=o.top,k=innerHeight-o.bottom,ut=getComputedStyle(i).direction=='rtl';s.x=ut?Math.max(0,o.right-l.width):Math.max(0,Math.min(o.left,innerWidth-l.width));s.y=u?b>l.height||b>k?Math.max(0,o.top-l.height):o.bottom:k>l.height||k>b?o.bottom:Math.max(0,o.top-l.height);p=Math.max(p,o.width)}if(d=r==null?new n.Rect(0,0,0,0):v==document.body?new n.Rect(-pageXOffset,-pageYOffset,0,0):v.getBoundingClientRect(),tt={position:r==null?'fixed':'absolute',left:s.x-d.left,top:s.y-d.top,minWidth:p,display:'',visibility:'',zIndex:1500},f&&(i.style.opacity='0',n.animate(function(n){i.style.opacity=n==1?'':n.toString()})),n.setCss(i,tt),g=r instanceof MouseEvent?r.target:r,g instanceof HTMLElement)for(h=g.parentElement;h&&h!=document.body;h=h.parentElement)getComputedStyle(h).overflowY=='auto'&&h.scrollHeight>h.offsetHeight&&(w||(w=new n.Control(document.createElement('div'))),w.addEventListener(h,'scroll',function(){t(i,!0);w.dispose()}))}function r(i,r,u){r===void 0&&(r=!0);u===void 0&&(u=!1);u?n.animate(function(n){i.style.opacity=(1-n).toString();n==1&&(t(i,r),i.style.opacity='')}):t(i,r)}function t(n,t){n.style.display='none';t&&n.parentElement&&n.parentElement.removeChild(n)}n.showPopup=i;n.hidePopup=r}(wijmo||(wijmo={})),function(n){'use strict';var t=function(){function t(t){this._copyCss=!0;t!=null&&n.copy(this,t)}return Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(t){this._title=n.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"copyCss",{get:function(){return this._copyCss},set:function(t){this._copyCss=n.asBoolean(t)},enumerable:!0,configurable:!0}),t.prototype.addCSS=function(n){this._css||(this._css=[]);this._css.push(n)},t.prototype.append=function(t){var i=this._getDocument();n.isString(t)?i.write(t):t instanceof HTMLElement?i.write(t.outerHTML):n.assert(!1,'child should be an HTML element or a string.')},t.prototype.print=function(){var n=this;this._iframe&&(this._close(),setTimeout(function(){var t=n._iframe.contentWindow;t.focus();t.print();document.body.removeChild(n._iframe);n._iframe=null},100))},t.prototype._getDocument=function(){if(!this._iframe){this._iframe=document.createElement('iframe');var n=this._iframe.style;n.position='fixed';n.left='10000px';n.top='10000px';document.body.appendChild(this._iframe)}return this._iframe.contentDocument},t.prototype._close=function(){var i=this._getDocument(),r,e,u,o,t,s,f;if(i.close(),this.title&&(r=i.querySelector('title'),r||(r=i.createElement('title'),i.head.appendChild(r)),r.textContent=this.title),this._copyCss){for(e=document.head.querySelectorAll('LINK'),t=0;t<e.length;t++)u=e[t],u.href.match(/\.css$/i)&&u.rel.match(/stylesheet/i)&&(f=n.httpRequest(u.href,{async:!1}),this._addStyle(f.responseText));for(o=document.head.querySelectorAll('STYLE'),t=0;t<o.length;t++)this._addStyle(o[t].textContent)}if(this._css)for(t=0;t<this._css.length;t++)s=i.createElement('style'),f=n.httpRequest(this._css[t],{async:!1}),s.textContent=f.responseText,i.head.appendChild(s)},t.prototype._addStyle=function(n){var t=this._getDocument(),i=t.createElement('style');i.textContent=n;t.head.appendChild(i)},t}();n.PrintDocument=t}(wijmo||(wijmo={})),function(n){'use strict';var i=function(){function i(n,t,i){t===void 0&&(t=null);i===void 0&&(i='_');this._promptChar='_';this._mskArr=[];this._full=!0;this._hbInput=this._input.bind(this);this._hbKeyDown=this._keydown.bind(this);this._hbKeyPress=this._keypress.bind(this);this._hbCompositionStart=this._compositionstart.bind(this);this._hbCompositionEnd=this._compositionend.bind(this);this.mask=t;this.input=n;this.promptChar=i;this._connect(!0)}return Object.defineProperty(i.prototype,"input",{get:function(){return this._tbx},set:function(n){this._connect(!1);this._tbx=n;this._connect(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mask",{get:function(){return this._msk},set:function(t){t!=this._msk&&(this._msk=n.asString(t,!0),this._parseMask(),this._valueChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"promptChar",{get:function(){return this._promptChar},set:function(t){t!=this._promptChar&&(this._promptChar=n.asString(t,!1),n.assert(this._promptChar.length==1,'promptChar must be a string with length 1.'),this._valueChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskFull",{get:function(){return this._full},enumerable:!0,configurable:!0}),i.prototype.getMaskRange=function(){return this._mskArr.length?[this._firstPos,this._lastPos]:[0,this._tbx.value.length-1]},i.prototype.getRawValue=function(){var t=this._tbx.value,i='',n;if(!this.mask)return t;for(n=0;n<this._mskArr.length&&n<t.length;n++)this._mskArr[n].literal||t[n]==this._promptChar||(i+=t[n]);return i},i.prototype.refresh=function(){this._parseMask();this._valueChanged()},i.prototype._input=function(){var n=this;this._composing||setTimeout(function(){n._valueChanged()})},i.prototype._keydown=function(t){this._backSpace=t.keyCode==n.Key.Back},i.prototype._keypress=function(n){n.ctrlKey||n.metaKey||n.altKey||this._composing||!this._preventKey(n.charCode)||n.preventDefault()},i.prototype._compositionstart=function(){this._composing=!0},i.prototype._compositionend=function(){var n=this;this._composing=!1;setTimeout(function(){n._valueChanged()})},i.prototype._preventKey=function(t){var r;if(t&&this._mskArr.length){var u=this._tbx,i=u.selectionStart,f=String.fromCharCode(t);if(i<this._firstPos&&(i=this._firstPos,n.setSelectionRange(u,i)),i>=this._mskArr.length)return!0;if(r=this._mskArr[i],r.literal)this._validatePosition(i);else if(r.wildCard!=f&&!this._isCharValid(r.wildCard,f))return!0}return!1},i.prototype._connect=function(n){var t=this._tbx;t&&(n?(this._autoComplete=t.autocomplete,this._spellCheck=t.spellcheck,t.autocomplete='off',t.spellcheck=!1,t.addEventListener('input',this._hbInput),t.addEventListener('keydown',this._hbKeyDown,!0),t.addEventListener('keypress',this._hbKeyPress,!0),t.addEventListener('compositionstart',this._hbCompositionStart,!0),t.addEventListener('compositionend',this._hbCompositionEnd,!0),this._valueChanged()):(t.autocomplete=this._autoComplete,t.spellcheck=this._spellCheck,t.removeEventListener('input',this._hbInput),t.removeEventListener('keydown',this._hbKeyDown,!0),t.removeEventListener('keypress',this._hbKeyPress,!0),t.removeEventListener('compositionstart',this._hbCompositionStart,!0),t.removeEventListener('compositionend',this._hbCompositionEnd,!0)))},i.prototype._valueChanged=function(){var t=this._tbx,n,i,r;t&&(n=t.selectionStart,i=n>0?t.value[n-1]:'',t.value=this._applyMask(),r=n>0?t.value[n-1]:'',n>0&&r==this._promptChar&&i!=this.promptChar&&n--,this._validatePosition(n))},i.prototype._applyMask=function(){var t=this._tbx.value,e='',u=0,f,r,n,i;if(this._full=!0,!this.mask)return t;for(t=this._handleVagueLiterals(t),f=0;f<this._mskArr.length;f++){if(r=this._mskArr[f],n=r.literal,n&&n==t[u]&&u++,r.wildCard){if(n=this._promptChar,t){for(i=u;i<t.length;i++)if(this._isCharValid(r.wildCard,t[i])){n=t[i];switch(r.charCase){case'>':n=n.toUpperCase();break;case'<':n=n.toLowerCase()}break}u=i+1}n==this._promptChar&&(this._full=!1)}e+=n}return e},i.prototype._handleVagueLiterals=function(n){var i,t,f,r,e,u;if(n.length>this._mskArr.length+1)return n;if(i=n.length-this._mskArr.length,i!=0&&n.length>1){for(t=-1,f=Math.max(0,this._tbx.selectionStart-i),r=f;r<this._mskArr.length;r++)if(this._mskArr[r].vague){t=r;break}if(t>-1)if(i<0)e=Array(1-i).join(this._promptChar),u=t+i,u>-1&&(n=n.substr(0,u)+e+n.substr(u));else{while(t>0&&this._mskArr[t-1].literal)t--;n=n.substr(0,t)+n.substr(t+i)}}return n},i.prototype._isCharValid=function(n,t){var r=this._promptChar;switch(n){case'0':return t>='0'&&t<='9'||t==r;case'9':return t>='0'&&t<='9'||t==' '||t==r;case'#':return t>='0'&&t<='9'||t==' '||t=='+'||t=='-'||t==r;case'L':return t>='a'&&t<='z'||t>='A'&&t<='Z'||t==r;case'l':return t>='a'&&t<='z'||t>='A'&&t<='Z'||t==' '||t==r;case'A':return t>='0'&&t<='9'||t>='a'&&t<='z'||t>='A'&&t<='Z'||t==r;case'a':return t>='0'&&t<='9'||t>='a'&&t<='z'||t>='A'&&t<='Z'||t==' '||t==r;case'\uff19':return t>='\uFF10'&&t<='\uff19'||t==r;case'\uff2a':case'\uff27':return n=='\uff27'&&i._X_DBCS_BIG_HIRA.indexOf(t)>-1?!1:t>='\u3041'&&t<='\u3096'||t==r;case'\uff2b':case'\uff2e':return n=='\uff2e'&&i._X_DBCS_BIG_KATA.indexOf(t)>-1?!1:t>='\u30a1'&&t<='\u30fa'||t==r;case'\uff3a':return t<='\u0021'||t>='\u00ff'||t==r;case'H':return t>='\u0021'&&t<='\u00ff'||t==r;case'K':case'N':return n=='N'&&i._X_SBCS_BIG_KATA.indexOf(t)>-1?!1:t>='\uff66'&&t<='\uff9f'||t==r}return!1},i.prototype._validatePosition=function(t){var i=this._mskArr;if(this._backSpace)while(t>0&&t<i.length&&i[t-1].literal)t--;if(t==0||!this._backSpace)while(t<i.length&&i[t].literal)t++;n.getActiveElement()==this._tbx&&n.setSelectionRange(this._tbx,t);this._backSpace=!1},i.prototype._parseMask=function(){var r,o,f,i,e,u,s;for(this._mskArr=[],this._firstPos=-1,this._lastPos=-1,r=this._msk,o='|',i=0;r&&i<r.length;i++)switch(r[i]){case'0':case'9':case'#':case'A':case'a':case'L':case'l':case'\uff19':case'\uff2a':case'\uff27':case'\uff2b':case'\uff2e':case'\uff3a':case'K':case'N':case'H':this._firstPos<0&&(this._firstPos=this._mskArr.length);this._lastPos=this._mskArr.length;this._mskArr.push(new t(r[i],o));break;case'.':case',':case':':case'/':case'$':switch(r[i]){case'.':case',':f=n.culture.Globalize.numberFormat[r[i]];break;case':':case'/':f=n.culture.Globalize.calendar[r[i]];break;case'$':f=n.culture.Globalize.numberFormat.currency.symbol}for(u=0;u<f.length;u++)this._mskArr.push(new t(f[u]));break;case'<':case'>':case'|':o=r[i];break;case'\\':i<r.length-1&&i++;this._mskArr.push(new t(r[i]));break;default:this._mskArr.push(new t(r[i]))}for(i=0;i<this._mskArr.length;i++)if(e=this._mskArr[i],e.literal)for(u=0;u<i;u++)if(s=this._mskArr[u],s.wildCard&&this._isCharValid(s.wildCard,e.literal)){e.vague=!0;break}},i._X_DBCS_BIG_HIRA='\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096',i._X_DBCS_BIG_KATA='\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6',i._X_SBCS_BIG_KATA='\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f',i}(),t;n._MaskProvider=i;t=function(){function n(n,t){t?(this.wildCard=n,this.charCase=t):this.literal=n}return n}();n._MaskElement=t}(wijmo||(wijmo={})),function(n){'use strict';function u(){return r}function f(){return i}var r=navigator.userAgent.match(/MSIE |Trident\/|Edge\//)!=null,i,t;n.isIE=u;n.isIE9=f;document.doctype&&navigator.appVersion.indexOf('MSIE 9')>-1&&(i=!0,document.addEventListener('mousemove',function(n){if(n.which==1)for(var t=n.target;t;t=t.parentNode)if(t.attributes&&t.attributes.draggable)return t.dragDrop(),!1}));window.requestAnimationFrame||(t=0,window.requestAnimationFrame=function(n){var i=Date.now(),r=16-(i-t),u=r>0?r:0;return t=i+u,setTimeout(function(){n(t)},u)},window.cancelAnimationFrame=clearTimeout)}(wijmo||(wijmo={}))
/*
    *
    * Wijmo Library 5.20162.188
    * http://wijmo.com/
    *
    * Copyright(c) GrapeCity, Inc.  All rights reserved.
    *
    * Licensed under the Wijmo Commercial License.
    * sales@wijmo.com
    * http://wijmo.com/products/wijmo-5/license/
    *
    */
var __extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},wijmo;wijmo.culture.FlexGrid={groupHeaderFormat:'{name}: <b>{value} </b>({count:n0} items)'},function(n){var t;(function(t){'use strict';(function(n){n[n.None=0]="None";n[n.Column=1]="Column";n[n.Row=2]="Row";n[n.All=3]="All"})(t.HeadersVisibility||(t.HeadersVisibility={}));var i=t.HeadersVisibility,r=function(r){function u(u,f){var e=this,s,h,o;r.call(this,u,null,!0);this._szClient=new n.Size(0,0);this._ptScrl=new n.Point(0,0);this._rtl=!1;this._cellPadding=3;this._autoGenCols=!0;this._autoClipboard=!0;this._readOnly=!1;this._indent=14;this._autoSizeMode=t.AutoSizeMode.Both;this._hdrVis=i.All;this._alSorting=!0;this._alAddNew=!1;this._alDelete=!1;this._alResizing=t.AllowResizing.Columns;this._alDragging=t.AllowDragging.Columns;this._alMerging=t.AllowMerging.None;this._ssHdr=i.None;this._shSort=!0;this._shGroups=!0;this._shAlt=!0;this._deferResizing=!1;this._pSel=!0;this._pOutline=!0;this.itemsSourceChanged=new n.Event;this.scrollPositionChanged=new n.Event;this.selectionChanging=new n.Event;this.selectionChanged=new n.Event;this.loadingRows=new n.Event;this.loadedRows=new n.Event;this.updatingLayout=new n.Event;this.updatedLayout=new n.Event;this.resizingColumn=new n.Event;this.resizedColumn=new n.Event;this.autoSizingColumn=new n.Event;this.autoSizedColumn=new n.Event;this.draggingColumn=new n.Event;this.draggedColumn=new n.Event;this.resizingRow=new n.Event;this.resizedRow=new n.Event;this.autoSizingRow=new n.Event;this.autoSizedRow=new n.Event;this.draggingRow=new n.Event;this.draggedRow=new n.Event;this.groupCollapsedChanging=new n.Event;this.groupCollapsedChanged=new n.Event;this.sortingColumn=new n.Event;this.sortedColumn=new n.Event;this.beginningEdit=new n.Event;this.prepareCellForEdit=new n.Event;this.cellEditEnding=new n.Event;this.cellEditEnded=new n.Event;this.rowEditEnding=new n.Event;this.rowEditEnded=new n.Event;this.rowAdded=new n.Event;this.deletingRow=new n.Event;this.deletedRow=new n.Event;this.copying=new n.Event;this.copied=new n.Event;this.pasting=new n.Event;this.pasted=new n.Event;this.pastingCell=new n.Event;this.pastedCell=new n.Event;this.formatItem=new n.Event;this.updatingView=new n.Event;this.updatedView=new n.Event;this._mappedColumns=null;s=this.hostElement;n.isIE()&&(s.style.borderRadius='0px');h=this.getTemplate();this.applyTemplate('wj-control wj-flexgrid wj-content',h,{_root:'root',_eSz:'sz',_eCt:'cells',_eTL:'tl',_eCHdr:'ch',_eRHdr:'rh',_eTLCt:'tlcells',_eCHdrCt:'chcells',_eRHdrCt:'rhcells',_eMarquee:'marquee',_eFocus:'focus'});o=this._getDefaultRowHeight();this.deferUpdate(function(){e._rows=new t.RowCollection(e,o);e._cols=new t.ColumnCollection(e,o*4);e._hdrRows=new t.RowCollection(e,o);e._hdrCols=new t.ColumnCollection(e,Math.round(o*1.25));e._gpCells=new t.GridPanel(e,t.CellType.Cell,e._rows,e._cols,e._eCt);e._gpCHdr=new t.GridPanel(e,t.CellType.ColumnHeader,e._hdrRows,e._cols,e._eCHdrCt);e._gpRHdr=new t.GridPanel(e,t.CellType.RowHeader,e._rows,e._hdrCols,e._eRHdrCt);e._gpTL=new t.GridPanel(e,t.CellType.TopLeft,e._hdrRows,e._hdrCols,e._eTLCt);e._hdrRows.push(new t.Row);e._hdrCols.push(new t.Column);e._hdrCols[0].align='center';e._cf=new t.CellFactory;e._keyHdl=new t._KeyboardHandler(e);e._mouseHdl=new t._MouseHandler(e);e._edtHdl=new t._EditHandler(e);e._selHdl=new t._SelectionHandler(e);e._addHdl=new t._AddNewHandler(e);e._mrgMgr=new t.MergeManager(e);e._bndSortConverter=e._sortConverter.bind(e);e.initialize(f)});this.addEventListener(this._root,'scroll',function(){e._updateScrollPosition()&&(e._afScrl&&cancelAnimationFrame(e._afScrl),e._afScrl=requestAnimationFrame(function(){e.finishEditing();e._updateContent(!0);e._afScrl=null}))})}return __extends(u,r),u.prototype._handleResize=function(){r.prototype._handleResize.call(this);this._rcBounds=null},Object.defineProperty(u.prototype,"headersVisibility",{get:function(){return this._hdrVis},set:function(t){t!=this._hdrVis&&(this._hdrVis=n.asEnum(t,i),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"stickyHeaders",{get:function(){return this._stickyHdr},set:function(t){var i=this;t!=this._stickyHdr&&(this._stickyHdr=n.asBoolean(t),this._updateStickyHeaders(),this.removeEventListener(window,'scroll'),this._stickyHdr&&this.addEventListener(window,'scroll',function(t){n.contains(t.target,i.hostElement)&&(i._toSticky&&cancelAnimationFrame(i._toSticky),i._toSticky=requestAnimationFrame(function(){var t=new n.CancelEventArgs;if(i.onUpdatingLayout(t)){i._updateStickyHeaders();i.onUpdatedLayout(t)}i._toSticky=null}))},!0))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"preserveSelectedState",{get:function(){return this._pSel},set:function(t){this._pSel=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"preserveOutlineState",{get:function(){return this._pOutline},set:function(t){this._pOutline=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"autoGenerateColumns",{get:function(){return this._autoGenCols},set:function(t){this._autoGenCols=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"autoClipboard",{get:function(){return this._autoClipboard},set:function(t){this._autoClipboard=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"columnLayout",{get:function(){for(var c,o,r,i,f,s=u._getSerializableProperties(t.Column),l=new t.Column,h=[],e=0;e<this.columns.length;e++){for(c=this.columns[e],o={},r=0;r<s.length;r++)i=s[r],f=c[i],f!=l[i]&&n.isPrimitive(f)&&i!='size'&&(o[i]=f);h.push(o)}return JSON.stringify({columns:h})},set:function(t){var i=JSON.parse(n.asString(t));if(!i||i.columns==null)throw'Invalid columnLayout data.';this.columns.clear();this.initialize(i)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"isReadOnly",{get:function(){return this._readOnly},set:function(t){t!=this._readOnly&&(this._readOnly=n.asBoolean(t),this.finishEditing(),this.invalidate(!0),this._addHdl.updateNewRowTemplate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"imeEnabled",{get:function(){return this._imeHdl!=null},set:function(n){n!=this.imeEnabled&&(this._imeHdl&&(this._imeHdl.dispose(),this._imeHdl=null),n&&(this._imeHdl=new t._ImeHandler(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowResizing",{get:function(){return this._alResizing},set:function(i){this._alResizing=n.asEnum(i,t.AllowResizing)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"deferResizing",{get:function(){return this._deferResizing},set:function(t){this._deferResizing=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"autoSizeMode",{get:function(){return this._autoSizeMode},set:function(i){this._autoSizeMode=n.asEnum(i,t.AutoSizeMode)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowSorting",{get:function(){return this._alSorting},set:function(t){this._alSorting=n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowAddNew",{get:function(){return this._alAddNew},set:function(t){t!=this._alAddNew&&(this._alAddNew=n.asBoolean(t),this._addHdl.updateNewRowTemplate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowDelete",{get:function(){return this._alDelete},set:function(t){t!=this._alDelete&&(this._alDelete=n.asBoolean(t))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowMerging",{get:function(){return this._alMerging},set:function(i){i!=this._alMerging&&(this._alMerging=n.asEnum(i,t.AllowMerging),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"showSelectedHeaders",{get:function(){return this._ssHdr},set:function(t){t!=this._ssHdr&&(this._ssHdr=n.asEnum(t,i),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"showMarquee",{get:function(){return!this._eMarquee.style.display},set:function(t){if(t!=this.showMarquee){var i=this._eMarquee.style;i.visibility='collapse';i.display=n.asBoolean(t)?'':'none';this.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"showSort",{get:function(){return this._shSort},set:function(t){t!=this._shSort&&(this._shSort=n.asBoolean(t),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"showGroups",{get:function(){return this._shGroups},set:function(t){t!=this._shGroups&&(this._shGroups=n.asBoolean(t),this._bindGrid(!1))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"showAlternatingRows",{get:function(){return this._shAlt},set:function(t){t!=this._shAlt&&(this._shAlt=n.asBoolean(t),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"groupHeaderFormat",{get:function(){return this._gHdrFmt},set:function(t){t!=this._gHdrFmt&&(this._gHdrFmt=n.asString(t),this._bindGrid(!1))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowDragging",{get:function(){return this._alDragging},set:function(i){i!=this._alDragging&&(this._alDragging=n.asEnum(i,t.AllowDragging),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"itemsSource",{get:function(){return this._items},set:function(t){var i;t!=this._items&&(this._cv&&(i=n.tryCast(this._cv,n.collections.CollectionView),i&&i.sortConverter==this._bndSortConverter&&(i.sortConverter=null),this._cv.currentChanged.removeHandler(this._cvCurrentChanged,this),this._cv.collectionChanged.removeHandler(this._cvCollectionChanged,this),this._cv=null),this._items=t,this._cv=this._getCollectionView(t),this._lastCount=0,this._cv&&(this._cv.currentChanged.addHandler(this._cvCurrentChanged,this),this._cv.collectionChanged.addHandler(this._cvCollectionChanged,this),i=n.tryCast(this._cv,n.collections.CollectionView),i&&!i.sortConverter&&(i.sortConverter=this._bndSortConverter)),this._bindGrid(!0),this.onItemsSourceChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"collectionView",{get:function(){return this._cv},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"childItemsPath",{get:function(){return this._childItemsPath},set:function(t){t!=this._childItemsPath&&(n.assert(t==null||n.isArray(t)||n.isString(t),'childItemsPath should be an array or a string.'),this._childItemsPath=t,this._bindGrid(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"cells",{get:function(){return this._gpCells},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"columnHeaders",{get:function(){return this._gpCHdr},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"rowHeaders",{get:function(){return this._gpRHdr},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"topLeftCells",{get:function(){return this._gpTL},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"rows",{get:function(){return this._rows},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"columns",{get:function(){return this._cols},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"frozenRows",{get:function(){return this.rows.frozen},set:function(n){this.rows.frozen=n},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"frozenColumns",{get:function(){return this.columns.frozen},set:function(n){this.columns.frozen=n},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"sortRowIndex",{get:function(){return this._sortRowIndex},set:function(t){t!=this._sortRowIndex&&(this._sortRowIndex=n.asNumber(t,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"scrollPosition",{get:function(){return this._ptScrl.clone()},set:function(n){var t=this._root,i=-n.x;if(this._rtl)switch(u._getRtlMode()){case'rev':i=t.scrollWidth-t.clientWidth+n.x;break;case'neg':i=n.x;break;default:i=-n.x}t.scrollLeft=i;t.scrollTop=-n.y},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"clientSize",{get:function(){return this._szClient},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"controlRect",{get:function(){return this._rcBounds||(this._rcBounds=n.getElementRect(this._root)),this._rcBounds},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"scrollSize",{get:function(){return new n.Size(this._gpCells.width,this._heightBrowser)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"viewRange",{get:function(){return this._gpCells.viewRange},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"cellFactory",{get:function(){return this._cf},set:function(i){i!=this._cf&&(this._cf=n.asType(i,t.CellFactory,!1),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"itemFormatter",{get:function(){return this._itemFormatter},set:function(t){t!=this._itemFormatter&&(this._itemFormatter=n.asFunction(t),this.invalidate())},enumerable:!0,configurable:!0}),u.prototype.getCellData=function(n,t,i){return this.cells.getCellData(n,t,i)},u.prototype.getCellBoundingRect=function(n,t,i){return this.cells.getCellBoundingRect(n,t,i)},u.prototype.setCellData=function(n,t,i,r,u){return r===void 0&&(r=!0),u===void 0&&(u=!0),this.cells.setCellData(n,t,i,r,u)},u.prototype.hitTest=function(i,r){return n.isNumber(i)&&n.isNumber(r)&&(i=new n.Point(i,r)),new t.HitTestInfo(this,i)},u.prototype.getClipString=function(i){var f='',s=!0,o=!0,r,u,e;for(i=i?n.asType(i,t.CellRange):this.selection,r=i.topRow;r<=i.bottomRow;r++)if(this.rows[r].isVisible)for(s||(f+='\n'),s=!1,u=i.leftCol,o=!0;u<=i.rightCol;u++)this.columns[u].isVisible&&(o||(f+='\t'),o=!1,e=this.cells.getCellData(r,u,!0).toString(),e=e.replace(/\t/g,' '),f+=e);return f},u.prototype.setClipString=function(i,r){var v=r==null,e,o,c,u,s;r=r?n.asType(r,t.CellRange):this.selection;i=n.asString(i).replace(/\r\n/g,'\n').replace(/\r/g,'\n');i&&i[i.length-1]=='\n'&&(i=i.substring(0,i.length-1));v&&!r.isSingleCell&&(i=this._expandClipString(i,r));e=new t.CellRange(r.topRow,r.leftCol);this.beginUpdate();var f=r.topRow,l=i.split('\n'),a=!1,h;for(o=0;o<l.length&&f<this.rows.length;o++,f++){if(!this.rows[f].isVisible){o--;continue}for(c=l[o].split('\t'),u=r.leftCol,s=0;s<c.length&&u<this.columns.length;s++,u++){if(!this.columns[u].isVisible){s--;continue}if(!this.columns[u].isReadOnly&&!this.rows[f].isReadOnly){if(h=new t.CellRangeEventArgs(this.cells,new t.CellRange(f,u),c[s]),this.onPastingCell(h)&&this.cells.setCellData(f,u,h.data)){this.onPastedCell(h);a=!0}e.row2=Math.max(e.row2,f);e.col2=Math.max(e.col2,u)}}}this.endUpdate();this.collectionView&&a&&this.collectionView.refresh();this.select(e)},u.prototype._expandClipString=function(n,t){var s,r,u,i,f;if(!n)return n;var h=n.split('\n'),o=h.length,e=0,c=[];for(i=0;i<o;i++){if(s=h[i].split('\t'),c.push(s),i>1&&s.length!=e)return n;e=s.length}if(r=t.rowSpan,u=t.columnSpan,(r>1||u>1)&&(r==1&&(r=o),u==1&&(u=e),u%e==0&&r%o==0))for(n='',i=0;i<r;i++)for(f=0;f<u;f++)i>0&&f==0&&(n+='\n'),f>0&&(n+='\t'),n+=c[i%o][f%e];return n},u.prototype.focus=function(){var t,i;if(this.activeEditor){this.activeEditor.focus();return}if(n.getActiveElement()!=this._eFocus){if(t=this.hostElement.getBoundingClientRect(),t.bottom>0&&t.right>0&&t.top<innerHeight&&t.left<innerWidth){n.setCss(this._eFocus,{top:Math.max(0,-t.top),left:Math.max(0,-t.left)});this._eFocus.focus();return}if(i=this.cells.hostElement.querySelector('.wj-cell.wj-state-selected'),i){i.focus();return}r.prototype.focus.call(this)}},u.prototype.containsFocus=function(){var n=this._edtHdl._lbx;return r.prototype.containsFocus.call(this)||n&&n.containsFocus()},u.prototype.dispose=function(){this.finishEditing(!0);this.itemsSource=null;this._afScrl&&cancelAnimationFrame(this._afScrl);r.prototype.dispose.call(this)},u.prototype.refresh=function(n){n===void 0&&(n=!0);r.prototype.refresh.call(this,n);this.finishEditing();n&&(this._updateColumnTypes(),this.scrollPosition=this._ptScrl);this.refreshCells(n)},u.prototype.refreshCells=function(n,t,i){this.isUpdating||(n?this._updateLayout():this._updateContent(t,i))},u.prototype.autoSizeColumn=function(n,t,i){t===void 0&&(t=!1);i===void 0&&(i=4);this.autoSizeColumns(n,n,t,i)},u.prototype.autoSizeColumns=function(i,r,f,e){var h=this;f===void 0&&(f=!1);e===void 0&&(e=4);var s=0,l=f?this.topLeftCells:this.columnHeaders,o=f?this.rowHeaders:this.cells,c=this.viewRange,a,v;i=i==null?0:n.asInt(i);r=r==null?o.columns.length-1:n.asInt(r);n.asBoolean(f);n.asNumber(e);c.row=Math.max(0,c.row-1e3);c.row2=Math.min(c.row2+1e3,this.rows.length-1);this.deferUpdate(function(){var p=document.createElement('div'),y,n,w;for(p.setAttribute(u._WJS_MEASURE,'true'),p.style.visibility='hidden',h.hostElement.appendChild(p),y=i;y<=r&&y>-1&&y<o.columns.length;y++){if(s=0,h.autoSizeMode&t.AutoSizeMode.Headers)for(n=0;n<l.rows.length;n++)l.rows[n].isVisible&&(w=h._getDesiredWidth(l,n,y,p),s=Math.max(s,w));if(h.autoSizeMode&t.AutoSizeMode.Cells)for(v=null,n=c.row;n<=c.row2&&n>-1&&n<o.rows.length;n++)o.rows[n].isVisible&&(!f&&y==o.columns.firstVisibleIndex&&o.rows.maxGroupLevel>-1?(w=h._getDesiredWidth(o,n,y,p),s=Math.max(s,w)):(a=o.getCellData(n,y,!0),a!=v&&(v=a,w=h._getDesiredWidth(o,n,y,p),s=Math.max(s,w))));o.columns[y].width=s+e+2}h.hostElement.removeChild(p)})},u.prototype.autoSizeRow=function(n,t,i){t===void 0&&(t=!1);i===void 0&&(i=0);this.autoSizeRows(n,n,t,i)},u.prototype.autoSizeRows=function(i,r,f,e){var o=this;f===void 0&&(f=!1);e===void 0&&(e=0);var s=0,c=f?this.topLeftCells:this.rowHeaders,h=f?this.columnHeaders:this.cells;f=n.asBoolean(f);e=n.asNumber(e);i=i==null?0:n.asInt(i);r=r==null?h.rows.length-1:n.asInt(r);this.deferUpdate(function(){var l=document.createElement('div'),f,n,a;for(l.setAttribute(u._WJS_MEASURE,'true'),l.style.visibility='hidden',o.hostElement.appendChild(l),f=i;f<=r&&f>-1&&f<h.rows.length;f++){if(s=0,o.autoSizeMode&t.AutoSizeMode.Headers)for(n=0;n<c.columns.length;n++)c.columns[n].renderSize>0&&(a=o._getDesiredHeight(c,f,n,l),s=Math.max(s,a));if(o.autoSizeMode&t.AutoSizeMode.Cells)for(n=0;n<h.columns.length;n++)h.columns[n].renderSize>0&&(a=o._getDesiredHeight(h,f,n,l),s=Math.max(s,a));h.rows[f].height=s+e}o.hostElement.removeChild(l)})},Object.defineProperty(u.prototype,"treeIndent",{get:function(){return this._indent},set:function(t){t!=this._indent&&(this._indent=n.asNumber(t,!1,!0),this.columns.onCollectionChanged())},enumerable:!0,configurable:!0}),u.prototype.collapseGroupsToLevel=function(i){if(this.finishEditing()){var r=this.rows;r.deferUpdate(function(){for(var f,u=0;u<r.length;u++)f=n.tryCast(r[u],t.GroupRow),f&&(f.isCollapsed=f.level>=i)})}},Object.defineProperty(u.prototype,"selectionMode",{get:function(){return this._selHdl.selectionMode},set:function(i){i!=this.selectionMode&&(this._selHdl.selectionMode=n.asEnum(i,t.SelectionMode),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"selection",{get:function(){return this._selHdl.selection.clone()},set:function(n){this._selHdl.selection=n},enumerable:!0,configurable:!0}),u.prototype.select=function(n,t){t===void 0&&(t=!0);this._selHdl.select(n,t)},u.prototype.getSelectedState=function(n,t){return this.cells.getSelectedState(n,t,null)},Object.defineProperty(u.prototype,"selectedRows",{get:function(){var i=[],r,n;if(this.selectionMode==t.SelectionMode.ListBox)for(n=0;n<this.rows.length;n++)this.rows[n].isSelected&&i.push(this.rows[n]);else if(this.rows.length)for(r=this.selection,n=r.topRow;n>-1&&n<=r.bottomRow;n++)i.push(this.rows[n]);return i},set:function(i){var r=this;n.assert(this.selectionMode==t.SelectionMode.ListBox,'This property can be set only in ListBox mode.');i=n.asArray(i);this.deferUpdate(function(){for(var u,f,n=0,t=!0;n<r.rows.length;n++)u=r.rows[n],f=i&&i.indexOf(u)>-1,f&&t&&(t=!1,r.select(n,r.selection.col)),u.isSelected=f})},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"selectedItems",{get:function(){for(var n=this.selectedRows,t=0;t<n.length;t++)n[t]=n[t].dataItem;return n},set:function(i){var r=this;n.assert(this.selectionMode==t.SelectionMode.ListBox,'This property can be set only in ListBox mode.');i=n.asArray(i);this.deferUpdate(function(){for(var u,f,n=0,t=!0;n<r.rows.length;n++)u=r.rows[n],f=i&&i.indexOf(u.dataItem)>-1,f&&t&&(t=!1,r.select(n,r.selection.col)),u.isSelected=f})},enumerable:!0,configurable:!0}),u.prototype.scrollIntoView=function(t,i){var u,h;this._maxOffsetY==null&&this._updateLayout();var r=this.scrollPosition,c=this._szClient.width,f=this._szClient.height,e=this.cells._getFrozenPos();if(t=n.asInt(t),t>-1&&t<this._rows.length&&t>=this._rows.frozen){var s=this._rows[t],a=this.cells.height>f?Math.round(s.pos/(this.cells.height-f)*100)/100:0,v=Math.round(this._maxOffsetY*a),o=s.pos-v,l=o+s.renderSize-1;l>f-r.y&&(r.y=Math.max(-o,f-l));o-e.y<-r.y&&(r.y=-(o-e.y))}return(i=n.asInt(i),i>-1&&i<this._cols.length&&i>=this._cols.frozen&&(u=this._cols[i],h=u.pos+u.renderSize-1,h>-r.x+c&&(r.x=Math.max(-u.pos,c-h)),u.pos-e.x<-r.x&&(r.x=-(u.pos-e.x))),!r.equals(this.scrollPosition))?(this.scrollPosition=r,!0):!1},u.prototype.isRangeValid=function(n){return n.isValid&&n.bottomRow<this.rows.length&&n.rightCol<this.columns.length},u.prototype.startEditing=function(n,t,i,r){return n===void 0&&(n=!0),this._edtHdl.startEditing(n,t,i,r)},u.prototype.finishEditing=function(n){return n===void 0&&(n=!1),this._edtHdl.finishEditing(n)},Object.defineProperty(u.prototype,"activeEditor",{get:function(){return this._edtHdl.activeEditor},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"editRange",{get:function(){return this._edtHdl.editRange},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"mergeManager",{get:function(){return this._mrgMgr},set:function(i){i!=this._mrgMgr&&(this._mrgMgr=n.asType(i,t.MergeManager,!0),this.invalidate())},enumerable:!0,configurable:!0}),u.prototype.getMergedRange=function(n,t,i,r){return r===void 0&&(r=!0),this._mrgMgr?this._mrgMgr.getMergedRange(n,t,i,r):null},u.prototype.onItemsSourceChanged=function(n){this.itemsSourceChanged.raise(this,n)},u.prototype.onScrollPositionChanged=function(n){this.scrollPositionChanged.raise(this,n)},u.prototype.onSelectionChanging=function(n){return this.selectionChanging.raise(this,n),!n.cancel},u.prototype.onSelectionChanged=function(n){this.selectionChanged.raise(this,n)},u.prototype.onLoadingRows=function(n){return this.loadingRows.raise(this,n),!n.cancel},u.prototype.onLoadedRows=function(n){this.loadedRows.raise(this,n)},u.prototype.onUpdatingLayout=function(n){return this.updatingLayout.raise(this,n),!n.cancel},u.prototype.onUpdatedLayout=function(n){this.updatedLayout.raise(this,n)},u.prototype.onResizingColumn=function(n){return this.resizingColumn.raise(this,n),!n.cancel},u.prototype.onResizedColumn=function(n){this.resizedColumn.raise(this,n)},u.prototype.onAutoSizingColumn=function(n){return this.autoSizingColumn.raise(this,n),!n.cancel},u.prototype.onAutoSizedColumn=function(n){this.autoSizedColumn.raise(this,n)},u.prototype.onDraggingColumn=function(n){return this.draggingColumn.raise(this,n),!n.cancel},u.prototype.onDraggedColumn=function(n){this.draggedColumn.raise(this,n)},u.prototype.onResizingRow=function(n){return this.resizingRow.raise(this,n),!n.cancel},u.prototype.onResizedRow=function(n){this.resizedRow.raise(this,n)},u.prototype.onAutoSizingRow=function(n){return this.autoSizingRow.raise(this,n),!n.cancel},u.prototype.onAutoSizedRow=function(n){this.autoSizedRow.raise(this,n)},u.prototype.onDraggingRow=function(n){return this.draggingRow.raise(this,n),!n.cancel},u.prototype.onDraggedRow=function(n){this.draggedRow.raise(this,n)},u.prototype.onGroupCollapsedChanging=function(n){return this.groupCollapsedChanging.raise(this,n),!n.cancel},u.prototype.onGroupCollapsedChanged=function(n){this.groupCollapsedChanged.raise(this,n)},u.prototype.onSortingColumn=function(n){return this.sortingColumn.raise(this,n),!n.cancel},u.prototype.onSortedColumn=function(n){this.sortedColumn.raise(this,n)},u.prototype.onBeginningEdit=function(n){return this.beginningEdit.raise(this,n),!n.cancel},u.prototype.onPrepareCellForEdit=function(n){this.prepareCellForEdit.raise(this,n)},u.prototype.onCellEditEnding=function(n){return this.cellEditEnding.raise(this,n),!n.cancel},u.prototype.onCellEditEnded=function(n){this.cellEditEnded.raise(this,n)},u.prototype.onRowEditEnding=function(n){this.rowEditEnding.raise(this,n)},u.prototype.onRowEditEnded=function(n){this.rowEditEnded.raise(this,n)},u.prototype.onRowAdded=function(n){this.rowAdded.raise(this,n)},u.prototype.onDeletingRow=function(n){return this.deletingRow.raise(this,n),!n.cancel},u.prototype.onDeletedRow=function(n){this.deletedRow.raise(this,n)},u.prototype.onCopying=function(n){return this.copying.raise(this,n),!n.cancel},u.prototype.onCopied=function(n){this.copied.raise(this,n)},u.prototype.onPasting=function(n){return this.pasting.raise(this,n),!n.cancel},u.prototype.onPasted=function(n){this.pasted.raise(this,n)},u.prototype.onPastingCell=function(n){return this.pastingCell.raise(this,n),!n.cancel},u.prototype.onPastedCell=function(n){this.pastedCell.raise(this,n)},u.prototype.onFormatItem=function(n){this.formatItem.raise(this,n)},u.prototype.onUpdatingView=function(n){return this.updatingView.raise(this,n),!n.cancel},u.prototype.onUpdatedView=function(n){this.updatedView.raise(this,n)},u.prototype._getDefaultRowHeight=function(){var f=this.hostElement,t=document.body,i=null,r,e,u;if(t&&!n.contains(t,f)){for(r=f;r;r=r.parentElement)i=r;i&&t.appendChild(i)}return e=n.createElement('<div class="wj-cell">123</div>',f),u=e.scrollHeight+2,f.removeChild(e),i&&t.removeChild(i),(u<=6||isNaN(u)||!t)&&(u=28),u},u.prototype._getCollectionView=function(t){return n.asCollectionView(t)},u.prototype._getDesiredWidth=function(n,t,i,r){var u=this.getMergedRange(n,t,i),f;return this.cellFactory.updateCell(n,t,i,r,u),r.style.width='',f=r.offsetWidth,u&&u.columnSpan>1?f/u.columnSpan:f},u.prototype._getDesiredHeight=function(n,t,i,r){var u=this.getMergedRange(n,t,i),f;return this.cellFactory.updateCell(n,t,i,r,u),r.style.height='',f=r.offsetHeight,u&&u.rowSpan>1?f/u.rowSpan:f},u.prototype._getSortRowIndex=function(){return this._sortRowIndex!=null?this._sortRowIndex:this.columnHeaders.rows.length-1},u.prototype._sortConverter=function(n,t,i,r){var u,o,f,e;if(r){if(this._mappedColumns=null,this.collectionView)for(o=this.collectionView.sortDescriptions,f=0;f<o.length;f++)u=this.columns.getColumn(o[f].property),u&&u.dataMap&&(this._mappedColumns||(this._mappedColumns={}),this._mappedColumns[u.binding]=u.dataMap);this._mouseHdl._htDown&&this._mouseHdl._htDown.col>-1&&(u=this.columns[this._mouseHdl._htDown.col],this._mappedColumns&&u.dataMap&&(this._mappedColumns[u.binding]=u.dataMap))}return this._mappedColumns&&(e=this._mappedColumns[n.property],e&&e.sortByDisplayValues&&(i=e.getDisplayValue(i))),i},u.prototype._bindGrid=function(i){var r=this;this.deferUpdate(function(){var o,s,h,c,l,u,e,f;if(r._lastCount==0&&r._cv&&r._cv.items&&r._cv.items.length&&(i=!0),o=[],r.preserveSelectedState&&r.selectionMode==t.SelectionMode.ListBox)for(u=0;u<r.rows.length;u++)s=r.rows[u],s.isSelected&&s.dataItem&&o.push(s.dataItem);if(r.preserveOutlineState&&n.isFunction(window.Map)&&r.rows.maxGroupLevel>-1)for(h=new Map,u=0;u<r.rows.length;u++)e=r.rows[u],e instanceof t.GroupRow&&e.isCollapsed&&e.dataItem&&(f=e.dataItem,f instanceof n.collections.CollectionViewGroup&&(f=f._path),h.set(f,!0));if(i&&r.columns.deferUpdate(function(){r._bindColumns()}),r.rows.deferUpdate(function(){r._bindRows()}),c=0,o.length)for(u=0;u<r.rows.length&&c<o.length;u++)o.indexOf(r.rows[u].dataItem)>-1&&(r.rows[u].isSelected=!0,c++);if(r.selectionMode==t.SelectionMode.ListBox&&c==0)for(l=r.selection,u=l.topRow;u<=l.bottomRow&&u>-1&&u<r.rows.length;u++)r.rows[u].isSelected=!0;if(h)for(u=0;u<r.rows.length;u++)e=r.rows[u],e instanceof t.GroupRow&&(f=e.dataItem,f instanceof n.collections.CollectionViewGroup&&(f=f._path),h.get(f)&&(e.isCollapsed=!0));!r._lastCount&&r._cv&&r._cv.items&&(r._lastCount=r._cv.items.length)});this.collectionView&&this._cvCurrentChanged(this.collectionView,n.EventArgs.empty)},u.prototype._cvCollectionChanged=function(i,r){var u;if(this.autoGenerateColumns&&this.columns.length==0){this._bindGrid(!0);return}if(this.childItemsPath&&r.action!=n.collections.NotifyCollectionChangedAction.Change){this._bindGrid(!1);return}switch(r.action){case n.collections.NotifyCollectionChangedAction.Change:this.invalidate();return;case n.collections.NotifyCollectionChangedAction.Add:if(r.index==this.collectionView.items.length-1){u=this.rows.length;this.rows[u-1]instanceof t._NewRowTemplate&&u--;this.rows.insert(u,new t.Row(r.item));return}n.assert(!1,'added item should be the last one.');break;case n.collections.NotifyCollectionChangedAction.Remove:if(u=this._findRow(r.item),u>-1){this.rows.removeAt(u);this._cvCurrentChanged(i,r);return}n.assert(!1,'removed item not found in grid.')}this._bindGrid(!1)},u.prototype._cvCurrentChanged=function(){if(this.collectionView){var i=this.selection,r=i.row>-1&&i.row<this.rows.length?this.rows[i.row].dataItem:null;r instanceof n.collections.CollectionViewGroup&&(r=null);r!=this.collectionView.currentItem&&(i.row=i.row2=this._getRowIndex(this.collectionView.currentPosition),this.select(i,!1),this.selectionMode!=t.SelectionMode.None&&this.scrollIntoView(i.row,-1))}},u.prototype._getRowIndex=function(n){var r,n,i;if(this.collectionView){if(n>-1){for(r=this.collectionView.items[n];n<this.rows.length;n++)if(this.rows[n].dataItem===r)return n;return-1}return this.rows.length==1&&this.rows[0]instanceof t._NewRowTemplate?0:(n=this.selection.row,i=n>-1?this.rows[n]:null,i&&(i instanceof t.GroupRow||i.dataItem==null)?n:-1)}return this.selection.row},u.prototype._getCvIndex=function(n){if(n>-1&&this.collectionView){var t=this.rows[n].dataItem;for(n=Math.min(n,this.collectionView.items.length);n>-1;n--)if(this.collectionView.items[n]===t)return n}return-1},u.prototype._findRow=function(n){for(var t=0;t<this.rows.length;t++)if(this.rows[t].dataItem==n)return t;return-1},u.prototype._updateLayout=function(){var a=new n.CancelEventArgs,o,h,s;if(this.onUpdatingLayout(a)){var e=this._rows.getTotalSize(),r=this._hdrVis&i.Row?this._hdrCols.getTotalSize():0,f=this._hdrVis&i.Column?this._hdrRows.getTotalSize():0;e<1&&(e=1);this._rtl=this.hostElement?getComputedStyle(this.hostElement).direction=='rtl':!1;this._heightBrowser=Math.min(e,u._getMaxSupportedCssHeight());this._maxOffsetY=Math.max(0,e-this._heightBrowser);this.cells.hostElement&&(o=n.createElement('<div class="wj-cell"></div>',this.cells.hostElement),h=getComputedStyle(o),this._cellPadding=parseInt(this._rtl?h.paddingRight:h.paddingLeft),o.parentElement.removeChild(o));this._rtl?(n.setCss(this._eTL,{right:0,top:0,width:r,height:f}),n.setCss(this._eCHdr,{top:0,right:r,height:f}),n.setCss(this._eRHdr,{right:0,top:f,width:r}),n.setCss(this._eCt,{right:r,top:f,width:this._gpCells.width,height:this._heightBrowser})):(n.setCss(this._eTL,{left:0,top:0,width:r,height:f}),n.setCss(this._eCHdr,{top:0,left:r,height:f}),n.setCss(this._eRHdr,{left:0,top:f,width:r}),n.setCss(this._eCt,{left:r,top:f,width:this._gpCells.width,height:this._heightBrowser}));this._stickyHdr&&this._updateStickyHeaders();var t=this._root,c=t.offsetWidth-t.clientWidth,l=t.offsetHeight-t.clientHeight;n.setCss(this._eSz,{width:r+c+this._gpCells.width,height:f+l+this._heightBrowser});s=null;this.columns._updateStarSizes(t.clientWidth-r)&&(s=t.clientWidth,this._eCt.style.width=this._gpCells.width+'px');this._szClient=new n.Size(t.clientWidth-r,t.clientHeight-f);this._rcBounds=null;this._updateContent(!1);c=t.offsetWidth-t.clientWidth;l=t.offsetHeight-t.clientHeight;n.setCss(this._eSz,{width:r+c+this._gpCells.width,height:f+l+this._heightBrowser});this._szClient=new n.Size(t.clientWidth-r,t.clientHeight-f);s&&s!=t.clientWidth&&this.columns._updateStarSizes(t.clientWidth-r)&&(this._eCt.style.width=this._gpCells.width+'px',this._updateContent(!1));this._eCHdr.style.width=this._szClient.width+'px';this._eRHdr.style.height=this._szClient.height+'px';this.onUpdatedLayout(a)}},u.prototype._updateStickyHeaders=function(){var r=!1,o=0,f,t,i,e;if(this._stickyHdr){for(f=0,t=null,i=this.hostElement;i;i=i.parentElement)e=i.getBoundingClientRect(),t==null&&(t=e.top),f=Math.max(f,e.top);t=Math.max(0,f-t-1);o=-t;r=t>0}this._eTL.style.top=this._eCHdr.style.top=r?-o+'px':'';n.toggleClass(this._eTL,u._WJS_STICKY,r);n.toggleClass(this._eCHdr,u._WJS_STICKY,r)},u.prototype._updateScrollPosition=function(){var t=this._root,f=t.scrollTop,i=t.scrollLeft,r;return(this._rtl&&u._getRtlMode()=='rev'&&(i=t.scrollWidth-t.clientWidth-i),r=new n.Point(-Math.abs(i),-f),!this._ptScrl.equals(r))?(this._ptScrl=r,this.onScrollPositionChanged(),!0):!1},u.prototype._updateContent=function(t,r){var a=this,v=this.containsFocus(),y=n.contains(this.columnHeaders.hostElement,n.getActiveElement()),o=new n.CancelEventArgs,s,e,u;if(this.onUpdatingView(o)){if(this._offsetY=0,this._heightBrowser>this._szClient.height&&(s=Math.round(-this._ptScrl.y/(this._heightBrowser-this._szClient.height)*100)/100,this._offsetY=Math.round(this._maxOffsetY*s)),this._updateScrollPosition(),this._gpCells._updateContent(t,r,this._offsetY),this._hdrVis&i.Column&&(!r||this._ssHdr&i.Column)&&this._gpCHdr._updateContent(t,r,0),this._hdrVis&i.Row&&(!r||this._ssHdr&i.Row)&&this._gpRHdr._updateContent(t,r,this._offsetY),this._hdrVis&&!r&&this._gpTL._updateContent(t,r,0),this.showMarquee)if(e=this._selHdl._sel,u=this._eMarquee,this.isRangeValid(e)){var f=this._getMarqueeRect(e),h=u.firstChild,c=u.offsetWidth-h.offsetWidth,l=u.offsetHeight-h.offsetHeight;n.setCss(u,{left:f.left+this.cells.hostElement.offsetLeft-c/2,top:f.top+this.cells.hostElement.offsetTop-l/2,width:f.width+c,height:f.height+l,visibility:f.width>0&&f.height>0?'':'collapse'})}else n.setCss(u,{left:0,top:0,width:0,height:0,visibility:'collapse'});v&&!r&&setTimeout(function(){a.focus()},10);this._rcBounds=null;this.onUpdatedView(o)}},u.prototype._getMarqueeRect=function(i){var s=this.getMergedRange(this.cells,i.topRow,i.leftCol)||new t.CellRange(i.topRow,i.leftCol),h=this.getMergedRange(this.cells,i.bottomRow,i.rightCol)||new t.CellRange(i.bottomRow,i.rightCol),r=this.cells.getCellBoundingRect(s.topRow,s.leftCol,!0),f=this.cells.getCellBoundingRect(h.bottomRow,h.rightCol,!0),o,e,u;if(this.rows.frozen){if(o=Math.min(this.rows.length,this.rows.frozen),u=this.cells.getCellBoundingRect(o-1,0,!0),i.bottomRow>=o&&f.bottom<u.bottom)return new n.Rect(0,0,0,0);i.topRow>=o&&r.top<u.bottom&&(r.top=u.bottom)}if(this.columns.frozen)if(e=Math.min(this.columns.length,this.columns.frozen),u=this.cells.getCellBoundingRect(0,e-1,!0),this._rtl){if(i.rightCol>=e&&f.left>u.left)return new n.Rect(0,0,0,0);i.leftCol>=e&&r.right>u.left&&(r.left=u.left-r.width)}else{if(i.rightCol>=e&&f.right<u.right)return new n.Rect(0,0,0,0);i.leftCol>=e&&r.left<u.right&&(r.left=u.right)}return this._rtl?new n.Rect(f.left,r.top,r.right-f.left,f.bottom-r.top):new n.Rect(r.left,r.top,f.right-r.left,f.bottom-r.top)},u.prototype._bindColumns=function(){for(var i,r,e,f,o,u=0;u<this.columns.length;u++)i=this.columns[u],i._getFlag(t.RowColFlags.AutoGenerated)&&(this.columns.removeAt(u),u--);if(r=null,e=this.collectionView,e&&e.sourceCollection&&e.sourceCollection.length&&(r=e.sourceCollection[0]),r&&this.autoGenerateColumns)for(f in r)n.isPrimitive(r[f])&&(i=new t.Column,i._setFlag(t.RowColFlags.AutoGenerated,!0),i.binding=i.name=f,i.header=n.toHeaderCase(f),i.dataType=n.getType(r[f]),i.dataType==n.DataType.Number&&(i.width=80),o=Object.getOwnPropertyDescriptor(r,f),!o||o.writable||n.isFunction(o.set)||i._setFlag(t.RowColFlags.ReadOnly,!0),this.columns.push(i));this._updateColumnTypes()},u.prototype._updateColumnTypes=function(){var u=this.collectionView,f,r,i,t;if(n.hasItems(u))for(f=u.items[0],r=this.columns,i=0;i<r.length;i++)t=r[i],t.dataType==null&&t._binding&&(t.dataType=n.getType(t._binding.getValue(f)))},u.prototype._getBindingColumn=function(n,t,i){return i},u.prototype._bindRows=function(){var f=new n.CancelEventArgs,i,r,u,t;if(this.onLoadingRows(f)){if(this.rows.clear(),i=this.collectionView,i&&i.items)if(r=i.items,u=i.groups,this.childItemsPath)for(t=0;t<r.length;t++)this._addNode(r,t,0);else if(u!=null&&u.length>0&&this.showGroups)for(t=0;t<u.length;t++)this._addGroup(u[t]);else for(t=0;t<r.length;t++)this._addBoundRow(r,t);this.onLoadedRows(f)}},u.prototype._addBoundRow=function(n,i){this.rows.push(new t.Row(n[i]))},u.prototype._addNode=function(i,r,u){var e=new t.GroupRow,o=this.childItemsPath,c=n.isArray(o)?o[u]:o,h=i[r],s=h[c],f;if(e.dataItem=h,e.level=u,this.rows.push(e),s)for(f=0;f<s.length;f++)this._addNode(s,f,u+1)},u.prototype._addGroup=function(n){var r=new t.GroupRow,u,i;if(r.level=n.level,r.dataItem=n,this.rows.push(r),n.isBottomLevel)for(u=n.items,i=0;i<u.length;i++)this._addBoundRow(u,i);else for(i=0;i<n.groups.length;i++)this._addGroup(n.groups[i])},u._getSerializableProperties=function(n){var f=[],u,t,i,r;for(n=n.prototype;n;n=Object.getPrototypeOf(n))for(u=Object.getOwnPropertyNames(n),t=0;t<u.length;t++)i=u[t],r=Object.getOwnPropertyDescriptor(n,i),r&&r.set&&r.get&&i[0]!='_'&&f.push(i);return f},u.prototype._copy=function(i,r){var f,u,e;if(i=='columns'){for(this.columns.clear(),f=n.asArray(r),u=0;u<f.length;u++)e=new t.Column,n.copy(e,f[u]),this.columns.push(e);return!0}return!1},u.prototype._isInputElement=function(n){if(n instanceof HTMLElement){var t=n.tagName.match(/INPUT|SELECT|TEXTAREA|BUTTON|A/);return t&&t.length>0}return!1},u._getMaxSupportedCssHeight=function(){var n;if(!u._maxCssHeight){var i=1e6,t=document.createElement('div');for(t.style.visibility='hidden',document.body.appendChild(t),n=i;n<=6e7;n+=5e5){if(t.style.height=n+'px',t.offsetHeight!=n)break;i=n}document.body.removeChild(t);u._maxCssHeight=i}return u._maxCssHeight},u._getRtlMode=function(){var t,i,r;return u._rtlMode||(t=n.createElement('<div dir="rtl" style="visibility:hidden;width:100px;height:100px;overflow:auto"><div style="width:2000px;height:2000px"><\/div><\/div>'),document.body.appendChild(t),i=t.scrollLeft,t.scrollLeft=-1e3,r=t.scrollLeft,document.body.removeChild(t),u._rtlMode=r<0?'neg':i>0?'rev':'std'),u._rtlMode},u._WJS_STICKY='wj-state-sticky',u._WJS_MEASURE='wj-state-measuring',u.controlTemplate='<div style="position:relative;width:100%;height:100%;overflow:hidden;max-width:inherit;max-height:inherit"><div wj-part="focus" tabIndex="0" style="position:absolute;opacity:0;pointer-events:none;left:-10px;top:-10px"><\/div><div wj-part="root" style="position:absolute;width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch;max-width:inherit;max-height:inherit;boxSizing:content-box"><div wj-part="cells" class="wj-cells" style="position:relative"><\/div><div wj-part="marquee" class="wj-marquee" style="display:none;pointer-events:none"><div style="width:100%;height:100%"><\/div><\/div><\/div><div wj-part="rh" style="position:absolute;overflow:hidden;outline:none"><div wj-part="rhcells" class="wj-rowheaders" style="position:relative"><\/div><\/div><div wj-part="ch" style="position:absolute;overflow:hidden;outline:none"><div wj-part="chcells" class="wj-colheaders" style="position:relative"><\/div><\/div><div wj-part="tl" style="position:absolute;overflow:hidden;outline:none"><div wj-part="tlcells" class="wj-topleft" style="position:relative"><\/div><\/div><div wj-part="sz" style="position:relative;visibility:hidden;"><\/div><\/div>',u}(n.Control);t.FlexGrid=r})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){'use strict';var i=function(i){function r(r,u,f){i.call(this);this._p=n.asType(r,t.GridPanel);this._rng=n.asType(u,t.CellRange);this._data=f}return __extends(r,i),Object.defineProperty(r.prototype,"panel",{get:function(){return this._p},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"range",{get:function(){return this._rng.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"row",{get:function(){return this._rng.row},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"col",{get:function(){return this._rng.col},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"data",{get:function(){return this._data},set:function(n){this._data=n},enumerable:!0,configurable:!0}),r}(n.CancelEventArgs),r;t.CellRangeEventArgs=i;r=function(t){function i(i,r,u){t.call(this,i,r);this._cell=n.asType(u,HTMLElement)}return __extends(i,t),Object.defineProperty(i.prototype,"cell",{get:function(){return this._cell},enumerable:!0,configurable:!0}),i}(i);t.FormatItemEventArgs=r})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(t){'use strict';(function(n){n[n.None=0]="None";n[n.Cell=1]="Cell";n[n.ColumnHeader=2]="ColumnHeader";n[n.RowHeader=3]="RowHeader";n[n.TopLeft=4]="TopLeft"})(t.CellType||(t.CellType={}));var i=t.CellType,r=function(){function r(i,u,f,e,o){this._offsetY=0;this._g=n.asType(i,t.FlexGrid);this._ct=n.asInt(u);this._rows=n.asType(f,t.RowCollection);this._cols=n.asType(e,t.ColumnCollection);this._e=n.asType(o,HTMLElement);this._rng=new t.CellRange;r._evtBlur||(r._evtBlur=document.createEvent('HTMLEvents'),r._evtBlur.initEvent('blur',!0,!1))}return Object.defineProperty(r.prototype,"grid",{get:function(){return this._g},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"cellType",{get:function(){return this._ct},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"viewRange",{get:function(){return this._getViewRange(!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"width",{get:function(){return this._cols.getTotalSize()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._rows.getTotalSize()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._rows},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"columns",{get:function(){return this._cols},enumerable:!0,configurable:!0}),r.prototype.getCellData=function(r,u,f){var s=this._rows[n.asNumber(r,!1,!0)],h,e=null,o,c;if(n.isString(u)&&(u=this._cols.indexOf(u),u<0))throw'Invalid column name or binding.';if(h=this._cols[n.asNumber(u,!1,!0)],o=this._g?this._g._getBindingColumn(this,r,h):h,!o.binding||!s.dataItem||s.dataItem instanceof n.collections.CollectionViewGroup?s._ubv&&(e=s._ubv[h._hash]):e=o._binding.getValue(s.dataItem),e==null)switch(this._ct){case i.ColumnHeader:(r==this._rows.length-1||o!=h)&&(e=o.header);break;case i.Cell:h.aggregate!=n.Aggregate.None&&s instanceof t.GroupRow&&(c=n.tryCast(s.dataItem,n.collections.CollectionViewGroup),c&&(e=c.getAggregate(o.aggregate,o.binding,this._g.collectionView)))}return f&&(this.cellType==i.Cell&&o.dataMap&&(e=o.dataMap.getDisplayValue(e)),e=e!=null?n.Globalize.format(e,o.format):''),e},r.prototype.setCellData=function(t,r,u,f,e){var s,v,o,c,y,h,p,a,k;if(f===void 0&&(f=!0),e===void 0&&(e=!0),s=this._rows[n.asNumber(t,!1,!0)],n.isString(r)&&(r=this._cols.indexOf(r),r<0))throw'Invalid column name or binding.';if(v=this._cols[n.asNumber(r,!1,!0)],o=this._g?this._g._getBindingColumn(this,t,v):v,this._ct==i.Cell){if(o.dataMap&&u!=null&&(o.required||u!=''&&u!=null))if(c=o.dataMap,y=c.getKeyValue(u),y==null){if(!c.isEditable||c.displayMemberPath!=c.selectedValuePath)return!1}else u=y;if(h=n.DataType.Object,o.dataType?h=o.dataType:(p=this.getCellData(t,r,!1),h=n.getType(p)),n.isBoolean(o.required))if(o.required||u!==''&&u!==null){if(o.required&&(u===''||u===null))return!1}else u=null,f=!1;if(f&&(u=n.changeType(u,h,o.format),h!=n.DataType.Object&&n.getType(u)!=h))return!1}if(s.dataItem&&o.binding){var w=o._binding,l=s.dataItem,b=w.getValue(l);if(u!==b&&!n.DateTime.equals(u,b)&&(w.setValue(l,u),a=this._g.collectionView,a instanceof n.collections.CollectionView&&l!=a.currentEditItem)){k=new n.collections.NotifyCollectionChangedEventArgs(n.collections.NotifyCollectionChangedAction.Change,l,a.items.indexOf(l));a.onCollectionChanged(k)}}else s._ubv||(s._ubv={}),s._ubv[v._hash]=u;return e&&this._g&&this._g.invalidate(),!0},r.prototype.getCellBoundingRect=function(t,i,r){var o=this.rows[t],s=this.columns[i],u=new n.Rect(s.pos,o.pos,s.renderSize,o.renderSize),f,e;return this._g._rtl&&(u.left=this.hostElement.clientWidth-u.right,n.isIE()||(f=this.hostElement.parentElement,u.left-=f.offsetWidth-f.clientWidth)),r||(e=this.hostElement.getBoundingClientRect(),u.left+=e.left,u.top+=e.top-this._offsetY),t<this.rows.frozen&&(u.top-=this._g.scrollPosition.y),i<this.columns.frozen&&(u.left-=this._g.scrollPosition.x*(this._g._rtl?-1:1)),u},r.prototype.getSelectedState=function(n,r,u){var e=this._g,o=e.selectionMode,f=e._selHdl._sel;if(o!=t.SelectionMode.None)switch(this._ct){case i.Cell:if(u||(u=e.getMergedRange(this,n,r)),u){if(u.contains(f.row,f.col))return e.showMarquee?t.SelectedState.None:t.SelectedState.Cursor;if(u.intersects(f))return t.SelectedState.Selected}return f.row==n&&f.col==r?e.showMarquee?t.SelectedState.None:t.SelectedState.Cursor:e.rows[n].isSelected||e.columns[r].isSelected?t.SelectedState.Selected:(f=e._selHdl._adjustSelection(f),o==t.SelectionMode.ListBox)?t.SelectedState.None:f.containsRow(n)&&f.containsColumn(r)?t.SelectedState.Selected:t.SelectedState.None;case i.ColumnHeader:if(e.showSelectedHeaders&t.HeadersVisibility.Column&&(e.columns[r].isSelected||f.containsColumn(r)||f.intersectsColumn(u))&&(u&&(n=u.bottomRow),n==this.rows.length-1))return t.SelectedState.Selected;break;case i.RowHeader:if(e.showSelectedHeaders&t.HeadersVisibility.Row&&(e.rows[n].isSelected||f.containsRow(n)||f.intersectsRow(u))&&(u&&(r=u.rightCol),r==this.columns.length-1))return t.SelectedState.Selected}return t.SelectedState.None},Object.defineProperty(r.prototype,"hostElement",{get:function(){return this._e},enumerable:!0,configurable:!0}),r.prototype._getOffsetY=function(){return this._offsetY},r.prototype._updateContent=function(t,u,f){var e,o,p,v=this._g,c=this._rows,d=this._cols,l,a,y,s,k,h;if((this._ct==i.ColumnHeader||this._ct==i.RowHeader)&&(l=v._ptScrl,a=this._e.style,this.cellType==i.ColumnHeader?v._rtl?a.right=l.x+'px':a.left=l.x+'px':this.cellType==i.RowHeader&&(a.top=l.y+'px')),this._offsetY!=f&&(t=!1,this._offsetY=f),y=this._getViewRange(!1),s=t&&v.isTouching?this._getViewRange(!0):y,!t||u||c.frozen||d.frozen||!this._rng.contains(y)){if(t&&s.equals(this._rng)||(u=!1),!t){var w=n.getActiveElement(),b=n.contains(this._e,w)?w:null,g=this._g.cellFactory;for(h=0;h<this._e.childElementCount;h++)g.disposeCell(this._e.children[h]);n.setText(this._e,null);b&&b.dispatchEvent(r._evtBlur);this._rowIdx=[]}for(t&&this._ct!=i.TopLeft&&this._reorderCells(s,this._rng),this._rng=s,o=0,this._rowIdx=[],e=s.topRow;e<=s.bottomRow&&e>-1;e++)this._rowIdx.push(o),o=this._renderRow(e,s,!1,u,o);for(this._rowIdx.push(o),e=s.topRow;e<=s.bottomRow&&e>-1;e++)o=this._renderRow(e,s,!0,u,o);for(e=0;e<c.frozen&&e<c.length;e++)o=this._renderRow(e,s,!1,u,o);for(e=0;e<c.frozen&&e<c.length;e++)o=this._renderRow(e,s,!0,u,o);for(k=this._e.childElementCount,h=o;h<k;h++)p=this._e.children[h],p.style.display='none'}},r.prototype._reorderCells=function(n,i){var h,r,o,f,c,s,e,u;if(this._rowIdx&&!(this._rows.frozen>0)&&!(this._cols.frozen>0)&&n.columnSpan==i.columnSpan&&n.rowSpan==i.rowSpan&&i.isValid&&n.isValid&&n.intersects(i)&&(n.row!=i.row&&(r=n.row-i.row,o=Math.max(1,n.rowSpan-1),r!=0&&Math.abs(r)<o&&(r>0&&(u=this._createRange(0,this._rowIdx[r]),this._e.appendChild(u.extractContents())),r<0&&(h=this._rowIdx.length-1,u=this._createRange(this._rowIdx[h+r],this._rowIdx[h]),this._e.insertBefore(u.extractContents(),this._e.firstChild)))),n.col!=i.col&&(r=n.col-i.col,o=Math.max(1,n.columnSpan-1),r!=0&&Math.abs(r)<o)))for(f=0;f<this._rowIdx.length-1;f++)c=this.rows[n.topRow+f],c instanceof t.GroupRow||(s=this._rowIdx[f],e=this._rowIdx[f+1],r>0&&(u=this._createRange(s,s+r),this._e.insertBefore(u.extractContents(),this._e.children[e])),r<0&&e+r-1>=0&&(u=this._createRange(e+r-1,e-1),this._e.insertBefore(u.extractContents(),this._e.children[s])))},r.prototype._createRange=function(n,t){var i=document.createRange();return i.setStart(this._e,n),i.setEnd(this._e,t),i},r.prototype._renderRow=function(n,t,i,r,u){var f;if(this.rows[n].renderSize<=0)return u;if(i)for(f=0;f<this.columns.frozen&&f<this.columns.length;f++)u=this._renderCell(n,f,t,r,u);else for(f=t.leftCol;f<=t.rightCol&&f>-1;f++)u=this._renderCell(n,f,t,r,u);return u},r.prototype._renderCell=function(i,r,u,f,e){var l=this._g,h=l.getMergedRange(this,i,r),s,o,c;if(h){for(s=Math.max(u.row,h.row);s<i;s++)if(this.rows[s].isVisible)return e;for(s=Math.max(u.col,h.col);s<r;s++)if(this.columns[s].isVisible)return e}return this.columns[r].renderSize<=0&&(!h||h.getRenderSize(this).width<=0)?e:(o=this._e.childNodes[e++],o&&f)?(c=this.getSelectedState(i,r,h),n.toggleClass(o,'wj-state-selected',c==t.SelectedState.Cursor),n.toggleClass(o,'wj-state-multi-selected',c==t.SelectedState.Selected),e):(o||(o=document.createElement('div'),o.tabIndex=0,this._e.appendChild(o)),l.cellFactory.updateCell(this,i,r,o,h),e)},r.prototype._getViewRange=function(n){var h=this._g,a=h._ptScrl,u=this._rows,f=this._cols,r=new t.CellRange(0,0,u.length-1,f.length-1),e,o;if(this._ct==i.Cell||this._ct==i.RowHeader){var c=-a.y+this._offsetY,v=h.clientSize.height,s=Math.min(u.frozen,u.length-1);s>0&&(e=u[s-1].pos,c+=e,v-=e);r.row=Math.min(u.length-1,Math.max(u.frozen,u.getItemAt(c+1)));r.row2=u.getItemAt(c+v)}if(this._ct==i.Cell||this._ct==i.ColumnHeader){var l=-a.x,y=h.clientSize.width,s=Math.min(f.frozen,f.length-1);s>0&&(e=f[s-1].pos,l+=e,y-=e);r.col=Math.min(f.length-1,Math.max(f.frozen,f.getItemAt(l+1)));r.col2=f.getItemAt(l+y)}return!n||this._ct!=i.Cell||u.frozen||f.frozen||(o=6,r.row<this._rng.row&&(r.row=Math.max(r.row-o,0)),r.row2>this._rng.row2&&(r.row2=Math.min(r.row2+o,u.length-1)),r.col<this._rng.col&&(r.col=Math.max(r.col-o,0)),r.col2>this._rng.col2&&(r.col2=Math.min(r.col2+o,f.length-1))),u.length<=u.frozen&&(r.row=r.row2=-1),f.length<=f.frozen&&(r.col=r.col2=-1),r},r.prototype._getFrozenPos=function(){var r=this._rows.frozen,u=this._cols.frozen,t=r>0?this._rows[r-1]:null,i=u>0?this._cols[u-1]:null,f=t?t.pos+t.renderSize:0,e=i?i.pos+i.renderSize:0;return new n.Point(e,f)},r}();t.GridPanel=r})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(t){'use strict';var i=function(){function i(){}return i.prototype.updateCell=function(r,u,f,e,o,s){var h=r.grid,p=r.cellType,g=r.rows,nt=r.columns,y=g[u],k=nt[f],tt=u,ut=f,w=n.tryCast(y,t.GroupRow),pt=n.tryCast(y,t._NewRowTemplate),wt=k.renderWidth,bt=y.renderHeight,a='wj-cell',l={display:''},kt=s!=!1,ht,ft,d,gt,lt,et,v,at,vt,b,yt,it,ot,rt,ii,ni,st,o,ti;s!=!1&&e.firstElementChild&&(e.childNodes.length!=1||e.firstElementChild.type!='checkbox')&&(n.setText(e,null),kt=!1);o&&!o.isSingleCell&&(u=o.row,f=o.col,tt=o.row2,ut=o.col2,y=g[u],k=nt[f],w=n.tryCast(y,t.GroupRow),ht=o.getRenderSize(r),bt=ht.height,wt=ht.width);var c=h._getBindingColumn(r,u,k),ct=k.pos,dt=y.pos;u<g.frozen&&(dt-=h._ptScrl.y);f<nt.frozen&&(ct-=h._ptScrl.x);h._rtl?l.right=ct+'px':l.left=ct+'px';l.top=dt-r._getOffsetY()+'px';l.width=wt+'px';l.height=bt+'px';p==t.CellType.Cell?(w&&(a+=' wj-group'),h.showAlternatingRows&&u%2!=0&&(a+=' wj-alt'),(u<g.frozen||f<nt.frozen)&&(a+=' wj-frozen'),pt&&(a+=' wj-new'),y.cssClass&&(a+=' '+y.cssClass),c.cssClass&&(a+=' '+c.cssClass)):(a+=' wj-header',h.showAlternatingRows&&u%2!=0&&(a+=' wj-header-alt'));ft=r.getSelectedState(u,f,o);ft!=t.SelectedState.None&&p==t.CellType.Cell&&k.dataType!=n.DataType.Boolean&&h.editRange&&h.editRange.contains(u,f)&&(ft=t.SelectedState.None);switch(ft){case t.SelectedState.Cursor:a+=' wj-state-selected';break;case t.SelectedState.Selected:a+=' wj-state-multi-selected'}if(tt==g.frozen-1&&(a+=' wj-frozen-row'),ut==nt.frozen-1&&(a+=' wj-frozen-col'),(k.wordWrap||y.wordWrap)&&(a+=' wj-wrap'),kt&&a==e.className&&(d=e.style,d.top==l.top&&d.width==l.width&&d.height==l.height&&(h._rtl&&d.right==l.right||!h._rtl&&d.left==l.left))){d.display&&(e.style.display='');return}l.textAlign=c.getAlignment();p==t.CellType.Cell&&h.rows.maxGroupLevel>-1&&(l.paddingLeft=l.paddingRight='',f==h.columns.firstVisibleIndex&&h.treeIndent&&(gt=w?Math.max(0,w.level):h.rows.maxGroupLevel+1,lt=h.treeIndent*gt+h._cellPadding,h._rtl?l.paddingRight=lt:l.paddingLeft=lt));s!=!1&&(et=r.getCellData(u,f,!1),v=r.getCellData(u,f,!0),p==t.CellType.Cell&&f==h.columns.firstVisibleIndex&&w&&w.hasChildren&&!this._isEditingCell(h,u,f)?(v||(v=w.getGroupHeader()),e.innerHTML=this._getTreeIcon(w)+' '+v,l.textAlign=''):p==t.CellType.ColumnHeader&&c.currentSort&&h.showSort&&(tt==h._getSortRowIndex()||c!=k)?(a+=' wj-sort-'+(c.currentSort=='+'?'asc':'desc'),e.innerHTML=n.escapeHtml(v)+'&nbsp;'+this._getSortIcon(c)):p!=t.CellType.RowHeader||f!=h.rowHeaders.columns.length-1||v?p==t.CellType.Cell&&c.dataType==n.DataType.Boolean&&(!w||n.isBoolean(et))?(b=e.firstChild,b instanceof HTMLInputElement&&b.type=='checkbox'||(e.innerHTML='<input type="checkbox"/>',b=e.firstChild),b.checked=et==!0?!0:!1,b.indeterminate=et==null,b.disabled=!h._edtHdl._allowEditing(u,f),b.disabled&&(b.style.cursor='default'),h.editRange&&h.editRange.contains(u,f)&&(h._edtHdl._edt=b)):p==t.CellType.Cell&&this._isEditingCell(h,u,f)?(yt=c.inputType,c.inputType||(yt=c.dataType==n.DataType.Number&&!c.dataMap?'tel':'text'),c.dataMap||c.mask||(it=r.getCellData(u,f,!1),n.isNumber(it)&&(ot=c.format,ot&&it!=Math.round(it)&&(ot=c.format.replace(/([a-z])(\d*)(.*)/ig,'$0112$3')),v=n.Globalize.formatNumber(it,ot,!0))),e.innerHTML='<input type="'+yt+'" class="wj-grid-editor wj-form-control">',rt=e.children[0],rt.value=v,rt.style.textAlign=c.getAlignment(),l.padding='0px',c.mask&&(ii=new n._MaskProvider(rt,c.mask)),h._edtHdl._edt=rt):p==t.CellType.Cell&&(y.isContentHtml||c.isContentHtml)?e.innerHTML=v:n.setText(e,v):(at=h.collectionView,vt=at?at.currentEditItem:null,vt&&y.dataItem==vt?v='\u270E':n.tryCast(y,t._NewRowTemplate)&&(v='*'),n.setText(e,v)),p==t.CellType.Cell&&n.input&&c.dataMap&&c.showDropDown!==!1&&h._edtHdl._allowEditing(u,f)&&(i._ddIcon||(ni='position:absolute;top:0px;padding:3px 6px;opacity:.25;right:0px',i._ddIcon=n.createElement('<div style="'+ni+'" '+i._WJA_DROPDOWN+'><span class="wj-glyph-down"></span></div>')),st=i._ddIcon.cloneNode(!0),h._rtl&&(st.style.left='0px',st.style.right=''),e.appendChild(st)));switch(p){case t.CellType.RowHeader:e.removeAttribute('draggable');w||pt||(h.allowDragging&t.AllowDragging.Rows)==0||e.setAttribute('draggable','true');break;case t.CellType.ColumnHeader:e.removeAttribute('draggable');(h.allowDragging&t.AllowDragging.Columns)!=0&&e.setAttribute('draggable','true')}if(e.className!=a&&(e.className=a),n.setCss(e,l),h.itemFormatter&&h.itemFormatter(r,u,f,e),h.formatItem.hasHandlers){o=i._fmtRng;o?o.setRange(u,f,tt,ut):o=i._fmtRng=new t.CellRange(u,f,tt,ut);ti=new t.FormatItemEventArgs(r,o,e);h.onFormatItem(ti)}},i.prototype.disposeCell=function(){},i.prototype._isEditingCell=function(n,t,i){return n.editRange&&n.editRange.contains(t,i)},i.prototype._getTreeIcon=function(n){var t='wj-glyph-'+(n.grid._rtl?n.isCollapsed?'left':'down-left':n.isCollapsed?'right':'down-right');return'<span '+i._WJA_COLLAPSE+' class="'+t+'"></span>'},i.prototype._getSortIcon=function(n){return'<span class="wj-glyph-'+(n.currentSort=='+'?'up':'down')+'"></span>'},i._WJA_COLLAPSE='wj-collapse',i._WJA_DROPDOWN='wj-dropdown',i}();t.CellFactory=i})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(t){'use strict';var i=function(){function t(n,t,i,r){n===void 0&&(n=-1);t===void 0&&(t=-1);i===void 0&&(i=n);r===void 0&&(r=t);this.setRange(n,t,i,r)}return t.prototype.setRange=function(t,i,r,u){t===void 0&&(t=-1);i===void 0&&(i=-1);r===void 0&&(r=t);u===void 0&&(u=i);this._row=n.asInt(t);this._col=n.asInt(i);this._row2=n.asInt(r);this._col2=n.asInt(u)},Object.defineProperty(t.prototype,"row",{get:function(){return this._row},set:function(t){this._row=n.asInt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"col",{get:function(){return this._col},set:function(t){this._col=n.asInt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"row2",{get:function(){return this._row2},set:function(t){this._row2=n.asInt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"col2",{get:function(){return this._col2},set:function(t){this._col2=n.asInt(t)},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this._row,this._col,this._row2,this._col2)},Object.defineProperty(t.prototype,"rowSpan",{get:function(){return Math.abs(this._row2-this._row)+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnSpan",{get:function(){return Math.abs(this._col2-this._col)+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topRow",{get:function(){return Math.min(this._row,this._row2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomRow",{get:function(){return Math.max(this._row,this._row2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftCol",{get:function(){return Math.min(this._col,this._col2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightCol",{get:function(){return Math.max(this._col,this._col2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return this._row>-1&&this._col>-1&&this._row2>-1&&this._col2>-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSingleCell",{get:function(){return this._row==this._row2&&this._col==this._col2},enumerable:!0,configurable:!0}),t.prototype.contains=function(i,r){var u=n.tryCast(i,t);if(u)return u.topRow>=this.topRow&&u.bottomRow<=this.bottomRow&&u.leftCol>=this.leftCol&&u.rightCol<=this.rightCol;if(n.isInt(i)&&n.isInt(r))return i>=this.topRow&&i<=this.bottomRow&&r>=this.leftCol&&r<=this.rightCol;throw'contains expects a CellRange or row/column indices.';},t.prototype.containsRow=function(t){return n.asInt(t)>=this.topRow&&t<=this.bottomRow},t.prototype.containsColumn=function(t){return n.asInt(t)>=this.leftCol&&t<=this.rightCol},t.prototype.intersects=function(n){return this.intersectsRow(n)&&this.intersectsColumn(n)},t.prototype.intersectsRow=function(n){return n&&!(this.bottomRow<n.topRow||this.topRow>n.bottomRow)},t.prototype.intersectsColumn=function(n){return n&&!(this.rightCol<n.leftCol||this.leftCol>n.rightCol)},t.prototype.getRenderSize=function(t){var u=new n.Size(0,0),i,r;if(this.isValid){for(i=this.topRow;i<=this.bottomRow;i++)u.height+=t.rows[i].renderSize;for(r=this.leftCol;r<=this.rightCol;r++)u.width+=t.columns[r].renderSize}return u},t.prototype.equals=function(n){return n instanceof t&&this._row==n._row&&this._col==n._col&&this._row2==n._row2&&this._col2==n._col2},t}();t.CellRange=i})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){'use strict';var i,u,r,e,o,f,s,h;(function(n){n[n.Visible=1]="Visible";n[n.AllowResizing=2]="AllowResizing";n[n.AllowDragging=4]="AllowDragging";n[n.AllowMerging=8]="AllowMerging";n[n.AllowSorting=16]="AllowSorting";n[n.AutoGenerated=32]="AutoGenerated";n[n.Collapsed=64]="Collapsed";n[n.ParentCollapsed=128]="ParentCollapsed";n[n.Selected=256]="Selected";n[n.ReadOnly=512]="ReadOnly";n[n.HtmlContent=1024]="HtmlContent";n[n.WordWrap=2048]="WordWrap";n[n.RowDefault=3]="RowDefault";n[n.ColumnDefault=23]="ColumnDefault"})(t.RowColFlags||(t.RowColFlags={}));i=t.RowColFlags;u=function(){function r(){this._list=null;this._pos=0;this._idx=-1}return Object.defineProperty(r.prototype,"visible",{get:function(){return this._getFlag(i.Visible)},set:function(n){this._setFlag(i.Visible,n)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isVisible",{get:function(){return this._getFlag(i.Visible)?this._getFlag(i.ParentCollapsed)&&!(this instanceof t._NewRowTemplate)?!1:!0:!1},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pos",{get:function(){return this._list&&this._list._update(),this._pos},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"index",{get:function(){return this._list&&this._list._update(),this._idx},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"size",{get:function(){return this._sz},set:function(t){t!=this._sz&&(this._sz=n.asNumber(t,!0),this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"renderSize",{get:function(){if(!this.isVisible)return 0;var n=this._sz,t=this._list;return(n==null||n<0)&&t!=null?Math.round(t.defaultSize):(t!=null&&(t.minSize!=null&&n<t.minSize&&(n=t.minSize),t.maxSize!=null&&n>t.maxSize&&(n=t.maxSize)),this._szMin!=null&&n<this._szMin&&(n=this._szMin),this._szMax!=null&&n>this._szMax&&(n=this._szMax),Math.round(n))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"allowResizing",{get:function(){return this._getFlag(i.AllowResizing)},set:function(n){this._setFlag(i.AllowResizing,n)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"allowDragging",{get:function(){return this._getFlag(i.AllowDragging)},set:function(n){this._setFlag(i.AllowDragging,n)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"allowMerging",{get:function(){return this._getFlag(i.AllowMerging)},set:function(n){this._setFlag(i.AllowMerging,n)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isSelected",{get:function(){return this._getFlag(i.Selected)},set:function(n){this._setFlag(i.Selected,n)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isReadOnly",{get:function(){return this._getFlag(i.ReadOnly)},set:function(n){this._setFlag(i.ReadOnly,n)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isContentHtml",{get:function(){return this._getFlag(i.HtmlContent)},set:function(n){this.isContentHtml!=n&&(this._setFlag(i.HtmlContent,n),this.grid&&this.grid.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"wordWrap",{get:function(){return this._getFlag(i.WordWrap)},set:function(n){this._setFlag(i.WordWrap,n)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"cssClass",{get:function(){return this._cssClass},set:function(t){t!=this._cssClass&&(this._cssClass=n.asString(t),this.grid&&this.grid.invalidate(!1))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"grid",{get:function(){return this._list?this._list._g:null},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"collectionView",{get:function(){return this.grid?this.grid.collectionView:null},enumerable:!0,configurable:!0}),r.prototype.onPropertyChanged=function(){this._list&&(this._list._dirty=!0,this.grid.invalidate())},r.prototype._getFlag=function(n){return(this._f&n)!=0},r.prototype._setFlag=function(n,t,i){return t!=this._getFlag(n)?(this._f=t?this._f|n:this._f&~n,i||this.onPropertyChanged(),!0):!1},r}();t.RowCol=u;r=function(r){function u(t){r.call(this);this._f=i.ColumnDefault;this._hash=u._ctr.toString(36);u._ctr++;t&&n.copy(this,t)}return __extends(u,r),Object.defineProperty(u.prototype,"name",{get:function(){return this._name},set:function(n){this._name=n},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"dataType",{get:function(){return this._type},set:function(t){this._type!=t&&(this._type=n.asEnum(t,n.DataType),this.grid&&this.grid.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"required",{get:function(){return this._required},set:function(t){this._required=n.asBoolean(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"showDropDown",{get:function(){return this._showDropDown},set:function(t){t!=this._showDropDown&&(this._showDropDown=n.asBoolean(t,!0),this.grid&&this.grid.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"dropDownCssClass",{get:function(){return this._ddCssClass},set:function(t){this._ddCssClass=n.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"inputType",{get:function(){return this._inpType},set:function(t){this._inpType=n.asString(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"mask",{get:function(){return this._mask},set:function(t){this._mask=n.asString(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"binding",{get:function(){return this._binding?this._binding.path:null},set:function(t){var r,i,u;t!=this.binding&&(r=n.asString(t),this._binding=r?new n.Binding(r):null,!this._type&&this.grid&&this._binding&&(i=this.grid.collectionView,i&&i.sourceCollection&&i.sourceCollection.length&&(u=i.sourceCollection[0],this._type=n.getType(this._binding.getValue(u)))),this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"sortMemberPath",{get:function(){return this._bindingSort?this._bindingSort.path:null},set:function(t){if(t!=this.sortMemberPath){var i=n.asString(t);this._bindingSort=i?new n.Binding(i):null;this.onPropertyChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"width",{get:function(){return this._szStar!=null?this._szStar:this.size},set:function(t){u._parseStarSize(t)!=null?(this._szStar=t,this.onPropertyChanged()):(this._szStar=null,this.size=n.asNumber(t,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"minWidth",{get:function(){return this._szMin},set:function(t){t!=this._szMin&&(this._szMin=n.asNumber(t,!0,!0),this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"maxWidth",{get:function(){return this._szMax},set:function(t){t!=this._szMax&&(this._szMax=n.asNumber(t,!0,!0),this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"renderWidth",{get:function(){return this.renderSize},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"align",{get:function(){return this._align},set:function(n){this._align!=n&&(this._align=n,this.onPropertyChanged())},enumerable:!0,configurable:!0}),u.prototype.getAlignment=function(){var t=this._align;if(t==null&&(t='',!this._map))switch(this._type){case n.DataType.Boolean:t='center';break;case n.DataType.Number:t='right'}return t},Object.defineProperty(u.prototype,"header",{get:function(){return this._hdr?this._hdr:this.binding},set:function(n){this._hdr!=n&&(this._hdr=n,this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"dataMap",{get:function(){return this._map},set:function(i){this._map!=i&&(this._map&&this._map.mapChanged.removeHandler(this.onPropertyChanged,this),n.isArray(i)&&(i=new t.DataMap(i,null,null)),this._map=n.asType(i,t.DataMap,!0),this._map&&this._map.mapChanged.addHandler(this.onPropertyChanged,this),this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"format",{get:function(){return this._fmt},set:function(n){this._fmt!=n&&(this._fmt=n,this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowSorting",{get:function(){return this._getFlag(i.AllowSorting)},set:function(n){this._setFlag(i.AllowSorting,n)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"currentSort",{get:function(){var t,n;if(this.grid&&this.grid.collectionView&&this.grid.collectionView.canSort)for(t=this.grid.collectionView.sortDescriptions,n=0;n<t.length;n++)if(t[n].property==this._getBindingSort())return t[n].ascending?'+':'-';return null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"aggregate",{get:function(){return this._agg!=null?this._agg:n.Aggregate.None},set:function(t){t!=this._agg&&(this._agg=n.asEnum(t,n.Aggregate),this.onPropertyChanged())},enumerable:!0,configurable:!0}),u.prototype._getBindingSort=function(){return this.sortMemberPath?this.sortMemberPath:this.binding?this.binding:null},u._parseStarSize=function(t){if(n.isString(t)&&t.length>0&&t[t.length-1]=='*'){var i=t.length==1?1:t.substr(0,t.length-1)*1;if(i>0&&!isNaN(i))return i}return null},u._ctr=0,u}(u);t.Column=r;e=function(n){function t(t){n.call(this);this._f=i.ColumnDefault;this._data=t}return __extends(t,n),Object.defineProperty(t.prototype,"dataItem",{get:function(){return this._data},set:function(n){this._data=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.size},set:function(n){this.size=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderHeight",{get:function(){return this.renderSize},enumerable:!0,configurable:!0}),t}(u);t.Row=e;o=function(r){function u(){r.call(this);this._level=-1;this.isReadOnly=!0}return __extends(u,r),Object.defineProperty(u.prototype,"level",{get:function(){return this._level},set:function(t){n.asInt(t);t!=this._level&&(this._level=t,this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasChildren",{get:function(){if(this.grid!=null&&this._list!=null){this._list._update();var i=this.index<this._list.length-1?this._list[this.index+1]:null,r=n.tryCast(i,u),f=n.tryCast(i,t._NewRowTemplate);return i&&f==null&&(r==null||r.level>this.level)}return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"isCollapsed",{get:function(){return this._getFlag(i.Collapsed)},set:function(t){n.asBoolean(t);t!=this.isCollapsed&&this._list!=null&&this._setCollapsed(t)},enumerable:!0,configurable:!0}),u.prototype.getGroupHeader=function(){var u=this.grid,o=u.groupHeaderFormat?u.groupHeaderFormat:n.culture.FlexGrid.groupHeaderFormat,r=n.tryCast(this.dataItem,n.collections.CollectionViewGroup);if(r&&o){var f=r.groupDescription.propertyName,i=r.name,t=u.columns.getColumn(f),e=this.isContentHtml;return t&&(e=e||t.isContentHtml,t.header&&(f=t.header),t.dataMap?i=t.dataMap.getDisplayValue(i):t.format&&(i=n.Globalize.format(i,t.format))),n.format(o,{name:n.escapeHtml(f),value:e?i:n.escapeHtml(i),level:r.level,count:r.items.length})}return''},u.prototype._setCollapsed=function(r){var c=this,f=this.grid,o=f.rows,h=this.getCellRange(),s=new t.CellRangeEventArgs(f.cells,new t.CellRange(this.index,-1)),e;f.onGroupCollapsedChanging(s);if(!s.cancel){f.deferUpdate(function(){c._setFlag(i.Collapsed,r);for(var t=h.topRow+1;t<=h.bottomRow&&t>-1&&t<o.length;t++)o[t]._setFlag(i.ParentCollapsed,r),e=n.tryCast(o[t],u),e!=null&&e.isCollapsed&&(t=e.getCellRange().bottomRow)});f.onGroupCollapsedChanged(s)}},u.prototype.getCellRange=function(){for(var f,e=this._list,o=this.index,r=e.length-1,i=o+1;i<=r;i++)if(f=n.tryCast(e[i],u),f!=null&&f.level<=this.level){r=i-1;break}return new t.CellRange(o,0,r,this.grid.columns.length-1)},u}(e);t.GroupRow=o;f=function(i){function r(r,u){i.call(this);this._frozen=0;this._szDef=28;this._szTot=0;this._dirty=!1;this._g=n.asType(r,t.FlexGrid);this._szDef=n.asNumber(u,!1,!0)}return __extends(r,i),Object.defineProperty(r.prototype,"defaultSize",{get:function(){return this._szDef},set:function(t){this._szDef!=t&&(this._szDef=n.asNumber(t,!1,!0),this._dirty=!0,this._g.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"frozen",{get:function(){return this._frozen},set:function(t){t!=this._frozen&&(this._frozen=n.asNumber(t,!1,!0),this._dirty=!0,this._g.invalidate())},enumerable:!0,configurable:!0}),r.prototype.isFrozen=function(n){return n<this.frozen},Object.defineProperty(r.prototype,"minSize",{get:function(){return this._szMin},set:function(t){t!=this._szMin&&(this._szMin=n.asNumber(t,!0,!0),this._dirty=!0,this._g.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"maxSize",{get:function(){return this._szMax},set:function(t){t!=this._szMax&&(this._szMax=n.asNumber(t,!0,!0),this._dirty=!0,this._g.invalidate())},enumerable:!0,configurable:!0}),r.prototype.getTotalSize=function(){return this._update(),this._szTot},r.prototype.getItemAt=function(n){if(this._update(),n<=0&&this.length>0)return 0;for(var u=0,i=this.length-1,t,r;u<=i;)if(t=u+i>>>1,r=this[t],r._pos>n)i=t-1;else if(r._pos+r.renderSize<n)u=t+1;else return t;return i},r.prototype.getNextCell=function(n,i,r){var u,f;switch(i){case t.SelMove.Next:for(u=n+1;u<this.length;u++)if(this[u].renderSize>0)return u;break;case t.SelMove.Prev:for(u=n-1;u>=0;u--)if(this[u].renderSize>0)return u;break;case t.SelMove.End:for(u=this.length-1;u>=0;u--)if(this[u].renderSize>0)return u;break;case t.SelMove.Home:for(u=0;u<this.length;u++)if(this[u].renderSize>0)return u;break;case t.SelMove.NextPage:return f=this.getItemAt(this[n].pos+r),f<0?this.getNextCell(n,t.SelMove.End,r):f;case t.SelMove.PrevPage:return f=this.getItemAt(this[n].pos-r),f<0?this.getNextCell(n,t.SelMove.Home,r):f}return n},r.prototype.canMoveElement=function(n,i){var u,f,r;if(i==n||n<0||n>=this.length||i>=this.length)return!1;for(i<0&&(i=this.length-1),u=Math.min(n,i),f=Math.max(n,i),r=u;r<=f;r++)if(!this[r].allowDragging)return!1;return this[i]instanceof t._NewRowTemplate?!1:!0},r.prototype.moveElement=function(n,t){if(this.canMoveElement(n,t)){var i=this[n];this.removeAt(n);t<0&&(t=this.length);this.insert(t,i)}},r.prototype.onCollectionChanged=function(t){t===void 0&&(t=n.collections.NotifyCollectionChangedEventArgs.reset);this._dirty=!0;this._g.invalidate();i.prototype.onCollectionChanged.call(this,t)},r.prototype.push=function(n){return n._list=this,i.prototype.push.call(this,n)},r.prototype.splice=function(n,t,r){return r&&(r._list=this),i.prototype.splice.call(this,n,t,r)},r.prototype.beginUpdate=function(){this._update();i.prototype.beginUpdate.call(this)},r.prototype._update=function(){var i,n,t;if(this._dirty&&!this.isUpdating){for(this._dirty=!1,i=0,t=0;t<this.length;t++)n=this[t],n._idx=t,n._list=this,n._pos=i,i+=n.renderSize;return this._szTot=i,!0}return!1},r}(n.collections.ObservableArray);t.RowColCollection=f;s=function(n){function t(){n.apply(this,arguments);this._firstVisible=-1}return __extends(t,n),t.prototype.getColumn=function(n){var t=this.indexOf(n);return t>-1?this[t]:null},t.prototype.indexOf=function(t){var i;if(t instanceof r)return n.prototype.indexOf.call(this,t);for(i=0;i<this.length;i++)if(this[i].name==t)return i;for(i=0;i<this.length;i++)if(this[i].binding==t)return i;return-1},Object.defineProperty(t.prototype,"firstVisibleIndex",{get:function(){return this._update(),this._firstVisible},enumerable:!0,configurable:!0}),t.prototype._update=function(){if(n.prototype._update.call(this)){this._firstVisible=-1;for(var t=0;t<this.length;t++)if(this[t].visible){this._firstVisible=t;break}return!0}return!1},t.prototype._updateStarSizes=function(n){for(var u,t,e=0,f,i=0;i<this.length;i++)t=this[i],t.isVisible&&(t._szStar?(e+=r._parseStarSize(t._szStar),f=t):n-=t.renderWidth);if(f){for(u=n,i=0;i<this.length;i++)t=this[i],t.isVisible&&t._szStar&&(t==f&&u>0?t._sz=u:(t._sz=Math.max(0,Math.round(r._parseStarSize(t._szStar)/e*n)),u-=t.renderWidth));return this._dirty=!0,this._update(),!0}return!1},t}(f);t.ColumnCollection=s;h=function(t){function i(){t.apply(this,arguments);this._maxLevel=-1}return __extends(i,t),Object.defineProperty(i.prototype,"maxGroupLevel",{get:function(){return this._update(),this._maxLevel},enumerable:!0,configurable:!0}),i.prototype._update=function(){var i,r;if(t.prototype._update.call(this)){for(this._maxLevel=-1,i=0;i<this.length;i++)r=n.tryCast(this[i],o),r&&r.level>this._maxLevel&&(this._maxLevel=r.level);return!0}return!1},i}(f);t.RowCollection=h})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(i){'use strict';var r=function(){function r(t,u){var o,l,a;if(this._row=-1,this._col=-1,this._edge=0,t instanceof i.FlexGrid)this._g=t;else if(t instanceof i.GridPanel)this._p=t,t=this._g=this._p.grid;else throw'First parameter should be a FlexGrid or GridPanel.';u=n.mouseToPage(u);this._pt=u.clone();var v=t.controlRect,k=t.scrollPosition,y=t.clientSize,d=t.topLeftCells,g=t._eTL,p=t.headersVisibility,e=p&i.HeadersVisibility.Row?d.columns.getTotalSize():0,s=p&i.HeadersVisibility.Column?d.rows.getTotalSize():0,h=p&i.HeadersVisibility.Column?s+g.offsetTop:0;if(u.x-=v.left,u.y-=v.top,this._g._rtl&&(u.x=v.width-u.x),!this._p&&u.x>=0&&u.y>=g.offsetTop&&y&&u.x<=y.width+e&&u.y<=y.height+h&&(this._p=u.x<=e&&u.y<=h?t.topLeftCells:u.x<=e?t.rowHeaders:u.y<=h?t.columnHeaders:t.cells),this._p!=null){var w=this._p.rows,b=this._p.columns,f=this._p.cellType,nt=f==i.CellType.ColumnHeader||f==i.CellType.TopLeft?s:w.getTotalSize(),tt=f==i.CellType.RowHeader||f==i.CellType.TopLeft?e:b.getTotalSize(),c=this._p._getFrozenPos();if((f==i.CellType.Cell||f==i.CellType.RowHeader)&&(u.y-=s,(u.y>c.y||c.y<=0)&&(u.y-=k.y,u.y+=this._p._getOffsetY())),(f==i.CellType.Cell||f==i.CellType.ColumnHeader)&&(u.x-=e,(u.x>c.x||c.x<=0)&&(u.x-=k.x)),(f==i.CellType.ColumnHeader||f==i.CellType.TopLeft)&&(u.y-=h-s),this._row=u.y>nt?-1:w.getItemAt(u.y),this._col=u.x>tt?-1:b.getItemAt(u.x),this._row<0||this._col<0){this._p=null;return}this._edge=0;o=r._SZEDGE[this._g.isTouching?1:0];this._col>-1&&(l=b[this._col],u.x-l.pos<=o&&(this._edge|=1),l.pos+l.renderSize-u.x<=o&&(this._edge|=4));this._row>-1&&(a=w[this._row],u.y-a.pos<=o&&(this._edge|=2),a.pos+a.renderSize-u.y<=o&&(this._edge|=8))}}return Object.defineProperty(r.prototype,"point",{get:function(){return this._pt},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"cellType",{get:function(){return this._p?this._p.cellType:t.CellType.None},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"panel",{get:function(){return this._p},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"row",{get:function(){return this._row},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"col",{get:function(){return this._col},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"range",{get:function(){return new i.CellRange(this._row,this._col)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"edgeLeft",{get:function(){return(this._edge&1)!=0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"edgeTop",{get:function(){return(this._edge&2)!=0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"edgeRight",{get:function(){return(this._edge&4)!=0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"edgeBottom",{get:function(){return(this._edge&8)!=0},enumerable:!0,configurable:!0}),r._SZEDGE=[5,30],r}();i.HitTestInfo=r})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(t){'use strict';(function(n){n[n.None=0]="None";n[n.Cells=1]="Cells";n[n.ColumnHeaders=2]="ColumnHeaders";n[n.RowHeaders=4]="RowHeaders";n[n.AllHeaders=6]="AllHeaders";n[n.All=7]="All"})(t.AllowMerging||(t.AllowMerging={}));var i=t.AllowMerging,r=function(){function r(n){this._g=n}return r.prototype.getMergedRange=function(r,u,f,e){var c,g,b,v,y,nt,k,p,w;e===void 0&&(e=!0);var o,l,h=r.cellType,s=r.columns,a=r.rows,d=a[u],tt=s[f];if(d instanceof t._NewRowTemplate)return null;if(d instanceof t.GroupRow&&d.dataItem instanceof n.collections.CollectionViewGroup){if(o=new t.CellRange(u,f),tt.aggregate==n.Aggregate.None){while(o.col>0&&s[o.col-1].aggregate==n.Aggregate.None&&o.col!=s.frozen)o.col--;while(o.col2<s.length-1&&s[o.col2+1].aggregate==n.Aggregate.None&&o.col2+1!=s.frozen)o.col2++}while(o.col<f&&!s[o.col].visible)o.col++;return o.isSingleCell?null:o}c=!1;switch(this._g.allowMerging){case i.None:c=!0;break;case i.Cells:c=h!=t.CellType.Cell;break;case i.ColumnHeaders:c=h!=t.CellType.ColumnHeader&&h!=t.CellType.TopLeft;break;case i.RowHeaders:c=h!=t.CellType.RowHeader&&h!=t.CellType.TopLeft;break;case i.AllHeaders:c=h==t.CellType.Cell}if(c)return null;if(s[f].allowMerging){for(o=new t.CellRange(u,f),g=0,b=a.length-1,u>=a.frozen?e&&(h==t.CellType.Cell||h==t.CellType.RowHeader)&&(l=r._getViewRange(!0),g=l.topRow,b=l.bottomRow):b=a.frozen-1,v=u-1;v>=g&&this._mergeCell(r,v,f,u,f);v--)o.row=v;for(y=u+1;y<=b&&this._mergeCell(r,u,f,y,f);y++)o.row2=y;while(o.row<u&&!a[o.row].visible)o.row++;if(!o.isSingleCell)return o}if(a[u].allowMerging){for(o=new t.CellRange(u,f),nt=0,k=s.length-1,f>=s.frozen?e&&(h==t.CellType.Cell||h==t.CellType.ColumnHeader)&&(l=r._getViewRange(!0),nt=l.leftCol,k=l.rightCol):k=s.frozen-1,p=f-1;p>=nt&&this._mergeCell(r,u,p,u,f);p--)o.col=p;for(w=f+1;w<=k&&this._mergeCell(r,u,f,u,w);w++)o.col2=w;while(o.col<f&&!s[o.col].visible)o.col++;if(!o.isSingleCell)return o}return null},r.prototype._mergeCell=function(n,i,r,u,f){var e=n.rows[i],o=n.rows[u];return e instanceof t.GroupRow||e instanceof t._NewRowTemplate||o instanceof t.GroupRow||o instanceof t._NewRowTemplate?!1:i!=u&&n.rows.isFrozen(i)!=n.rows.isFrozen(u)?!1:r!=f&&n.columns.isFrozen(r)!=n.columns.isFrozen(f)?!1:i!=u&&(r>0&&(e.allowMerging&&this._mergeCell(n,i,r-1,i,r)||o.allowMerging&&this._mergeCell(n,u,r-1,u,r))||f<n.columns.length-1&&(e.allowMerging&&this._mergeCell(n,i,f,i,f+1)||o.allowMerging&&this._mergeCell(n,u,f,u,f+1)))?!1:n.getCellData(i,r,!0)!=n.getCellData(u,f,!0)?!1:!0},r}();t.MergeManager=r})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(t){'use strict';var i=function(){function t(t,i,r){var f,u;if(this.mapChanged=new n.Event,n.isArray(t)&&!i&&!r){for(f=[],u=0;u<t.length;u++)f.push({value:t[u]});t=f;i=r='value'}this._cv=n.asCollectionView(t);this._keyPath=n.asString(i,!1);this._displayPath=n.asString(r,!1);this._cv.collectionChanged.addHandler(this.onMapChanged,this)}return Object.defineProperty(t.prototype,"sortByDisplayValues",{get:function(){return this._sortByKey!=!0},set:function(t){this._sortByKey=!n.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"collectionView",{get:function(){return this._cv},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedValuePath",{get:function(){return this._keyPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayMemberPath",{get:function(){return this._displayPath},enumerable:!0,configurable:!0}),t.prototype.getKeyValue=function(n){var t=this._indexOf(n,this._displayPath,!1);return t>-1?this._cv.sourceCollection[t][this._keyPath]:null},t.prototype.getDisplayValue=function(n){var t=this._indexOf(n,this._keyPath,!0);return t>-1?this._cv.sourceCollection[t][this._displayPath]:n},t.prototype.getDisplayValues=function(){var i=[],t,n;if(this._cv&&this._displayPath)for(t=this._cv.items,n=0;n<t.length;n++)i.push(t[n][this._displayPath]);return i},t.prototype.getKeyValues=function(){var i=[],t,n;if(this._cv&&this._keyPath)for(t=this._cv.items,n=0;n<t.length;n++)i.push(t[n][this._keyPath]);return i},Object.defineProperty(t.prototype,"isEditable",{get:function(){return this._editable},set:function(t){this._editable=n.asBoolean(t)},enumerable:!0,configurable:!0}),t.prototype.onMapChanged=function(){this.mapChanged.raise(this)},t.prototype._indexOf=function(n,t,i){var u,r;if(this._cv&&t){var f=n!=null?n.toString():'',e=i?f:f.toLowerCase(),o=this._cv.sourceCollection;for(u=0;u<o.length;u++)if((r=o[u][t],r==n)||!i&&r.length==e.length&&r.toLowerCase()==e||r!=null&&r.toString()==f)return u}return-1},t}();t.DataMap=i})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(t){'use strict';var r,f,i,u;(function(n){n[n.None=0]="None";n[n.Cell=1]="Cell";n[n.CellRange=2]="CellRange";n[n.Row=3]="Row";n[n.RowRange=4]="RowRange";n[n.ListBox=5]="ListBox"})(t.SelectionMode||(t.SelectionMode={}));r=t.SelectionMode,function(n){n[n.None=0]="None";n[n.Selected=1]="Selected";n[n.Cursor=2]="Cursor"}(t.SelectedState||(t.SelectedState={}));f=t.SelectedState,function(n){n[n.None=0]="None";n[n.Next=1]="Next";n[n.Prev=2]="Prev";n[n.NextPage=3]="NextPage";n[n.PrevPage=4]="PrevPage";n[n.Home=5]="Home";n[n.End=6]="End";n[n.NextCell=7]="NextCell";n[n.PrevCell=8]="PrevCell"}(t.SelMove||(t.SelMove={}));i=t.SelMove;u=function(){function u(n){this._sel=new t.CellRange(0,0);this._mode=r.CellRange;this._g=n}return Object.defineProperty(u.prototype,"selectionMode",{get:function(){return this._mode},set:function(n){var u,i;if(n!=this._mode){if(n==r.ListBox||this._mode==r.ListBox)for(u=this._g.rows,i=0;i<u.length;i++)u[i]._setFlag(t.RowColFlags.Selected,n==r.ListBox?this._sel.containsRow(i):!1,!1);switch(n){case r.None:this._sel.setRange(-1,-1);break;case r.Cell:this._sel.row2=this._sel.row;this._sel.col2=this._sel.col;break;case r.Row:this._sel.row2=this._sel.row}this._mode=n;this._g.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"selection",{get:function(){return this._sel},set:function(n){this.select(n)},enumerable:!0,configurable:!0}),u.prototype.select=function(i,u){var h,c,o,l;u===void 0&&(u=!0);n.isNumber(i)&&n.isNumber(u)&&(i=new t.CellRange(i,u),u=!0);i=n.asType(i,t.CellRange);var f=this._g,a=this._sel,e=i,s=!1;switch(f.selectionMode){case r.Cell:i.row2=i.row;i.col2=i.col;break;case r.Row:i.row2=i.row;break;case r.ListBox:s=!0}if(h=e.equals(a),s&&e.row>-1&&!f.rows[e.row].isSelected&&(h=!1),h){u&&f.scrollIntoView(e.row,e.col);return}if(c=new t.CellRangeEventArgs(f.cells,e),f.onSelectionChanging(c)){if(s){for(o=0;o<f.rows.length;o++)f.rows[o]._setFlag(t.RowColFlags.Selected,e.containsRow(o),!1);f.refreshCells(!1,!0,!0)}e.row=Math.min(e.row,f.rows.length-1);e.row2=Math.min(e.row2,f.rows.length-1);this._sel=e;f.refreshCells(!1,!0,!0);u&&f.scrollIntoView(e.row,e.col);f.collectionView&&(l=f._getCvIndex(e.row),f.collectionView.moveCurrentToPosition(l));f.onSelectionChanged(c)}},u.prototype.moveSelection=function(n,r,u){var e,f,h=this._g,l=h.rows,c=h.columns,o=this._getReferenceCell(n,r,u),s=Math.max(0,h.clientSize.height-h.columnHeaders.height),a;r==i.NextCell?(f=c.getNextCell(o.col,i.Next,s),e=o.row,f==o.col&&(e=l.getNextCell(e,i.Next,s),e>o.row&&(f=c.getNextCell(0,i.Next,s),f=c.getNextCell(f,i.Prev,s))),h.select(e,f)):r==i.PrevCell?(f=c.getNextCell(o.col,i.Prev,s),e=o.row,f==o.col&&(e=l.getNextCell(e,i.Prev,s),e<o.row&&(f=c.getNextCell(c.length-1,i.Prev,s),f=c.getNextCell(f,i.Next,s))),h.select(e,f)):(e=l.getNextCell(o.row,n,s),f=c.getNextCell(o.col,r,s),u?(a=h._selHdl._sel,h.select(new t.CellRange(e,f,a.row2,a.col2))):h.select(e,f))},u.prototype._getReferenceCell=function(n,t){var f=this._g,u=f._selHdl._sel,r=f.getMergedRange(f.cells,u.row,u.col);if(!r||r.isSingleCell)return u;r=r.clone();switch(n){case i.Next:case i.NextCell:r.row=r.bottomRow;break;case i.None:r.row=u.row}switch(t){case i.Next:case i.NextCell:r.col=r.rightCol;break;case i.None:r.col=u.col}return r},u.prototype._adjustSelection=function(n){switch(this._mode){case r.Cell:return new t.CellRange(n.row,n.col,n.row,n.col);case r.Row:return new t.CellRange(n.row,0,n.row,this._g.columns.length-1);case r.RowRange:case r.ListBox:return new t.CellRange(n.row,0,n.row2,this._g.columns.length-1)}return n},u}();t._SelectionHandler=u})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(t){'use strict';var i=function(){function i(n){this._g=n;n.addEventListener(n.hostElement,'keypress',this._keypress.bind(this));n.addEventListener(n.hostElement,'keydown',this._keydown.bind(this))}return i.prototype._keydown=function(i){var r=this._g,e=r.selection,f=i.ctrlKey||i.metaKey,u=i.shiftKey,a=i.target,o=!0,v,l;if(r.isRangeValid(e)&&!i.defaultPrevented){if(!r.activeEditor&&r._isInputElement(a)&&!a.getAttribute('wj-part'))return;if(r.activeEditor&&r._edtHdl._keydown(i))return;var h=n.tryCast(r.rows[e.row],t.GroupRow),c=n.tryCast(r.collectionView,'IEditableCollectionView'),s=i.keyCode;if(r.autoClipboard){if(f&&(s==67||s==45)){if(l=new t.CellRangeEventArgs(r.cells,e),r.onCopying(l)){v=r.getClipString();n.Clipboard.copy(v);r.onCopied(l)}i.stopPropagation();return}if(f&&s==86||u&&s==45){r.isReadOnly||(l=new t.CellRangeEventArgs(r.cells,e),r.onPasting(l)&&n.Clipboard.paste(function(n){r.setClipString(n);r.onPasted(l)}));i.stopPropagation();return}}if(r._rtl)switch(s){case n.Key.Left:s=n.Key.Right;break;case n.Key.Right:s=n.Key.Left}switch(s){case 65:f?r.select(new t.CellRange(0,0,r.rows.length-1,r.columns.length-1)):o=!1;break;case n.Key.Left:e.isValid&&e.col==0&&h!=null&&!h.isCollapsed&&h.hasChildren?h.isCollapsed=!0:this._moveSel(t.SelMove.None,f?t.SelMove.Home:t.SelMove.Prev,u);break;case n.Key.Right:e.isValid&&e.col==0&&h!=null&&h.isCollapsed?h.isCollapsed=!1:this._moveSel(t.SelMove.None,f?t.SelMove.End:t.SelMove.Next,u);break;case n.Key.Up:if(i.altKey&&r._edtHdl._toggleListBox(this._g.selection))break;this._moveSel(f?t.SelMove.Home:t.SelMove.Prev,t.SelMove.None,u);break;case n.Key.Down:if(i.altKey&&r._edtHdl._toggleListBox(this._g.selection))break;this._moveSel(f?t.SelMove.End:t.SelMove.Next,t.SelMove.None,u);break;case n.Key.PageUp:this._moveSel(t.SelMove.PrevPage,t.SelMove.None,u);break;case n.Key.PageDown:this._moveSel(t.SelMove.NextPage,t.SelMove.None,u);break;case n.Key.Home:this._moveSel(f?t.SelMove.Home:t.SelMove.None,t.SelMove.Home,u);break;case n.Key.End:this._moveSel(f?t.SelMove.End:t.SelMove.None,t.SelMove.End,u);break;case n.Key.Tab:this._moveSel(t.SelMove.None,u?t.SelMove.PrevCell:t.SelMove.NextCell,!1);break;case n.Key.Enter:this._moveSel(u?t.SelMove.Prev:t.SelMove.Next,t.SelMove.None,!1);!u&&c&&c.currentEditItem!=null&&r._edtHdl._commitRowEdits();break;case n.Key.Escape:c&&(c.currentEditItem!=null&&c.cancelEdit(),c.currentAddItem!=null&&c.cancelNew());r._mouseHdl.resetMouseState();break;case n.Key.Delete:o=this._deleteSel();break;case n.Key.F2:o=r.startEditing(!0);break;case n.Key.F4:o=r._edtHdl._toggleListBox(this._g.selection);break;case n.Key.Space:o=r.startEditing(!0);o&&setTimeout(function(){var t=r.activeEditor;t&&(t.type=='checkbox'?(t.checked=!t.checked,r.finishEditing()):n.setSelectionRange(t,t.value.length))});break;default:o=!1}o&&(i.preventDefault(),i.stopPropagation())}},i.prototype._keypress=function(t){var i=this._g;i.activeEditor?i._edtHdl._keypress(t):t.charCode>n.Key.Space&&i.startEditing(!1)&&i.activeEditor&&setTimeout(function(){var r=i.activeEditor;r&&r.type!='checkbox'&&(r.value=String.fromCharCode(t.charCode),n.setSelectionRange(r,1),r.dispatchEvent(i._edtHdl._evtInput),i._edtHdl._keypress(t))});t.stopPropagation()},i.prototype._moveSel=function(n,i,r){this._g.selectionMode!=t.SelectionMode.None&&this._g._selHdl.moveSelection(n,i,r)},i.prototype._deleteSel=function(){var i=this._g,f=n.tryCast(i.collectionView,'IEditableCollectionView'),u=i.selection,o=i.rows,e=[],h,a,r,s,c,l;if(i.allowDelete&&!i.isReadOnly&&(f==null||f.canRemove&&!f.isAddingNew&&!f.isEditingItem))switch(i.selectionMode){case t.SelectionMode.CellRange:if(u.leftCol==0&&u.rightCol==i.columns.length-1)for(r=u.topRow;r>-1&&r<=u.bottomRow;r++)e.push(o[r]);break;case t.SelectionMode.ListBox:for(r=0;r<o.length;r++)o[r].isSelected&&e.push(o[r]);break;case t.SelectionMode.Row:u.topRow>-1&&e.push(o[u.topRow]);break;case t.SelectionMode.RowRange:for(r=u.topRow;r>-1&&r<=u.bottomRow;r++)e.push(o[r])}if(e.length>0){for(f&&f.beginUpdate(),i.beginUpdate(),h=new t.CellRange,a=new t.CellRangeEventArgs(i.cells,h),r=e.length-1;r>=0;r--)if(s=e[r],h.row=h.row2=s.index,i.onDeletingRow(a)){f&&s.dataItem?f.remove(s.dataItem):i.rows.removeAt(s.index);i.onDeletedRow(a)}return i.endUpdate(),f&&f.endUpdate(),i.selectionMode==t.SelectionMode.ListBox&&(c=i.selection.row,c>-1&&c<i.rows.length&&(i.rows[c].isSelected=!0)),i.childItemsPath&&i.collectionView&&i.collectionView.refresh(),!0}return!i.isReadOnly&&e.length==0&&u.isSingleCell&&(l=i._getBindingColumn(i.cells,u.row,i.columns[u.col]),(l.required==!1||l.required==null&&l.dataType==n.DataType.String)&&i.getCellData(u.row,u.col,!0)&&i.startEditing(!1,u.row,u.col))?(i.setCellData(u.row,u.col,'',!0),i.finishEditing(!0),i.invalidate(),!0):!1},i}();t._KeyboardHandler=i})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(t){'use strict';var i=4,r,e,u,f;(function(n){n[n.None=0]="None";n[n.Columns=1]="Columns";n[n.Rows=2]="Rows";n[n.Both=3]="Both";n[n.ColumnsAllCells=n.Columns|i]="ColumnsAllCells";n[n.RowsAllCells=n.Rows|i]="RowsAllCells";n[n.BothAllCells=n.Both|i]="BothAllCells"})(t.AllowResizing||(t.AllowResizing={}));r=t.AllowResizing,function(n){n[n.None=0]="None";n[n.Headers=1]="Headers";n[n.Cells=2]="Cells";n[n.Both=3]="Both"}(t.AutoSizeMode||(t.AutoSizeMode={}));e=t.AutoSizeMode,function(n){n[n.None=0]="None";n[n.Columns=1]="Columns";n[n.Rows=2]="Rows";n[n.Both=3]="Both"}(t.AllowDragging||(t.AllowDragging={}));u=t.AllowDragging;f=function(){function f(t){var r=this,i=t.hostElement,u,f;this._g=t;t.addEventListener(i,'mousedown',function(n){n.defaultPrevented||n.button!=0||(t.addEventListener(document,'mousemove',u),t.addEventListener(document,'mouseup',f),r._mousedown(n))});u=function(n){r._mousemove(n)};f=function(n){t.removeEventListener(document,'mousemove');t.removeEventListener(document,'mouseup');r._mouseup(n)};t.addEventListener(i,'mousemove',this._hover.bind(this));t.addEventListener(i,'dblclick',this._dblclick.bind(this));t.addEventListener(i,'selectstart',function(n){n.target.tagName!='INPUT'&&n.preventDefault()});t.addEventListener(i,'onmousewheel'in document?'mousewheel':'DOMMouseScroll',function(i){var r=t.cells.hostElement.parentElement;r.scrollHeight>r.offsetHeight&&(i.wheelDelta>0&&r.scrollTop==0||i.wheelDelta<0&&r.scrollTop+r.offsetHeight>=r.scrollHeight)&&n.closest(i.target,'.wj-flexgrid')==t.hostElement&&(i.preventDefault(),i.stopPropagation())});t.addEventListener(i,'dragstart',this._dragstart.bind(this));t.addEventListener(i,'dragover',this._dragover.bind(this));t.addEventListener(i,'dragleave',this._dragover.bind(this));t.addEventListener(i,'drop',this._drop.bind(this));t.addEventListener(i,'dragend',this._dragend.bind(this));this._dvMarker=n.createElement('<div class="wj-marker">&nbsp;</div>')}return f.prototype.resetMouseState=function(){var n,t;this._dragSource&&(this._dragSource.style.opacity=1);this._showDragMarker(null);n=this._g.hostElement;n&&(n.style.cursor='default');t=this._g;t.removeEventListener(document,'mousemove');t.removeEventListener(document,'mouseup');this._htDown=null;this._lbSelRows=null;this._szRowCol=null;this._szArgs=null;this._dragSource=null},f.prototype._mousedown=function(i){var r=this._g,f,o,s,e,h;if(r._rcBounds=null,f=r.hitTest(i),o=f.cellType,o==t.CellType.None){r.finishEditing();return}if((o!=t.CellType.Cell||!r.editRange||!r.editRange.contains(f.range))&&(s=n.getActiveElement(),i.target!=s||!r._isInputElement(i.target))){if(i.target!=s&&r.focus(),this._htDown=f,this._eMouse=i,this._szRowCol!=null){this._handleResizing(i);return}switch(o){case t.CellType.Cell:i.ctrlKey&&r.selectionMode==t.SelectionMode.ListBox&&this._startListBoxSelection(f.row);this._mouseSelect(i,i.shiftKey);break;case t.CellType.RowHeader:(this._g.allowDragging&u.Rows)==0&&(i.ctrlKey&&r.selectionMode==t.SelectionMode.ListBox&&this._startListBoxSelection(f.row),this._mouseSelect(i,i.shiftKey))}if(o==t.CellType.Cell&&r.rows.maxGroupLevel>-1&&(e=n.tryCast(r.rows[f.row],t.GroupRow),h=n.closest(i.target,'['+t.CellFactory._WJA_COLLAPSE+']'),e&&h)){i.ctrlKey?r.collapseGroupsToLevel(e.isCollapsed?e.level+1:e.level):e.isCollapsed=!e.isCollapsed;this.resetMouseState();i.preventDefault();return}}},f.prototype._mousemove=function(n){var i=this;if(this._htDown!=null)if(setTimeout(function(){n.which&&i._g.containsFocus()||i.resetMouseState()}),this._eMouse=n,this._szRowCol)this._handleResizing(n);else switch(this._htDown.cellType){case t.CellType.Cell:this._mouseSelect(n,!0);break;case t.CellType.RowHeader:(this._g.allowDragging&u.Rows)==0&&this._mouseSelect(n,!0)}},f.prototype._mouseup=function(n){var i,r,u,f;this._dragSource&&this._g.isTouching||(i=this._htDown,!i||i.cellType!=t.CellType.TopLeft||this._szArgs||n.defaultPrevented?this._szArgs?this._finishResizing(n):this._handleSort(n):(r=this._g,u=r.hitTest(n),u.panel==i.panel&&u.row==i.row&&u.col==i.col&&(f=r.getMergedRange(i.panel,i.row,i.col)||u.range,f.row==0&&f.col==0&&r.select(new t.CellRange(0,0,r.rows.length-1,r.columns.length-1)))),this.resetMouseState())},f.prototype._dblclick=function(n){var u=this._g,e=u.hitTest(n),o=e.cellType,l=u.selection,s=e.range,f,h,c;if(!n.defaultPrevented){if(e.edgeRight&&u.allowResizing&r.Columns){if(o==t.CellType.ColumnHeader||o==t.CellType.Cell&&u.allowResizing&i){for(n.preventDefault(),n.ctrlKey&&l.containsColumn(e.col)&&(s=l),h=s.leftCol;h<=s.rightCol;h++)if(u.columns[h].allowResizing&&(f=new t.CellRangeEventArgs(u.cells,new t.CellRange(-1,h)),u.onAutoSizingColumn(f)&&u.onResizingColumn(f))){u.autoSizeColumn(h);u.onResizedColumn(f);u.onAutoSizedColumn(f)}}else if(o==t.CellType.TopLeft&&u.topLeftCells.columns[e.col].allowResizing&&(n.preventDefault(),f=new t.CellRangeEventArgs(u.topLeftCells,new t.CellRange(-1,e.col)),u.onAutoSizingColumn(f)&&u.onResizingColumn(f))){u.autoSizeColumn(e.col,!0);u.onAutoSizedColumn(f);u.onResizedColumn(f)}this.resetMouseState();return}if(e.edgeBottom&&u.allowResizing&r.Rows){if(o==t.CellType.RowHeader||o==t.CellType.Cell&&u.allowResizing&i){for(n.ctrlKey&&l.containsRow(e.row)&&(s=l),c=s.topRow;c<=s.bottomRow;c++)if(u.rows[c].allowResizing&&(f=new t.CellRangeEventArgs(u.cells,new t.CellRange(c,-1)),u.onAutoSizingRow(f)&&u.onResizingRow(f))){u.autoSizeRow(c);u.onResizedRow(f);u.onAutoSizedRow(f)}}else if(o==t.CellType.TopLeft&&u.topLeftCells.rows[e.row].allowResizing&&(f=new t.CellRangeEventArgs(u.topLeftCells,new t.CellRange(e.row,-1)),u.onAutoSizingRow(f)&&u.onResizingRow(f))){u.autoSizeRow(e.row,!0);u.onResizedRow(f);u.onAutoSizedRow(f)}this.resetMouseState()}}},f.prototype._hover=function(n){if(this._htDown==null){var f=this._g,u=f.hitTest(n),o=u.panel,e=u.cellType,s='default';this._szRowCol=null;(e==t.CellType.ColumnHeader||e==t.CellType.TopLeft||e==t.CellType.Cell&&f.allowResizing&i)&&f.allowResizing&r.Columns&&u.edgeRight&&o.columns[u.col].allowResizing&&(this._szRowCol=o.columns[u.col]);(e==t.CellType.RowHeader||e==t.CellType.TopLeft||e==t.CellType.Cell&&f.allowResizing&i)&&f.allowResizing&r.Rows&&u.edgeBottom&&o.rows[u.row].allowResizing&&(this._szRowCol=o.rows[u.row]);this._szRowCol instanceof t.Column?s='col-resize':this._szRowCol instanceof t.Row&&(s='row-resize');this._szStart=this._szRowCol?this._szRowCol.renderSize:0;f.hostElement.style.cursor=s}},f.prototype._mouseSelect=function(i,r){var f=this,u;this._htDown&&this._htDown.panel&&this._g.selectionMode!=t.SelectionMode.None&&(u=new t.HitTestInfo(this._htDown.panel,i),this._handleSelection(u,r),this._g._isInputElement(i.target)||i.preventDefault(),!n.isIE9()&&i.button>=0&&(u=new t.HitTestInfo(this._g,i),u.cellType!=t.CellType.Cell&&u.cellType!=t.CellType.RowHeader&&setTimeout(function(){f._mouseSelect(f._eMouse,r)},100)))},f.prototype._handleResizing=function(n){var r,u,i;n.preventDefault();this._szRowCol instanceof t.Column&&(r=n.clientX+pageXOffset,i=Math.round(Math.max(1,this._szStart+(r-this._htDown.point.x)*(this._g._rtl?-1:1))),this._szRowCol.renderSize!=i&&(this._szArgs==null&&(this._szArgs=new t.CellRangeEventArgs(this._htDown.panel,new t.CellRange(-1,this._szRowCol.index))),this._szArgs.cancel=!1,this._g.onResizingColumn(this._szArgs)&&(this._g.deferResizing||this._g.isTouching?this._showResizeMarker(i):this._szRowCol.width=i)));this._szRowCol instanceof t.Row&&(u=n.clientY+pageYOffset,i=Math.round(Math.max(1,this._szStart+(u-this._htDown.point.y))),this._szRowCol.renderSize!=i&&(this._szArgs==null&&(this._szArgs=new t.CellRangeEventArgs(this._htDown.panel,new t.CellRange(this._szRowCol.index,-1))),this._szArgs.cancel=!1,this._g.onResizingRow(this._szArgs)&&(this._g.deferResizing||this._g.isTouching?this._showResizeMarker(i):this._szRowCol.height=i)))},f.prototype._dragstart=function(n){var i=this._g,r=this._htDown,f,e;r&&(this._dragSource=null,this._szRowCol||(f=new t.CellRangeEventArgs(i.cells,r.range),r.cellType==t.CellType.ColumnHeader&&i.allowDragging&u.Columns&&r.col>-1&&i.columns[r.col].allowDragging?i.onDraggingColumn(f)&&(this._dragSource=n.target):r.cellType==t.CellType.RowHeader&&i.allowDragging&u.Rows&&r.row>-1&&i.rows[r.row].allowDragging&&(e=i.rows[r.row],e instanceof t.GroupRow||e instanceof t._NewRowTemplate||i.onDraggingRow(f)&&(this._dragSource=n.target))),this._dragSource&&n.dataTransfer?(n.dataTransfer.effectAllowed='move',n.dataTransfer.setData('text',''),this._dragSource.style.opacity=.5,n.stopPropagation(),i.beginUpdate()):n.preventDefault())},f.prototype._dragend=function(){this._g.endUpdate();this.resetMouseState()},f.prototype._dragover=function(n){var r=this._g,i=r.hitTest(n),u=!1;this._htDown&&i.cellType==this._htDown.cellType&&(i.cellType==t.CellType.ColumnHeader?u=r.columns.canMoveElement(this._htDown.col,i.col):i.cellType==t.CellType.RowHeader&&(u=r.rows.canMoveElement(this._htDown.row,i.row)));u?(n.dataTransfer.dropEffect='move',n.preventDefault(),this._showDragMarker(i)):this._showDragMarker(null)},f.prototype._drop=function(n){var i=this._g,r=i.hitTest(n),f=new t.CellRangeEventArgs(i.cells,r.range),u;if(this._htDown&&r.cellType==this._htDown.cellType)if(u=i.selection,r.cellType==t.CellType.ColumnHeader){i.columns.moveElement(this._htDown.col,r.col);i.select(u.row,r.col);i.onDraggedColumn(f)}else if(r.cellType==t.CellType.RowHeader){i.rows.moveElement(this._htDown.row,r.row);i.select(r.row,u.col);i.onDraggedRow(f)}this.resetMouseState()},f.prototype._showResizeMarker=function(i){var u=this._g,f=this._dvMarker,r;f.parentElement||u.cells.hostElement.appendChild(f);this._szRowCol instanceof t.Column?(r={display:'',left:this._szRowCol.pos+i-1,top:0,right:'',bottom:0,width:3,height:'',zIndex:1e3},u._rtl&&(r.left=f.parentElement.clientWidth-r.left-r.width),this._htDown.panel.cellType==t.CellType.TopLeft&&(r.left-=u.topLeftCells.hostElement.offsetWidth)):(r={left:0,top:this._szRowCol.pos+i-1,right:0,bottom:'',width:'',height:3,zIndex:1e3},this._htDown.panel.cellType==t.CellType.TopLeft&&(r.top-=u.topLeftCells.hostElement.offsetHeight));n.setCss(f,r)},f.prototype._showDragMarker=function(i){var f=this._g,u=this._dvMarker,r,e,o;if(!i){u.parentElement&&u.parentElement.removeChild(u);this._rngTarget=null;return}if(!i.range.equals(this._rngTarget)){this._rngTarget=i.range;u.parentElement||i.panel.hostElement.appendChild(u);r={display:'',left:0,top:0,width:6,height:6};switch(i.cellType){case t.CellType.ColumnHeader:r.height=i.panel.height;e=f.columns[i.col];r.left=e.pos-r.width/2;i.col>this._htDown.col&&(r.left+=e.renderWidth);f._rtl&&(r.left=u.parentElement.clientWidth-r.left-r.width);break;case t.CellType.RowHeader:r.width=i.panel.width;o=f.rows[i.row];r.top=o.pos-r.height/2;i.row>this._htDown.row&&(r.top+=o.renderHeight)}n.setCss(u,r)}},f.prototype._finishResizing=function(n){var r=this._g,o=r.selection,h=this._eMouse.ctrlKey,i=this._szArgs,c=n.clientX+pageXOffset,l=n.clientY+pageYOffset,u,s,f,e;if(i&&!i.cancel&&i.col>-1){u=i.col;s=Math.round(Math.max(1,this._szStart+(c-this._htDown.point.x)*(this._g._rtl?-1:1)));i.panel.columns[u].width=Math.round(s);r.onResizedColumn(i);if(h&&this._htDown.cellType==t.CellType.ColumnHeader&&o.containsColumn(u))for(f=o.leftCol;f<=o.rightCol;f++)if(r.columns[f].allowResizing&&f!=u&&(i=new t.CellRangeEventArgs(r.cells,new t.CellRange(-1,f)),r.onResizingColumn(i))){r.columns[f].size=r.columns[u].size;r.onResizedColumn(i)}}if(i&&!i.cancel&&i.row>-1){u=i.row;s=Math.round(Math.max(1,this._szStart+(l-this._htDown.point.y)));i.panel.rows[u].height=Math.round(s);r.onResizedRow(i);if(h&&this._htDown.cellType==t.CellType.RowHeader&&o.containsRow(u))for(e=o.topRow;e<=o.bottomRow;e++)if(r.rows[e].allowResizing&&e!=u&&(i=new t.CellRangeEventArgs(r.cells,new t.CellRange(e,-1)),r.onResizingRow(i))){r.rows[e].size=r.rows[u].size;r.onResizedRow(i)}}},f.prototype._startListBoxSelection=function(n){var i=this._g.rows,t;for(this._lbSelState=!i[n].isSelected,this._lbSelRows={},t=0;t<i.length;t++)i[t].isSelected&&(this._lbSelRows[t]=!0)},f.prototype._handleSelection=function(n,i){var u=this._g,o=u.rows,e=u.selection,f=new t.CellRange(n.row,n.col),r,s,h;if(n.row>-1&&n.col>-1)if(this._lbSelRows!=null){for(f=new t.CellRange(n.row,n.col,this._htDown.row,this._htDown.col),r=0;r<o.length;r++)if(s=f.containsRow(r)?this._lbSelState:this._lbSelRows[r]!=null,s!=o[r].isSelected&&(h=new t.CellRangeEventArgs(u.cells,new t.CellRange(r,e.col,r,e.col2)),u.onSelectionChanging(h))){o[r].isSelected=s;u.onSelectionChanged(h)}u.scrollIntoView(n.row,n.col)}else n.cellType==t.CellType.RowHeader&&(f.col=0,f.col2=u.columns.length-1),i&&(f.row2=e.row2,f.col2=e.col2),u.select(f)},f.prototype._handleSort=function(i){var u=this._g,o=u.collectionView,r=u.hitTest(i),s,a,h,e;if(this._htDown&&r.cellType==this._htDown.cellType&&r.col==this._htDown.col&&r.cellType==t.CellType.ColumnHeader&&!r.edgeRight&&r.col>-1&&o&&o.canSort&&u.allowSorting){var c=u.getMergedRange(r.panel,r.row,r.col),v=c?c.row2:r.row,l=u.columns[r.col],f=u._getBindingColumn(r.panel,r.row,l);if((v==u._getSortRowIndex()||l!=f)&&(s=f.currentSort,a=s!='+',f.allowSorting&&f.binding)){if(!s&&i.ctrlKey)return;if(h=new t.CellRangeEventArgs(u.columnHeaders,new t.CellRange(-1,r.col)),u.onSortingColumn(h)){e=o.sortDescriptions;i.ctrlKey?e.clear():e.splice(0,e.length,new n.collections.SortDescription(f._getBindingSort(),a));u.onSortedColumn(h)}}}},f}();t._MouseHandler=f})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(t){'use strict';var i=function(){function i(i){var r=this;this._fullEdit=!1;this._list=null;this._g=i;this._evtInput=document.createEvent('HTMLEvents');this._evtInput.initEvent('input',!0,!1);i.selectionChanging.addHandler(function(n,t){var u;if(r.finishEditing(),u=i._selHdl._sel.row,u!=t.row){var f=i.rows.length,e=u>-1&&u<f?i.rows[u].dataItem:null,o=t.row>-1&&t.row<f?i.rows[t.row].dataItem:null;e!=o&&r._commitRowEdits()}});i.lostFocus.addHandler(function(){if(!r._g.containsFocus()){var t=n.getActiveElement();t&&getComputedStyle(t).position=='fixed'||r._commitRowEdits()}});i.addEventListener(i.hostElement,'mousedown',function(u){var o,e,f,s;if(!i._mouseHdl._szRowCol)if(o=i.selection,e=i.hitTest(u),r._htDown=null,r._cancelClick=!1,e.cellType!=t.CellType.Cell&&e.cellType!=t.CellType.None)r._lbx&&n.contains(r._lbx.hostElement,u.target)||r._commitRowEdits();else if(e.cellType!=t.CellType.None){if(f=n.tryCast(u.target,HTMLInputElement),f&&f.type=='checkbox'&&n.hasClass(f.parentElement,'wj-cell')&&(f!=r.activeEditor?(r.startEditing(!1,e.row,e.col),setTimeout(function(){f=r.activeEditor;f&&f.type=='checkbox'?(f.checked=!f.checked,f.focus(),r.finishEditing()):r._cancelClick=!0})):r.finishEditing()),s=document.elementFromPoint(u.clientX,u.clientY),n.closest(s,'['+t.CellFactory._WJA_DROPDOWN+']')){r._toggleListBox(e.range);r._htDown=null;u.preventDefault();return}f==null&&e.row==o.row&&e.col==o.col&&(r._htDown=e)}},!0);i.addEventListener(i.hostElement,'click',function(n){if(r._cancelClick){n.preventDefault();n.stopPropagation();return}if(r._htDown&&!r.activeEditor){var t=i.hitTest(n);t.range.equals(r._htDown.range)&&r.startEditing(!0,t.row,t.col)}},!0)}return i.prototype.startEditing=function(i,r,u,f){var e,s,h,c,l,a,o;if((i===void 0&&(i=!0),e=this._g,r=n.asNumber(r,!0,!0),u=n.asNumber(u,!0,!0),r==null&&(r=e.selection.row),u==null&&(u=e.selection.col),f==null&&(f=!0),!this._allowEditing(r,u))||(s=e.getMergedRange(e.cells,r,u),s||(s=new t.CellRange(r,u)),h=e.rows[r].dataItem,e.select(s,!0),!e.rows[r]||h!=e.rows[r].dataItem))return!1;if(s.equals(this._rng))return!0;if(c=new t.CellRangeEventArgs(e.cells,s),!e.onBeginningEdit(c))return!1;if(l=n.tryCast(e.collectionView,'IEditableCollectionView'),l&&(h=e.rows[r].dataItem,l.editItem(h)),this._fullEdit=i,this._rng=s,this._list=null,a=e.columns[u].dataMap,a&&(this._list=a.getDisplayValues()),e.refresh(!1),o=this._edt,o){o.type=='checkbox'?this._fullEdit=!1:f&&n.setSelectionRange(o,0,o.value.length);e.onPrepareCellForEdit(c);o=this._edt;o&&f&&o.focus()}return!0},i.prototype.finishEditing=function(i){var u,h,l,o,s;if(i===void 0&&(i=!1),u=this._edt,!u)return this._removeListBox(),!0;var r=this._g,f=this._rng,e=new t.CellRangeEventArgs(r.cells,f),c=this._g.containsFocus();if(r.activeEditor&&c&&(h=n.Control.getControl(n.closest(n.getActiveElement(),'.wj-control')),h))h.onLostFocus(e);e.cancel=i;r.onCellEditEnding(e);if(!e.cancel)for(l=u.type=='checkbox'?u.checked:u.value,o=f.topRow;o<=f.bottomRow&&o<r.rows.length;o++)for(s=f.leftCol;s<=f.rightCol&&s<r.columns.length;s++)r.cells.setCellData(o,s,l,!0);this._edt=null;this._rng=null;this._list=null;this._removeListBox();r.refresh(!1);c&&r.focus();r.onCellEditEnded(e);return!0},Object.defineProperty(i.prototype,"activeEditor",{get:function(){return this._edt},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"editRange",{get:function(){return this._rng},enumerable:!0,configurable:!0}),i.prototype._allowEditing=function(n,i){var r=this._g;return r.isReadOnly||r.selectionMode==t.SelectionMode.None?!1:n<0||n>=r.rows.length||r.rows[n].isReadOnly||!r.rows[n].isVisible?!1:i<0||i>=r.columns.length||r.columns[i].isReadOnly||!r.columns[i].isVisible?!1:r._getBindingColumn(r.cells,n,r.columns[i]).isReadOnly?!1:!0},i.prototype._commitRowEdits=function(){var i,r,u;if(this.finishEditing(),i=this._g,r=n.tryCast(i.collectionView,'IEditableCollectionView'),r&&r.currentEditItem){u=new t.CellRangeEventArgs(i.cells,i.selection);i.onRowEditEnding(u);r.commitEdit();i.onRowEditEnded(u)}},i.prototype._keydown=function(t){switch(t.keyCode){case n.Key.F2:return this._fullEdit=!this._fullEdit,t.preventDefault(),!0;case n.Key.F4:return this._toggleListBox(this._g.selection),t.preventDefault(),!0;case n.Key.Space:var i=this._edt;return i&&i.type=='checkbox'&&(i.checked=!i.checked,this.finishEditing(),t.preventDefault()),!0;case n.Key.Enter:case n.Key.Tab:return this.finishEditing(),!1;case n.Key.Escape:return this.finishEditing(!0),!0;case n.Key.Up:case n.Key.Down:case n.Key.Left:case n.Key.Right:case n.Key.PageUp:case n.Key.PageDown:case n.Key.Home:case n.Key.End:if(this._lbx)return this._keydownListBox(t);if(t.altKey)switch(t.keyCode){case n.Key.Up:case n.Key.Down:return this._toggleListBox(this._g.selection),t.preventDefault(),!0}if(!this._fullEdit)return this.finishEditing(),!1}return!0},i.prototype._keydownListBox=function(t){var i=!0;if(this._lbx)switch(t.keyCode){case n.Key.Up:t.altKey?this._toggleListBox(this._g.selection):this._lbx.selectedIndex>0&&this._lbx.selectedIndex--;break;case n.Key.Down:t.altKey?this._toggleListBox(this._g.selection):this._lbx.selectedIndex++;break;case n.Key.Home:case n.Key.PageUp:this._lbx.selectedIndex=0;break;case n.Key.End:case n.Key.PageDown:this._lbx.selectedIndex=this._lbx.collectionView.items.length-1;break;default:i=!1}return i?(t.preventDefault(),!0):!1},i.prototype._keypress=function(t){var i=this._edt,f,u,r;if(i&&i.type!='checkbox'&&t.target==i&&this._list&&this._list.length>0&&t.charCode>=32)for(f=i.selectionStart,u=i.value.substr(0,f),t.target==i&&(f++,u+=String.fromCharCode(t.charCode)),u=u.toLowerCase(),r=0;r<this._list.length;r++)if(this._list[r].toLowerCase().indexOf(u)==0){i.value=this._list[r];n.setSelectionRange(i,f,this._list[r].length);i.dispatchEvent(this._evtInput);t.preventDefault();break}},i.prototype._toggleListBox=function(t){var i=this._g,r,u;return this._lbx&&(this._removeListBox(),i.selection.contains(t))?(i.activeEditor?i.activeEditor.focus():i.containsFocus()||i.focus(),!0):(r=i.isTouching,u=i._getBindingColumn(i.cells,t.row,i.columns[t.col]),!n.input||!u.dataMap||u.showDropDown===!1)?!1:!n.input||!this.startEditing(!0,t.row,t.col,!r)?!1:(this._lbx=this._createListBox(),this._lbx.showSelection(),r&&this._lbx.focus(),!0)},i.prototype._createListBox=function(){var u=this,t=this._g,r=this._rng,o=t.rows[r.row],e=t._getBindingColumn(t.cells,r.row,t.columns[r.col]),f=document.createElement('div'),i=new n.input.ListBox(f);return n.addClass(f,'wj-dropdown-panel'),i.maxHeight=o.renderHeight*4,i.itemsSource=e.dataMap.getDisplayValues(),i.selectedValue=t.activeEditor?t.activeEditor.value:t.getCellData(r.row,r.col,!0),n.addClass(f,e.dropDownCssClass),i.addEventListener(i.hostElement,'click',function(){u._removeListBox();u.finishEditing()}),i.lostFocus.addHandler(function(){u._removeListBox()}),i.selectedIndexChanged.addHandler(function(){var i=t.activeEditor;i&&(i.value=u._lbx.selectedValue,i.dispatchEvent(u._evtInput),n.setSelectionRange(i,0,i.value.length))}),n.showPopup(f,t.getCellBoundingRect(r.row,r.col)),i},i.prototype._removeListBox=function(){this._lbx&&(n.hidePopup(this._lbx.hostElement,!0),this._lbx.dispose(),this._lbx=null)},i}();t._EditHandler=i})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(t){'use strict';var r=function(){function r(n){this._nrt=new i;this._g=n;n.beginningEdit.addHandler(this._beginningEdit,this);n.pastingCell.addHandler(this._beginningEdit,this);n.rowEditEnded.addHandler(this._rowEditEnded,this);n.loadedRows.addHandler(this.updateNewRowTemplate,this)}return r.prototype.updateNewRowTemplate=function(){var e=n.tryCast(this._g.collectionView,'IEditableCollectionView'),u=this._g,i=u.rows,o=e&&e.canAddNew&&u.allowAddNew&&!u.isReadOnly,r=i.indexOf(this._nrt),f;!o&&r>-1?(f=u.selection,f.row==r&&u.select(f.row-1,f.col),i.removeAt(r)):o&&(r<0?i.push(this._nrt):r!=i.length-1&&(i.removeAt(r),i.push(this._nrt)),this._nrt&&this._nrt._setFlag(t.RowColFlags.ParentCollapsed,!1))},r.prototype._beginningEdit=function(t,r){var f,u,e;if(!r.cancel&&(f=this._g.rows[r.row],n.tryCast(f,i)&&(u=n.tryCast(this._g.collectionView,'IEditableCollectionView'),u&&u.canAddNew))){e=u.currentAddItem&&u.currentAddItem==f.dataItem?u.currentAddItem:u.addNew();u.moveCurrentTo(e);this.updateNewRowTemplate();this._g.refresh(!0);this._g.onRowAdded(r);r.cancel&&u.cancelNew()}},r.prototype._rowEditEnded=function(){var t=n.tryCast(this._g.collectionView,'IEditableCollectionView');t&&t.isAddingNew&&t.commitNew()},r}(),i;t._AddNewHandler=r;i=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),t}(t.Row);t._NewRowTemplate=i})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(t){'use strict';var i=function(){function t(t){this._tbx=n.createElement('<input class="wj-grid-editor wj-form-control" wj-part="ime-target"/>');this._cssHidden={opacity:'0',pointerEvents:'none',position:'absolute',left:-10,top:-10,width:0};n.setCss(this._tbx,this._cssHidden);this._g=t;this._g.cells.hostElement.parentElement.appendChild(this._tbx);this._updateImeFocus();var i=this._g,r=i.hostElement;i.addEventListener(this._tbx,'compositionstart',this._compositionstart.bind(this));i.addEventListener(r,'blur',this._updateImeFocus.bind(this),!0);i.addEventListener(r,'focus',this._updateImeFocus.bind(this),!0);i.addEventListener(r,'mousedown',this._mousedown.bind(this),!0);i.addEventListener(r,'mouseup',this._mouseup.bind(this),!0);i.cellEditEnded.addHandler(this._cellEditEnded,this);i.selectionChanged.addHandler(this._updateImeFocus,this)}return t.prototype.dispose=function(){var n=this._g,t=n.hostElement;n.removeEventListener(this._tbx,'compositionstart');n.removeEventListener(t,'blur');n.removeEventListener(t,'focus');n.removeEventListener(t,'mousedown');n.removeEventListener(t,'mouseup');n.cellEditEnded.removeHandler(this._cellEditEnded);n.selectionChanged.removeHandler(this._updateImeFocus);this._tbx.parentElement&&this._tbx.parentElement.removeChild(this._tbx)},t.prototype._cellEditEnded=function(){n.setCss(this._tbx,this._cssHidden);this._tbx.value=''},t.prototype._compositionstart=function(){var t=this._g,i,r,u;t.activeEditor==null&&(i=t._selHdl.selection,t.startEditing(!1,i.row,i.col,!1)&&(r=t.getCellBoundingRect(i.row,i.col),u=t.cells.hostElement,n.setCss(this._tbx,{opacity:'',pointerEvents:'',left:t.columns[i.col].pos+u.offsetLeft,top:t.rows[i.row].pos+u.offsetTop,width:r.width-1,height:r.height-1}),t._edtHdl._edt=this._tbx))},t.prototype._mousedown=function(){this._mouseDown=!0;this._updateImeFocus()},t.prototype._mouseup=function(){this._mouseDown=!1;this._updateImeFocus()},t.prototype._updateImeFocus=function(){var i=this._g,t,r;!i.containsFocus()||i.activeEditor||i.isTouching||this._mouseDown||(t=this._tbx,this._enableIme()?(t.disabled=!1,t.select()):t.disabled||(t.disabled=!0,r=n.getActiveElement(),r instanceof HTMLElement&&r.blur(),i.focus()))},t.prototype._enableIme=function(){var i=this._g,t=i.selection;return t.row<0||t.col<0||!i._edtHdl._allowEditing(t.row,t.col)?!1:i.columns[t.col].dataType==n.DataType.Boolean?!1:!0},t}();t._ImeHandler=i})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={}))
/*
    *
    * Wijmo Library 5.20162.188
    * http://wijmo.com/
    *
    * Copyright(c) GrapeCity, Inc.  All rights reserved.
    *
    * Licensed under the Wijmo Commercial License.
    * sales@wijmo.com
    * http://wijmo.com/products/wijmo-5/license/
    *
    */
var __extends,wijmo;(function(n){var t;(function(t){var i;(function(i){'use strict';(function(n){n[n.Code=0]="Code";n[n.Selection=1]="Selection";n[n.ExpandSingle=2]="ExpandSingle";n[n.ExpandMulti=3]="ExpandMulti"})(i.DetailVisibilityMode||(i.DetailVisibilityMode={}));var r=i.DetailVisibilityMode,u=function(){function u(n){var t=this;this._mode=r.ExpandSingle;this._g=n;n.mergeManager=new i.DetailMergeManager(n);n.rowHeaders.hostElement.addEventListener('click',this._hdrClick.bind(this));n.formatItem.addHandler(this._formatItem,this);n.selectionChanged.addHandler(this._selectionChanged,this);n.resizedRow.addHandler(this._resizedRow,this);n.loadingRows.addHandler(function(){t.hideDetail()});n.draggingRow.addHandler(function(n,i){t.hideDetail(i.row)});n.formatItem.addHandler(function(n,t){if(t.panel==n.cells){var r=n.rows[t.row];r instanceof i.DetailRow&&(t.cell.style.left='0')}})}return Object.defineProperty(u.prototype,"grid",{get:function(){return this._g},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"detailVisibilityMode",{get:function(){return this._mode},set:function(t){t!=this._mode&&(this._mode=n.asEnum(t,r),this.hideDetail(),this._g.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"maxHeight",{get:function(){return this._maxHeight},set:function(t){this._maxHeight=n.asNumber(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"createDetailCell",{get:function(){return this._createDetailCellFn},set:function(t){this._createDetailCellFn=n.asFunction(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"disposeDetailCell",{get:function(){return this._disposeDetailCellFn},set:function(t){this._disposeDetailCellFn=n.asFunction(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"rowHasDetail",{get:function(){return this._rowHasDetailFn},set:function(t){this._rowHasDetailFn=n.asFunction(t,!0)},enumerable:!0,configurable:!0}),u.prototype.isDetailVisible=function(n){var t=this._g.rows;return(n=this._toIndex(n),t[n]instanceof i.DetailRow)?!0:n<t.length-1&&t[n+1]instanceof i.DetailRow?!0:!1},u.prototype.isDetailAvailable=function(n){var t=this._g.rows;return n=this._toIndex(n),this._hasDetail(n)},u.prototype.hideDetail=function(t){var r=this._g.rows,u;if(t==null){for(u=0;u<r.length;u++)r[u]instanceof i.DetailRow&&this.hideDetail(u);return}t=this._toIndex(t);!(r[t]instanceof i.DetailRow)&&t<r.length-1&&r[t+1]instanceof i.DetailRow&&t++;r[t]instanceof i.DetailRow&&(this.disposeDetailCell&&this.disposeDetailCell(r[t]),n.Control.disposeAll(r[t].detail),r.removeAt(t))},u.prototype.showDetail=function(n,t){var u,e,f,o,r;if(t===void 0&&(t=!1),u=this._g.rows,n=this._toIndex(n),!this.isDetailVisible(n)&&this._hasDetail(n)&&(e=new i.DetailRow(u[n]),e.detail=this._createDetailCell(u[n]),e.detail&&(u.insert(n+1,e),this._g.scrollIntoView(n,-1))),t){for(f=this._g.selection,o=!1,n>0&&u[n]instanceof i.DetailRow&&n--,r=0;r<u.length-1;r++)r!=n&&u[r+1]instanceof i.DetailRow&&(this.hideDetail(r),r<n&&n--,r<f.row&&(f.row--,f.row2--,o=!0));o&&this._g.select(f,!1)}},u.prototype._toIndex=function(i){return i instanceof t.Row&&(i=i.index),n.asNumber(i,!1,!0)},u.prototype._hdrClick=function(n){var u,i,f;(this._mode==r.ExpandMulti||this._mode==r.ExpandSingle)&&(u=this._g,i=u.hitTest(n),i.row>-1&&(f=u.rows[i.row],this.isDetailVisible(i.row)?this.hideDetail(i.row):(u.select(new t.CellRange(i.row,0,i.row,u.columns.length-1)),this.showDetail(i.row,this._mode==r.ExpandSingle)),n.preventDefault()))},u.prototype._selectionChanged=function(n){var t=this;this._mode==r.Selection&&(this._toSel&&clearTimeout(this._toSel),this._toSel=setTimeout(function(){n.selection.row>-1?t.showDetail(n.selection.row,!0):t.hideDetail()},300))},u.prototype._formatItem=function(t,u){var e=this._g,f=u.panel.rows[u.row],h,o,s,c;u.panel==e.cells&&f instanceof i.DetailRow&&f.detail!=null&&(n.addClass(u.cell,'wj-detail'),u.cell.textContent='',u.cell.style.textAlign='',u.cell.appendChild(f.detail),f.height==null?(n.Control.refreshAll(u.cell),h=getComputedStyle(u.cell),o=f.detail.scrollHeight+parseInt(h.paddingTop)+parseInt(h.paddingBottom),this._maxHeight>0&&o>this._maxHeight&&(o=this._maxHeight),f.height=o,f.detail.style.height||(f.detail.style.height='100%'),s=f.detail.querySelector('.wj-flexgrid'),s&&!s.style.height&&(s.style.height='100%')):setTimeout(function(){n.Control.refreshAll(f.detail)}));(this._mode==r.ExpandMulti||this._mode==r.ExpandSingle)&&u.panel==e.rowHeaders&&u.col==0&&this._hasDetail(u.row)&&(c=u.row<e.rows.length-1&&e.rows[u.row+1]instanceof i.DetailRow,u.cell.innerHTML=c?'<span class="wj-glyph-minus"></span>':'<span class="wj-glyph-plus"></span>')},u.prototype._resizedRow=function(t,r){var u=r.panel.rows[r.row];u instanceof i.DetailRow&&u.detail&&n.Control.refreshAll(u.detail)},u.prototype._hasVisibleDetail=function(n){return n instanceof i.DetailRow||n instanceof t.GroupRow||n instanceof t._NewRowTemplate?!1:!0},u.prototype._hasDetail=function(t){return n.isFunction(this._rowHasDetailFn)?this._rowHasDetailFn(this._g.rows[t]):!0},u.prototype._createDetailCell=function(n,t){return this.createDetailCell?this.createDetailCell(n,t):null},u}();i.FlexGridDetailProvider=u})(i=t.detail||(t.detail={}))})(t=n.grid||(n.grid={}))})(wijmo||(wijmo={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(n){var t;(function(t){'use strict';var i=function(i){function r(n){i.call(this,n)}return __extends(r,i),r.prototype.getMergedRange=function(r,u,f,e){e===void 0&&(e=!0);switch(r.cellType){case n.CellType.Cell:if(r.rows[u]instanceof t.DetailRow)return new n.CellRange(u,0,u,r.columns.length-1);break;case n.CellType.RowHeader:if(r.rows[u]instanceof t.DetailRow)return new n.CellRange(u-1,f,u,f);if(u<r.rows.length-1&&r.rows[u+1]instanceof t.DetailRow)return new n.CellRange(u,f,u+1,f)}return i.prototype.getMergedRange.call(this,r,u,f,e)},r}(n.MergeManager);t.DetailMergeManager=i})(t=n.detail||(n.detail={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={}));__extends=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},function(n){var t;(function(n){var t;(function(t){'use strict';var i=function(n){function t(){n.call(this);this.isReadOnly=!0}return __extends(t,n),Object.defineProperty(t.prototype,"detail",{get:function(){return this._detail},set:function(n){this._detail=n},enumerable:!0,configurable:!0}),t}(n.Row);t.DetailRow=i})(t=n.detail||(n.detail={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={}))
/*
    *
    * Wijmo Library 5.20162.188
    * http://wijmo.com/
    *
    * Copyright(c) GrapeCity, Inc.  All rights reserved.
    *
    * Licensed under the Wijmo Commercial License.
    * sales@wijmo.com
    * http://wijmo.com/products/wijmo-5/license/
    *
    */
.wj-content{display:inline-block;border:1px solid rgba(0,0,0,.2);border-radius:4px;background-color:#fff;outline:none;box-sizing:border-box}.wj-content.wj-dropdown,.wj-content.wj-inputnumber,.wj-content.wj-inputmask,.wj-content.wj-calendar-outer,.wj-content.wj-pager{display:inline-table}.wj-control{outline:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.wj-header{background-color:#eaeaea;color:#444;font-weight:bold}.wj-state-selected{background-color:#0085c7;color:#fff}.wj-state-multi-selected{background-color:#80adbf;color:#fff}.wj-state-disabled{opacity:.5;cursor:default;pointer-events:none}.wj-control[disabled]{opacity:.5;background-color:#eee;pointer-events:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;overflow:visible;border-radius:inherit;cursor:pointer}.wj-btn{padding:0 10px;height:100%;vertical-align:top;text-align:center;white-space:nowrap;cursor:pointer}.wj-btn-default{border:1px solid rgba(0,0,0,.2);background-color:transparent;color:inherit}.wj-btn-default:hover{background-color:rgba(0,0,0,.1)}.wj-btn-default:focus{background-color:rgba(0,0,0,.1)}.wj-control a[wj-part^="btn-"]{background:#e6e6e6;padding:6px 20px;color:#444;display:inline-block;margin-top:5px;text-decoration:none;font-size:12px;font-weight:bold}.wj-control a[wj-part^="btn-"]:hover{text-decoration:none;background:#e0e0e0}.wj-btn-group,.wj-btn-group-vertical{position:relative;display:inline-block;border-radius:4px;vertical-align:top}.wj-btn-group>.wj-btn,.wj-btn-group-vertical>.wj-btn{position:relative;float:left}.wj-btn-group>.wj-btn:not(:first-child):not(:last-child){border-radius:0}.wj-btn-group>.wj-btn:first-child{margin-left:0}.wj-btn-group>.wj-btn:first-child:not(:last-child){border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.wj-btn-group>.wj-btn:last-child:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.wj-btn-group .wj-btn+.wj-btn,.wj-btn-group .wj-btn+.wj-btn-group,.wj-btn-group .wj-btn-group+.wj-btn,.wj-btn-group .wj-btn-group+.wj-btn-group{margin-left:-1px}.wj-listbox{overflow:auto;cursor:default}.wj-listbox-item{box-sizing:border-box;padding:3px 10px}.wj-listbox-item.wj-separator{height:1px;margin:3px 0;padding:0;background-color:rgba(0,0,0,.1)}.wj-listbox-item:not(.wj-state-selected):not(.wj-state-disabled):not(.wj-separator):hover{background-color:rgba(0,0,0,.05)}.wj-listbox-item.wj-state-selected input[type=checkbox]:focus{outline:none}.wj-listbox .wj-listbox-item label{font-weight:normal;margin:0}.wj-dropdown .wj-listbox{padding:0;white-space:nowrap}.wj-listbox-item.wj-state-selected .wj-control{background:#fff;color:#444}.wj-dropdown{vertical-align:middle}.wj-dropdown .wj-template,.wj-dropdown .wj-dropdown-menu{border-radius:inherit}.wj-template{height:100%}.wj-dropdown-panel{outline:none;box-shadow:0 6px 13px rgba(0,0,0,.2);z-index:1500!important}.wj-inputnumber input[type=number]::-webkit-inner-spin-button,.wj-inputnumber input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input::-ms-clear{display:none}button,input,optgroup,select,textarea{outline:0}.wj-inputnumber{vertical-align:middle}.wj-input-group-btn,.wj-input-group .wj-form-control{box-sizing:border-box;display:table-cell}.wj-input{height:100%;overflow:hidden}.wj-input-group{position:relative;display:table;overflow:hidden;width:100%;height:100%;min-height:2em;border-collapse:separate;border-radius:4px;background:inherit}.wj-input-group .wj-form-control{position:relative;float:left;padding:0 8px;min-height:2em;vertical-align:middle;width:100%;height:100%;border:none;border-radius:0;background-color:transparent;color:inherit}.wj-input-group .wj-form-control.wj-numeric{text-align:right}.wj-input-group div[wj-part='header']{float:none;width:auto;vertical-align:middle;padding:6px 8px}.wj-input-group-btn>.wj-btn{border-width:0}.wj-input-group-btn:first-child>.wj-btn{border-right-width:1px;border-top-right-radius:0;border-bottom-right-radius:0}.wj-input-group-btn:last-child>.wj-btn{border-left-width:1px;border-top-left-radius:0;border-bottom-left-radius:0}[dir="rtl"] .wj-input-group-btn:first-child>.wj-btn{border-left-width:1px;border-top-left-radius:0;border-bottom-left-radius:0;border-right-width:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit}[dir="rtl"] .wj-input-group-btn:last-child>.wj-btn{border-right-width:1px;border-top-right-radius:0;border-bottom-right-radius:0;border-left-width:0;border-top-left-radius:inherit;border-bottom-left-radius:inherit}.wj-input-group-btn{position:relative;width:26px;height:100%;vertical-align:top;white-space:nowrap}.wj-pager{vertical-align:middle;margin-left:5px;margin-right:5px}.wj-pager .wj-input-group-btn>.wj-btn{min-width:40px}.wj-pager .wj-btn[disabled] span{opacity:.5;cursor:default}.wj-pager .wj-form-control{text-align:center;border-left:1px solid rgba(0,0,0,.2);border-right:1px solid rgba(0,0,0,.2)}.wj-calendar-outer{display:block;padding:10px;width:100%;height:auto;cursor:default}.wj-calendar td{text-align:center}.wj-dropdown-panel .wj-calendar-outer{border:0;background:none}.wj-day-today{font-weight:bold}.wj-day-othermonth{opacity:.5}.wj-calendar-header{display:block;padding:0 0 15px 0;width:100%}.wj-month-select{float:left;display:inline-block;cursor:pointer}.wj-calendar-header .wj-btn-group{float:right;display:inline-block;margin-bottom:7px}.wj-calendar-header .wj-btn-group .wj-btn{padding:0 8px 1px 8px;min-height:25px}.wj-calendar-month{box-sizing:border-box;width:100%;border-collapse:collapse;font:inherit}.wj-calendar-month td{width:14.29%;padding:5px 0;border:none}.wj-calendar-month .wj-header{font-size:90%}.wj-calendar-year{box-sizing:border-box;width:100%;border-collapse:collapse;font:inherit}.wj-calendar-year td{width:25%;padding:8px;border:none}.wj-flexgrid{width:100%;overflow:hidden}.wj-cell{position:absolute;box-sizing:border-box;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:3px;border-right:1px solid #c6c6c6;border-bottom:1px solid #c6c6c6;outline:none}.wj-cell.wj-state-selected .wj-control,.wj-cell.wj-state-multi-selected .wj-control{color:#444}.wj-header.wj-state-multi-selected{background-color:#e4e4e4;color:#444;font-weight:bold}.wj-colheaders .wj-header.wj-state-multi-selected{border-bottom:2px solid #0085c7}.wj-rowheaders .wj-header.wj-state-multi-selected{border-right:2px solid #0085c7}.wj-state-sticky .wj-header{opacity:.75}.wj-flexgrid .wj-marquee{position:absolute;box-sizing:border-box;border:2px solid #0085c7}.wj-cell.wj-wrap{white-space:normal;text-overflow:clip}.wj-cell:not(.wj-header):not(.wj-group):not(.wj-alt):not(.wj-state-selected):not(.wj-state-multi-selected){background:#fff}.wj-alt:not(.wj-header):not(.wj-group):not(.wj-state-selected):not(.wj-state-multi-selected){background:#f9f9f9}.wj-group:not(.wj-state-selected):not(.wj-state-multi-selected){background-color:#ddd}.wj-cell.wj-frozen-row{border-bottom:1px solid #666}.wj-cell.wj-frozen-col{border-right:1px solid #666}.wj-flexgrid .wj-grid-editor{box-sizing:border-box;padding:3px;border:none;width:100%;margin:0}.wj-flexgrid .wj-marker{position:absolute;background-color:#0085c7;opacity:.5;pointer-events:none}[dir="rtl"] .wj-cell{border-left:1px solid #c6c6c6;border-right:none}[dir="rtl"] .wj-frozen-col{border-left:1px solid #666;border-right:none}.wj-filter-on .wj-glyph-filter{opacity:.85}.wj-filter-off .wj-glyph-filter{opacity:.25}.wj-columnfiltereditor{padding:10px;min-width:230px;max-width:50%}.wj-columnfiltereditor .wj-control{margin-bottom:6px;width:100%}.wj-columnfiltereditor .wj-listbox .wj-listbox-item label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wj-grouppanel{background-color:#f4f4f4;padding:15px}.wj-grouppanel .wj-cell{margin-right:10px;padding:6px 16px;border:1px solid #e6e6e6;cursor:pointer}.wj-grouppanel .wj-cell:hover{background:#e0e0e0}.wj-multirow .wj-cell.wj-record-end:not(.wj-header){border-bottom-color:#787878}.wj-multirow .wj-cell.wj-group-end{border-right-color:#787878}.wj-multirow .wj-hdr-collapse{position:absolute;padding:6px;right:0;top:0;color:#0085c7;opacity:.5}.wj-multirow .wj-hdr-collapse:hover{opacity:1}.wj-flexsheet .wj-marquee{position:absolute;box-sizing:border-box;border:2px solid #0085c7}.wj-flexsheet .wj-state-multi-selected{background:#e6e6e6;color:#222}.wj-flexsheet .wj-cell.wj-state-multi-selected{border-right:1px solid #bbb;border-bottom:1px solid #bbb}.wj-tooltip{position:absolute;z-index:1000;top:0;left:0;pointer-events:none;max-width:400px;padding:6px;background-color:#ffffe5;border:1px solid rgba(0,0,0,.1);border-radius:6px;box-shadow:0 6px 12px rgba(0,0,0,.175);box-sizing:border-box}.wj-flexchart{height:400px;padding:15px 10px;margin-bottom:12px;background-color:#fff;border:1px solid #e4e4e4}.wj-flexchart .wj-title{}.wj-flexchart .wj-header{}.wj-flexchart .wj-header .wj-title{font-size:16pt;fill:#666;font-weight:normal}.wj-flexchart .wj-footer{}.wj-flexchart .wj-footer .wj-title{fill:#666;font-weight:normal}.wj-flexchart .wj-plot-area{}.wj-flexchart .wj-legend .wj-label{fill:#666}.wj-flexchart .wj-data-label{fill:#666}.wj-flexchart .wj-data-label-border{stroke:rgba(128,128,128,.5)}.wj-flexchart .wj-data-label-line{stroke:rgba(128,128,128,1)}.wj-flexchart .wj-axis-x .wj-title,.wj-flexchart .wj-axis-y .wj-title{font-style:italic}.wj-flexchart .wj-state-selected{stroke-width:3px;stroke-dasharray:6;stroke-linecap:square}.wj-flexchart .fibonacci-arcs path.wj-state-selected{stroke-dasharray:5 10;stroke-linecap:butt}@media(max-width:1025px){.wj-flexchart .wj-state-selected{stroke-width:2px;stroke-dasharray:4}}@media(max-width:767px){wj-flexchart .wj-state-selected{stroke-width:1px;stroke-dasharray:3}}.wj-flexchart .wj-axis-x{}.wj-flexchart .wj-axis-x .wj-label{fill:#666}.wj-flexchart .wj-axis-x .wj-line{stroke:#aaa;stroke-width:1px}.wj-flexchart .wj-axis-x .wj-tick{stroke:#aaa;stroke-width:1px}.wj-flexchart .wj-axis-x .wj-gridline{stroke:black;stroke-width:.25px}.wj-flexchart .wj-axis-x .wj-tick-minor{stroke:#aaa;stroke-width:1px}.wj-flexchart .wj-axis-x .wj-gridline-minor{stroke:black;stroke-dasharray:6;stroke-width:.25px}.wj-flexchart .wj-axis-y{}.wj-flexchart .wj-axis-y .wj-label{fill:#666}.wj-flexchart .wj-axis-y .wj-tick{stroke:#aaa;stroke-width:1px}.wj-flexchart .wj-axis-y .wj-gridline{stroke:#777;stroke-width:.25px}.wj-flexchart .wj-axis-y .wj-tick-minor{stroke:#aaa;stroke-width:1px}.wj-flexchart .wj-axis-y .wj-gridline-minor{stroke:black;stroke-dasharray:6;stroke-width:.25px}.wj-flexchart .wj-chart-rangeslider{position:absolute;touch-action:none;-ms-touch-action:none}.wj-flexchart .wj-chart-rangeslider button{position:absolute;text-align:center;vertical-align:middle;padding:0;line-height:16px;border-radius:2px}.wj-flexchart .wj-chart-hrangeslider button{width:16px;height:100%}.wj-flexchart .wj-chart-vrangeslider button{height:16px;width:100%}.wj-flexchart .wj-chart-rangeslider .wj-rangeslider-content{background-color:#eaeaea;height:100%;position:relative}.wj-flexchart .wj-chart-rangeslider .wj-rangeslider-rangehandle{position:absolute;text-align:center;vertical-align:middle;background-color:#bdbdbd;height:100%;width:100%}.wj-flexchart .wj-chart-rangeslider .wj-rangeslider-minhandle,.wj-flexchart .wj-chart-rangeslider .wj-rangeslider-maxhandle{border:1px solid gray;display:block;position:absolute;border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-top-left-radius:4px;border-top-right-radius:4px}.wj-flexchart .wj-chart-hrangeslider .wj-rangeslider-minhandle,.wj-flexchart .wj-chart-hrangeslider .wj-rangeslider-maxhandle{background-color:#bdbdbd;cursor:ew-resize;height:22px;margin-top:-2px;width:14px}.wj-flexchart .wj-chart-vrangeslider .wj-rangeslider-minhandle,.wj-flexchart .wj-chart-vrangeslider .wj-rangeslider-maxhandle{background-color:#bdbdbd;cursor:ns-resize;width:22px;margin-left:-2px;height:14px}.wj-flexchart .wj-chart-rangeslider .wj-rangeslider-handle-active{z-index:2}.wj-flexchart .wj-chart-hrangeslider .wj-rangeslider-decbtn{left:0}.wj-flexchart .wj-chart-hrangeslider .wj-rangeslider-incbtn{right:0}.wj-flexchart .wj-chart-vrangeslider .wj-rangeslider-decbtn{bottom:0}.wj-flexchart .wj-chart-vrangeslider .wj-rangeslider-incbtn{top:0}.wj-flexchart .wj-chart-rangeslider .wj-glyph-left{border-top:5px solid transparent;border-right:4px solid;border-bottom:4px solid transparent;margin-right:2px}.wj-flexchart .wj-chart-rangeslider .wj-glyph-right{border-bottom:5px solid transparent;border-left:4px solid;border-top:4px solid transparent;margin-left:2px}.wj-flexchart .wj-chart-rangeslider .wj-glyph-down{border-top:5px solid;border-right:4px solid transparent;border-left:4px solid transparent;margin-bottom:3px}.wj-flexchart .wj-chart-rangeslider .wj-glyph-up{border-right:4px solid transparent;border-bottom:5px solid;border-left:4px solid transparent;margin-bottom:4px}.wj-flexchart .wj-chart-rangeselector-container{position:relative}.wj-flexchart .wj-chart-rangeselector-container .wj-chart-rangeslider,.wj-flexchart .wj-chart-rangeselector-container .wj-rangeslider-content{background-color:transparent;border-color:transparent}.wj-flexchart .wj-chart-rangeselector-container .wj-rangeslider-rangehandle{opacity:.3}.wj-flexchart .wj-chart-rangeselector-container .wj-rangeslider-minhandle,.wj-flexchart .wj-chart-rangeselector-container .wj-rangeslider-maxhandle{background-color:transparent;opacity:.6;border:2px solid gray;border-radius:.5em}.wj-flexchart .wj-chart-rangeselector-container .wj-chart-hrangeslider .wj-rangeslider-minhandle,.wj-flexchart .wj-chart-rangeselector-container .wj-chart-hrangeslider .wj-rangeslider-maxhandle{height:20px;width:20px;border-radius:50%;border:1px solid hsla(0,0%,50.2%,.75);top:0;bottom:0;margin:auto;color:hsl(0,0%,50.2%);background:#d3d3d3;opacity:1}.wj-flexchart .wj-chart-rangeselector-container .wj-chart-hrangeslider .wj-rangeslider-minhandle:after,.wj-flexchart .wj-chart-rangeselector-container .wj-chart-hrangeslider .wj-rangeslider-maxhandle:after{content:"║";text-align:center;width:100%;display:inline-block;position:absolute;margin:0;top:50%;transform:translateY(-55%);-webkit-transform:translateY(-55%);opacity:.75;font-size:10px}.wj-flexchart .wj-chart-rangeselector-container .wj-chart-vrangeslider .wj-rangeslider-minhandle,.wj-flexchart .wj-chart-rangeselector-container .wj-chart-vrangeslider .wj-rangeslider-maxhandle{height:20px;width:20px;left:50%;border-radius:50%;border:1px solid hsla(0,0%,50.2%,.75);top:0;bottom:0;color:hsl(0,0%,50.2%);background:#d3d3d3;opacity:1}.wj-flexchart .wj-chart-rangeselector-container .wj-chart-vrangeslider .wj-rangeslider-minhandle:after,.wj-flexchart .wj-chart-rangeselector-container .wj-chart-vrangeslider .wj-rangeslider-maxhandle:after{content:"═";text-align:center;height:100%;display:inline-block;position:absolute;margin:0;left:50%;transform:translate(-50%,15%);-webkit-transform:translate(-50%,15%);opacity:.75;font-size:12px}.wj-flexchart .wj-chart-rangeselector-container .wj-chart-rangeslider .wj-rangeslider-minhandle.wj-rangeslider-handle-active,.wj-flexchart .wj-chart-rangeselector-container .wj-chart-rangeslider .wj-rangeslider-maxhandle.wj-rangeslider-handle-active{background-color:rgba(136,189,230,.7)}.wj-flexchart .wj-rangeselector .wj-scroller-center{background:rgba(128,128,128,.1);position:absolute;display:block;touch-action:none}.wj-flexchart .wj-zoom{visibility:hidden;position:relative}.wj-flexchart .wj-zoom-overlay{background:rgba(128,128,128,.2);position:absolute;display:block;touch-action:none}.wj-flexchart.wj-panable{cursor:pointer}.wj-flexchart .wj-block-other-interaction{display:none}.wj-flexchart-touch-disabled{-ms-touch-action:none}.wj-flexchart .wj-chart-linemarker{background:rgba(128,128,128,.3);position:absolute;padding:2px}.wj-flexchart .wj-chart-linemarker-container{position:relative}.wj-flexchart .wj-chart-linemarker .wj-chart-linemarker-hline{height:2px;background:rgba(128,128,128,1);touch-action:none;position:absolute}.wj-flexchart .wj-chart-linemarker .wj-chart-linemarker-vline{width:2px;background:rgba(128,128,128,1);touch-action:none;position:absolute}.wj-flexchart.wj-chart-linemarker-draggable,.wj-flexchart .wj-chart-linemarker .wj-chart-linemarker-draggable{-khtml-user-drag:element;cursor:move}.wj-gauge:focus{outline:none}.wj-gauge .wj-face path{fill:#f5f5f5;stroke:#cbcbcb;stroke-width:1px;stroke-linejoin:round}.wj-gauge .wj-pointer{fill:#0085c7}.wj-gauge .wj-min,.wj-gauge .wj-max{font-size:60%;opacity:.5}.wj-radialgauge .wj-value{font-size:150%}.wj-lineargauge{height:1.2em}.wj-colorpicker{width:420px;height:200px;padding:4px}.wj-colorbox{position:relative;width:100%;height:100%;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.wj-popup{background-color:#fff;box-shadow:0 3px 9px rgba(0,0,0,.5);z-index:1500;margin:2px 0}.wj-popup-backdrop{position:fixed;left:0;right:0;top:0;bottom:0;z-index:1500;background-color:rgba(0,0,0,.5)}.wj-glyph-up{position:relative;display:inline-block;border-right:.4em solid transparent;border-bottom:.5em solid;border-left:.4em solid transparent;opacity:.75;cursor:pointer}.wj-glyph-down{position:relative;display:inline-block;border-top:.5em solid;border-right:.4em solid transparent;border-left:.4em solid transparent;opacity:.75;cursor:pointer}.wj-glyph-left,.wj-glyph-step-backward{position:relative;display:inline-block;border-top:.4em solid transparent;border-right:.5em solid;border-bottom:.4em solid transparent;opacity:.75;cursor:pointer}.wj-glyph-step-backward{transform:translateX(.12em)}.wj-glyph-step-backward:after{position:absolute;border-left:.2em solid;height:.75em;transform:translate(-100%,-50%);content:""}.wj-glyph-right,.wj-glyph-step-forward{position:relative;display:inline-block;border-top:.4em solid transparent;border-bottom:.4em solid transparent;border-left:.5em solid;opacity:.75;cursor:pointer}.wj-glyph-step-forward:after{position:absolute;border-left:.2em solid;height:.75em;transform:translateY(-50%);content:""}.wj-glyph-down-left{position:relative;display:inline-block;border-top:.65em solid transparent;border-left:.65em solid;opacity:.75;cursor:pointer}.wj-glyph-down-right{position:relative;display:inline-block;border-bottom:.65em solid;border-left:.65em solid transparent;opacity:.75;cursor:pointer}.wj-glyph-up-left{position:relative;display:inline-block;border-bottom:.65em solid transparent;border-left:.65em solid;opacity:.75;cursor:pointer}.wj-glyph-up-right{position:relative;display:inline-block;border-top:.65em solid;border-left:.65em solid transparent;opacity:.75;cursor:pointer}.wj-glyph-circle{position:relative;display:inline-block;border:.25em solid;border-radius:1em;transform:translateY(-.1em);opacity:.75;cursor:pointer}.wj-glyph-square{position:relative;display:inline-block;border:.25em solid;opacity:.75;cursor:pointer}.wj-glyph-diamond{position:relative;display:inline-block;border:.25em solid;transform:rotate(45deg);transform-origin:50% 50%;opacity:.75;cursor:pointer}.wj-glyph-check{position:relative;display:inline-block;width:.75em;height:.75em;border-right:.3em solid;border-bottom:.22em solid;transform:rotate(35deg) scaleX(.5);opacity:.75;cursor:pointer}.wj-glyph-filter{position:relative;box-sizing:border-box;display:inline-block;top:-.1em;width:.5em;border-top:.5em solid;border-right:.4em solid transparent;border-left:.4em solid transparent;opacity:.75;cursor:pointer}.wj-glyph-filter:after{position:absolute;box-sizing:border-box;border-left:.2em solid;height:.4em;transform:translateX(-50%);top:-.2em;content:""}[dir="rtl"] .wj-glyph-filter:after{transform:translateX(50%)}.wj-glyph-plus,.wj-glyph-minus{position:relative;box-sizing:border-box;display:inline-block;border-top:.25em solid;width:.9em;top:-.2em;opacity:.75;cursor:pointer}.wj-glyph-plus:after{position:absolute;box-sizing:border-box;border-left:.25em solid;width:.25em;height:.85em;left:.32em;top:-.55em;content:""}.wj-glyph-file{position:relative;display:inline-block;border-left:.7em solid;height:.85em;opacity:.75;cursor:pointer}.wj-glyph-file:after{position:absolute;transform:translateX(-100%);border-top:.3em solid transparent;border-left:.3em solid #fff;content:""}.wj-glyph-calendar{position:relative;display:inline-block;top:.2em;width:1em;height:1em;border:.1em solid;border-top:.3em solid;opacity:.75;cursor:pointer}.wj-glyph-calendar:after{position:absolute;font-size:50%;top:-.15em;left:.4em;content:'1'}.wj-glyph-clock{position:relative;display:inline-block;top:.2em;width:1em;height:1em;border:.13em solid;border-radius:50%;opacity:.75;cursor:pointer}.wj-glyph-clock:after{position:absolute;border-left:.1em solid;border-bottom:.1em solid;width:.3em;height:.4em;top:.05em;left:.32em;content:""}.wj-flexsheet .wj-content{outline:none;border-color:#ccc;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.wj-flexsheet-formula-list{margin:0;padding:0;background:#fff;border:1px solid rgba(0,0,0,.2);font-family:arial,sans-serif;font-size:12px;line-height:22px;position:absolute;width:300px;z-index:2001;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,.2);box-shadow:0 2px 4px rgba(0,0,0,.2)}.wj-flexsheet-formula-name{color:#222;font-size:13px;font-family:inconsolata,monospace,arial,sans,sans-serif;margin:-2px 0}.wj-flexsheet-formula-description{color:#666;display:block;font-size:11px;margin:-2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wj-state-selected .wj-flexsheet-formula-description{color:#fff}.wj-flexsheet div[wj-filter]{display:none}div[wj-part='tab-holder']{background:#b8b8b8}span.wj-sheet-icon{margin:0 14px}div.wj-sheet-page{padding-top:1px}div.wj-sheet-page>button{padding:0;padding-top:1px;border-radius:0;border:0;background-color:#e4e5e8;color:#727275}div.wj-sheet-page>button:hover{background-color:#dee0e3}.wj-sheet-tab ul{display:inline-block;margin:0;padding:0;float:left}.wj-sheet-tab ul li{float:left;display:block;padding-right:20px;padding-left:20px;cursor:pointer;margin-top:1px;border-left:1px solid #b8b8b8;min-height:20px;background-color:#d2d3d8;text-align:center;padding-top:2px;font-size:11px;color:#727275}.wj-sheet-tab ul li.active{border-top-color:transparent;background-color:#fff;cursor:default;height:100%;margin-top:1px;border-left:1px solid #b8b8b8;font-weight:bold}.wj-sheet-tab ul li.hidden{display:none}.wj-sheet-tab ul li:not(.active):hover,.wj-sheet-tab ul li:not(.hidden):hover{background-color:#aabcd6;color:#fff;cursor:pointer}.wj-sheet-tab ul li.wj-new-sheet:hover{background-color:#0085c7}.wj-new-sheet{padding:0;width:32px;height:20px;font-size:11px;text-align:center;background-color:#668eb9;color:#fff}.wj-new-sheet .wj-sheet-icon{color:#727275;margin-top:5px}div.wj-sheet>div{display:block;float:left}[dir="rtl"] div.wj-sheet>div{display:block;float:right}.wj-flexsheet{background-color:#a9a9a9;width:100%;height:100%}.wj-context-menu{background-color:#fff;border:thin solid gray;cursor:default}.wj-context-menu-item{padding:3px 10px}.wj-context-menu-item:hover{background-color:#0085c7;color:#fff}.wj-header-row{background-color:#4800ff!important;color:#ff6a00!important}.wj-pivotpanel{position:relative;padding:3px 6px;overflow:auto;min-height:25em}.wj-pivotpanel a{float:right;margin:6px}.wj-pivotpanel table{table-layout:fixed;width:100%}.wj-pivotpanel div{width:100%}.wj-pivotpanel tr,.wj-pivotpanel td{border:1px none #e0e0e0;padding:3px}.wj-pivotpanel label{font-weight:bold;margin:0}.wj-pivotpanel .wj-glyph{opacity:.5}.wj-pivotpanel .wj-listbox{flex-grow:1;border:none;border-radius:0;min-height:8em;max-height:20em}.wj-pivotpanel table .wj-listbox{min-height:5em;height:5em}.wj-pivotpanel .wj-listbox .wj-listbox-item.wj-state-selected{background-color:transparent;color:inherit}.wj-pivotpanel .wj-marker{position:absolute;background-color:#0085c7;opacity:.5;pointer-events:none}.wj-pivotpanel .wj-listbox .wj-listbox-item .wj-glyph-filter{cursor:default;opacity:.5}.wj-pivotpanel .wj-listbox .wj-listbox-item .wj-aggregate{font-size:80%;opacity:.5}.context-menu{font-size:90%;padding:6px}.menu-icon{display:inline-block;width:1em;margin-right:6px;opacity:.75;color:#0000c0}.menu-icon.menu-icon-remove{color:maroon;font-weight:bold}.wj-pivotfieldeditor{min-width:400px}.wj-pivotfieldeditor tr.wj-separator{border-top:10px solid transparent}.wj-pivotfieldeditor td:first-child{text-align:right}.wj-pivotfiltereditor{padding:10px;min-width:230px}.wj-pivotfiltereditor .wj-control{margin-bottom:6px;width:100%}.wj-pivotfiltereditor .wj-listbox .wj-listbox-item label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wj-pivotgrid .wj-colheaders .wj-cell.wj-header{text-align:center}.wj-pivotgrid .wj-cell.wj-aggregate{font-weight:bold}.wj-pivotgrid .wj-aggregate.wj-cell:not(.wj-header):not(.wj-group):not(.wj-state-selected):not(.wj-state-multi-selected){background-color:rgba(0,133,199,.15)}.wj-pivotchart{position:relative}.wj-pivotchart .wj-dropdown{position:absolute;margin-right:15px}.wj-detaildialog .wj-flexgrid{max-width:800px;max-height:400px}.wj-dialog-header{background:rgba(0,0,0,.05);font-weight:bold;font-size:120%;padding:1em}.wj-dialog-footer{text-align:right;margin-top:1em}
/*
    *
    * Wijmo Library 5.20162.188
    * http://wijmo.com/
    *
    * Copyright(c) GrapeCity, Inc.  All rights reserved.
    *
    * Licensed under the Wijmo Commercial License.
    * sales@wijmo.com
    * http://wijmo.com/products/wijmo-5/license/
    *
    */
System.register("wijmo/wijmo.metaFactory", [], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
wj;
return {
setters: [], execute: function()
{
(function(wj)
{
var interop;
(function(interop)
{
function isSimpleType(type)
{
return type <= PropertyType.Enum
}
var ControlMetaFactory=function()
{
function ControlMetaFactory(){}
return ControlMetaFactory.CreateProp = function(propertyName, propertyType, changeEvent, enumType, isNativeControlProperty, priority)
{
return new PropDescBase(propertyName, propertyType, changeEvent, enumType, isNativeControlProperty, priority)
}, ControlMetaFactory.CreateEvent = function(eventName, isPropChanged)
{
return new EventDescBase(eventName, isPropChanged)
}, ControlMetaFactory.CreateComplexProp = function(propertyName, isArray, ownsObject)
{
return new ComplexPropDescBase(propertyName, isArray, ownsObject)
}, ControlMetaFactory.findProp = function(propName, props)
{
return this.findInArr(props, 'propertyName', propName)
}, ControlMetaFactory.findEvent = function(eventName, events)
{
return this.findInArr(events, 'eventName', eventName)
}, ControlMetaFactory.findComplexProp = function(propName, props)
{
return this.findInArr(props, 'propertyName', propName)
}, ControlMetaFactory.getMetaData = function(metaDataId)
{
switch (metaDataId)
{
case wijmo.Control:
return new MetaDataBase([this.CreateProp('disabled', PropertyType.Boolean), ], [this.CreateEvent('gotFocus'), this.CreateEvent('lostFocus')]);
case wijmo.input && wijmo.input.DropDown:
return this.getMetaData(wijmo.Control).add([this.CreateProp('isDroppedDown', PropertyType.Boolean, 'isDroppedDownChanged'), this.CreateProp('showDropDownButton', PropertyType.Boolean), this.CreateProp('autoExpandSelection', PropertyType.Boolean), this.CreateProp('placeholder', PropertyType.String), this.CreateProp('dropDownCssClass', PropertyType.String), this.CreateProp('text', PropertyType.String, 'textChanged', null, !0, 1e3)], [this.CreateEvent('isDroppedDownChanging'), this.CreateEvent('isDroppedDownChanged', !0), this.CreateEvent('textChanged', !0)]);
case wijmo.input && wijmo.input.ComboBox:
return this.getMetaData(wijmo.input.DropDown).add([this.CreateProp('displayMemberPath', PropertyType.String), this.CreateProp('selectedValuePath', PropertyType.String), this.CreateProp('headerPath', PropertyType.String), this.CreateProp('isContentHtml', PropertyType.Boolean), this.CreateProp('isEditable', PropertyType.Boolean), this.CreateProp('required', PropertyType.Boolean), this.CreateProp('maxDropDownHeight', PropertyType.Number), this.CreateProp('maxDropDownWidth', PropertyType.Number), this.CreateProp('itemFormatter', PropertyType.Function), this.CreateProp('itemsSource', PropertyType.Any, '', null, !0, 900), this.CreateProp('selectedIndex', PropertyType.Number, 'selectedIndexChanged', null, !0, 1e3), this.CreateProp('selectedItem', PropertyType.Any, 'selectedIndexChanged', null, !0, 1e3), this.CreateProp('selectedValue', PropertyType.Any, 'selectedIndexChanged', null, !0, 1e3), ], [this.CreateEvent('selectedIndexChanged', !0)]).addOptions({ngModelProperty: 'selectedValue'});
case wijmo.input && wijmo.input.AutoComplete:
return this.getMetaData(wijmo.input.ComboBox).add([this.CreateProp('delay', PropertyType.Number), this.CreateProp('maxItems', PropertyType.Number), this.CreateProp('minLength', PropertyType.Number), this.CreateProp('cssMatch', PropertyType.String), this.CreateProp('itemsSourceFunction', PropertyType.Function)]);
case wijmo.input && wijmo.input.Calendar:
return this.getMetaData(wijmo.Control).add([this.CreateProp('monthView', PropertyType.Boolean), this.CreateProp('showHeader', PropertyType.Boolean), this.CreateProp('itemFormatter', PropertyType.Function), this.CreateProp('itemValidator', PropertyType.Function), this.CreateProp('displayMonth', PropertyType.Date, 'displayMonthChanged'), this.CreateProp('firstDayOfWeek', PropertyType.Number), this.CreateProp('max', PropertyType.Date), this.CreateProp('min', PropertyType.Date), this.CreateProp('value', PropertyType.Date, 'valueChanged'), ], [this.CreateEvent('valueChanged', !0), this.CreateEvent('displayMonthChanged', !0), this.CreateEvent('formatItem', !1)]).addOptions({ngModelProperty: 'value'});
case wijmo.input && wijmo.input.ColorPicker:
return this.getMetaData(wijmo.Control).add([this.CreateProp('showAlphaChannel', PropertyType.Boolean), this.CreateProp('showColorString', PropertyType.Boolean), this.CreateProp('palette', PropertyType.Any), this.CreateProp('value', PropertyType.String, 'valueChanged')], [this.CreateEvent('valueChanged', !0)]).addOptions({ngModelProperty: 'value'});
case wijmo.input && wijmo.input.ListBox:
return this.getMetaData(wijmo.Control).add([this.CreateProp('isContentHtml', PropertyType.Boolean), this.CreateProp('maxHeight', PropertyType.Number), this.CreateProp('selectedValuePath', PropertyType.String), this.CreateProp('itemFormatter', PropertyType.Function), this.CreateProp('displayMemberPath', PropertyType.String), this.CreateProp('checkedMemberPath', PropertyType.String), this.CreateProp('itemsSource', PropertyType.Any), this.CreateProp('selectedIndex', PropertyType.Number, 'selectedIndexChanged'), this.CreateProp('selectedItem', PropertyType.Any, 'selectedIndexChanged'), this.CreateProp('selectedValue', PropertyType.Any, 'selectedIndexChanged'), ], [this.CreateEvent('formatItem', !1), this.CreateEvent('itemsChanged', !0), this.CreateEvent('itemChecked', !0), this.CreateEvent('selectedIndexChanged', !0)]).addOptions({ngModelProperty: 'selectedValue'});
case'ItemTemplate':
return new MetaDataBase([], [], [], undefined, undefined, undefined, 'owner');
case wijmo.input && wijmo.input.Menu:
return this.getMetaData(wijmo.input.ComboBox).add([this.CreateProp('header', PropertyType.String), this.CreateProp('commandParameterPath', PropertyType.String), this.CreateProp('commandPath', PropertyType.String), this.CreateProp('isButton', PropertyType.Boolean), this.CreateProp('value', PropertyType.Any, 'selectedIndexChanged', null, !1, 1e3)], [this.CreateEvent('itemClicked')]);
case'MenuItem':
return new MetaDataBase([this.CreateProp('value', PropertyType.Any, ''), this.CreateProp('cmd', PropertyType.Any, ''), this.CreateProp('cmdParam', PropertyType.Any, '')], [], [], 'itemsSource', !0);
case'MenuSeparator':
return new MetaDataBase([], [], [], 'itemsSource', !0);
case wijmo.input && wijmo.input.InputDate:
return this.getMetaData(wijmo.input.DropDown).add([this.CreateProp('required', PropertyType.Boolean), this.CreateProp('format', PropertyType.String), this.CreateProp('mask', PropertyType.String), this.CreateProp('max', PropertyType.Date), this.CreateProp('min', PropertyType.Date), this.CreateProp('inputType', PropertyType.String), this.CreateProp('value', PropertyType.Date, 'valueChanged', null, !0, 1e3), this.CreateProp('itemValidator', PropertyType.Function), this.CreateProp('itemFormatter', PropertyType.Function)], [this.CreateEvent('valueChanged', !0)]).addOptions({ngModelProperty: 'value'});
case wijmo.input && wijmo.input.InputDateTime:
return this.getMetaData(wijmo.input.InputDate).add([this.CreateProp('timeMax', PropertyType.Date), this.CreateProp('timeMin', PropertyType.Date), this.CreateProp('timeStep', PropertyType.Number), this.CreateProp('timeFormat', PropertyType.String), ], [this.CreateEvent('valueChanged', !0)]).addOptions({ngModelProperty: 'value'});
case wijmo.input && wijmo.input.InputNumber:
return this.getMetaData(wijmo.Control).add([this.CreateProp('showSpinner', PropertyType.Boolean), this.CreateProp('max', PropertyType.Number), this.CreateProp('min', PropertyType.Number), this.CreateProp('step', PropertyType.Number), this.CreateProp('required', PropertyType.Boolean), this.CreateProp('placeholder', PropertyType.String), this.CreateProp('inputType', PropertyType.String), this.CreateProp('format', PropertyType.String), this.CreateProp('value', PropertyType.Number, 'valueChanged'), this.CreateProp('text', PropertyType.String, 'textChanged')], [this.CreateEvent('valueChanged', !0), this.CreateEvent('textChanged', !0)]).addOptions({ngModelProperty: 'value'});
case wijmo.input && wijmo.input.InputMask:
return this.getMetaData(wijmo.Control).add([this.CreateProp('mask', PropertyType.String), this.CreateProp('promptChar', PropertyType.String), this.CreateProp('placeholder', PropertyType.String), this.CreateProp('rawValue', PropertyType.String, 'valueChanged'), this.CreateProp('value', PropertyType.String, 'valueChanged')], [this.CreateEvent('valueChanged', !0), ]).addOptions({ngModelProperty: 'value'});
case wijmo.input && wijmo.input.InputTime:
return this.getMetaData(wijmo.input.ComboBox).add([this.CreateProp('max', PropertyType.Date), this.CreateProp('min', PropertyType.Date), this.CreateProp('step', PropertyType.Number), this.CreateProp('format', PropertyType.String), this.CreateProp('mask', PropertyType.String), this.CreateProp('inputType', PropertyType.String), this.CreateProp('value', PropertyType.Date, 'valueChanged', null, !0, 1e3), ], [this.CreateEvent('valueChanged', !0)]).addOptions({ngModelProperty: 'value'});
case wijmo.input && wijmo.input.InputColor:
return this.getMetaData(wijmo.input.DropDown).add([this.CreateProp('required', PropertyType.Boolean), this.CreateProp('showAlphaChannel', PropertyType.Boolean), this.CreateProp('value', PropertyType.String, 'valueChanged')], [this.CreateEvent('valueChanged', !0)]).addOptions({ngModelProperty: 'value'});
case wijmo.input && wijmo.input.Popup:
return this.getMetaData(wijmo.Control).add([this.CreateProp('owner', PropertyType.String), this.CreateProp('showTrigger', PropertyType.Enum, '', wijmo.input.PopupTrigger), this.CreateProp('hideTrigger', PropertyType.Enum, '', wijmo.input.PopupTrigger), this.CreateProp('fadeIn', PropertyType.Boolean), this.CreateProp('fadeOut', PropertyType.Boolean), this.CreateProp('dialogResultEnter', PropertyType.String), this.CreateProp('modal', PropertyType.Boolean), ], [this.CreateEvent('showing'), this.CreateEvent('shown'), this.CreateEvent('hiding'), this.CreateEvent('hidden'), ]);
case wijmo.input && wijmo.input.MultiSelect:
return this.getMetaData(wijmo.input.ComboBox).add([this.CreateProp('checkedMemberPath', PropertyType.String), this.CreateProp('maxHeaderItems', PropertyType.Number), this.CreateProp('headerFormat', PropertyType.String), this.CreateProp('headerFormatter', PropertyType.Function), this.CreateProp('checkedItems', PropertyType.Any, 'checkedItemsChanged', BindingMode.TwoWay, !0, 950), ], [this.CreateEvent('checkedItemsChanged', !0)]);
case'CollectionViewNavigator':
return new MetaDataBase([this.CreateProp('cv', PropertyType.Any)]);
case'CollectionViewPager':
return new MetaDataBase([this.CreateProp('cv', PropertyType.Any)]);
case wijmo.grid && wijmo.grid.FlexGrid:
return this.getMetaData(wijmo.Control).add([this.CreateProp('allowAddNew', PropertyType.Boolean), this.CreateProp('allowDelete', PropertyType.Boolean), this.CreateProp('allowDragging', PropertyType.Enum, '', wijmo.grid.AllowDragging), this.CreateProp('allowMerging', PropertyType.Enum, '', wijmo.grid.AllowMerging), this.CreateProp('allowResizing', PropertyType.Enum, '', wijmo.grid.AllowResizing), this.CreateProp('allowSorting', PropertyType.Boolean), this.CreateProp('autoSizeMode', PropertyType.Enum, '', wijmo.grid.AutoSizeMode), this.CreateProp('autoGenerateColumns', PropertyType.Boolean), this.CreateProp('childItemsPath', PropertyType.Any), this.CreateProp('groupHeaderFormat', PropertyType.String), this.CreateProp('headersVisibility', PropertyType.Enum, '', wijmo.grid.HeadersVisibility), this.CreateProp('showSelectedHeaders', PropertyType.Enum, '', wijmo.grid.HeadersVisibility), this.CreateProp('showMarquee', PropertyType.Boolean), this.CreateProp('itemFormatter', PropertyType.Function), this.CreateProp('isReadOnly', PropertyType.Boolean), this.CreateProp('imeEnabled', PropertyType.Boolean), this.CreateProp('mergeManager', PropertyType.Any), this.CreateProp('selectionMode', PropertyType.Enum, '', wijmo.grid.SelectionMode), this.CreateProp('showGroups', PropertyType.Boolean), this.CreateProp('showSort', PropertyType.Boolean), this.CreateProp('showAlternatingRows', PropertyType.Boolean), this.CreateProp('treeIndent', PropertyType.Number), this.CreateProp('itemsSource', PropertyType.Any), this.CreateProp('autoClipboard', PropertyType.Boolean), this.CreateProp('frozenRows', PropertyType.Number), this.CreateProp('frozenColumns', PropertyType.Number), this.CreateProp('deferResizing', PropertyType.Boolean), this.CreateProp('sortRowIndex', PropertyType.Number), this.CreateProp('stickyHeaders', PropertyType.Boolean), this.CreateProp('preserveSelection', PropertyType.Boolean), this.CreateProp('preserveOutlineState', PropertyType.Boolean)], [this.CreateEvent('beginningEdit'), this.CreateEvent('cellEditEnded'), this.CreateEvent('cellEditEnding'), this.CreateEvent('prepareCellForEdit'), this.CreateEvent('formatItem'), this.CreateEvent('resizingColumn'), this.CreateEvent('resizedColumn'), this.CreateEvent('autoSizingColumn'), this.CreateEvent('autoSizedColumn'), this.CreateEvent('draggingColumn'), this.CreateEvent('draggedColumn'), this.CreateEvent('sortingColumn'), this.CreateEvent('sortedColumn'), this.CreateEvent('resizingRow'), this.CreateEvent('resizedRow'), this.CreateEvent('autoSizingRow'), this.CreateEvent('autoSizedRow'), this.CreateEvent('draggingRow'), this.CreateEvent('draggedRow'), this.CreateEvent('deletingRow'), this.CreateEvent('loadingRows'), this.CreateEvent('loadedRows'), this.CreateEvent('rowEditEnded'), this.CreateEvent('rowEditEnding'), this.CreateEvent('rowAdded'), this.CreateEvent('groupCollapsedChanged'), this.CreateEvent('groupCollapsedChanging'), this.CreateEvent('itemsSourceChanged', !0), this.CreateEvent('selectionChanging'), this.CreateEvent('selectionChanged', !0), this.CreateEvent('scrollPositionChanged', !1), this.CreateEvent('updatingView'), this.CreateEvent('updatedView'), this.CreateEvent('updatingLayout'), this.CreateEvent('updatedLayout'), this.CreateEvent('pasting'), this.CreateEvent('pasted'), this.CreateEvent('copying'), this.CreateEvent('copied')]);
case wijmo.grid && wijmo.grid.Column:
return new MetaDataBase([this.CreateProp('name', PropertyType.String), this.CreateProp('dataMap', PropertyType.Any), this.CreateProp('dataType', PropertyType.Enum, '', wijmo.DataType), this.CreateProp('binding', PropertyType.String), this.CreateProp('sortMemberPath', PropertyType.String), this.CreateProp('format', PropertyType.String), this.CreateProp('header', PropertyType.String), this.CreateProp('width', PropertyType.Number), this.CreateProp('minWidth', PropertyType.Number), this.CreateProp('maxWidth', PropertyType.Number), this.CreateProp('align', PropertyType.String), this.CreateProp('allowDragging', PropertyType.Boolean), this.CreateProp('allowSorting', PropertyType.Boolean), this.CreateProp('allowResizing', PropertyType.Boolean), this.CreateProp('allowMerging', PropertyType.Boolean), this.CreateProp('aggregate', PropertyType.Enum, '', wijmo.Aggregate), this.CreateProp('isReadOnly', PropertyType.Boolean), this.CreateProp('cssClass', PropertyType.String), this.CreateProp('isContentHtml', PropertyType.Boolean), this.CreateProp('isSelected', PropertyType.Boolean, 'grid.selectionChanged'), this.CreateProp('visible', PropertyType.Boolean), this.CreateProp('wordWrap', PropertyType.Boolean), this.CreateProp('mask', PropertyType.String), this.CreateProp('inputType', PropertyType.String), this.CreateProp('required', PropertyType.Boolean), this.CreateProp('showDropDown', PropertyType.Boolean), this.CreateProp('dropDownCssClass', PropertyType.String), ], [], [], 'columns', !0);
case'FlexGridCellTemplate':
return new MetaDataBase([this.CreateProp('cellType', PropertyType.String, '', null, !1), this.CreateProp('cellOverflow', PropertyType.String, ''), ], [], [], undefined, undefined, undefined, 'owner');
case wijmo.grid && wijmo.grid.filter && wijmo.grid.filter.FlexGridFilter:
return new MetaDataBase([this.CreateProp('showFilterIcons', PropertyType.Boolean), this.CreateProp('showSortButtons', PropertyType.Boolean), this.CreateProp('defaultFilterType', PropertyType.Enum, '', wijmo.grid.filter.FilterType), this.CreateProp('filterColumns', PropertyType.Any), ], [this.CreateEvent('filterChanging'), this.CreateEvent('filterChanged'), this.CreateEvent('filterApplied')], [], undefined, undefined, undefined, '');
case wijmo.grid && wijmo.grid.grouppanel && wijmo.grid.grouppanel.GroupPanel:
return this.getMetaData(wijmo.Control).add([this.CreateProp('hideGroupedColumns', PropertyType.Boolean), this.CreateProp('maxGroups', PropertyType.Number), this.CreateProp('placeholder', PropertyType.String), this.CreateProp('grid', PropertyType.Any), ]);
case wijmo.grid && wijmo.grid.detail && wijmo.grid.detail.FlexGridDetailProvider:
return new MetaDataBase([this.CreateProp('maxHeight', PropertyType.Number), this.CreateProp('detailVisibilityMode', PropertyType.Enum, '', wijmo.grid.detail.DetailVisibilityMode), this.CreateProp('rowHasDetail', PropertyType.Function), ], [], [], undefined, undefined, undefined, '');
case wijmo.grid && wijmo.grid.sheet && wijmo.grid.sheet.FlexSheet:
return this.getMetaData(wijmo.grid.FlexGrid).add([this.CreateProp('isTabHolderVisible', PropertyType.Boolean), this.CreateProp('selectedSheetIndex', PropertyType.Number, 'selectedSheetChanged'), ], [this.CreateEvent('selectedSheetChanged', !0), this.CreateEvent('draggingRowColumn'), this.CreateEvent('droppingRowColumn'), this.CreateEvent('loaded'), ]);
case wijmo.grid && wijmo.grid.sheet && wijmo.grid.sheet.Sheet:
return new MetaDataBase([this.CreateProp('name', PropertyType.String), this.CreateProp('itemsSource', PropertyType.Any), this.CreateProp('visible', PropertyType.Boolean), this.CreateProp('rowCount', PropertyType.Number, '', null, !1), this.CreateProp('columnCount', PropertyType.Number, '', null, !1)], [this.CreateEvent('nameChanged'), ]).addOptions({parentReferenceProperty: ''});
case wijmo.grid && wijmo.grid.multirow && wijmo.grid.multirow.MultiRow:
return this.getMetaData(wijmo.grid.FlexGrid).add([this.CreateProp('layoutDefinition', PropertyType.Any), this.CreateProp('centerHeadersVertically', PropertyType.Boolean), this.CreateProp('collapsedHeaders', PropertyType.Boolean), this.CreateProp('showHeaderCollapseButton', PropertyType.Boolean)]);
case wijmo.chart && wijmo.chart.FlexChartBase:
return this.getMetaData(wijmo.Control).add([this.CreateProp('binding', PropertyType.String), this.CreateProp('footer', PropertyType.String), this.CreateProp('header', PropertyType.String), this.CreateProp('selectionMode', PropertyType.Enum, '', wijmo.chart.SelectionMode), this.CreateProp('palette', PropertyType.Any), this.CreateProp('plotMargin', PropertyType.Any), this.CreateProp('footerStyle', PropertyType.Any), this.CreateProp('headerStyle', PropertyType.Any), this.CreateProp('tooltipContent', PropertyType.String, '', null, !1), this.CreateProp('itemsSource', PropertyType.Any)], [this.CreateEvent('rendering'), this.CreateEvent('rendered'), ]);
case wijmo.chart && wijmo.chart.FlexChartCore:
return this.getMetaData(wijmo.chart.FlexChartBase).add([this.CreateProp('bindingX', PropertyType.String), this.CreateProp('interpolateNulls', PropertyType.Boolean), this.CreateProp('legendToggle', PropertyType.Boolean), this.CreateProp('symbolSize', PropertyType.Number), this.CreateProp('options', PropertyType.Any), this.CreateProp('selection', PropertyType.Any, 'selectionChanged'), this.CreateProp('itemFormatter', PropertyType.Function), this.CreateProp('labelContent', PropertyType.String, '', null, !1), ], [this.CreateEvent('seriesVisibilityChanged'), this.CreateEvent('selectionChanged', !0), ], [this.CreateComplexProp('axisX', !1, !1), this.CreateComplexProp('axisY', !1, !1), this.CreateComplexProp('axes', !0), this.CreateComplexProp('plotAreas', !0)]);
case wijmo.chart && wijmo.chart.FlexChart:
return this.getMetaData(wijmo.chart.FlexChartCore).add([this.CreateProp('chartType', PropertyType.Enum, '', wijmo.chart.ChartType), this.CreateProp('rotated', PropertyType.Boolean), this.CreateProp('stacking', PropertyType.Enum, '', wijmo.chart.Stacking), ]);
case wijmo.chart && wijmo.chart.FlexPie:
return this.getMetaData(wijmo.chart.FlexChartBase).add([this.CreateProp('bindingName', PropertyType.String), this.CreateProp('innerRadius', PropertyType.Number), this.CreateProp('isAnimated', PropertyType.Boolean), this.CreateProp('offset', PropertyType.Number), this.CreateProp('reversed', PropertyType.Boolean), this.CreateProp('startAngle', PropertyType.Number), this.CreateProp('selectedItemPosition', PropertyType.Enum, '', wijmo.chart.Position), this.CreateProp('selectedItemOffset', PropertyType.Number), this.CreateProp('itemFormatter', PropertyType.Function), this.CreateProp('labelContent', PropertyType.String, '', null, !1), ]);
case wijmo.chart && wijmo.chart.FlexPie && wijmo.chart.hierarchical && wijmo.chart.hierarchical.Sunburst:
return this.getMetaData(wijmo.chart.FlexChartBase).add([this.CreateProp('bindingName', PropertyType.Any), this.CreateProp('innerRadius', PropertyType.Number), this.CreateProp('isAnimated', PropertyType.Boolean), this.CreateProp('offset', PropertyType.Number), this.CreateProp('reversed', PropertyType.Boolean), this.CreateProp('startAngle', PropertyType.Number), this.CreateProp('selectedItemPosition', PropertyType.Enum, '', wijmo.chart.Position), this.CreateProp('selectedItemOffset', PropertyType.Number), this.CreateProp('itemFormatter', PropertyType.Function), this.CreateProp('labelContent', PropertyType.String, '', null, !1), this.CreateProp('childItemsPath', PropertyType.Any)]);
case wijmo.chart && wijmo.chart.Axis:
return new MetaDataBase([this.CreateProp('axisLine', PropertyType.Boolean), this.CreateProp('format', PropertyType.String), this.CreateProp('labels', PropertyType.Boolean), this.CreateProp('majorGrid', PropertyType.Boolean), this.CreateProp('majorTickMarks', PropertyType.Enum, '', wijmo.chart.TickMark), this.CreateProp('majorUnit', PropertyType.Number), this.CreateProp('max', PropertyType.Number), this.CreateProp('min', PropertyType.Number), this.CreateProp('position', PropertyType.Enum, '', wijmo.chart.Position), this.CreateProp('reversed', PropertyType.Boolean), this.CreateProp('title', PropertyType.String), this.CreateProp('labelAngle', PropertyType.Number), this.CreateProp('minorGrid', PropertyType.Boolean), this.CreateProp('minorTickMarks', PropertyType.Enum, '', wijmo.chart.TickMark), this.CreateProp('minorUnit', PropertyType.Number), this.CreateProp('origin', PropertyType.Number), this.CreateProp('logBase', PropertyType.Number), this.CreateProp('plotArea', PropertyType.Any), this.CreateProp('labelAlign', PropertyType.String), this.CreateProp('name', PropertyType.String), this.CreateProp('overlappingLabels', PropertyType.Enum, '', wijmo.chart.OverlappingLabels), this.CreateProp('labelPadding', PropertyType.Number), this.CreateProp('itemFormatter', PropertyType.Function), this.CreateProp('itemsSource', PropertyType.Any), this.CreateProp('binding', PropertyType.String), ], [this.CreateEvent('rangeChanged'), ], [], 'axes', !0);
case wijmo.chart && wijmo.chart.Legend:
return new MetaDataBase([this.CreateProp('position', PropertyType.Enum, '', wijmo.chart.Position)], [], [], 'legend', !1, !1);
case wijmo.chart && wijmo.chart.DataLabelBase:
return new MetaDataBase([this.CreateProp('content', PropertyType.Any, ''), this.CreateProp('border', PropertyType.Boolean), ], [], [], 'dataLabel', !1, !1);
case wijmo.chart && wijmo.chart.DataLabel:
return this.getMetaData(wijmo.chart.DataLabelBase).add([this.CreateProp('position', PropertyType.Enum, '', wijmo.chart.LabelPosition), ]);
case wijmo.chart && wijmo.chart.PieDataLabel:
return this.getMetaData(wijmo.chart.DataLabelBase).add([this.CreateProp('position', PropertyType.Enum, '', wijmo.chart.PieLabelPosition), ]);
case wijmo.chart && wijmo.chart.SeriesBase:
return new MetaDataBase([this.CreateProp('axisX', PropertyType.Any), this.CreateProp('axisY', PropertyType.Any), this.CreateProp('binding', PropertyType.String), this.CreateProp('bindingX', PropertyType.String), this.CreateProp('cssClass', PropertyType.String), this.CreateProp('name', PropertyType.String), this.CreateProp('style', PropertyType.Any), this.CreateProp('altStyle', PropertyType.Any), this.CreateProp('symbolMarker', PropertyType.Enum, '', wijmo.chart.Marker), this.CreateProp('symbolSize', PropertyType.Number), this.CreateProp('symbolStyle', PropertyType.Any), this.CreateProp('visibility', PropertyType.Enum, 'chart.seriesVisibilityChanged', wijmo.chart.SeriesVisibility), this.CreateProp('itemsSource', PropertyType.Any), ], [], [this.CreateComplexProp('axisX', !1, !0), this.CreateComplexProp('axisY', !1, !0), ], 'series', !0);
case wijmo.chart && wijmo.chart.Series:
return this.getMetaData(wijmo.chart.SeriesBase).add([this.CreateProp('chartType', PropertyType.Enum, '', wijmo.chart.ChartType)]);
case wijmo.chart && wijmo.chart.LineMarker:
return new MetaDataBase([this.CreateProp('isVisible', PropertyType.Boolean), this.CreateProp('seriesIndex', PropertyType.Number), this.CreateProp('horizontalPosition', PropertyType.Number), this.CreateProp('content', PropertyType.Function), this.CreateProp('verticalPosition', PropertyType.Number), this.CreateProp('alignment', PropertyType.Enum, '', wijmo.chart.LineMarkerAlignment), this.CreateProp('lines', PropertyType.Enum, '', wijmo.chart.LineMarkerLines), this.CreateProp('interaction', PropertyType.Enum, '', wijmo.chart.LineMarkerInteraction), this.CreateProp('dragLines', PropertyType.Boolean), this.CreateProp('dragThreshold', PropertyType.Number), this.CreateProp('dragContent', PropertyType.Boolean), ], [this.CreateEvent('positionChanged'), ], [], undefined, undefined, undefined, '');
case wijmo.chart && wijmo.chart.DataPoint:
return new MetaDataBase([this.CreateProp('x', PropertyType.AnyPrimitive), this.CreateProp('y', PropertyType.AnyPrimitive)], [], [], '');
case wijmo.chart && wijmo.chart.annotation && wijmo.chart.annotation.AnnotationLayer:
return new MetaDataBase([], [], [], undefined, undefined, undefined, '');
case'FlexChartAnnotation':
return new MetaDataBase([this.CreateProp('type', PropertyType.String, '', null, !1), this.CreateProp('attachment', PropertyType.Enum, '', wijmo.chart.annotation.AnnotationAttachment), this.CreateProp('position', PropertyType.Enum, '', wijmo.chart.annotation.AnnotationPosition), this.CreateProp('point', PropertyType.Any), this.CreateProp('seriesIndex', PropertyType.Number), this.CreateProp('pointIndex', PropertyType.Number), this.CreateProp('offset', PropertyType.Any), this.CreateProp('style', PropertyType.Any), this.CreateProp('isVisible', PropertyType.Boolean), this.CreateProp('tooltip', PropertyType.String), this.CreateProp('text', PropertyType.String), this.CreateProp('content', PropertyType.String), this.CreateProp('name', PropertyType.String), this.CreateProp('width', PropertyType.Number), this.CreateProp('height', PropertyType.Number), this.CreateProp('start', PropertyType.Any), this.CreateProp('end', PropertyType.Any), this.CreateProp('radius', PropertyType.Number), this.CreateProp('length', PropertyType.Number), this.CreateProp('href', PropertyType.String)], [], [this.CreateComplexProp('point', !1, !0), this.CreateComplexProp('start', !1, !0), this.CreateComplexProp('end', !1, !0), this.CreateComplexProp('points', !0), ], 'items', !0);
case wijmo.chart && wijmo.chart.interaction && wijmo.chart.interaction.RangeSelector:
return new MetaDataBase([this.CreateProp('isVisible', PropertyType.Boolean), this.CreateProp('min', PropertyType.Number), this.CreateProp('max', PropertyType.Number), this.CreateProp('orientation', PropertyType.Enum, '', wijmo.chart.interaction.Orientation), this.CreateProp('seamless', PropertyType.Boolean), this.CreateProp('minScale', PropertyType.Number), this.CreateProp('maxScale', PropertyType.Number), ], [this.CreateEvent('rangeChanged'), ], [], undefined, undefined, undefined, '');
case wijmo.chart && wijmo.chart.interaction && wijmo.chart.interaction.ChartGestures:
return new MetaDataBase([this.CreateProp('mouseAction', PropertyType.Enum, '', wijmo.chart.interaction.MouseAction), this.CreateProp('interactiveAxes', PropertyType.Enum, '', wijmo.chart.interaction.InteractiveAxes), this.CreateProp('enable', PropertyType.Boolean), this.CreateProp('scaleX', PropertyType.Number), this.CreateProp('scaleY', PropertyType.Number), this.CreateProp('posX', PropertyType.Number), this.CreateProp('posY', PropertyType.Number), ], [], [], undefined, undefined, undefined, '');
case wijmo.chart && wijmo.chart.animation && wijmo.chart.animation.ChartAnimation:
return new MetaDataBase([this.CreateProp('animationMode', PropertyType.Enum, '', wijmo.chart.animation.AnimationMode), this.CreateProp('easing', PropertyType.Enum, '', wijmo.chart.animation.Easing), this.CreateProp('duration', PropertyType.Number), this.CreateProp('axisAnimation', PropertyType.Boolean)], [], [], undefined, undefined, undefined, '');
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.FinancialChart:
return this.getMetaData(wijmo.chart.FlexChartCore).add([this.CreateProp('chartType', PropertyType.Enum, '', wijmo.chart.finance.FinancialChartType), ]);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.FinancialSeries:
return this.getMetaData(wijmo.chart.SeriesBase).add([this.CreateProp('chartType', PropertyType.Enum, '', wijmo.chart.finance.FinancialChartType)]);
case wijmo.chart && wijmo.chart.analytics && wijmo.chart.analytics.TrendLineBase:
return this.getMetaData(wijmo.chart.SeriesBase).add([this.CreateProp('sampleCount', PropertyType.Number)]);
case wijmo.chart && wijmo.chart.analytics && wijmo.chart.analytics.TrendLine:
return this.getMetaData(wijmo.chart.analytics.TrendLineBase).add([this.CreateProp('order', PropertyType.Number), this.CreateProp('fitType', PropertyType.Enum, '', wijmo.chart.analytics.TrendLineFitType)]);
case wijmo.chart && wijmo.chart.analytics && wijmo.chart.analytics.MovingAverage:
return this.getMetaData(wijmo.chart.analytics.TrendLineBase).add([this.CreateProp('period', PropertyType.Number), this.CreateProp('type', PropertyType.Enum, '', wijmo.chart.analytics.MovingAverageType)]);
case wijmo.chart && wijmo.chart.analytics && wijmo.chart.analytics.FunctionSeries:
return this.getMetaData(wijmo.chart.analytics.TrendLineBase).add([this.CreateProp('min', PropertyType.Number), this.CreateProp('max', PropertyType.Number), ]);
case wijmo.chart && wijmo.chart.analytics && wijmo.chart.analytics.YFunctionSeries:
return this.getMetaData(wijmo.chart.analytics.FunctionSeries).add([this.CreateProp('func', PropertyType.Function), ]);
case wijmo.chart && wijmo.chart.analytics && wijmo.chart.analytics.ParametricFunctionSeries:
return this.getMetaData(wijmo.chart.analytics.FunctionSeries).add([this.CreateProp('func', PropertyType.Function), this.CreateProp('xFunc', PropertyType.Function), this.CreateProp('yFunc', PropertyType.Function), ]);
case wijmo.chart && wijmo.chart.analytics && wijmo.chart.analytics.Waterfall:
return this.getMetaData(wijmo.chart.SeriesBase).add([this.CreateProp('relativeData', PropertyType.Boolean), this.CreateProp('start', PropertyType.Number), this.CreateProp('startLabel', PropertyType.String), this.CreateProp('showTotal', PropertyType.Boolean), this.CreateProp('totalLabel', PropertyType.String), this.CreateProp('showIntermediateTotal', PropertyType.Boolean), this.CreateProp('intermediateTotalPositions', PropertyType.Any), this.CreateProp('intermediateTotalLabels', PropertyType.Any), this.CreateProp('connectorLines', PropertyType.Boolean), this.CreateProp('styles', PropertyType.Any)]);
case wijmo.chart && wijmo.chart.PlotArea:
return new MetaDataBase([this.CreateProp('column', PropertyType.Number), this.CreateProp('height', PropertyType.String), this.CreateProp('name', PropertyType.String), this.CreateProp('row', PropertyType.Number), this.CreateProp('style', PropertyType.Any), this.CreateProp('width', PropertyType.String), ], [], [], 'plotAreas', !0);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.Fibonacci:
return this.getMetaData(wijmo.chart.SeriesBase).add([this.CreateProp('high', PropertyType.Number), this.CreateProp('low', PropertyType.Number), this.CreateProp('labelPosition', PropertyType.Enum, '', wijmo.chart.LabelPosition), this.CreateProp('levels', PropertyType.Any), this.CreateProp('minX', PropertyType.AnyPrimitive), this.CreateProp('maxX', PropertyType.AnyPrimitive), this.CreateProp('uptrend', PropertyType.Boolean)]);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.FibonacciTimeZones:
return this.getMetaData(wijmo.chart.SeriesBase).add([this.CreateProp('startX', PropertyType.Any), this.CreateProp('endX', PropertyType.Any), this.CreateProp('labelPosition', PropertyType.Enum, '', wijmo.chart.LabelPosition), this.CreateProp('levels', PropertyType.Any)]);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.FibonacciArcs:
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.FibonacciFans:
return this.getMetaData(wijmo.chart.SeriesBase).add([this.CreateProp('start', PropertyType.Any), this.CreateProp('end', PropertyType.Any), this.CreateProp('labelPosition', PropertyType.Enum, '', wijmo.chart.LabelPosition), this.CreateProp('levels', PropertyType.Any)]);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.OverlayIndicatorBase:
return this.getMetaData(wijmo.chart.SeriesBase);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.SingleOverlayIndicatorBase:
return this.getMetaData(wijmo.chart.finance.analytics.OverlayIndicatorBase).add([this.CreateProp('period', PropertyType.Number)]);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.MacdBase:
return this.getMetaData(wijmo.chart.finance.analytics.OverlayIndicatorBase).add([this.CreateProp('fastPeriod', PropertyType.Number), this.CreateProp('slowPeriod', PropertyType.Number), this.CreateProp('smoothingPeriod', PropertyType.Number)]);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.Macd:
return this.getMetaData(wijmo.chart.finance.analytics.MacdBase).add([this.CreateProp('styles', PropertyType.Any)]);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.MacdHistogram:
return this.getMetaData(wijmo.chart.finance.analytics.MacdBase);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.ATR:
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.RSI:
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.WilliamsR:
return this.getMetaData(wijmo.chart.finance.analytics.SingleOverlayIndicatorBase);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.CCI:
return this.getMetaData(wijmo.chart.finance.analytics.SingleOverlayIndicatorBase).add([this.CreateProp('constant', PropertyType.Number)]);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.Stochastic:
return this.getMetaData(wijmo.chart.finance.analytics.OverlayIndicatorBase).add([this.CreateProp('dPeriod', PropertyType.Number), this.CreateProp('kPeriod', PropertyType.Number), this.CreateProp('smoothingPeriod', PropertyType.Number), this.CreateProp('styles', PropertyType.Any)]);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.Envelopes:
return this.getMetaData(wijmo.chart.finance.analytics.OverlayIndicatorBase).add([this.CreateProp('period', PropertyType.Number), this.CreateProp('size', PropertyType.Number), this.CreateProp('type', PropertyType.Enum, '', wijmo.chart.finance.analytics.MovingAverageType)]);
case wijmo.chart && wijmo.chart.finance && wijmo.chart.finance.analytics && wijmo.chart.finance.analytics.BollingerBands:
return this.getMetaData(wijmo.chart.finance.analytics.OverlayIndicatorBase).add([this.CreateProp('period', PropertyType.Number), this.CreateProp('multiplier', PropertyType.Number)]);
case wijmo.gauge && wijmo.gauge.Gauge:
return this.getMetaData(wijmo.Control).add([this.CreateProp('value', PropertyType.Number, 'valueChanged'), this.CreateProp('min', PropertyType.Number), this.CreateProp('max', PropertyType.Number), this.CreateProp('origin', PropertyType.Number), this.CreateProp('isReadOnly', PropertyType.Boolean), this.CreateProp('step', PropertyType.Number), this.CreateProp('format', PropertyType.String), this.CreateProp('thickness', PropertyType.Number), this.CreateProp('hasShadow', PropertyType.Boolean), this.CreateProp('isAnimated', PropertyType.Boolean), this.CreateProp('showText', PropertyType.Enum, '', wijmo.gauge.ShowText), this.CreateProp('showRanges', PropertyType.Boolean), this.CreateProp('thumbSize', PropertyType.Number), this.CreateProp('getText', PropertyType.Function)], [this.CreateEvent('valueChanged', !0)], [this.CreateComplexProp('ranges', !0), this.CreateComplexProp('pointer', !1, !1), this.CreateComplexProp('face', !1, !1)]).addOptions({ngModelProperty: 'value'});
case wijmo.gauge && wijmo.gauge.LinearGauge:
return this.getMetaData(wijmo.gauge.Gauge).add([this.CreateProp('direction', PropertyType.Enum, '', wijmo.gauge.GaugeDirection)]);
case wijmo.gauge && wijmo.gauge.BulletGraph:
return this.getMetaData(wijmo.gauge.LinearGauge).add([this.CreateProp('target', PropertyType.Number), this.CreateProp('good', PropertyType.Number), this.CreateProp('bad', PropertyType.Number)]);
case wijmo.gauge && wijmo.gauge.RadialGauge:
return this.getMetaData(wijmo.gauge.Gauge).add([this.CreateProp('autoScale', PropertyType.Boolean), this.CreateProp('startAngle', PropertyType.Number), this.CreateProp('sweepAngle', PropertyType.Number)]);
case wijmo.gauge && wijmo.gauge.Range:
return new MetaDataBase([this.CreateProp('color', PropertyType.String), this.CreateProp('min', PropertyType.Number), this.CreateProp('max', PropertyType.Number), this.CreateProp('name', PropertyType.String), this.CreateProp('thickness', PropertyType.Number)], [], [], 'ranges', !0);
case wijmo.olap && wijmo.olap.PivotGrid:
return this.getMetaData(wijmo.grid.FlexGrid).add([this.CreateProp('showDetailOnDoubleClick', PropertyType.Boolean), this.CreateProp('customContextMenu', PropertyType.Boolean), this.CreateProp('collapsibleSubtotals', PropertyType.Boolean), this.CreateProp('centerHeadersVertically', PropertyType.Boolean), ]);
case wijmo.olap && wijmo.olap.PivotChart:
return new MetaDataBase([this.CreateProp('chartType', PropertyType.Enum, '', wijmo.olap.PivotChartType), this.CreateProp('showHierarchicalAxes', PropertyType.Boolean), this.CreateProp('showTotals', PropertyType.Boolean), this.CreateProp('stacking', PropertyType.Enum, '', wijmo.chart.Stacking), this.CreateProp('maxSeries', PropertyType.Number), this.CreateProp('maxPoints', PropertyType.Number), this.CreateProp('itemsSource', PropertyType.Any), ]);
case wijmo.olap && wijmo.olap.PivotPanel:
return new MetaDataBase([this.CreateProp('autoGenerateFields', PropertyType.Boolean), this.CreateProp('viewDefinition', PropertyType.String), this.CreateProp('engine', PropertyType.Any), this.CreateProp('itemsSource', PropertyType.Any), ], [this.CreateEvent('itemsSourceChanged'), this.CreateEvent('viewDefinitionChanged'), this.CreateEvent('updatingView'), this.CreateEvent('updatedView')]);
case wijmo.olap && wijmo.olap.PivotField:
return new MetaDataBase([this.CreateProp('binding', PropertyType.String), this.CreateProp('header', PropertyType.String), this.CreateProp('dataType', PropertyType.Enum, '', wijmo.DataType), ], [], [], '', !0, !0, '')
}
return new MetaDataBase([])
}, ControlMetaFactory.getClassName = function(classRef)
{
return (classRef.toString().match(/function (.+?)\(/) || [, ''])[1]
}, ControlMetaFactory.toCamelCase = function(s)
{
return s.toLowerCase().replace(/-(.)/g, function(match, group1)
{
return group1.toUpperCase()
})
}, ControlMetaFactory.findInArr = function(arr, propName, value)
{
for (var i in arr)
if (arr[i][propName] === value)
return arr[i];
return null
}, ControlMetaFactory
}(),
PropDescBase,
PropertyType,
BindingMode,
EventDescBase,
ComplexPropDescBase,
MetaDataBase;
interop.ControlMetaFactory = ControlMetaFactory;
PropDescBase = function()
{
function PropDescBase(propertyName, propertyType, changeEvent, enumType, isNativeControlProperty, priority)
{
isNativeControlProperty === void 0 && (isNativeControlProperty = !0);
priority === void 0 && (priority = 0);
this._priority = 0;
this._propertyName = propertyName;
this._propertyType = propertyType;
this._changeEvent = changeEvent;
this._enumType = enumType;
this._isNativeControlProperty = isNativeControlProperty;
this._priority = priority
}
return Object.defineProperty(PropDescBase.prototype, "propertyName", {
get: function()
{
return this._propertyName
}, enumerable: !0, configurable: !0
}), Object.defineProperty(PropDescBase.prototype, "propertyType", {
get: function()
{
return this._propertyType
}, enumerable: !0, configurable: !0
}), Object.defineProperty(PropDescBase.prototype, "changeEvent", {
get: function()
{
return this._changeEvent
}, enumerable: !0, configurable: !0
}), Object.defineProperty(PropDescBase.prototype, "enumType", {
get: function()
{
return this._enumType
}, enumerable: !0, configurable: !0
}), Object.defineProperty(PropDescBase.prototype, "bindingMode", {
get: function()
{
return this.changeEvent ? BindingMode.TwoWay : BindingMode.OneWay
}, enumerable: !0, configurable: !0
}), Object.defineProperty(PropDescBase.prototype, "isNativeControlProperty", {
get: function()
{
return this._isNativeControlProperty
}, enumerable: !0, configurable: !0
}), Object.defineProperty(PropDescBase.prototype, "priority", {
get: function()
{
return this._priority
}, enumerable: !0, configurable: !0
}), Object.defineProperty(PropDescBase.prototype, "shouldUpdateSource", {
get: function()
{
return this.bindingMode === BindingMode.TwoWay && this.propertyType != PropertyType.EventHandler
}, enumerable: !0, configurable: !0
}), PropDescBase.prototype.initialize = function(options)
{
wijmo.copy(this, options)
}, PropDescBase.prototype.castValueToType = function(value)
{
var type,
pt,
castVal;
if (value == undefined)
return value;
if (type = this.propertyType, pt = PropertyType, type === pt.AnyPrimitive)
{
if (!wijmo.isString(value))
return value;
if (value === 'true' || value === 'false')
type = pt.Boolean;
else
return (castVal = +value, !isNaN(castVal)) ? castVal : (castVal = this._parseDate(value), !wijmo.isString(castVal)) ? castVal : value
}
switch (type)
{
case pt.Number:
if (typeof value == 'string')
{
if (value.indexOf('*') >= 0)
return value;
if (value.trim() === '')
return null
}
return +value;
case pt.Boolean:
return value === 'true' ? !0 : value === 'false' ? !1 : !!value;
case pt.String:
return value + '';
case pt.Date:
return this._parseDate(value);
case pt.Enum:
return typeof value == 'number' ? value : this.enumType[value];
default:
return value
}
}, PropDescBase.prototype._parseDate = function(value)
{
if (value && wijmo.isString(value))
{
value = value.replace(/["']/g, '');
var dt=wijmo.changeType(value, wijmo.DataType.Date, 'r');
if (wijmo.isDate(dt))
return dt
}
return value
}, PropDescBase
}();
interop.PropDescBase = PropDescBase,
function(PropertyType)
{
PropertyType[PropertyType.Boolean = 0] = "Boolean";
PropertyType[PropertyType.Number = 1] = "Number";
PropertyType[PropertyType.Date = 2] = "Date";
PropertyType[PropertyType.String = 3] = "String";
PropertyType[PropertyType.AnyPrimitive = 4] = "AnyPrimitive";
PropertyType[PropertyType.Enum = 5] = "Enum";
PropertyType[PropertyType.Function = 6] = "Function";
PropertyType[PropertyType.EventHandler = 7] = "EventHandler";
PropertyType[PropertyType.Any = 8] = "Any"
}(interop.PropertyType || (interop.PropertyType = {}));
PropertyType = interop.PropertyType;
interop.isSimpleType = isSimpleType,
function(BindingMode)
{
BindingMode[BindingMode.OneWay = 0] = "OneWay";
BindingMode[BindingMode.TwoWay = 1] = "TwoWay"
}(interop.BindingMode || (interop.BindingMode = {}));
BindingMode = interop.BindingMode;
EventDescBase = function()
{
function EventDescBase(eventName, isPropChanged)
{
this._eventName = eventName;
this._isPropChanged = isPropChanged
}
return Object.defineProperty(EventDescBase.prototype, "eventName", {
get: function()
{
return this._eventName
}, enumerable: !0, configurable: !0
}), Object.defineProperty(EventDescBase.prototype, "isPropChanged", {
get: function()
{
return this._isPropChanged === !0
}, enumerable: !0, configurable: !0
}), EventDescBase
}();
interop.EventDescBase = EventDescBase;
ComplexPropDescBase = function()
{
function ComplexPropDescBase(propertyName, isArray, ownsObject)
{
ownsObject === void 0 && (ownsObject = !1);
this.isArray = !1;
this._ownsObject = !1;
this.propertyName = propertyName;
this.isArray = isArray;
this._ownsObject = ownsObject
}
return Object.defineProperty(ComplexPropDescBase.prototype, "ownsObject", {
get: function()
{
return this.isArray || this._ownsObject
}, enumerable: !0, configurable: !0
}), ComplexPropDescBase
}();
interop.ComplexPropDescBase = ComplexPropDescBase;
MetaDataBase = function()
{
function MetaDataBase(props, events, complexProps, parentProperty, isParentPropertyArray, ownsObject, parentReferenceProperty, ngModelProperty)
{
this._props = [];
this._events = [];
this._complexProps = [];
this.props = props;
this.events = events;
this.complexProps = complexProps;
this.parentProperty = parentProperty;
this.isParentPropertyArray = isParentPropertyArray;
this.ownsObject = ownsObject;
this.parentReferenceProperty = parentReferenceProperty;
this.ngModelProperty = ngModelProperty
}
return Object.defineProperty(MetaDataBase.prototype, "props", {
get: function()
{
return this._props
}, set: function(value)
{
this._props = value || []
}, enumerable: !0, configurable: !0
}), Object.defineProperty(MetaDataBase.prototype, "events", {
get: function()
{
return this._events
}, set: function(value)
{
this._events = value || []
}, enumerable: !0, configurable: !0
}), Object.defineProperty(MetaDataBase.prototype, "complexProps", {
get: function()
{
return this._complexProps
}, set: function(value)
{
this._complexProps = value || []
}, enumerable: !0, configurable: !0
}), MetaDataBase.prototype.add = function(props, events, complexProps, parentProperty, isParentPropertyArray, ownsObject, parentReferenceProperty, ngModelProperty)
{
return this.addOptions({
props: props, events: events, complexProps: complexProps, parentProperty: parentProperty, isParentPropertyArray: isParentPropertyArray, ownsObject: ownsObject, parentReferenceProperty: parentReferenceProperty, ngModelProperty: ngModelProperty
})
}, MetaDataBase.prototype.addOptions = function(options)
{
var prop,
thisValue,
optionsValue;
for (prop in options)
thisValue = this[prop],
optionsValue = options[prop],
thisValue instanceof Array ? this[prop] = thisValue.concat(optionsValue || []) : optionsValue !== undefined && (this[prop] = optionsValue);
return this
}, MetaDataBase.prototype.prepare = function()
{
var baseArr=[].concat(this._props);
this._props.sort(function(a, b)
{
var ret=a.priority - b.priority;
return ret || (ret = baseArr.indexOf(a) - baseArr.indexOf(b)), ret
})
}, MetaDataBase
}();
interop.MetaDataBase = MetaDataBase
})(interop = wj.interop || (wj.interop = {}))
})(wj || (wj = {}));
exports_1("wjMetaBase", wj)
}
}
});
System.register("wijmo/wijmo.angular2.metaFactory", ["wijmo/wijmo.metaFactory"], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
wijmo_metaFactory_1,
MetaFactory,
PropDesc,
EventDesc,
ComplexPropDesc;
return {
setters: [function(wijmo_metaFactory_1_1)
{
wijmo_metaFactory_1 = wijmo_metaFactory_1_1
}], execute: function()
{
MetaFactory = function(_super)
{
function MetaFactory()
{
_super.apply(this, arguments)
}
return __extends(MetaFactory, _super), MetaFactory.CreateProp = function(propertyName, propertyType, changeEvent, enumType, isNativeControlProperty, priority)
{
return new PropDesc(propertyName, propertyType, changeEvent, enumType, isNativeControlProperty, priority)
}, MetaFactory.CreateEvent = function(eventName, isPropChanged)
{
return new EventDesc(eventName, isPropChanged)
}, MetaFactory.CreateComplexProp = function(propertyName, isArray, ownsObject)
{
return new ComplexPropDesc(propertyName, isArray, ownsObject)
}, MetaFactory.findProp = function(propName, props)
{
return wijmo_metaFactory_1.wjMetaBase.interop.ControlMetaFactory.findProp(propName, props)
}, MetaFactory.findEvent = function(eventName, events)
{
return wijmo_metaFactory_1.wjMetaBase.interop.ControlMetaFactory.findEvent(eventName, events)
}, MetaFactory.findComplexProp = function(propName, props)
{
return wijmo_metaFactory_1.wjMetaBase.interop.ControlMetaFactory.findComplexProp(propName, props)
}, MetaFactory
}(wijmo_metaFactory_1.wjMetaBase.interop.ControlMetaFactory);
exports_1("MetaFactory", MetaFactory);
PropDesc = function(_super)
{
function PropDesc()
{
_super.apply(this, arguments)
}
return __extends(PropDesc, _super), PropDesc
}(wijmo_metaFactory_1.wjMetaBase.interop.PropDescBase);
exports_1("PropDesc", PropDesc);
EventDesc = function(_super)
{
function EventDesc()
{
_super.apply(this, arguments)
}
return __extends(EventDesc, _super), EventDesc
}(wijmo_metaFactory_1.wjMetaBase.interop.EventDescBase);
exports_1("EventDesc", EventDesc);
ComplexPropDesc = function(_super)
{
function ComplexPropDesc()
{
_super.apply(this, arguments)
}
return __extends(ComplexPropDesc, _super), ComplexPropDesc
}(wijmo_metaFactory_1.wjMetaBase.interop.ComplexPropDescBase);
exports_1("ComplexPropDesc", ComplexPropDesc)
}
}
});
System.register("wijmo/wijmo.angular2.directiveBase", ['@angular/core', '@angular/core/src/reflection/reflection', 'wijmo/wijmo.angular2.metaFactory'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
ng2,
reflection_1,
wjNg2Meta,
WjComponent,
DirectiveTypeData,
WjDirectiveBehavior,
_Walker,
Ng2Utils,
MethodProxy;
return {
setters: [function(ng2_1)
{
ng2 = ng2_1
}, function(reflection_1_1)
{
reflection_1 = reflection_1_1
}, function(wjNg2Meta_1)
{
wjNg2Meta = wjNg2Meta_1
}], execute: function()
{
exports_1("WjComponent", WjComponent = function(options)
{
return function(target, targetKey)
{
var metaId=options.wjMetadataId,
baseType=Object.getPrototypeOf(target.prototype).constructor,
baseDirMeta=Ng2Utils.getTypeAnnotation(baseType, ng2.ComponentMetadata),
mergedOptions={},
hasOwnMeta=metaId || !baseDirMeta,
filterProps,
metaData,
changeEventsMap,
retNg,
thisDirMeta,
ret;
return metaId || (options.wjMetadataId = metaId = baseDirMeta ? baseDirMeta.wjMetadataId : baseType), filterProps = function(name)
{
return ['properties', 'events', 'bindings', 'viewBindings'].indexOf(name) < 0
}, metaData = wjNg2Meta.MetaFactory.getMetaData(metaId), metaData.prepare(), changeEventsMap = Ng2Utils.getChangeEventMap(metaData), baseDirMeta && Ng2Utils._copy(mergedOptions, baseDirMeta, !0, !1, filterProps), Ng2Utils._copy(mergedOptions, options), hasOwnMeta && (mergedOptions.inputs = (options.inputs || []).concat([WjDirectiveBehavior.parPropAttr, WjDirectiveBehavior.isInitializedPropAttr]).concat(metaData.props.map(function(propDesc)
{
return propDesc.propertyName
})), mergedOptions.outputs = (options.outputs || []).concat([WjDirectiveBehavior.initializedEventAttr]).concat(Ng2Utils.initEvents(target, changeEventsMap))), Ng2Utils._copy(mergedOptions, options.wjOverride, !0), options.templateUrl ? delete mergedOptions.template : options.template && delete mergedOptions.templateUrl, options.styleUrls ? delete mergedOptions.styles : options.styleUrls && delete mergedOptions.styles, target[Ng2Utils.directiveTypeDataProp] = new DirectiveTypeData(metaData, changeEventsMap, mergedOptions.wjParentDirectives, mergedOptions.wjSiblingDirectiveId), retNg = mergedOptions.wjIsDirective ? ng2.Directive(mergedOptions) : ng2.Component(mergedOptions), thisDirMeta = Ng2Utils.getAnnotation(retNg.annotations, ng2.DirectiveMetadata), thisDirMeta && Ng2Utils._copy(thisDirMeta, mergedOptions, !0, !1, function(name)
{
return name.indexOf('wj') === 0
}), ret = retNg(target, targetKey), new MethodProxy(target, 'ngOnInit', WjDirectiveBehavior.prototype.dirOnInit), new MethodProxy(target, 'ngOnDestroy', WjDirectiveBehavior.prototype.dirOnDestroy), new MethodProxy(target, 'ngOnChanges', WjDirectiveBehavior.prototype.dirOnChanges), new MethodProxy(target, 'ngAfterViewInit', WjDirectiveBehavior.prototype.dirAfterViewInit), ret
}
});
DirectiveTypeData = function()
{
function DirectiveTypeData(metaData, changeEventMap, parentDirectives, siblingId)
{
this._fwdResolved = !1;
this.metaData = metaData;
this.changeEventMap = changeEventMap;
parentDirectives && (this._parentDirectives = [].concat(parentDirectives));
this.siblingId = siblingId || (++DirectiveTypeData._siblingIdCounter).toString()
}
return Object.defineProperty(DirectiveTypeData.prototype, "parentDirectives", {
get: function()
{
return this._resolveForwardDeclarations(), this._parentDirectives
}, enumerable: !0, configurable: !0
}), DirectiveTypeData.prototype._resolveForwardDeclarations = function()
{
this._fwdResolved || (this._fwdResolved = !0, WjDirectiveBehavior.resolveForwardDecl(this._parentDirectives))
}, DirectiveTypeData._siblingIdCounter = 0, DirectiveTypeData
}();
exports_1("DirectiveTypeData", DirectiveTypeData);
WjDirectiveBehavior = function()
{
function WjDirectiveBehavior(directive, elementRef, injector)
{
this.isInitialized = !1;
this.isDestroyed = !1;
this.directive = directive;
this.elementRef = elementRef;
this.injector = injector;
var typeData=this.typeData = directive.constructor[Ng2Utils.directiveTypeDataProp];
directive[WjDirectiveBehavior.BehaviourRefProp] = this;
injector[WjDirectiveBehavior.BehaviourRefProp] = this;
directive[WjDirectiveBehavior.isInitializedPropAttr] = !1;
_Walker.associate(injector, this);
this.createEvents();
MethodProxy.attachInstance(directive, this);
this._setupAsChild();
this._isHostElement() && elementRef.nativeElement.setAttribute(WjDirectiveBehavior.siblingDirIdAttr, typeData.siblingId);
this.subscribeToEvents(!1)
}
return WjDirectiveBehavior.getHostElement = function(ngHostElRef)
{
return ngHostElRef.nativeElement
}, WjDirectiveBehavior.attach = function(directive, elementRef, injector)
{
return new WjDirectiveBehavior(directive, elementRef, injector)
}, WjDirectiveBehavior.prototype.dirOnInit = function(originalMethod)
{
this.isInitialized = !0;
originalMethod();
this._initParent();
this.subscribeToEvents(!0);
this.directive.wjAfterParentInit && this.directive.wjAfterParentInit()
}, WjDirectiveBehavior.prototype.dirAfterViewInit = function()
{
this.directive[WjDirectiveBehavior.isInitializedPropAttr] = !0;
this.directive[WjDirectiveBehavior.initializedEventAttr].next(undefined)
}, WjDirectiveBehavior.prototype.dirOnDestroy = function(originalMethod)
{
var control,
parControl,
parProp,
parArr,
idx;
if (originalMethod(), !this.isDestroyed)
{
if (this.isDestroyed = !0, control = this.directive, this._siblingInsertedEH && this.elementRef.nativeElement.removeEventListener('DOMNodeInserted', this._siblingInsertedEH), this._isParentArray() && !this.parentBehavior.isDestroyed && (parControl = this.parentBehavior.directive, parProp = this._getParentProp(), parControl && parProp && control && (parArr = parControl[parProp], parArr && (idx = parArr.indexOf(control), idx >= 0 && parArr.splice(idx, 1)))), control instanceof wijmo.Control && control.hostElement)
{
var host=this.elementRef.nativeElement,
hostParent=host && host.parentNode,
hostIdx=hostParent ? Array.prototype.indexOf.call(hostParent.childNodes, host) : -1;
control.dispose();
hostIdx > -1 && Array.prototype.indexOf.call(hostParent.childNodes, host) < 0 && (host.textContent = '', hostParent.replaceChild(host, hostParent.childNodes[hostIdx]))
}
this.injector[WjDirectiveBehavior.BehaviourRefProp] = null;
_Walker.disassociate(this.injector)
}
}, WjDirectiveBehavior.prototype.dirOnChanges = function(originalMethod, changes)
{
originalMethod(changes)
}, WjDirectiveBehavior.instantiateTemplate = function(parent, viewContainerRef, templateRef)
{
for (var curNode, viewRef=viewContainerRef.createEmbeddedView(templateRef, {}, viewContainerRef.length), nodes=viewRef.rootNodes, rootEl=document.createElement('div'), _i=0, nodes_1=nodes; _i < nodes_1.length; _i++)
curNode = nodes_1[_i],
rootEl.appendChild(curNode);
return parent && parent.appendChild(rootEl), {
viewRef: viewRef, rootElement: rootEl
}
}, WjDirectiveBehavior.prototype.createEvents = function()
{
for (var curEventMap, changeProps, _a, changeProps_1, curChangeProp, changeEvents=this.typeData.changeEventMap, directive=this.directive, _i=0, changeEvents_1=changeEvents; _i < changeEvents_1.length; _i++)
if (curEventMap = changeEvents_1[_i], changeProps = curEventMap.props, curEventMap.eventImpl && (directive[curEventMap.eventImpl] = new ng2.EventEmitter(!1)), changeProps && changeProps.length)
for (_a = 0, changeProps_1 = changeProps; _a < changeProps_1.length; _a++)
curChangeProp = changeProps_1[_a],
directive[curChangeProp.evImpl] = new ng2.EventEmitter(!1);
directive[WjDirectiveBehavior.initializedEventAttr] = new ng2.EventEmitter(!0)
}, WjDirectiveBehavior.prototype.subscribeToEvents = function(afterInit)
{
var changeEvents=this.typeData.changeEventMap,
_i,
changeEvents_2,
_a,
changeEvents_3,
curEventMap;
for (afterInit = !!afterInit, _i = 0, changeEvents_2 = changeEvents; _i < changeEvents_2.length; _i++)
curEventMap = changeEvents_2[_i],
afterInit !== curEventMap.event.indexOf(".") < 0 && this.addHandlers(curEventMap);
if (afterInit)
for (_a = 0, changeEvents_3 = changeEvents; _a < changeEvents_3.length; _a++)
curEventMap = changeEvents_3[_a],
this.triggerPropChangeEvents(curEventMap)
}, WjDirectiveBehavior.prototype.addHandlers = function(eventMap)
{
var _this=this,
directive=this.directive;
WjDirectiveBehavior.evaluatePath(directive, eventMap.event).addHandler(function(s, e)
{
_this.isInitialized && _this.triggerPropChangeEvents(eventMap);
eventMap.eventImpl && directive[eventMap.eventImpl].next(e)
})
}, WjDirectiveBehavior.prototype.triggerPropChangeEvents = function(eventMap)
{
var directive=this.directive,
_i,
_a,
curChangeProp;
if (eventMap.props && eventMap.props.length)
for (_i = 0, _a = eventMap.props; _i < _a.length; _i++)
curChangeProp = _a[_i],
directive[curChangeProp.evImpl].next(directive[curChangeProp.prop])
}, WjDirectiveBehavior.prototype._setupAsChild = function()
{
var parDirs,
metaData;
this._isChild() && (parDirs = this.typeData.parentDirectives) && parDirs.length > 0 && (this._isHostElement() && (this.elementRef.nativeElement.style.display = 'none'), this.parentBehavior = WjDirectiveBehavior.findParentBehavior(this.injector, parDirs), metaData = this.typeData.metaData, this._parentPropDesc = new wjNg2Meta.ComplexPropDesc(metaData.parentProperty, metaData.isParentPropertyArray, metaData.ownsObject))
}, WjDirectiveBehavior.prototype._isChild = function()
{
return this._isParentInitializer() || this._isParentReferencer()
}, WjDirectiveBehavior.prototype._isParentInitializer = function()
{
return this.typeData.metaData.parentProperty != undefined
}, WjDirectiveBehavior.prototype._isParentReferencer = function()
{
return this.typeData.metaData.parentReferenceProperty != undefined
}, WjDirectiveBehavior.prototype._getParentProp = function()
{
return this._isParentInitializer() ? this.directive[WjDirectiveBehavior.parPropAttr] || this.typeData.metaData.parentProperty : undefined
}, WjDirectiveBehavior.prototype._getParentReferenceProperty = function()
{
return this.typeData.metaData.parentReferenceProperty
}, WjDirectiveBehavior.prototype._useParentObj = function()
{
return !1
}, WjDirectiveBehavior.prototype._isParentArray = function()
{
return this._isParentInitializer() && this._parentPropDesc.isArray
}, WjDirectiveBehavior.prototype._parentInCtor = function()
{
return this._isParentReferencer() && this._getParentReferenceProperty() == ''
}, WjDirectiveBehavior.prototype._initParent = function()
{
var parProp,
parPropDescOverride;
if (this.parentBehavior && !this._useParentObj())
{
var parDir=this.parentBehavior.directive,
propName=this._getParentProp(),
control=this.directive;
if (this._isParentInitializer())
if (parProp = this._getParentProp(), parPropDescOverride = wjNg2Meta.MetaFactory.findComplexProp(parProp, this.parentBehavior.typeData.metaData.complexProps), parPropDescOverride ? this._parentPropDesc = parPropDescOverride : this._parentPropDesc.propertyName = parProp, this._isParentArray())
{
var parArr=parDir[propName],
isHostElement=this._isHostElement(),
linkIdx=isHostElement ? this._getSiblingIndex() : -1;
(linkIdx < 0 || linkIdx >= parArr.length) && (linkIdx = parArr.length);
parArr.splice(linkIdx, 0, control);
isHostElement && (this._siblingInsertedEH = this._siblingInserted.bind(this), this.elementRef.nativeElement.addEventListener('DOMNodeInserted', this._siblingInsertedEH))
}
else
parDir[propName] = control;
this._isParentReferencer() && !this._parentInCtor() && (control[this._getParentReferenceProperty()] = parDir)
}
}, WjDirectiveBehavior.prototype._getSiblingIndex = function()
{
var thisEl=this.elementRef.nativeElement,
parEl=thisEl.parentElement,
i,
curEl;
if (!parEl)
return -1;
var siblings=parEl.childNodes,
idx=-1,
dirId=this.typeData.siblingId;
for (i = 0; i < siblings.length; i++)
if (curEl = siblings[i], curEl.nodeType == 1 && curEl.getAttribute(WjDirectiveBehavior.siblingDirIdAttr) == dirId && (++idx, curEl === thisEl))
return idx;
return -1
}, WjDirectiveBehavior.prototype._siblingInserted = function(e)
{
if (e.target === this.elementRef.nativeElement)
{
var lIdx=this._getSiblingIndex(),
parArr=this.parentBehavior.directive[this._getParentProp()],
directive=this.directive,
arrIdx=parArr.indexOf(directive);
lIdx >= 0 && arrIdx >= 0 && lIdx !== arrIdx && (parArr.splice(arrIdx, 1), lIdx = Math.min(lIdx, parArr.length), parArr.splice(lIdx, 0, directive))
}
}, WjDirectiveBehavior.prototype._isHostElement = function()
{
return this.elementRef.nativeElement.nodeType === Node.ELEMENT_NODE
}, WjDirectiveBehavior.evaluatePath = function(obj, path)
{
return this._pathBinding.path = path, this._pathBinding.getValue(obj)
}, WjDirectiveBehavior.getBehavior = function(directive)
{
return directive ? directive[WjDirectiveBehavior.BehaviourRefProp] : null
}, WjDirectiveBehavior.resolveForwardDecl = function(array)
{
var i,
curDecl;
if (array)
for (i = 0; i < array.length; i++)
curDecl = array[i],
array[i] = array[i] ? ng2.resolveForwardRef(array[i]) : array[i]
}, WjDirectiveBehavior.findParentBehavior = function(injector, directiveTypes, upToBehavior)
{
return _Walker.findParentBehavior(injector, directiveTypes, upToBehavior)
}, WjDirectiveBehavior.findTypeParentBehavior = function(injector, type, upToBehavior)
{
var typeData=type && type[Ng2Utils.directiveTypeDataProp],
parentDirectives=typeData && typeData.parentDirectives;
return parentDirectives ? WjDirectiveBehavior.findParentBehavior(injector, parentDirectives, upToBehavior) : null
}, WjDirectiveBehavior.BehaviourRefProp = 'wjBehaviour', WjDirectiveBehavior.parPropAttr = 'wjProperty', WjDirectiveBehavior.initializedEventAttr = 'initialized', WjDirectiveBehavior.isInitializedPropAttr = 'isInitialized', WjDirectiveBehavior.siblingDirIdAttr = 'wj-directive-id', WjDirectiveBehavior._pathBinding = new wijmo.Binding(''), WjDirectiveBehavior
}();
exports_1("WjDirectiveBehavior", WjDirectiveBehavior);
_Walker = function()
{
function _Walker(){}
return _Walker.associate = function(injector, behavior)
{
var indexArr=_Walker._getIndexArray(injector);
indexArr[injector._nodeIndex] = behavior
}, _Walker.disassociate = function(injector)
{
var indexArr=_Walker._getIndexArray(injector);
indexArr[injector._nodeIndex] = null
}, _Walker.findParentBehavior = function(injector, directiveTypes, upToBehavior)
{
var appElement,
curDir,
_i,
directiveTypes_1,
parType;
if (!directiveTypes)
return null;
for (appElement = _Walker._getAppElement(injector, injector._nodeIndex); appElement != null; )
{
var parInjector=appElement.parentInjector,
parIdx=parInjector._nodeIndex,
curBeh=_Walker._getBehaviorByIndex(parInjector, parIdx);
if (curBeh)
{
if (upToBehavior === curBeh)
return null;
if (curDir = curBeh.directive, curDir)
for (_i = 0, directiveTypes_1 = directiveTypes; _i < directiveTypes_1.length; _i++)
if (parType = directiveTypes_1[_i], parType && curDir instanceof parType)
return curBeh
}
appElement = _Walker._getAppElement(parInjector, parIdx)
}
}, _Walker._getIndexArray = function(injector)
{
var appView=injector._view,
ret=appView[_Walker.indexArrProp];
return ret || (appView[_Walker.indexArrProp] = ret = []), ret
}, _Walker._getAppElement = function(injector, nodeIndex)
{
return injector._view[_Walker.appElPropPrefix + nodeIndex]
}, _Walker._getBehaviorByIndex = function(injector, nodeIndex)
{
var indexArr=_Walker._getIndexArray(injector),
ret;
return nodeIndex == null ? null : (ret = indexArr[nodeIndex], ret || nodeIndex !== 0 || (ret = WjDirectiveBehavior.getBehavior(injector._view.context)), ret)
}, _Walker.appElPropPrefix = '_appEl_', _Walker.indexArrProp = '__wj_Behaviors', _Walker
}();
Ng2Utils = function()
{
function Ng2Utils(){}
return Ng2Utils.initEvents = function(directiveType, changeEvents)
{
for (var curEventMap, changeProps, _a, changeProps_2, curChangeProp, ret=[], _i=0, changeEvents_4=changeEvents; _i < changeEvents_4.length; _i++)
if (curEventMap = changeEvents_4[_i], changeProps = curEventMap.props, curEventMap.event && curEventMap.eventImpl && ret.push(curEventMap.eventImpl + ':' + curEventMap.event), changeProps && changeProps.length)
for (_a = 0, changeProps_2 = changeProps; _a < changeProps_2.length; _a++)
curChangeProp = changeProps_2[_a],
ret.push(curChangeProp.evImpl + ':' + curChangeProp.evExposed);
return ret
}, Ng2Utils.getChangeEventNameImplemented = function(propertyName)
{
return Ng2Utils.getChangeEventNameExposed(propertyName) + 'Ng'
}, Ng2Utils.getChangeEventNameExposed = function(propertyName)
{
return propertyName + 'Change'
}, Ng2Utils.getWjEventNameImplemented = function(eventName)
{
return eventName + 'Wj'
}, Ng2Utils.getChangeEventMap = function(metaData)
{
var eventDescArr=metaData.events || [],
propDescArr=metaData.props || [];
return eventDescArr.map(function(ed)
{
return {
event: ed.eventName, eventImpl: Ng2Utils.getWjEventNameImplemented(ed.eventName), props: function(arr)
{
return arr && arr.length ? arr : null
}(metaData.props.filter(function(pd)
{
return pd.changeEvent === ed.eventName
}).map(function(pd)
{
return {
prop: pd.propertyName, evExposed: Ng2Utils.getChangeEventNameExposed(pd.propertyName), evImpl: Ng2Utils.getChangeEventNameImplemented(pd.propertyName)
}
}))
}
}).concat(propDescArr.filter(function(pd)
{
return pd.changeEvent && pd.changeEvent.indexOf('.') > -1
}).map(function(pd)
{
var evParts=pd.changeEvent.split('.'),
parentEvName=evParts[evParts.length - 1];
return {
event: pd.changeEvent, eventImpl: null, props: [{
prop: pd.propertyName, evExposed: Ng2Utils.getChangeEventNameExposed(pd.propertyName), evImpl: Ng2Utils.getChangeEventNameImplemented(pd.propertyName)
}]
}
}))
}, Ng2Utils.getBaseType = function(type)
{
var proto;
return type && (proto = Object.getPrototypeOf(type.prototype)) && proto.constructor
}, Ng2Utils.getAnnotations = function(type)
{
return type && reflection_1.reflector.annotations(type)
}, Ng2Utils.getAnnotation = function(annotations, annotationType)
{
var _i,
annotations_1,
curAnno;
if (annotationType && annotations)
for (_i = 0, annotations_1 = annotations; _i < annotations_1.length; _i++)
if (curAnno = annotations_1[_i], curAnno instanceof annotationType)
return curAnno;
return null
}, Ng2Utils.getTypeAnnotation = function(type, annotationType, own)
{
for (var anno, curType=type; curType; curType = own ? null : Ng2Utils.getBaseType(curType))
if (anno = Ng2Utils.getAnnotation(Ng2Utils.getAnnotations(curType), annotationType), anno)
return anno;
return null
}, Ng2Utils._copy = function(dst, src, override, includePrivate, filter)
{
var prop,
val,
dstVal;
if (dst && src)
for (prop in src)
(includePrivate || prop[0] !== '_') && (val = src[prop], (!filter || filter(prop, val)) && (dstVal = dst[prop], wijmo.isArray(val) ? dst[prop] = (!wijmo.isArray(dstVal) || override ? [] : dstVal).concat(val) : val !== undefined && (dst[prop] = val)))
}, Ng2Utils.directiveTypeDataProp = 'wjDirTypeData', Ng2Utils
}();
exports_1("Ng2Utils", Ng2Utils);
MethodProxy = function()
{
function MethodProxy(targetType, methodName, proxyMethod)
{
this.proxyMethod = proxyMethod;
var targetProto=targetType.prototype;
this.originalMethod = targetProto[methodName];
targetProto[methodName] = this._getMethodStub()
}
return MethodProxy.attachInstance = function(target, proxy)
{
target[MethodProxy.ProxyRefProp] = proxy
}, MethodProxy.prototype._getMethodStub = function()
{
var methodProxy=this;
return function()
{
for (var params=[], _i=0; _i < arguments.length; _i++)
params[+_i] = arguments[_i];
var targetThis=this,
proxy=targetThis[MethodProxy.ProxyRefProp],
originalCall=function()
{
for (var params=[], _i=0; _i < arguments.length; _i++)
params[+_i] = arguments[_i];
methodProxy.originalMethod && methodProxy.originalMethod.apply(targetThis, params)
},
parArr=[originalCall];
params != null && params.length && (parArr = parArr.concat(params));
methodProxy.proxyMethod.apply(proxy, parArr)
}
}, MethodProxy.ProxyRefProp = 'wjProxyHostRef', MethodProxy
}()
}
}
});
System.register("wijmo/wijmo.angular2.core", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
ngCore,
wijmo_angular2_directiveBase_1,
WjTooltip,
WjComponentLoader,
WjHtmlLoader;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1;
ngCore = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}], execute: function()
{
WjTooltip = function()
{
function WjTooltip(elRef, injector)
{
this.elRef = elRef;
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector);
WjTooltip._toolTip || (WjTooltip._toolTip = new wijmo.Tooltip)
}
return Object.defineProperty(WjTooltip.prototype, "wjTooltip", {
get: function()
{
return this._toolTipText
}, set: function(value)
{
this._toolTipText != value && (this._toolTipText != value, WjTooltip._toolTip.setTooltip(this.elRef.nativeElement, value))
}, enumerable: !0, configurable: !0
}), WjTooltip.prototype.ngOnDestroy = function()
{
this.wjTooltip = null
}, __decorate([core_1.Input()], WjTooltip.prototype, "wjTooltip", null), WjTooltip = __decorate([wijmo_angular2_directiveBase_1.WjComponent({
wjIsDirective: !0, wjMetadataId: wijmo.Tooltip, selector: '[wjTooltip]'
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjTooltip)
}();
exports_1("WjTooltip", WjTooltip);
WjComponentLoader = function()
{
function WjComponentLoader(_dcl, _elementRef)
{
this._dcl = _dcl;
this._elementRef = _elementRef;
this._isViewInit = !1;
this.propertiesChange = new ngCore.EventEmitter
}
return Object.defineProperty(WjComponentLoader.prototype, "component", {
get: function()
{
return this._component
}, set: function(value)
{
this._component !== value && (this._component = value, this._createComponent())
}, enumerable: !0, configurable: !0
}), Object.defineProperty(WjComponentLoader.prototype, "properties", {
get: function()
{
return this._properties
}, set: function(value)
{
this._properties = value;
this._updateProperties()
}, enumerable: !0, configurable: !0
}), WjComponentLoader.prototype.ngAfterViewInit = function()
{
this._isViewInit = !0;
this._createComponent()
}, WjComponentLoader.prototype._createComponent = function()
{
var _this=this,
value;
this._isViewInit && (this._cmpRef && (this._cmpRef.destroy(), this._cmpRef = null), value = this._component, value && this._anchor && this._dcl.loadNextToLocation(value, this._anchor).then(function(cmpRef)
{
_this._cmpRef = cmpRef;
_this._updateProperties()
}))
}, WjComponentLoader.prototype._updateProperties = function()
{
var cmp=this._cmpRef && this._cmpRef.instance,
properties=this.properties,
propNames,
_i,
propNames_1,
pName,
propChange;
if (cmp && properties)
for (propNames = Object.getOwnPropertyNames(properties), _i = 0, propNames_1 = propNames; _i < propNames_1.length; _i++)
pName = propNames_1[_i],
cmp[pName] = properties[pName],
propChange = cmp[pName + 'Change'],
propChange instanceof core_1.EventEmitter && this._addPropListener(cmp, pName, propChange)
}, WjComponentLoader.prototype._addPropListener = function(component, propName, propChange)
{
var _this=this;
propChange.subscribe(function()
{
_this.properties[propName] = _this.properties[propName] = component[propName];
_this.propertiesChange.next(_this.properties)
})
}, __decorate([core_1.ViewChild('anchor', {read: core_1.ViewContainerRef})], WjComponentLoader.prototype, "_anchor", void 0), __decorate([core_1.Component({
selector: 'wj-component-loader', template: "<div #anchor></div>", inputs: ['component', 'properties'], outputs: ['propertiesChange']
}), __param(0, core_1.Inject(core_1.DynamicComponentLoader)), __param(1, core_1.Inject(core_1.ElementRef))], WjComponentLoader)
}();
exports_1("WjComponentLoader", WjComponentLoader);
WjHtmlLoader = function()
{
function WjHtmlLoader(_dcl, _elementRef)
{
this._dcl = _dcl;
this._elementRef = _elementRef
}
return Object.defineProperty(WjHtmlLoader.prototype, "components", {
get: function()
{
return this._components
}, set: function(value)
{
this._components = value
}, enumerable: !0, configurable: !0
}), Object.defineProperty(WjHtmlLoader.prototype, "bindingContext", {
get: function()
{
return this._bindingContext
}, set: function(value)
{
this._bindingContext !== value && (this._bindingContext = value, this._cmpRef && this._cmpRef.instance.updateProperties(value))
}, enumerable: !0, configurable: !0
}), WjHtmlLoader.prototype.ngAfterViewInit = function()
{
this._createComponent()
}, WjHtmlLoader.prototype._createComponent = function()
{
var _this=this;
if (this._cmpRef && (this._cmpRef.destroy(), this._cmpRef = null), this.html && this._anchor)
{
var self_1=this,
bindingContext_1=this.bindingContext,
template=this.html,
wjDynamicCmp=function()
{
function wjDynamicCmp()
{
this.updateProperties(bindingContext_1)
}
return wjDynamicCmp.prototype.updateProperties = function(bindingContext)
{
var propNames,
_i,
propNames_2,
pName;
if (bindingContext)
for (propNames = Object.getOwnPropertyNames(bindingContext), _i = 0, propNames_2 = propNames; _i < propNames_2.length; _i++)
pName = propNames_2[_i],
this[pName] = bindingContext[pName]
}, __decorate([core_1.Component({
selector: 'wjDynamicCmp', template: template, directives: self_1.components || []
})], wjDynamicCmp)
}();
this._dcl.loadNextToLocation(wjDynamicCmp, this._anchor).then(function(cmpRef)
{
_this._cmpRef = cmpRef
})
}
}, __decorate([core_1.ViewChild('anchor', {read: core_1.ViewContainerRef})], WjHtmlLoader.prototype, "_anchor", void 0), __decorate([core_1.Component({
selector: 'wj-html-loader', template: "<div #anchor></div>", inputs: ['components', 'bindingContext', 'html']
}), __param(0, core_1.Inject(core_1.DynamicComponentLoader)), __param(1, core_1.Inject(core_1.ElementRef))], WjHtmlLoader)
}();
exports_1("WjHtmlLoader", WjHtmlLoader)
}
}
});
System.register("wijmo/wijmo.angular2.input", ['@angular/core', '@angular/common', 'wijmo/wijmo.angular2.directiveBase'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
core_2,
common_1,
wijmo_angular2_directiveBase_1,
WjComboBox,
WjAutoComplete,
WjCalendar,
WjColorPicker,
WjInputMask,
WjInputColor,
WjMultiSelect,
WjInputNumber,
WjInputDate,
WjInputTime,
WjInputDateTime,
WjListBox,
WjMenu,
WjMenuItem,
WjMenuSeparator,
WjMenuItemTemplateDir,
WjItemTemplate,
WjPopup,
WjContextMenu,
WjCollectionViewNavigator,
WjCollectionViewPager;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1;
core_2 = core_1_1
}, function(common_1_1)
{
common_1 = common_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}], execute: function()
{
WjComboBox = function(_super)
{
function WjComboBox(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjComboBox, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-combo-box', template: ""
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjComboBox)
}(wijmo.input.ComboBox);
exports_1("WjComboBox", WjComboBox);
WjAutoComplete = function(_super)
{
function WjAutoComplete(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjAutoComplete, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-auto-complete', template: ""
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjAutoComplete)
}(wijmo.input.AutoComplete);
exports_1("WjAutoComplete", WjAutoComplete);
WjCalendar = function(_super)
{
function WjCalendar(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjCalendar, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-calendar', template: ""
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjCalendar)
}(wijmo.input.Calendar);
exports_1("WjCalendar", WjCalendar);
WjColorPicker = function(_super)
{
function WjColorPicker(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjColorPicker, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-color-picker', template: ""
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjColorPicker)
}(wijmo.input.ColorPicker);
exports_1("WjColorPicker", WjColorPicker);
WjInputMask = function(_super)
{
function WjInputMask(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjInputMask, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-input-mask', template: ""
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjInputMask)
}(wijmo.input.InputMask);
exports_1("WjInputMask", WjInputMask);
WjInputColor = function(_super)
{
function WjInputColor(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjInputColor, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-input-color', template: ""
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjInputColor)
}(wijmo.input.InputColor);
exports_1("WjInputColor", WjInputColor);
WjMultiSelect = function(_super)
{
function WjMultiSelect(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjMultiSelect, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-multi-select', template: ""
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjMultiSelect)
}(wijmo.input.MultiSelect);
exports_1("WjMultiSelect", WjMultiSelect);
WjInputNumber = function(_super)
{
function WjInputNumber(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjInputNumber, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-input-number', template: ""
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector)), __param(2, core_2.Inject(common_1.NgModel)), __param(2, core_1.Optional()), __param(3, core_2.Inject(common_1.NgControlName)), __param(3, core_1.Optional())], WjInputNumber)
}(wijmo.input.InputNumber);
exports_1("WjInputNumber", WjInputNumber);
WjInputDate = function(_super)
{
function WjInputDate(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjInputDate, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-input-date', template: ""
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjInputDate)
}(wijmo.input.InputDate);
exports_1("WjInputDate", WjInputDate);
WjInputTime = function(_super)
{
function WjInputTime(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjInputTime, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-input-time', template: ""
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjInputTime)
}(wijmo.input.InputTime);
exports_1("WjInputTime", WjInputTime);
WjInputDateTime = function(_super)
{
function WjInputDateTime(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjInputDateTime, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-input-date-time', template: ""
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjInputDateTime)
}(wijmo.input.InputDateTime);
exports_1("WjInputDateTime", WjInputDateTime);
WjListBox = function(_super)
{
function WjListBox(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjListBox, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-list-box', template: "<div><ng-content></ng-content></div>"
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjListBox)
}(wijmo.input.ListBox);
exports_1("WjListBox", WjListBox);
WjMenu = function(_super)
{
function WjMenu(elRef, injector)
{
var _this=this;
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector);
this.itemsSource = new wijmo.collections.ObservableArray;
this.selectedIndex = 0;
this.itemClicked.addHandler(function()
{
_this.value = _this.selectedValue
})
}
return __extends(WjMenu, _super), Object.defineProperty(WjMenu.prototype, "value", {
get: function()
{
return this._value
}, set: function(value)
{
this._value = value;
value != null && (this.selectedValue = value, this._updateHeader())
}, enumerable: !0, configurable: !0
}), WjMenu.prototype.ngOnInit = function()
{
this._attachToControl();
this._updateHeader()
}, WjMenu.prototype.ngOnDestroy = function()
{
this.listBox.formatItem.removeHandler(this._fmtItem, this);
this.listBox.loadingItems.removeHandler(this._loadingItems, this)
}, WjMenu.prototype.ngOnChanges = function(changes)
{
var headerChange=changes.header;
headerChange && (this._definedHeader = headerChange.currentValue, this._updateHeader())
}, WjMenu.prototype.ngAfterContentInit = function()
{
this.value = this.value
}, WjMenu.prototype.refresh = function(fullUpdate)
{
fullUpdate === void 0 && (fullUpdate = !0);
_super.prototype.refresh.call(this, fullUpdate);
this._updateHeader()
}, WjMenu.prototype._attachToControl = function()
{
this.listBox.formatItem.addHandler(this._fmtItem, this);
this.listBox.loadingItems.addHandler(this._loadingItems, this);
this.invalidate()
}, WjMenu.prototype._loadingItems = function(s)
{
for (var itemEl, items=s.hostElement.getElementsByClassName('wj-listbox-item'), i=items.length - 1; i >= 0; i--)
itemEl = items[i],
itemEl.textContent = ''
}, WjMenu.prototype._fmtItem = function(s, e)
{
var itemEl,
contentRoot;
e.data instanceof WjMenuItem && (itemEl = e.item, itemEl.textContent = '', contentRoot = e.data.contentRoot, contentRoot && itemEl.appendChild(contentRoot))
}, WjMenu.prototype._updateHeader = function()
{
var selItem,
currentValue,
contentRoot;
this.header = this._definedHeader || '';
selItem = this.selectedItem;
this.value != null && selItem && this.displayMemberPath && (currentValue = null, selItem instanceof WjMenuItem && (contentRoot = selItem.contentRoot, currentValue = contentRoot ? contentRoot.innerHTML : selItem[this.displayMemberPath]), currentValue != null && (this.header += ': <b>' + currentValue + '</b>'))
}, __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-menu', template: "<div><ng-content></ng-content></div>", directives: [core_1.forwardRef(function()
{
return WjMenuItem
})]
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjMenu)
}(wijmo.input.Menu);
exports_1("WjMenu", WjMenu);
WjMenuItem = function()
{
function WjMenuItem(elRef, injector, viewContainerRef, domRenderer)
{
this.elRef = elRef;
this.viewContainerRef = viewContainerRef;
this.domRenderer = domRenderer;
var behavior=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector);
this._ownerMenu = behavior.parentBehavior.directive
}
return WjMenuItem.prototype.ngOnInit = function(){}, WjMenuItem.prototype.wjAfterParentInit = function()
{
var ownerMenu=this._ownerMenu;
ownerMenu.itemsSource.length == 1 && ownerMenu.selectedIndex < 0 && (ownerMenu.selectedIndex = 0);
ownerMenu.displayMemberPath || (ownerMenu.displayMemberPath = 'header');
ownerMenu.selectedValuePath || (ownerMenu.selectedValuePath = 'value');
ownerMenu.commandPath || (ownerMenu.commandPath = 'cmd');
ownerMenu.commandParameterPath || (ownerMenu.commandParameterPath = 'cmdParam')
}, WjMenuItem.prototype.ngAfterContentInit = function(){}, __decorate([wijmo_angular2_directiveBase_1.WjComponent({
wjMetadataId: 'MenuItem', wjParentDirectives: [WjMenu], wjSiblingDirectiveId: 'menuItemDir', selector: 'wj-menu-item', template: "<template [wjMenuItemTemplateDir]><ng-content></ng-content></template>", directives: [core_1.forwardRef(function()
{
return WjMenuItemTemplateDir
})]
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector)), __param(2, core_2.Inject(core_1.ViewContainerRef)), __param(3, core_2.Inject(core_1.Renderer))], WjMenuItem)
}();
exports_1("WjMenuItem", WjMenuItem);
WjMenuSeparator = function(_super)
{
function WjMenuSeparator(elRef, injector, viewContainerRef, domRenderer)
{
_super.call(this, elRef, injector, viewContainerRef, domRenderer)
}
return __extends(WjMenuSeparator, _super), WjMenuSeparator.prototype.ngOnInit = function(){}, __decorate([wijmo_angular2_directiveBase_1.WjComponent({
wjMetadataId: 'MenuSeparator', wjParentDirectives: [WjMenu], wjSiblingDirectiveId: 'menuItemDir', selector: 'wj-menu-separator', template: "<template [wjMenuItemTemplateDir]><div class=\"wj-state-disabled\" style=\"width:100%;height:1px;background-color:lightgray\"></div></template>", directives: [core_1.forwardRef(function()
{
return WjMenuItemTemplateDir
})]
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector)), __param(2, core_2.Inject(core_1.ViewContainerRef)), __param(3, core_2.Inject(core_1.Renderer))], WjMenuSeparator)
}(WjMenuItem);
exports_1("WjMenuSeparator", WjMenuSeparator);
WjMenuItemTemplateDir = function()
{
function WjMenuItemTemplateDir(viewContainerRef, templateRef, elRef, injector, domRenderer, menuItem, menuSeparator)
{
this.viewContainerRef = viewContainerRef;
this.templateRef = templateRef;
this.elRef = elRef;
this.domRenderer = domRenderer;
this.ownerItem = menuItem || menuSeparator;
this.ownerItem.templateDir = this
}
return WjMenuItemTemplateDir.prototype.ngOnInit = function(){}, WjMenuItemTemplateDir.prototype.ngAfterContentInit = function()
{
var self=this;
setTimeout(function()
{
var rootEl=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.instantiateTemplate(null, self.viewContainerRef, self.templateRef, self.domRenderer).rootElement;
self.contentRoot = rootEl;
self.ownerItem.contentRoot = rootEl;
self.ownerItem._ownerMenu.listBox.invalidate();
self.ownerItem._ownerMenu.invalidate()
}, 0)
}, __decorate([core_1.Directive({
selector: '[wjMenuItemTemplateDir]', inputs: ['wjMenuItemTemplateDir']
}), __param(0, core_2.Inject(core_1.ViewContainerRef)), __param(1, core_2.Inject(core_1.TemplateRef)), __param(1, core_1.Optional()), __param(2, core_2.Inject(core_1.ElementRef)), __param(3, core_2.Inject(core_1.Injector)), __param(4, core_2.Inject(core_1.Renderer)), __param(5, core_2.Inject(WjMenuItem)), __param(5, core_1.Optional()), __param(6, core_2.Inject(WjMenuSeparator)), __param(6, core_1.Optional())], WjMenuItemTemplateDir)
}();
exports_1("WjMenuItemTemplateDir", WjMenuItemTemplateDir);
WjItemTemplate = function()
{
function WjItemTemplate(viewContainerRef, templateRef, elRef, injector, domRenderer)
{
this.viewContainerRef = viewContainerRef;
this.templateRef = templateRef;
this.elRef = elRef;
this.domRenderer = domRenderer;
var behavior=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector);
this.ownerControl = behavior.parentBehavior.directive;
this.listBox = WjItemTemplate._getListBox(this.ownerControl)
}
return WjItemTemplate.prototype.ngOnInit = function()
{
this._attachToControl()
}, WjItemTemplate.prototype.ngOnDestroy = function()
{
var ownerControl=this.ownerControl,
listBox=this.listBox;
listBox && (listBox.formatItem.removeHandler(this._fmtItem, this), listBox.loadingItems.removeHandler(this._loadingItems, this));
ownerControl && ownerControl.invalidate()
}, WjItemTemplate.prototype._attachToControl = function()
{
this.listBox.formatItem.addHandler(this._fmtItem, this);
this.listBox.loadingItems.addHandler(this._loadingItems, this);
this.ownerControl.invalidate()
}, WjItemTemplate.prototype._loadingItems = function()
{
this.viewContainerRef.clear()
}, WjItemTemplate.prototype._fmtItem = function(s, e)
{
var itemEl=e.item,
viewRef;
itemEl.textContent = '';
viewRef = this._instantiateTemplate(itemEl);
viewRef.context.control = s;
viewRef.context.item = e.data;
viewRef.context.itemIndex = e.index
}, WjItemTemplate.prototype._instantiateTemplate = function(parent)
{
return wijmo_angular2_directiveBase_1.WjDirectiveBehavior.instantiateTemplate(parent, this.viewContainerRef, this.templateRef, this.domRenderer).viewRef
}, WjItemTemplate._getListBox = function(ownerControl)
{
return ownerControl ? ownerControl instanceof wijmo.input.ListBox ? ownerControl : ownerControl.listBox : null
}, WjItemTemplate = __decorate([wijmo_angular2_directiveBase_1.WjComponent({
wjIsDirective: !0, wjMetadataId: 'ItemTemplate', wjParentDirectives: [WjListBox, WjMenu], selector: '[wjItemTemplate]', inputs: ['wjItemTemplate']
}), __param(0, core_2.Inject(core_1.ViewContainerRef)), __param(1, core_2.Inject(core_1.TemplateRef)), __param(1, core_1.Optional()), __param(2, core_2.Inject(core_1.ElementRef)), __param(3, core_2.Inject(core_1.Injector)), __param(4, core_2.Inject(core_1.Renderer))], WjItemTemplate)
}();
exports_1("WjItemTemplate", WjItemTemplate);
WjPopup = function(_super)
{
function WjPopup(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
this._elRef = elRef;
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjPopup, _super), WjPopup.prototype.ngOnChanges = function(changes)
{
var ownerChange=changes.owner;
ownerChange && this.modal == null && (this.modal = this.owner ? !1 : !0)
}, WjPopup.prototype.dispose = function()
{
this.isVisible && (this.hiding.removeAllHandlers(), this._elRef.nativeElement.style.display = "none", this.hide());
_super.prototype.dispose.call(this)
}, __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-popup', template: "<div><ng-content></ng-content></div>"
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjPopup)
}(wijmo.input.Popup);
exports_1("WjPopup", WjPopup);
WjContextMenu = function()
{
function WjContextMenu(elRef)
{
this.elRef = elRef
}
return WjContextMenu.prototype.onContextMenu = function(e)
{
var menu=this.wjContextMenu,
dropDown=menu.dropDown;
menu && dropDown && !wijmo.closest(e.target, '[disabled]') && (e.preventDefault(), menu.owner = this.elRef.nativeElement, menu.selectedIndex = -1, menu.onIsDroppedDownChanging(new wijmo.CancelEventArgs) && (wijmo.showPopup(dropDown, e), menu.onIsDroppedDownChanged(), dropDown.focus()))
}, __decorate([core_1.Directive({
selector: '[wjContextMenu]', inputs: ['wjContextMenu'], host: {'(contextmenu)': 'onContextMenu($event)'}
}), __param(0, core_2.Inject(core_1.ElementRef))], WjContextMenu)
}();
exports_1("WjContextMenu", WjContextMenu);
WjCollectionViewNavigator = function()
{
function WjCollectionViewNavigator(elRef, injector)
{
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __decorate([wijmo_angular2_directiveBase_1.WjComponent({
wjMetadataId: 'CollectionViewNavigator', selector: 'wj-collection-view-navigator', template: "\n            <div class=\"wj-control wj-content wj-pager\">\n                <div class=\"wj-input-group\">\n                    <span class=\"wj-input-group-btn\" >\n                        <button class=\"wj-btn wj-btn-default\" type=\"button\"\n                           (click)=\"cv?.moveCurrentToFirst()\"\n                           [disabled]=\"!cv || cv?.currentPosition <= 0\">\n                            <span class=\"wj-glyph-left\" style=\"margin-right: -4px;\"></span>\n                            <span class=\"wj-glyph-left\"></span>\n                         </button>\n                    </span>\n                    <span class=\"wj-input-group-btn\" >\n                       <button class=\"wj-btn wj-btn-default\" type=\"button\"\n                           (click)=\"cv?.moveCurrentToPrevious()\"\n                           [disabled]=\"!cv || cv?.currentPosition <= 0\">\n                            <span class=\"wj-glyph-left\"></span>\n                       </button>\n                    </span>\n                    <input type=\"text\" class=\"wj-form-control\" value=\"\n                       {{cv?.currentPosition + 1 | number}} / {{cv?.itemCount | number}}\n                       \" disabled />\n                    <span class=\"wj-input-group-btn\" >\n                        <button class=\"wj-btn wj-btn-default\" type=\"button\"\n                           (click)=\"cv?.moveCurrentToNext()\"\n                           [disabled]=\"!cv || cv?.currentPosition >= cv?.itemCount - 1\">\n                            <span class=\"wj-glyph-right\"></span>\n                        </button>\n                    </span>\n                    <span class=\"wj-input-group-btn\" >\n                        <button class=\"wj-btn wj-btn-default\" type=\"button\"\n                           (click)=\"cv?.moveCurrentToLast()\"\n                           [disabled]=\"!cv || cv?.currentPosition >= cv?.itemCount - 1\">\n                            <span class=\"wj-glyph-right\"></span>\n                            <span class=\"wj-glyph-right\" style=\"margin-left: -4px;\"></span>\n                        </button>\n                    </span>\n                </div>\n            </div>\n"
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjCollectionViewNavigator)
}();
exports_1("WjCollectionViewNavigator", WjCollectionViewNavigator);
WjCollectionViewPager = function()
{
function WjCollectionViewPager(elRef, injector)
{
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __decorate([wijmo_angular2_directiveBase_1.WjComponent({
wjMetadataId: 'CollectionViewPager', selector: 'wj-collection-view-pager', template: "\n            <div class=\"wj-control wj-content wj-pager\" >\n                <div class=\"wj-input-group\">\n                    <span class=\"wj-input-group-btn\" >\n                        <button class=\"wj-btn wj-btn-default\" type=\"button\"\n                            (click)=\"cv?.moveToFirstPage()\"\n                            [disabled]=\"!cv || cv?.pageIndex <= 0\">\n                            <span class=\"wj-glyph-left\" style=\"margin-right: -4px;\"></span>\n                            <span class=\"wj-glyph-left\"></span>\n                        </button>\n                    </span>\n                    <span class=\"wj-input-group-btn\" >\n                    <button class=\"wj-btn wj-btn-default\" type=\"button\"\n                            (click)=\"cv?.moveToPreviousPage()\"\n                            [disabled]=\"!cv || cv?.pageIndex <= 0\">\n                            <span class=\"wj-glyph-left\"></span>\n                        </button>\n                    </span>\n                    <input type=\"text\" class=\"wj-form-control\" value=\"\n                        {{cv?.pageIndex + 1 | number}} / {{cv?.pageCount | number}}\n                    \" disabled />\n                    <span class=\"wj-input-group-btn\" >\n                        <button class=\"wj-btn wj-btn-default\" type=\"button\"\n                            (click)=\"cv?.moveToNextPage()\"\n                            [disabled]=\"!cv || cv?.pageIndex >= cv?.pageCount - 1\">\n                            <span class=\"wj-glyph-right\"></span>\n                        </button>\n                    </span>\n                    <span class=\"wj-input-group-btn\" >\n                        <button class=\"wj-btn wj-btn-default\" type=\"button\"\n                            (click)=\"cv?.moveToLastPage()\"\n                            [disabled]=\"!cv || cv?.pageIndex >= cv?.pageCount - 1\">\n                            <span class=\"wj-glyph-right\"></span>\n                            <span class=\"wj-glyph-right\" style=\"margin-left: -4px;\"></span>\n                        </button>\n                    </span>\n                </div>\n            </div>\n"
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_1.Injector))], WjCollectionViewPager)
}();
exports_1("WjCollectionViewPager", WjCollectionViewPager)
}
}
});
System.register("wijmo/wijmo.angular2.grid", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
core_2,
wijmo_angular2_directiveBase_1,
WjFlexGrid,
WjFlexGridColumn,
CellTemplateType,
WjFlexGridCellTemplate,
DirectiveCellFactory;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1;
core_2 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}], execute: function()
{
WjFlexGrid = function(_super)
{
function WjFlexGrid(elRef, injector)
{
var _this=this;
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
new DirectiveCellFactory(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector);
this.deferUpdate(function()
{
if (_this.rows.defaultSize < 10)
{
var e=_this.hostElement,
csh=getComputedStyle(e),
csb=getComputedStyle(document.body),
defRowHei=parseInt(csh.fontSize && wijmo.contains(document.body, e) ? csh.fontSize : csb.fontSize) * 2;
_this.rows.defaultSize = defRowHei;
_this.columns.defaultSize = defRowHei * 4;
_this.columnHeaders.rows.defaultSize = defRowHei;
_this.rowHeaders.columns.defaultSize = Math.round(defRowHei * 1.25)
}
})
}
return __extends(WjFlexGrid, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-grid', template: "<div><ng-content></ng-content></div>"
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_2.Injector))], WjFlexGrid)
}(wijmo.grid.FlexGrid);
exports_1("WjFlexGrid", WjFlexGrid);
WjFlexGridColumn = function(_super)
{
function WjFlexGridColumn(elRef, injector)
{
_super.call(this);
var behavior=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector),
gridCmp=behavior.parentBehavior.directive;
gridCmp.autoGenerateColumns && (gridCmp.autoGenerateColumns = !1, gridCmp.columns.clear())
}
return __extends(WjFlexGridColumn, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-grid-column', wjParentDirectives: [WjFlexGrid], template: "<div><ng-content></ng-content></div>"
}), __param(0, core_2.Inject(core_1.ElementRef)), __param(1, core_2.Inject(core_2.Injector))], WjFlexGridColumn)
}(wijmo.grid.Column);
exports_1("WjFlexGridColumn", WjFlexGridColumn),
function(CellTemplateType)
{
CellTemplateType[CellTemplateType.Cell = 0] = "Cell";
CellTemplateType[CellTemplateType.CellEdit = 1] = "CellEdit";
CellTemplateType[CellTemplateType.ColumnHeader = 2] = "ColumnHeader";
CellTemplateType[CellTemplateType.RowHeader = 3] = "RowHeader";
CellTemplateType[CellTemplateType.RowHeaderEdit = 4] = "RowHeaderEdit";
CellTemplateType[CellTemplateType.TopLeft = 5] = "TopLeft";
CellTemplateType[CellTemplateType.GroupHeader = 6] = "GroupHeader";
CellTemplateType[CellTemplateType.Group = 7] = "Group";
CellTemplateType[CellTemplateType.NewCellTemplate = 8] = "NewCellTemplate"
}(CellTemplateType || (CellTemplateType = {}));
exports_1("CellTemplateType", CellTemplateType);
WjFlexGridCellTemplate = function()
{
function WjFlexGridCellTemplate(viewContainerRef, templateRef, elRef, domRenderer, injector)
{
this.viewContainerRef = viewContainerRef;
this.templateRef = templateRef;
this.elRef = elRef;
this.domRenderer = domRenderer;
var gridBehavior=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.findParentBehavior(injector, [WjFlexGrid]),
columnBehavior=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.findParentBehavior(injector, [WjFlexGridColumn], gridBehavior);
this.grid = gridBehavior.directive;
columnBehavior && (this.column = columnBehavior.directive)
}
return WjFlexGridCellTemplate._getTemplContextProp = function(templateType)
{
return '$__cellTempl' + CellTemplateType[templateType]
}, WjFlexGridCellTemplate.prototype.ngOnInit = function()
{
this.ownerControl = this.column && this.column.grid === this.grid ? this.column : this.grid;
this._attachToControl()
}, WjFlexGridCellTemplate.prototype.ngOnDestroy = function()
{
this.cellTypeStr && (this.viewContainerRef.clear(), this.ownerControl[WjFlexGridCellTemplate._getTemplContextProp(this.cellType)] = null, this.grid.invalidate())
}, WjFlexGridCellTemplate.prototype._instantiateTemplate = function(parent)
{
return wijmo_angular2_directiveBase_1.WjDirectiveBehavior.instantiateTemplate(parent, this.viewContainerRef, this.templateRef, this.domRenderer)
}, WjFlexGridCellTemplate.prototype._attachToControl = function()
{
this.cellTypeStr && (this.cellType = wijmo.asEnum(this.cellTypeStr, CellTemplateType), this.ownerControl[WjFlexGridCellTemplate._getTemplContextProp(this.cellType)] = this, this.grid.invalidate())
}, WjFlexGridCellTemplate = __decorate([core_1.Directive({
selector: '[wjFlexGridCellTemplate]', inputs: ['wjFlexGridCellTemplate', 'cellTypeStr: cellType', 'cellOverflow', 'valuePaths']
}), __param(0, core_2.Inject(core_1.ViewContainerRef)), __param(1, core_2.Inject(core_1.TemplateRef)), __param(1, core_2.Optional()), __param(2, core_2.Inject(core_1.ElementRef)), __param(3, core_2.Inject(core_2.Renderer)), __param(4, core_2.Inject(core_2.Injector))], WjFlexGridCellTemplate)
}();
exports_1("WjFlexGridCellTemplate", WjFlexGridCellTemplate);
DirectiveCellFactory = function(_super)
{
function DirectiveCellFactory(grid)
{
var templateType,
self;
if (_super.call(this), this._lastApplyTimeStamp = 0, this._noApplyLag = !1, this._startingEditing = !1, this._cellStampCounter = 0, this.grid = grid, !DirectiveCellFactory._templateTypes)
{
DirectiveCellFactory._templateTypes = [];
for (templateType in CellTemplateType)
isNaN(templateType) && DirectiveCellFactory._templateTypes.push(templateType)
}
self = this;
this._baseCf = grid.cellFactory;
grid.cellFactory = this;
this._evtInput = document.createEvent('HTMLEvents');
this._evtInput.initEvent('input', !0, !1);
this._evtBlur = document.createEvent('HTMLEvents');
this._evtBlur.initEvent('blur', !1, !1);
grid.prepareCellForEdit.addHandler(function()
{
self._noApplyLag = !0
});
grid.cellEditEnded.addHandler(function(s, e)
{
(e.range.col < 0 || e.range.col < grid.columns.length && !grid.columns[e.range.col][WjFlexGridCellTemplate._getTemplContextProp(CellTemplateType.CellEdit)]) && (self._editChar = null);
setTimeout(function()
{
self._noApplyLag = !1
}, 300)
});
grid.beginningEdit.addHandler(function()
{
self._startingEditing = !0
});
grid.hostElement.addEventListener('keydown', function()
{
self._startingEditing = !1
}, !0);
grid.hostElement.addEventListener('keypress', function(e)
{
var char=e.charCode > 32 ? String.fromCharCode(e.charCode) : null;
char && (!grid.activeEditor || self._startingEditing ? self._editChar = char : self._editChar && (self._editChar += char))
}, !0)
}
return __extends(DirectiveCellFactory, _super), DirectiveCellFactory.prototype.updateCell = function(panel, rowIndex, colIndex, cell, rng)
{
var cellStamp,
isHierNonGroup,
isUpdated,
col,
templContextProp,
templContext,
isTpl,
cellValue,
cellContext,
isForeignCell,
rootEl,
templInstance,
cellInfo_1,
editEndingEH;
this._cellStampCounter = (this._cellStampCounter + 1) % 1e7;
cellStamp = cell[DirectiveCellFactory._cellStampProp] = this._cellStampCounter;
cell.style.overflow && (cell.style.overflow = '');
var self=this,
grid=panel.grid,
editRange=grid.editRange,
templateType,
row=panel.rows[rowIndex],
dataItem=row.dataItem,
isGridCtx=!1,
needCellValue=!1,
isEdit=!1,
isCvGroup=!1;
switch (panel.cellType)
{
case wijmo.grid.CellType.Cell:
row instanceof wijmo.grid.GroupRow ? (isCvGroup = dataItem instanceof wijmo.collections.CollectionViewGroup, isHierNonGroup = !(isCvGroup || row.hasChildren), colIndex == panel.columns.firstVisibleIndex ? templateType = isHierNonGroup ? CellTemplateType.Cell : CellTemplateType.GroupHeader : (templateType = isHierNonGroup ? CellTemplateType.Cell : CellTemplateType.Group, needCellValue = !0)) : row instanceof wijmo.grid._NewRowTemplate ? templateType = CellTemplateType.NewCellTemplate : editRange && editRange.row === rowIndex && editRange.col === colIndex ? (templateType = CellTemplateType.CellEdit, needCellValue = isEdit = !0) : wijmo.grid.detail && wijmo.grid.detail.DetailRow && row instanceof wijmo.grid.detail.DetailRow || (templateType = CellTemplateType.Cell);
break;
case wijmo.grid.CellType.ColumnHeader:
templateType = CellTemplateType.ColumnHeader;
break;
case wijmo.grid.CellType.RowHeader:
templateType = grid.collectionView && grid.collectionView.currentEditItem === dataItem ? CellTemplateType.RowHeaderEdit : CellTemplateType.RowHeader;
isGridCtx = !0;
break;
case wijmo.grid.CellType.TopLeft:
templateType = CellTemplateType.TopLeft;
isGridCtx = !0
}
isUpdated = !1;
templateType != null && (col = isCvGroup && templateType == CellTemplateType.GroupHeader ? grid.columns.getColumn(dataItem.groupDescription.propertyName) : colIndex >= 0 && colIndex < panel.columns.length ? panel.columns[colIndex] : null, col && (templContextProp = WjFlexGridCellTemplate._getTemplContextProp(templateType), templContext = (isGridCtx ? grid : col)[templContextProp], templContext || (templateType === CellTemplateType.RowHeaderEdit ? (templateType = CellTemplateType.RowHeader, templContextProp = WjFlexGridCellTemplate._getTemplContextProp(templateType), templContext = grid[templContextProp]) : (templateType === CellTemplateType.Group || templateType === CellTemplateType.GroupHeader) && (isCvGroup || (templateType = CellTemplateType.Cell, templContextProp = WjFlexGridCellTemplate._getTemplContextProp(templateType), templContext = col[templContextProp]))), templContext && (isTpl = !0, needCellValue && (cellValue = panel.getCellData(rowIndex, colIndex, !1)), isTpl && (isUpdated = !0, isEdit && this._baseCf.updateCell(panel, rowIndex, colIndex, cell, rng, !0), cellContext = cell[templContextProp] || {}, isForeignCell = cellContext.column !== col || !cellContext.viewRef || cellContext.templateContextProperty !== templContextProp || cell.firstChild != cellContext.rootElement, isForeignCell && (isEdit ? (rootEl = cell.firstElementChild, rootEl && (cell.focus(), rootEl.style.display = 'none')) : cell.textContent = '', this._doDisposeCell(cell), templInstance = templContext._instantiateTemplate(cell), cellContext.column = col, cellContext.viewRef = templInstance.viewRef, cellContext.rootElement = templInstance.rootElement, cellContext.templateContextProperty = templContextProp, cell[templContextProp] = cellContext), cellInfo_1 = this._setViewRefVars(cellContext.viewRef, row, col, dataItem, cellValue, templContext.valuePaths), templContext.cellOverflow && (cell.style.overflow = templContext.cellOverflow), setTimeout(function()
{
var inputs,
i,
input,
inpSt,
inpFocusEh;
if (cellStamp === cell[DirectiveCellFactory._cellStampProp])
{
var cellHeight=cell.scrollHeight,
panelRows=panel.rows,
rowSpan=rng && rng.rowSpan || 1;
if (rowIndex < panelRows.length && panelRows[rowIndex].renderHeight * rowSpan < cellHeight - 1)
{
if (panelRows.defaultSize = cellHeight / rowSpan, isEdit)
{
grid.refresh();
grid.startEditing();
return
}
}
else if (isEdit && !wijmo.contains(cellContext.rootElement, wijmo.getActiveElement()) && (inputs = cellContext && cellContext.rootElement && cellContext.rootElement.querySelectorAll('input'), inputs))
for (i = 0; i < inputs.length; i++)
if (input = inputs[i], inpSt = window.getComputedStyle(input), inpSt.display !== 'none' && inpSt.visibility === 'visible')
{
inpFocusEh = function()
{
input.removeEventListener('focus', inpFocusEh);
setTimeout(function()
{
self._editChar && (input.value = self._editChar, self._editChar = null, wijmo.setSelectionRange(input, input.value.length), input.dispatchEvent(self._evtInput))
}, 0)
};
input.addEventListener('focus', inpFocusEh);
input.focus();
break
}
}
}, 0), isEdit ? (editEndingEH = function(s, e)
{
var activeElement,
_i,
bindNames_1,
curName,
dropDowns;
if (grid.cellEditEnding.removeHandler(editEndingEH), activeElement = wijmo.getActiveElement(), activeElement && activeElement.dispatchEvent(self._evtBlur), cell.focus(), !e.cancel)
{
e.cancel = !0;
var cellVar=cellInfo_1.localVars,
newVal=cellVar.value,
bindNames=Object.getOwnPropertyNames(cellInfo_1.bindings);
for (panel.grid.setCellData(rowIndex, colIndex, newVal), _i = 0, bindNames_1 = bindNames; _i < bindNames_1.length; _i++)
curName = bindNames_1[_i],
cellInfo_1.bindings[curName].setValue(cellVar, cellInfo_1.localVars.values[curName])
}
dropDowns = cell.querySelectorAll('.wj-dropdown');
[].forEach.call(dropDowns, function(el)
{
var ctrl=wijmo.Control.getControl(el);
ctrl && ctrl instanceof wijmo.input.DropDown && (ctrl.isDroppedDown = !1)
})
}, grid.cellEditEnding.addHandler(editEndingEH)) : this._baseCf.updateCell(panel, rowIndex, colIndex, cell, rng, !1)))));
isUpdated || (this._doDisposeCell(cell), this._baseCf.updateCell(panel, rowIndex, colIndex, cell, rng))
}, DirectiveCellFactory.prototype.disposeCell = function(cell)
{
this._doDisposeCell(cell)
}, DirectiveCellFactory.prototype._doDisposeCell = function(cell)
{
for (var templContextProp, cellContext, templateOwner, templateContext, viewIdx, ttm=DirectiveCellFactory._templateTypes, i=0; i < ttm.length; i++)
templContextProp = WjFlexGridCellTemplate._getTemplContextProp(CellTemplateType[ttm[i]]),
cellContext = cell[templContextProp],
cellContext && cellContext.viewRef && (templateOwner = cellContext.column || this.grid, templateContext = templateOwner[templContextProp], templateContext && (viewIdx = templateContext.viewContainerRef.indexOf(cellContext.viewRef), viewIdx > -1 && templateContext.viewContainerRef.remove(viewIdx)), cellContext.viewRef = null, cellContext.rootElement = null, cellContext.column = null, cellContext.templateContextProperty = null, cell[templContextProp] = null)
}, DirectiveCellFactory.prototype._setViewRefVars = function(viewRef, row, col, dataItem, cellValue, valuePaths)
{
var pathNames,
_i,
pathNames_1,
pName,
binding;
viewRef.context.row = row;
viewRef.context.col = col;
viewRef.context.item = dataItem;
var values={},
cellCtx={
row: row, col: col, item: dataItem, value: cellValue, values: values
},
bindings={},
ret={
localVars: cellCtx, bindings: bindings
};
if (valuePaths)
for (pathNames = Object.getOwnPropertyNames(valuePaths), _i = 0, pathNames_1 = pathNames; _i < pathNames_1.length; _i++)
pName = pathNames_1[_i],
binding = new wijmo.Binding(valuePaths[pName]),
bindings[pName] = binding,
values[pName] = binding.getValue(cellCtx);
return viewRef.context.cell = cellCtx, ret
}, DirectiveCellFactory._cellStampProp = '__wjCellStamp', DirectiveCellFactory
}(wijmo.grid.CellFactory)
}
}
});
System.register("wijmo/wijmo.angular2.grid.filter", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase', 'wijmo/wijmo.angular2.grid'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
wijmo_angular2_grid_1,
WjFlexGridFilter;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}, function(wijmo_angular2_grid_1_1)
{
wijmo_angular2_grid_1 = wijmo_angular2_grid_1_1
}], execute: function()
{
WjFlexGridFilter = function(_super)
{
function WjFlexGridFilter(elRef, injector)
{
var parentCmp=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.findTypeParentBehavior(injector, WjFlexGridFilter).directive;
_super.call(this, parentCmp);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexGridFilter, _super), WjFlexGridFilter = __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-grid-filter', template: "", wjParentDirectives: [wijmo_angular2_grid_1.WjFlexGrid]
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexGridFilter)
}(wijmo.grid.filter.FlexGridFilter);
exports_1("WjFlexGridFilter", WjFlexGridFilter)
}
}
});
System.register("wijmo/wijmo.angular2.grid.grouppanel", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
WjGroupPanel;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}], execute: function()
{
WjGroupPanel = function(_super)
{
function WjGroupPanel(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjGroupPanel, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-group-panel', template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjGroupPanel)
}(wijmo.grid.grouppanel.GroupPanel);
exports_1("WjGroupPanel", WjGroupPanel)
}
}
});
System.register("wijmo/wijmo.angular2.grid.detail", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase', 'wijmo/wijmo.angular2.grid'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
wijmo_angular2_grid_1,
WjFlexGridDetail;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}, function(wijmo_angular2_grid_1_1)
{
wijmo_angular2_grid_1 = wijmo_angular2_grid_1_1
}], execute: function()
{
WjFlexGridDetail = function(_super)
{
function WjFlexGridDetail(viewContainerRef, templateRef, domRenderer, elRef, injector)
{
var parentCmp=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.findTypeParentBehavior(injector, WjFlexGridDetail).directive;
_super.call(this, parentCmp);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector);
this._viewContainerRef = viewContainerRef;
this._templateRef = templateRef;
this._domRenderer = domRenderer;
this._init()
}
return __extends(WjFlexGridDetail, _super), WjFlexGridDetail.prototype._init = function()
{
var _this=this;
this.createDetailCell = function(row, col)
{
var templ=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.instantiateTemplate(_this.grid.hostElement, _this._viewContainerRef, _this._templateRef, _this._domRenderer),
viewRef=templ.viewRef,
templRoot=templ.rootElement;
return viewRef.context.row = row, viewRef.context.col = col, viewRef.context.item = row.dataItem, templRoot.parentElement.removeChild(templRoot), templRoot[WjFlexGridDetail._viewRefProp] = viewRef, templRoot
};
this.disposeDetailCell = function(row)
{
var viewRef,
idx;
row.detail && (viewRef = row.detail[WjFlexGridDetail._viewRefProp]) && (row.detail[WjFlexGridDetail._viewRefProp] = null, idx = _this._viewContainerRef.indexOf(viewRef), idx > -1 && _this._viewContainerRef.remove(idx))
}
}, WjFlexGridDetail._viewRefProp = '__wj_viewRef', WjFlexGridDetail = __decorate([wijmo_angular2_directiveBase_1.WjComponent({
wjIsDirective: !0, selector: '[wjFlexGridDetail]', wjParentDirectives: [wijmo_angular2_grid_1.WjFlexGrid], inputs: ['wjFlexGridDetail']
}), __param(0, core_1.Inject(core_1.ViewContainerRef)), __param(1, core_1.Inject(core_1.TemplateRef)), __param(2, core_1.Inject(core_1.Renderer)), __param(3, core_1.Inject(core_1.ElementRef)), __param(4, core_1.Inject(core_1.Injector))], WjFlexGridDetail)
}(wijmo.grid.detail.FlexGridDetailProvider);
exports_1("WjFlexGridDetail", WjFlexGridDetail)
}
}
});
System.register("wijmo/wijmo.angular2.grid.multirow", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
WjMultiRow;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}], execute: function()
{
WjMultiRow = function(_super)
{
function WjMultiRow(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjMultiRow, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-multi-row', template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjMultiRow)
}(wijmo.grid.multirow.MultiRow);
exports_1("WjMultiRow", WjMultiRow)
}
}
});
System.register("wijmo/wijmo.angular2.grid.sheet", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
WjFlexSheet,
WjSheet;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}], execute: function()
{
WjFlexSheet = function(_super)
{
function WjFlexSheet(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexSheet, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-sheet', template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexSheet)
}(wijmo.grid.sheet.FlexSheet);
exports_1("WjFlexSheet", WjFlexSheet);
WjSheet = function(_super)
{
function WjSheet(elRef, injector)
{
var parentCmp=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.findTypeParentBehavior(injector, WjSheet).directive;
_super.call(this, parentCmp);
this._flexSheet = parentCmp;
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjSheet, _super), WjSheet.prototype.ngOnChanges = function(changes)
{
var chg;
(chg = changes.rowCount) && chg.isFirstChange && (this.boundRowCount = chg.currentValue);
(chg = changes.columnCount) && chg.isFirstChange && (this.boundColumnCount = chg.currentValue)
}, WjSheet.prototype.ngOnInit = function()
{
return this.itemsSource ? this._flexSheet.addBoundSheet(this.name, this.itemsSource) : this._flexSheet.addUnboundSheet(this.name, this.boundRowCount != null ? +this.boundRowCount : null, this.boundColumnCount != null ? +this.boundColumnCount : null)
}, WjSheet = __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-sheet', template: "", wjParentDirectives: [WjFlexSheet]
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjSheet)
}(wijmo.grid.sheet.Sheet);
exports_1("WjSheet", WjSheet)
}
}
});
System.register("wijmo/wijmo.angular2.chart", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
core_2,
wijmo_angular2_directiveBase_1,
WjFlexChart,
WjFlexPie,
WjFlexChartAxis,
WjFlexChartLegend,
WjFlexChartDataLabel,
WjFlexPieDataLabel,
WjFlexChartSeries,
WjFlexChartLineMarker,
WjFlexChartDataPoint,
WjFlexChartPlotArea;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1;
core_2 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}], execute: function()
{
WjFlexChart = function(_super)
{
function WjFlexChart(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChart, _super), Object.defineProperty(WjFlexChart.prototype, "tooltipContent", {
get: function()
{
return this.tooltip.content
}, set: function(value)
{
this.tooltip.content = value
}, enumerable: !0, configurable: !0
}), Object.defineProperty(WjFlexChart.prototype, "labelContent", {
get: function()
{
return this.dataLabel.content
}, set: function(value)
{
this.dataLabel.content = value
}, enumerable: !0, configurable: !0
}), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart', template: ""
}), __param(0, core_1.Inject(core_2.ElementRef)), __param(1, core_1.Inject(core_2.Injector))], WjFlexChart)
}(wijmo.chart.FlexChart);
exports_1("WjFlexChart", WjFlexChart);
WjFlexPie = function(_super)
{
function WjFlexPie(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexPie, _super), Object.defineProperty(WjFlexPie.prototype, "tooltipContent", {
get: function()
{
return this.tooltip.content
}, set: function(value)
{
this.tooltip.content = value
}, enumerable: !0, configurable: !0
}), Object.defineProperty(WjFlexPie.prototype, "labelContent", {
get: function()
{
return this.dataLabel.content
}, set: function(value)
{
this.dataLabel.content = value
}, enumerable: !0, configurable: !0
}), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-pie', template: ""
}), __param(0, core_1.Inject(core_2.ElementRef)), __param(1, core_1.Inject(core_2.Injector))], WjFlexPie)
}(wijmo.chart.FlexPie);
exports_1("WjFlexPie", WjFlexPie);
WjFlexChartAxis = function(_super)
{
function WjFlexChartAxis(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAxis, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-axis', wjParentDirectives: [WjFlexChart, core_2.forwardRef(function()
{
return WjFlexChartSeries
}), core_2.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), core_2.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialSeries
}), ], template: ""
}), __param(0, core_1.Inject(core_2.ElementRef)), __param(1, core_1.Inject(core_2.Injector))], WjFlexChartAxis)
}(wijmo.chart.Axis);
exports_1("WjFlexChartAxis", WjFlexChartAxis);
WjFlexChartLegend = function(_super)
{
function WjFlexChartLegend(elRef, injector)
{
var parentCmp=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.findTypeParentBehavior(injector, WjFlexChartLegend).directive;
_super.call(this, parentCmp);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartLegend, _super), WjFlexChartLegend = __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-legend', wjParentDirectives: [WjFlexChart, WjFlexPie, core_2.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), core_2.forwardRef(function()
{
return wijmo.chart.hierarchical && wijmo.chart.hierarchical.Sunburst
}), ], template: ""
}), __param(0, core_1.Inject(core_2.ElementRef)), __param(1, core_1.Inject(core_2.Injector))], WjFlexChartLegend)
}(wijmo.chart.Legend);
exports_1("WjFlexChartLegend", WjFlexChartLegend);
WjFlexChartDataLabel = function(_super)
{
function WjFlexChartDataLabel(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartDataLabel, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-data-label', wjParentDirectives: [WjFlexChart], template: ""
}), __param(0, core_1.Inject(core_2.ElementRef)), __param(1, core_1.Inject(core_2.Injector))], WjFlexChartDataLabel)
}(wijmo.chart.DataLabel);
exports_1("WjFlexChartDataLabel", WjFlexChartDataLabel);
WjFlexPieDataLabel = function(_super)
{
function WjFlexPieDataLabel(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexPieDataLabel, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-pie-data-label', wjParentDirectives: [WjFlexPie, core_2.forwardRef(function()
{
return wijmo.chart.hierarchical && wijmo.chart.hierarchical.Sunburst
}), ], template: ""
}), __param(0, core_1.Inject(core_2.ElementRef)), __param(1, core_1.Inject(core_2.Injector))], WjFlexPieDataLabel)
}(wijmo.chart.PieDataLabel);
exports_1("WjFlexPieDataLabel", WjFlexPieDataLabel);
WjFlexChartSeries = function(_super)
{
function WjFlexChartSeries(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartSeries, _super), WjFlexChartSeries.SiblingId = 'series', __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-series', wjParentDirectives: [WjFlexChart, ], wjSiblingDirectiveId: 'series', template: ""
}), __param(0, core_1.Inject(core_2.ElementRef)), __param(1, core_1.Inject(core_2.Injector))], WjFlexChartSeries)
}(wijmo.chart.Series);
exports_1("WjFlexChartSeries", WjFlexChartSeries);
WjFlexChartLineMarker = function(_super)
{
function WjFlexChartLineMarker(elRef, injector)
{
var parentCmp=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.findTypeParentBehavior(injector, WjFlexChartLineMarker).directive;
_super.call(this, parentCmp);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartLineMarker, _super), WjFlexChartLineMarker = __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-line-marker', wjParentDirectives: [WjFlexChart, core_2.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), ], template: ""
}), __param(0, core_1.Inject(core_2.ElementRef)), __param(1, core_1.Inject(core_2.Injector))], WjFlexChartLineMarker)
}(wijmo.chart.LineMarker);
exports_1("WjFlexChartLineMarker", WjFlexChartLineMarker);
WjFlexChartDataPoint = function(_super)
{
function WjFlexChartDataPoint(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartDataPoint, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-data-point', wjParentDirectives: [core_2.forwardRef(function()
{
return wijmo.chart.annotation && wijmo.chart.annotation.AnnotationBase
}), ], template: ""
}), __param(0, core_1.Inject(core_2.ElementRef)), __param(1, core_1.Inject(core_2.Injector))], WjFlexChartDataPoint)
}(wijmo.chart.DataPoint);
exports_1("WjFlexChartDataPoint", WjFlexChartDataPoint);
WjFlexChartPlotArea = function(_super)
{
function WjFlexChartPlotArea(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartPlotArea, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-plot-area', wjParentDirectives: [WjFlexChart, core_2.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), ], template: ""
}), __param(0, core_1.Inject(core_2.ElementRef)), __param(1, core_1.Inject(core_2.Injector))], WjFlexChartPlotArea)
}(wijmo.chart.PlotArea);
exports_1("WjFlexChartPlotArea", WjFlexChartPlotArea)
}
}
});
System.register("wijmo/wijmo.angular2.chart.interaction", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase', 'wijmo/wijmo.angular2.chart'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
wijmo_angular2_chart_1,
WjFlexChartRangeSelector,
WjFlexChartGestures;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}, function(wijmo_angular2_chart_1_1)
{
wijmo_angular2_chart_1 = wijmo_angular2_chart_1_1
}], execute: function()
{
WjFlexChartRangeSelector = function(_super)
{
function WjFlexChartRangeSelector(elRef, injector)
{
var parentCmp=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.findTypeParentBehavior(injector, WjFlexChartRangeSelector).directive;
_super.call(this, parentCmp);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartRangeSelector, _super), WjFlexChartRangeSelector = __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-range-selector', wjParentDirectives: [wijmo_angular2_chart_1.WjFlexChart, core_1.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), ], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartRangeSelector)
}(wijmo.chart.interaction.RangeSelector);
exports_1("WjFlexChartRangeSelector", WjFlexChartRangeSelector);
WjFlexChartGestures = function(_super)
{
function WjFlexChartGestures(elRef, injector)
{
var parentCmp=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.findTypeParentBehavior(injector, WjFlexChartGestures).directive;
_super.call(this, parentCmp);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartGestures, _super), WjFlexChartGestures = __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-gestures', wjParentDirectives: [wijmo_angular2_chart_1.WjFlexChart, core_1.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), ], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartGestures)
}(wijmo.chart.interaction.ChartGestures);
exports_1("WjFlexChartGestures", WjFlexChartGestures)
}
}
});
System.register("wijmo/wijmo.angular2.chart.animation", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase', 'wijmo/wijmo.angular2.chart'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
wijmo_angular2_chart_1,
WjFlexChartAnimation;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}, function(wijmo_angular2_chart_1_1)
{
wijmo_angular2_chart_1 = wijmo_angular2_chart_1_1
}], execute: function()
{
WjFlexChartAnimation = function(_super)
{
function WjFlexChartAnimation(elRef, injector)
{
var parentCmp=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.findTypeParentBehavior(injector, WjFlexChartAnimation).directive;
_super.call(this, parentCmp);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAnimation, _super), WjFlexChartAnimation = __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-animation', wjParentDirectives: [wijmo_angular2_chart_1.WjFlexChart, wijmo_angular2_chart_1.WjFlexPie, core_1.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), ], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartAnimation)
}(wijmo.chart.animation.ChartAnimation);
exports_1("WjFlexChartAnimation", WjFlexChartAnimation)
}
}
});
System.register("wijmo/wijmo.angular2.chart.analytics", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase', 'wijmo/wijmo.angular2.chart'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
wijmo_angular2_chart_1,
WjFlexChartTrendLine,
WjFlexChartMovingAverage,
WjFlexChartYFunctionSeries,
WjFlexChartParametricFunctionSeries,
WjFlexChartWaterfall;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}, function(wijmo_angular2_chart_1_1)
{
wijmo_angular2_chart_1 = wijmo_angular2_chart_1_1
}], execute: function()
{
WjFlexChartTrendLine = function(_super)
{
function WjFlexChartTrendLine(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartTrendLine, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-trend-line', wjParentDirectives: [wijmo_angular2_chart_1.WjFlexChart, core_1.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), ], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartTrendLine)
}(wijmo.chart.analytics.TrendLine);
exports_1("WjFlexChartTrendLine", WjFlexChartTrendLine);
WjFlexChartMovingAverage = function(_super)
{
function WjFlexChartMovingAverage(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartMovingAverage, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-moving-average', wjParentDirectives: [wijmo_angular2_chart_1.WjFlexChart, core_1.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), ], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartMovingAverage)
}(wijmo.chart.analytics.MovingAverage);
exports_1("WjFlexChartMovingAverage", WjFlexChartMovingAverage);
WjFlexChartYFunctionSeries = function(_super)
{
function WjFlexChartYFunctionSeries(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartYFunctionSeries, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-y-function-series', wjParentDirectives: [wijmo_angular2_chart_1.WjFlexChart, core_1.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), ], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartYFunctionSeries)
}(wijmo.chart.analytics.YFunctionSeries);
exports_1("WjFlexChartYFunctionSeries", WjFlexChartYFunctionSeries);
WjFlexChartParametricFunctionSeries = function(_super)
{
function WjFlexChartParametricFunctionSeries(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartParametricFunctionSeries, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-parametric-function-series', wjParentDirectives: [wijmo_angular2_chart_1.WjFlexChart, core_1.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), ], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartParametricFunctionSeries)
}(wijmo.chart.analytics.ParametricFunctionSeries);
exports_1("WjFlexChartParametricFunctionSeries", WjFlexChartParametricFunctionSeries);
WjFlexChartWaterfall = function(_super)
{
function WjFlexChartWaterfall(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartWaterfall, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-waterfall', wjParentDirectives: [wijmo_angular2_chart_1.WjFlexChart, core_1.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), ], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartWaterfall)
}(wijmo.chart.analytics.Waterfall);
exports_1("WjFlexChartWaterfall", WjFlexChartWaterfall)
}
}
});
System.register("wijmo/wijmo.angular2.chart.annotation", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase', 'wijmo/wijmo.angular2.chart'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
wijmo_angular2_chart_1,
WjFlexChartAnnotationLayer,
WjFlexChartAnnotationText,
WjFlexChartAnnotationEllipse,
WjFlexChartAnnotationRectangle,
WjFlexChartAnnotationLine,
WjFlexChartAnnotationPolygon,
WjFlexChartAnnotationCircle,
WjFlexChartAnnotationSquare,
WjFlexChartAnnotationImage;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}, function(wijmo_angular2_chart_1_1)
{
wijmo_angular2_chart_1 = wijmo_angular2_chart_1_1
}], execute: function()
{
WjFlexChartAnnotationLayer = function(_super)
{
function WjFlexChartAnnotationLayer(elRef, injector)
{
var parentCmp=wijmo_angular2_directiveBase_1.WjDirectiveBehavior.findTypeParentBehavior(injector, WjFlexChartAnnotationLayer).directive;
_super.call(this, parentCmp);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAnnotationLayer, _super), WjFlexChartAnnotationLayer = __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-annotation-layer', wjParentDirectives: [wijmo_angular2_chart_1.WjFlexChart, core_1.forwardRef(function()
{
return wijmo.chart.finance && wijmo.chart.finance.FinancialChart
}), ], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartAnnotationLayer)
}(wijmo.chart.annotation.AnnotationLayer);
exports_1("WjFlexChartAnnotationLayer", WjFlexChartAnnotationLayer);
WjFlexChartAnnotationText = function(_super)
{
function WjFlexChartAnnotationText(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAnnotationText, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-annotation-text', wjMetadataId: 'FlexChartAnnotation', wjSiblingDirectiveId: 'annotation', wjParentDirectives: [WjFlexChartAnnotationLayer], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartAnnotationText)
}(wijmo.chart.annotation.Text);
exports_1("WjFlexChartAnnotationText", WjFlexChartAnnotationText);
WjFlexChartAnnotationEllipse = function(_super)
{
function WjFlexChartAnnotationEllipse(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAnnotationEllipse, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-annotation-ellipse', wjMetadataId: 'FlexChartAnnotation', wjSiblingDirectiveId: 'annotation', wjParentDirectives: [WjFlexChartAnnotationLayer], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartAnnotationEllipse)
}(wijmo.chart.annotation.Ellipse);
exports_1("WjFlexChartAnnotationEllipse", WjFlexChartAnnotationEllipse);
WjFlexChartAnnotationRectangle = function(_super)
{
function WjFlexChartAnnotationRectangle(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAnnotationRectangle, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-annotation-rectangle', wjMetadataId: 'FlexChartAnnotation', wjSiblingDirectiveId: 'annotation', wjParentDirectives: [WjFlexChartAnnotationLayer], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartAnnotationRectangle)
}(wijmo.chart.annotation.Rectangle);
exports_1("WjFlexChartAnnotationRectangle", WjFlexChartAnnotationRectangle);
WjFlexChartAnnotationLine = function(_super)
{
function WjFlexChartAnnotationLine(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAnnotationLine, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-annotation-line', wjMetadataId: 'FlexChartAnnotation', wjSiblingDirectiveId: 'annotation', wjParentDirectives: [WjFlexChartAnnotationLayer], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartAnnotationLine)
}(wijmo.chart.annotation.Line);
exports_1("WjFlexChartAnnotationLine", WjFlexChartAnnotationLine);
WjFlexChartAnnotationPolygon = function(_super)
{
function WjFlexChartAnnotationPolygon(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAnnotationPolygon, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-annotation-polygon', wjMetadataId: 'FlexChartAnnotation', wjSiblingDirectiveId: 'annotation', wjParentDirectives: [WjFlexChartAnnotationLayer], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartAnnotationPolygon)
}(wijmo.chart.annotation.Polygon);
exports_1("WjFlexChartAnnotationPolygon", WjFlexChartAnnotationPolygon);
WjFlexChartAnnotationCircle = function(_super)
{
function WjFlexChartAnnotationCircle(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAnnotationCircle, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-annotation-circle', wjMetadataId: 'FlexChartAnnotation', wjSiblingDirectiveId: 'annotation', wjParentDirectives: [WjFlexChartAnnotationLayer], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartAnnotationCircle)
}(wijmo.chart.annotation.Circle);
exports_1("WjFlexChartAnnotationCircle", WjFlexChartAnnotationCircle);
WjFlexChartAnnotationSquare = function(_super)
{
function WjFlexChartAnnotationSquare(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAnnotationSquare, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-annotation-square', wjMetadataId: 'FlexChartAnnotation', wjSiblingDirectiveId: 'annotation', wjParentDirectives: [WjFlexChartAnnotationLayer], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartAnnotationSquare)
}(wijmo.chart.annotation.Square);
exports_1("WjFlexChartAnnotationSquare", WjFlexChartAnnotationSquare);
WjFlexChartAnnotationImage = function(_super)
{
function WjFlexChartAnnotationImage(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAnnotationImage, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-annotation-image', wjMetadataId: 'FlexChartAnnotation', wjSiblingDirectiveId: 'annotation', wjParentDirectives: [WjFlexChartAnnotationLayer], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartAnnotationImage)
}(wijmo.chart.annotation.Image);
exports_1("WjFlexChartAnnotationImage", WjFlexChartAnnotationImage)
}
}
});
System.register("wijmo/wijmo.angular2.chart.finance", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase', 'wijmo/wijmo.angular2.chart'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
wijmo_angular2_chart_1,
WjFinancialChart,
WjFinancialChartSeries;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}, function(wijmo_angular2_chart_1_1)
{
wijmo_angular2_chart_1 = wijmo_angular2_chart_1_1
}], execute: function()
{
WjFinancialChart = function(_super)
{
function WjFinancialChart(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFinancialChart, _super), Object.defineProperty(WjFinancialChart.prototype, "tooltipContent", {
get: function()
{
return this.tooltip.content
}, set: function(value)
{
this.tooltip.content = value
}, enumerable: !0, configurable: !0
}), Object.defineProperty(WjFinancialChart.prototype, "labelContent", {
get: function()
{
return this.dataLabel.content
}, set: function(value)
{
this.dataLabel.content = value
}, enumerable: !0, configurable: !0
}), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-financial-chart', template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFinancialChart)
}(wijmo.chart.finance.FinancialChart);
exports_1("WjFinancialChart", WjFinancialChart);
WjFinancialChartSeries = function(_super)
{
function WjFinancialChartSeries(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFinancialChartSeries, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-financial-chart-series', wjParentDirectives: [WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFinancialChartSeries)
}(wijmo.chart.finance.FinancialSeries);
exports_1("WjFinancialChartSeries", WjFinancialChartSeries)
}
}
});
System.register("wijmo/wijmo.angular2.chart.finance.analytics", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase', 'wijmo/wijmo.angular2.chart', 'wijmo/wijmo.angular2.chart.finance'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
wijmo_angular2_chart_1,
wijmo_angular2_chart_finance_1,
WjFlexChartFibonacci,
WjFlexChartFibonacciArcs,
WjFlexChartFibonacciFans,
WjFlexChartFibonacciTimeZones,
WjFlexChartAtr,
WjFlexChartCci,
WjFlexChartRsi,
WjFlexChartWilliamsR,
WjFlexChartMacd,
WjFlexChartMacdHistogram,
WjFlexChartStochastic,
WjFlexChartBollingerBands,
WjFlexChartEnvelopes;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}, function(wijmo_angular2_chart_1_1)
{
wijmo_angular2_chart_1 = wijmo_angular2_chart_1_1
}, function(wijmo_angular2_chart_finance_1_1)
{
wijmo_angular2_chart_finance_1 = wijmo_angular2_chart_finance_1_1
}], execute: function()
{
WjFlexChartFibonacci = function(_super)
{
function WjFlexChartFibonacci(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartFibonacci, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-fibonacci', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartFibonacci)
}(wijmo.chart.finance.analytics.Fibonacci);
exports_1("WjFlexChartFibonacci", WjFlexChartFibonacci);
WjFlexChartFibonacciArcs = function(_super)
{
function WjFlexChartFibonacciArcs(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartFibonacciArcs, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-fibonacci-arcs', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartFibonacciArcs)
}(wijmo.chart.finance.analytics.FibonacciArcs);
exports_1("WjFlexChartFibonacciArcs", WjFlexChartFibonacciArcs);
WjFlexChartFibonacciFans = function(_super)
{
function WjFlexChartFibonacciFans(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartFibonacciFans, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-fibonacci-fans', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartFibonacciFans)
}(wijmo.chart.finance.analytics.FibonacciFans);
exports_1("WjFlexChartFibonacciFans", WjFlexChartFibonacciFans);
WjFlexChartFibonacciTimeZones = function(_super)
{
function WjFlexChartFibonacciTimeZones(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartFibonacciTimeZones, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-fibonacci-time-zones', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartFibonacciTimeZones)
}(wijmo.chart.finance.analytics.FibonacciTimeZones);
exports_1("WjFlexChartFibonacciTimeZones", WjFlexChartFibonacciTimeZones);
WjFlexChartAtr = function(_super)
{
function WjFlexChartAtr(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartAtr, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-atr', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartAtr)
}(wijmo.chart.finance.analytics.ATR);
exports_1("WjFlexChartAtr", WjFlexChartAtr);
WjFlexChartCci = function(_super)
{
function WjFlexChartCci(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartCci, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-cci', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartCci)
}(wijmo.chart.finance.analytics.CCI);
exports_1("WjFlexChartCci", WjFlexChartCci);
WjFlexChartRsi = function(_super)
{
function WjFlexChartRsi(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartRsi, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-rsi', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartRsi)
}(wijmo.chart.finance.analytics.RSI);
exports_1("WjFlexChartRsi", WjFlexChartRsi);
WjFlexChartWilliamsR = function(_super)
{
function WjFlexChartWilliamsR(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartWilliamsR, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-williams-r', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartWilliamsR)
}(wijmo.chart.finance.analytics.WilliamsR);
exports_1("WjFlexChartWilliamsR", WjFlexChartWilliamsR);
WjFlexChartMacd = function(_super)
{
function WjFlexChartMacd(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartMacd, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-macd', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartMacd)
}(wijmo.chart.finance.analytics.Macd);
exports_1("WjFlexChartMacd", WjFlexChartMacd);
WjFlexChartMacdHistogram = function(_super)
{
function WjFlexChartMacdHistogram(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartMacdHistogram, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-macd-histogram', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartMacdHistogram)
}(wijmo.chart.finance.analytics.MacdHistogram);
exports_1("WjFlexChartMacdHistogram", WjFlexChartMacdHistogram);
WjFlexChartStochastic = function(_super)
{
function WjFlexChartStochastic(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartStochastic, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-stochastic', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartStochastic)
}(wijmo.chart.finance.analytics.Stochastic);
exports_1("WjFlexChartStochastic", WjFlexChartStochastic);
WjFlexChartBollingerBands = function(_super)
{
function WjFlexChartBollingerBands(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartBollingerBands, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-bollinger-bands', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartBollingerBands)
}(wijmo.chart.finance.analytics.BollingerBands);
exports_1("WjFlexChartBollingerBands", WjFlexChartBollingerBands);
WjFlexChartEnvelopes = function(_super)
{
function WjFlexChartEnvelopes(elRef, injector)
{
_super.call(this);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjFlexChartEnvelopes, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-flex-chart-envelopes', wjParentDirectives: [wijmo_angular2_chart_finance_1.WjFinancialChart], template: "<div><ng-content></ng-content></div>", wjSiblingDirectiveId: wijmo_angular2_chart_1.WjFlexChartSeries.SiblingId
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjFlexChartEnvelopes)
}(wijmo.chart.finance.analytics.Envelopes);
exports_1("WjFlexChartEnvelopes", WjFlexChartEnvelopes)
}
}
});
System.register("wijmo/wijmo.angular2.chart.hierarchical", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
WjSunburst;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}], execute: function()
{
WjSunburst = function(_super)
{
function WjSunburst(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjSunburst, _super), Object.defineProperty(WjSunburst.prototype, "tooltipContent", {
get: function()
{
return this.tooltip.content
}, set: function(value)
{
this.tooltip.content = value
}, enumerable: !0, configurable: !0
}), Object.defineProperty(WjSunburst.prototype, "labelContent", {
get: function()
{
return this.dataLabel.content
}, set: function(value)
{
this.dataLabel.content = value
}, enumerable: !0, configurable: !0
}), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-sunburst', template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjSunburst)
}(wijmo.chart.hierarchical.Sunburst);
exports_1("WjSunburst", WjSunburst)
}
}
});
System.register("wijmo/wijmo.angular2.gauge", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
WjLinearGauge,
WjBulletGraph,
WjRadialGauge,
WjRange;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}], execute: function()
{
WjLinearGauge = function(_super)
{
function WjLinearGauge(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjLinearGauge, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-linear-gauge', template: "<div><ng-content></ng-content></div>"
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjLinearGauge)
}(wijmo.gauge.LinearGauge);
exports_1("WjLinearGauge", WjLinearGauge);
WjBulletGraph = function(_super)
{
function WjBulletGraph(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjBulletGraph, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-bullet-graph', template: "<div><ng-content></ng-content></div>"
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjBulletGraph)
}(wijmo.gauge.BulletGraph);
exports_1("WjBulletGraph", WjBulletGraph);
WjRadialGauge = function(_super)
{
function WjRadialGauge(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjRadialGauge, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-radial-gauge', template: "<div><ng-content></ng-content></div>"
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjRadialGauge)
}(wijmo.gauge.RadialGauge);
exports_1("WjRadialGauge", WjRadialGauge);
WjRange = function(_super)
{
function WjRange(elRef, injector)
{
_super.call(this, null);
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjRange, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-range', wjParentDirectives: [WjLinearGauge, WjBulletGraph, WjRadialGauge], template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjRange)
}(wijmo.gauge.Range);
exports_1("WjRange", WjRange)
}
}
});
System.register("wijmo/wijmo.angular2.olap", ['@angular/core', 'wijmo/wijmo.angular2.directiveBase'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
__extends=this && this.__extends || function(d, b)
{
function __()
{
this.constructor = d
}
for (var p in b)
b.hasOwnProperty(p) && (d[p] = b[p]);
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __)
},
__decorate=this && this.__decorate || function(decorators, target, key, desc)
{
var c=arguments.length,
r=c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d,
i;
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (i = decorators.length - 1; i >= 0; i--)
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r
},
__param=this && this.__param || function(paramIndex, decorator)
{
return function(target, key)
{
decorator(target, key, paramIndex)
}
},
core_1,
wijmo_angular2_directiveBase_1,
WjPivotGrid,
WjPivotChart,
WjPivotPanel;
return {
setters: [function(core_1_1)
{
core_1 = core_1_1
}, function(wijmo_angular2_directiveBase_1_1)
{
wijmo_angular2_directiveBase_1 = wijmo_angular2_directiveBase_1_1
}], execute: function()
{
WjPivotGrid = function(_super)
{
function WjPivotGrid(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjPivotGrid, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-pivot-grid', template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjPivotGrid)
}(wijmo.olap.PivotGrid);
exports_1("WjPivotGrid", WjPivotGrid);
WjPivotChart = function(_super)
{
function WjPivotChart(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjPivotChart, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-pivot-chart', template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjPivotChart)
}(wijmo.olap.PivotChart);
exports_1("WjPivotChart", WjPivotChart);
WjPivotPanel = function(_super)
{
function WjPivotPanel(elRef, injector)
{
_super.call(this, wijmo_angular2_directiveBase_1.WjDirectiveBehavior.getHostElement(elRef));
wijmo_angular2_directiveBase_1.WjDirectiveBehavior.attach(this, elRef, injector)
}
return __extends(WjPivotPanel, _super), __decorate([wijmo_angular2_directiveBase_1.WjComponent({
selector: 'wj-pivot-panel', template: ""
}), __param(0, core_1.Inject(core_1.ElementRef)), __param(1, core_1.Inject(core_1.Injector))], WjPivotPanel)
}(wijmo.olap.PivotPanel);
exports_1("WjPivotPanel", WjPivotPanel)
}
}
});
System.register("wijmo/wijmo.angular2.all", ['wijmo/wijmo.angular2.input', 'wijmo/wijmo.angular2.grid', 'wijmo/wijmo.angular2.chart', 'wijmo/wijmo.angular2.gauge', 'wijmo/wijmo.angular2.core'], function(exports_1, context_1)
{
"use strict";
var __moduleName=context_1 && context_1.id,
wjNg2Input,
wjNg2Grid,
wjNg2Chart,
wjNg2Gauge,
wjNg2Core;
return {
setters: [function(wjNg2Input_1)
{
wjNg2Input = wjNg2Input_1
}, function(wjNg2Grid_1)
{
wjNg2Grid = wjNg2Grid_1
}, function(wjNg2Chart_1)
{
wjNg2Chart = wjNg2Chart_1
}, function(wjNg2Gauge_1)
{
wjNg2Gauge = wjNg2Gauge_1
}, function(wjNg2Core_1)
{
wjNg2Core = wjNg2Core_1
}], execute: function()
{
exports_1("wjNg2Input", wjNg2Input);
exports_1("wjNg2Grid", wjNg2Grid);
exports_1("wjNg2Chart", wjNg2Chart);
exports_1("wjNg2Gauge", wjNg2Gauge);
exports_1("wjNg2Core", wjNg2Core)
}
}
})
###Wijmo FlexGrid with multi-sort - (Angular2 TypeScript)

* WIJMO5 Angular2 TypeScript

* This example demonstrates example to save column layout of wijmo5 flex grid and restore it.

To see how this works, follow these steps:

-- Resize some columns and drag some to new positions.
-- Click the "Save Column Layout" button to save the changes to local storage.
-- Refresh the page to restore the original layout.
-- Click the "Load Column Layout" button to restore the layout from local storage.