/*! * * SpreadJS Library 13.1.0 * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Licensed under the SpreadJS Commercial License. * us.sales@grapecity.com * http://www.grapecity.com/en/licensing/grapecity/ * * */ var GC="object"==typeof GC?GC:{};GC.Spread=GC.Spread||{},GC.Spread.Sheets=GC.Spread.Sheets||{},GC.Spread.Sheets.Bindings=function(a){var b={};function c(d){if(b[d])return b[d].exports;var e=b[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,c),e.l=!0,e.exports}return c.m=a,c.c=b,c.d=function(a,b,d){c.o(a,b)||Object.defineProperty(a,b,{enumerable:!0,get:d})},c.r=function(a){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},c.t=function(a,b){var d,e;if(1&b&&(a=c(a)),8&b)return a;if(4&b&&"object"==typeof a&&a&&a.__esModule)return a;if(d=Object.create(null),c.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:a}),2&b&&"string"!=typeof a)for(e in a)c.d(d,e,function(b){return a[b]}.bind(null,e));return d},c.n=function(a){var b=a&&a.__esModule?function b(){return a.default}:function b(){return a};return c.d(b,"a",b),b},c.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},c.p="/assets/",c(c.s="./dist/plugins/data/data.entry.js")}({"./dist/plugins/data/binding.js":function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;Object.defineProperty(b,"__esModule",{value:!0}),d=c("Core"),e=c("Core"),f=e.GC$,g=c("Common"),h=c("./dist/plugins/data/data.ns.js"),i=f.isNumeric,j=g.Common.j.Fa,k=null,l=void 0,m="string",b.yL=n,o=b.yL=n={},p="cellBinding",q=new g.Common.ResourceManager(h.SR),r=q.getResource.bind(q),s=function(){function a(a){this.xf=a}return a.prototype.setValue=function(a,b){D(this.xf,a,b)},a.prototype.getValue=function(a){return E(this.xf,a)},a.prototype.getSource=function(){return this.xf},a}(),b.CellBindingSource=s,t=function(){function a(a){this.ad(a)}return a.prototype.bind=function(a,b){var c,d,e,g,h=this,i=h.kj,j=h.Ou;if(b&&h.tUa(b,{type:"bind",oldDataSource:j}),j&&(j.lka&&(j.subscribe=j.lka,delete j.mka,delete j.lka),C(j.dispose)&&j.dispose()),h.zL(h.AL),h.zL(h.BL),h.ad(i),h.Ou=a,a){if(c=h.CL=z(a),!c)throw Error(r().Exp_NotSupportedDataSource);h.DL=h.EL(),i&&f[f.sd]({tc:i.parent}),i&&(d=h.AL,e=a.currentPosition,a.subscribe&&d.push(a.subscribe(h.FL,h)),e&&e.subscribe&&d.push(e.subscribe(h.GL,h)),C(a.subscribe)&&!a.lka&&(g=a.lka=a.subscribe,a.mka=!1,a.subscribe=function(b,c){var d=[].concat.apply([],arguments),e=function(){if(!a.mka&&C(b))return b.apply(c,arguments)};return d[0]=e,g.apply(a,d)}),h.Lx()),h.HL=A(a,c)}return w(i,a)},a.prototype.Lx=function(){var a,b,c,d,e,f=this,g=f.kj,h=f.Ou;if(g&&h&&(a=f.CL,f.zL(f.BL),b=k,a!==p&&(c=g.getActiveRowIndex(),h.currentPosition?(-1<=c&&cf.getRowCount()||(d=f.CL,e=f.EL(),d&&d!==p&&!f.IL&&(f.JL=!0,c&&f.tUa(c,{type:"addItems",row:a,rowCount:b}),o[d].addItems(g,a,b,e),f.JL=!1))},a.prototype.wL=function(a,b,c){var d,e=this,f=e.CL,g=e.getRowCount(),h=e.Ou;!h||a>=g||f&&f!==p&&!e.IL&&(e.JL=!0,d=o[f].removeItems(h,a,b),c&&d&&d.length>0&&e.tUa(c,{type:"removeItems",row:a,removedItems:d}),e.JL=!1)},a.prototype.uUa=function(a,b){var c=this,d=c.Ou,e=c.CL;o[e].undoRemoveItems(d,a,b)},a.prototype.xL=function(a){return B(a||this.Ou)},a.prototype.ad=function(a){var b=this;b.Ou=k,b.CL="",b.DL=k,b.HL=k,b.AL=[],b.BL=[],b.qia=k,b.kj=a,v(a)},a.prototype.FL=function(a){var b,c,d,e,f=this,g=f.kj;if(g&&!f.JL){if(a){if(f.IL=!0,!isNaN(a.length)&&(g.setRowCountCore(a.length),b=g.ITa,j(f.HL)&&0===b.VTa(!1,3)&&(f.HL=A(f.Ou),g.setColumnCount(f.getColumnCount()),c=f.rL())))for(d=0,e=c.length;d0){e=[],b=a[0];for(c in b)C(b[c])||e.push(c)}return e},a.prototype.getValue=function(a,b,c,d,e){var f=k,g=!1,h=this.getDataItem(a,d);return j(h)||(b?(f=b(h),g=!0):c?(f=E(h,c,this.pathCache),g=!0):(typeof h===m||i(h))&&0===e&&(f=h,g=!0)),{value:f,hasBinding:g}},a.prototype.setValue=function(a,b,c,d,e,f){var g=!1,h=this.getDataItem(a,d);return j(h)||(b?(b(h,f),g=!0):c?(D(h,c,f),g=!0):(typeof h===m||i(h))&&0===e&&(a[d]=f,g=!0)),g},a.prototype.fromJSON=function(a){return a},a.prototype.toJSON=function(a){return a},a}(),o.defaultBindingSource=new u},"./dist/plugins/data/data.dataview.js":function(a,b,c){"use strict";var d,e,f,g,h;Object.defineProperty(b,"__esModule",{value:!0}),d=c("Common"),e=c("./dist/plugins/data/binding.js"),b.yL=e.yL,f=d.Common.j.Fa,g=null,h=function(){function a(){}return a.prototype.isDataSource=function(a){var b=window.wijmo;return b&&b.data&&b.data.isDataView&&b.data.isDataView(a)},a.prototype.getDataLength=function(a){return a.count()},a.prototype.getDataItem=function(a,b){return a.item(b)},a.prototype.addItems=function(a,b,c,d){if(d)for(var e=0;e0)for(c=e.length,d=[],b=0;b0){b=d[0];for(c in b)i(b[c])?n&&n.isObservable(b[c])&&f.push(c):f.push(c)}return f},a.prototype.getValue=function(a,b,c,d,e){var h=l,i=!1,n=this.getDataItem(a,d);return g(n)||(b?(h=b(n),i=!0):c?(h=f.LL(n,c),i=!0):(j(n)===m||k(n))&&0===e&&(h=n,i=!0)),{value:h,hasBinding:i}},a.prototype.setValue=function(a,b,c,d,e,h){var i=!1,l=this.getDataItem(a,d);return g(l)||(b?(b(l,h),i=!0):c?(f.setValueByPath(l,c,h),i=!0):(j(l)===m||k(l))&&0===e&&(a()[d]=h,i=!0)),i},a.prototype.fromJSON=function(a){return n?n.observableArray(a):l},a.prototype.toJSON=function(a){return a()},a}(),f.yL.koBinding=new o,n&&(p=n.bindingHandlers,p["gc-spread-sheets"]=p["gcspread-sheets"]=p.wijspread={init:function(a,b,c,e){var f,g,i,j,k,l,n,o,p,q,r,s;if(!h(a).data("workbook")&&(f=b(),g=f&&f.sheets,i=new d.Workbook(h("#"+a.id)[0],f),g)){for(j=void 0,k=void 0,l=g.length,n=i.getSheetCount();n0&&j.cq(p),"boolean"==typeof q&&(j.autoGenerateColumns=q),r&&j.setDataSource(r),s&&s.length>0&&(j.autoGenerateColumns=!1,j.bindColumns(s))}},update:function(a,b,c,d){}})},"./dist/plugins/data/data.ns.js":function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d=c("./dist/plugins/data/data.res.en.js");b.SR={en:d}},"./dist/plugins/data/data.res.en.js":function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Exp_NotSupportedDataSource="The data source is not supported!"},"./dist/plugins/data/worksheet-databind.js":function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m,n,o;Object.defineProperty(b,"__esModule",{value:!0}),d=c("Core"),e=c("Common"),f=c("./dist/plugins/data/binding.js");function p(a,b,c){"string"==typeof c&&(c={name:c}),a.ITa.do("setItem",!1,3,b,c);var d=c&&c.formatter,e=c&&c.cellType;d&&a.setFormatter&&a.setFormatter(-1,b,d),e&&a.setCellType(-1,b,e),c&&c.width&&a.setColumnWidth(b,c.width)}g=e.Common.j.Fa,h=d.GC$.isEmptyObject,i=d.GC$.extend,j=d.Worksheet.prototype,k=null,l="bindingPath",m=RegExp("^\\d*(\\.\\d+)?\\*$"),n=e.Common.l,o={getDataSource:function(){var a=this.wq;return a?a.getSource():k},setDataSource:function(a,b){var c,d,e,g,h,i,j=this,k=j.wq;if(k&&k.getSource()!==a){if(b&&j.vs(),a){if(k=j.wq,k.cLb=!0,c=k.bind(a,j.ITa.zTa),!c&&(j.setRowCountCore(k.getRowCount()),j.autoGenerateColumns&&(j.setColumnCount(k.getColumnCount()),d=k.rL())))for(e=0,g=d.length;e0&&g(c[h.name])&&(c[h.name]=i.getValue(a,f));return c},getDataColumnName:function(a){var b,c=this;return 0<=a&&a=0&&e===k||k===-1&&e===c-1)for(f=0;f=0;b--)c=d[b],c.bindingManager.sUa(c)}})},Common:function(a,b){a.exports=GC.Spread},Core:function(a,b){a.exports=GC.Spread.Sheets}});