/*! * * SpreadJS Library 10.0.0 * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Licensed under the SpreadJS Commercial License. * spread.sales@grapecity.com * http://spread.grapecity.com/Pages/Spread-JS-License/ * * */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Views=t():(e.GC=e.GC||{},e.GC.Spread=e.GC.Spread||{},e.GC.Spread.Views=t())}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/assets/",t(0)}([function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(){function t(e){if(ut.isNil(e))return!1;if(!e.hasOwnProperty("keyField"))return console.error("keyField is a must property in hierarchy setting"),!1;if(!e.hasOwnProperty("parentField"))return console.error("parentField is a must property in hierarchy setting"),!1;var t=this;return t.gCBI_(e.keyField)?t.gCBI_(e.parentField)?!0:(console.error("There is not a column whose id is "+e.parentField+" in column collection"),!1):(console.error("There is not a column whose id is "+e.keyField+" in column collection"),!1)}function o(e,t){var n=this,r=n.options;n.data=new Wt(t,ut.map(e,function(e){return{name:e.id,field:e.dataField,caption:e.caption,dataType:e.dataType}}));var o=n.data;o.getDefaults=function(){return{group:Me(n).gGID_(),getFormatter:function(e){if(!n.ExcelFormatter_)return null;var t=n.cF_[e.toLowerCase()];if(t&&t instanceof n.ExcelFormatter_){var r=t.format;return r.bind(t)}}}},o.suspendRefresh(),r.filtering&&(o.filterDescriptors=r.filtering),r.sorting&&(o.sortDescriptors=ut.isString(r.sorting)?r.sorting.slice():ut.cloneDeep(r.sorting)),r.grouping&&(o.groupDescriptors=ut.cloneDeep(r.grouping)),r.hierarchy&&(o.hierarchyDescriptor=r.hierarchy),o.resumeRefresh()}function i(e,t,n){var r,o,i=t.querySelectorAll("[data-column]");if(i.length>0){var a=function(e,t){return function(n){return n[e].toLowerCase()===t.toLowerCase()}},u=function(t){if(o=t.getAttribute("data-column"),r=ut.find(e,a("id",o)),!r.headerRow||!r.headerRow.renderer||!ut.isFunction(r.headerRow.renderer)){var i=n.querySelector("[data-column="+o+"]");if(i)for(var u=0,c=t.children.length;c>u;u++)i.replaceChild(t.children[u],i.children[u])}};ut.each(i,u)}else n.replaceChild(t.children[0],n.children[0])}function a(e){var t=e.parentElement,n=t.querySelector(".waterMark");n?t.removeChild(n):n=ct.createElement(''),t.appendChild(n)}function u(e){var t,n=this,r=[".gc","grid","container"],o=n.container.querySelector(r.join("-")),i=0,a=n.getLayoutInfo();for(var u in a)a.hasOwnProperty(u)&&(i+=1),n.sSP_(u)&&(t=n.gSPRI_(u),i+=t?t.length:0);var s=["","706f736974696f6e3a206162736f6c7574653b72696768743a203270783b626f74746f6d3a203270783b6f7061636974793a20302e383b666f6e742d73697a653a20313470783b70616464696e673a203570783b6261636b67726f756e643a2077686974653b"];if(o.children.length<=i)o.insertBefore(ct.createElement('