@grapecity-software/spread-sheets-vue 17.0.7 → 17.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* SpreadJS Wrapper Components for Vue 17.0.
|
|
3
|
+
* SpreadJS Wrapper Components for Vue 17.0.9
|
|
4
4
|
*
|
|
5
5
|
* Copyright(c) GrapeCity Software inc. All rights reserved.
|
|
6
6
|
*
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
* https://www.grapecity.com.cn/developer/spreadjs
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
!function a(b,c){"object"==typeof exports&&"object"==typeof module?module.exports=c(require("vue"),require("@grapecity-software/spread-sheets"),require("tiny-emitter")):"function"==typeof define&&define.amd?define(["vue","@grapecity-software/spread-sheets","tiny-emitter"],c):"object"==typeof exports?exports.SpreadSheetsComponents=c(require("vue"),require("@grapecity-software/spread-sheets"),require("tiny-emitter")):b.SpreadSheetsComponents=c(b.vue,b["@grapecity-software/spread-sheets"],b["tiny-emitter"])}(this,function(a,b,c){return function(a){var b={};function c(d){if(b[d])return b[d].exports;var e=b[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,c),e.loaded=!0,e.exports}return c.m=a,c.c=b,c.p="",c(0)}([function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d=c(1);Object.keys(d).forEach(function(a){"default"!==a&&"__esModule"!==a&&Object.defineProperty(b,a,{enumerable:!0,get:function b(){return d[a]}})})},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,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L;Object.defineProperty(b,"__esModule",{value:!0}),b.emitter=b.GcColumn=b.GcWorksheet=b.GcSpreadSheets=void 0,d=c(2),e=N(d),f=c(4),g=N(f),h=c(7),i=c(3),j=M(i);function M(a){var b,c;if(a&&a.__esModule)return a;if(b={},null!=a)for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function N(a){return a&&a.__esModule?a:{default:a}}k="gc-spread-sheets",l="gc-worksheet",m="gc-column",n="gc-vue-sheet",o="gc-vue-column",p=200,q=20,r=j.h,s=j.reactive,t=void 0,u=void 0,v=void 0,g.default.isVue2(e.default)?(w=new e.default,t=w.$on.bind(w),u=w.$emit.bind(w)):(b.emitter=v=new h.TinyEmitter,t=function a(){var b;return(b=v).on.apply(b,arguments)},u=function a(){var b;return(b=v).emit.apply(b,arguments)}),x=["hostStyle","hostClass","name","allowUserZoom","allowUserResize","allowUserDragMerge","allowUndo","allowSheetReorder","allowContextMenu","allowUserDeselect","allowUserEditFormula","autoFitType","allowUserDragFill","allowUserDragDrop","allowCopyPasteExcelStyle","allowExtendPasteRange","tabStripVisible","tabEditable","tabStripRatio","tabNavigationVisible","newTabVisible","highlightInvalidData","referenceStyle","resizeZeroIndicator","backColor","cutCopyIndicatorVisible","cutCopyIndicatorBorderColor","copyPasteHeaderOptions","grayAreaBackColor","backgroundImage","backgroundImageLayout","defaultDragFillType","enableFormulaTextbox","hideSelection","showVerticalScrollbar","showHorizontalScrollbar","showDragFillSmartTag","scrollbarShowMax","scrollbarMaxAlign","showScrollTip","showResizeTip","showDragDropTip","showDragFillTip","scrollIgnoreHidden","useTouchLayout"],y=g.default.createWatchData(x,"setSpreadOptions"),z=["name","frozenColumnCount","frozenRowCount","frozenTrailingColumnCount","frozenTrailingRowCount","allowCellOverflow","frozenlineColor","sheetTabColor","selectionPolicy","selectionUnit","zoom","currentTheme","clipBoardOptions","rowHeaderVisible","columnHeaderVisible","rowHeaderAutoText","columnHeaderAutoText","rowHeaderAutoTextIndex","columnHeaderAutoTextIndex","isProtected","showRowOutline","showColumnOutline","selectionBackColor","selectionBorderColor","defaultStyle","rowOutlineInfo","columnOutlineInfo","autoGenerateColumns"],A=g.default.createWatchData(z,"setSheetOptions"),B=["dataField","headerText","width","visible","resizable","autoFit","columnStyle","headerStyle","cellType","formatter"],C=g.default.createWatchData(B,"setColumnOptions"),D=void 0,g.default.isVue2(e.default)&&(E=(new e.default).$data.__ob__,F=E&&E.constructor,D=function a(b){b.__ob__=new F({})}),G={name:k,render:function a(b){return g.default.isVue2(e.default)?b("div",{class:this.hostClass,style:this.hostStyle,slot:l},[this.$slots.default]):r("div",{class:this.hostClass,style:this.hostStyle,slot:l},this.$slots.default&&this.$slots.default())},props:x,data:function a(){return{spread:null,sheetCount:0,isInit:!1}},computed:{},mounted:function a(){this.AAb()},methods:{AAb:function a(){var b,c=this.$el,d=this.getSheetTagCount(),e=void 0;e=d>0?0:1,b=g.default.createWorkBook(c,e),D?(D(b),this.spread=b):this.spread=s(b),this.workbook=b,this.initSpread(),this.bindSpreadEvent(b)},getSheetTagCount:function a(){return this.$el.getElementsByClassName(n).length},bindSpreadEvent:function a(b){var c=this,d=["ValidationError","CellClick","CellDoubleClick","EnterCell","LeaveCell","ValueChanged","TopRowChanged","LeftColumnChanged","InvalidOperation","RangeFiltering","RangeFiltered","TableFiltering","TableFiltered","RangeSorting","RangeSorted","ClipboardChanging","ClipboardChanged","ClipboardPasting","ClipboardPasted","ColumnWidthChanging","ColumnWidthChanged","RowHeightChanging","RowHeightChanged","DragDropBlock","DragDropBlockCompleted","DragFillBlock","DragFillBlockCompleted","EditStarting","EditChange","EditEnding","EditEnd","EditEnded","RangeGroupStateChanging","RangeGroupStateChanged","SelectionChanging","SelectionChanged","SheetTabClick","SheetTabDoubleClick","SheetNameChanging","SheetNameChanged","UserZooming","UserFormulaEntered","CellChanged","ColumnChanged","RowChanged","ActiveSheetChanging","ActiveSheetChanged","SparklineChanged","RangeChanged","ButtonClicked","EditorStatusChanged","FloatingObjectChanged","FloatingObjectSelectionChanged","PictureChanged","FloatingObjectRemoving","FloatingObjectRemoved","PictureSelectionChanged","FloatingObjectLoaded","TouchToolStripOpening","CommentChanged","CommentRemoving","CommentRemoved","SlicerChanged"];d.forEach(function(a){g.default.bindEvent(b,a,function(){var b=arguments,d=a.charAt(0).toLocaleLowerCase()+a.substr(1);c.$emit(d,b[0],b[1]),e.default||u(d,b[0],b[1])})})},setSpreadOptions:function a(b,c){var d=this.spread;switch(b){case"name":d.name=c;break;case"allowUserZoom":case"allowUserResize":case"tabStripVisible":case"tabEditable":case"tabStripRatio":case"tabNavigationVisible":case"newTabVisible":case"allowUserEditFormula":case"allowUserDragFill":case"allowUserDragDrop":case"allowUserDragMerge":case"allowUndo":case"allowSheetReorder":case"allowContextMenu":case"allowUserDeselect":case"allowCopyPasteExcelStyle":case"allowExtendPasteRange":case"cutCopyIndicatorVisible":case"enableFormulaTextbox":case"highlightInvalidData":case"hideSelection":case"showVerticalScrollbar":case"showHorizontalScrollbar":case"showDragDropTip":case"showDragFillTip":case"showDragFillSmartTag":case"scrollbarShowMax":case"scrollbarMaxAlign":case"scrollIgnoreHidden":case"useTouchLayout":g.default.setSpreadOptions(d,b,!!c);break;case"autoFitType":case"referenceStyle":case"resizeZeroIndicator":case"backColor":case"cutCopyIndicatorBorderColor":case"copyPasteHeaderOptions":case"grayAreaBackColor":case"backgroundImage":case"backgroundImageLayout":case"defaultDragFillType":case"showScrollTip":case"showResizeTip":g.default.setSpreadOptions(d,b,c)}},initSpread:function a(){var b,c=x.length;for(b=0;b<c;b++)void 0!==this[x[b]]&&this.setSpreadOptions(x[b],this[x[b]]);this.$nextTick(function(){this.isInit||(this.$emit("workbookInitialized",this.workbook),e.default||u("workbookInitialized",this.workbook),this.isInit=!0)})}},activated:function a(){g.default.findSpreadByHost(this.$el)||this.AAb()},deactivated:function a(){},destroyed:function a(){g.default.destroyedSpread(this.spread)},watch:g.default.extendObject({},y)},H={name:l,render:function a(b){return g.default.isVue2(e.default)?b("div",{class:n},[this.$slots.default]):r("div",{class:n},this.$slots.default&&this.$slots.default())},props:z.concat(["dataSource","rowCount","colCount"]),data:function a(){return{sheet:null,sheetName:void 0}},computed:{spread:function a(){var b,a,c,d=this.$parent;if((d.$options._componentTag||d.$options.name)===k)return d.spread;for(b=d.$children||d.$slots.default&&d.$slots.default(),a=void 0,c=0;c<b.length;c++)if((b[c].$options._componentTag||b[c].$options.name)===k&&(a=b[c].spread),b[c]===this)return a}},methods:{getColCount:function a(){var b=this.getChildrenCount(),c=this.colCount,d=void 0;return b>0&&void 0!==c?d=this.colCount-b:b>0&&void 0===c?d=b:0===b&&void 0===c?d=q:0===b&&(d=this.colCount),d},initSheet:function a(){var b,c;this.spread&&(b=this.getSheetIndex(),c=g.default.addSheet(this.$parent.workbook,this.name,b),D?(D(c),this.sheet=c):this.sheet=s(c),window.sheet=this.sheet,this.sheetName=g.default.getSheetName(this.sheet),this.initSheetOptions())},getSheetIndex:function a(){var b,c=0,d=this.$parent.$el,e=this.$el,f=d.getElementsByClassName(n);for(b in f){if(f[b]===e)break;c++}return c},initSheetOptions:function a(){var b,c=z.length,d=void 0,e=this.sheet;for(e.suspendPaint(),b=0;b<c;b++)d=z[b],void 0!==this[d]&&this.setSheetOptions(d,this[d]);this.reSizeSheet(),this.$nextTick(function(){this.setSheetOptionsAfterSheetInit()}),e.resumePaint()},setSheetOptionsAfterSheetInit:function a(){this.rowOutlineInfo&&g.default.setRowOutlineInfo(this.sheet,this.rowOutlineInfo),this.columnOutlineInfo&&g.default.setColumnOutlineInfo(this.sheet,this.columnOutlineInfo),this.frozenColumnCount&&g.default.setSheetAttribute(this.sheet,"frozenColumnCount",parseInt(this.frozenColumnCount,10))},setSheetOptions:function a(b,c){var d=this.sheet;switch(b){case"name":g.default.setSheetAttribute(d,b,c),this.sheetName=c;break;case"frozenColumnCount":case"frozenRowCount":case"frozenTrailingColumnCount":case"frozenTrailingRowCount":g.default.setSheetAttribute(d,b,parseInt(c,10));break;case"selectionPolicy":case"selectionUnit":case"zoom":case"currentTheme":case"showRowOutline":case"showColumnOutline":g.default.setSheetAttribute(d,b,c);break;case"autoGenerateColumns":g.default.setSheetAttributeData(d,b,c);break;case"isProtected":case"allowCellOverflow":case"frozenlineColor":case"sheetTabColor":case"clipBoardOptions":case"rowHeaderVisible":case"selectionBackColor":case"selectionBorderColor":case"rowHeaderAutoText":case"rowHeaderAutoTextIndex":g.default.setSheetOptions(d,b,c);break;case"columnHeaderAutoTextIndex":g.default.setSheetOptions(d,"colHeaderAutoTextIndex",c);break;case"columnHeaderVisible":g.default.setSheetOptions(d,"colHeaderVisible",c);break;case"columnHeaderAutoText":g.default.setSheetOptions(d,"colHeaderAutoText",c);break;case"defaultStyle":g.default.setSheetDefaultStyle(d,c);break;case"rowOutlineInfo":g.default.setRowOutlineInfo(d,c);break;case"columnOutlineInfo":g.default.setColumnOutlineInfo(d,c)}},reSizeSheet:function a(){var b=this.sheet,c="",d=this.dataSource,e=this.getChildrenCount(),f=this.colCount;switch(c+=null===d||void 0===d?"0":"1",c+=e>0?"1":"0",c+=f>0?"1":"0",g.default.setDataSource(b,null,!0),c){case"000":case"001":g.default.setColCount(b,this.colCount||q),g.default.setRowCount(b,this.rowCount||p);break;case"010":case"011":g.default.setColCount(b,0),g.default.setRowCount(b,this.rowCount||p);break;case"100":case"101":g.default.setDataSource(b,d,!0);break;case"110":case"111":g.default.setDataSource(b,d,!1),g.default.setColCount(b,0)}},dataSourceChangeHandle:function a(b,c){var d=this.getChildrenCount();c&&!b?(g.default.setDataSource(this.sheet,null,!0),g.default.setRowCount(this.sheet,this.rowCount||p),g.default.setColCount(this.sheet,d||this.colCount||q)):c?g.default.setDataSource(this.sheet,b):b&&(g.default.setDataSource(this.sheet,b),d&&g.default.setColCount(this.sheet,d)),u("gc-sheet:dataSourceChanged",this.sheet.name()),this.frozenColumnCount&&g.default.setSheetAttribute(this.sheet,"frozenColumnCount",parseInt(this.frozenColumnCount,10))},rowCountChangeHandle:function a(){this.dataSource||g.default.setRowCount(this.sheet,this.rowCount||p)},getChildrenCount:function a(){return this.$children?this.$children.length:this.$slots.default&&this.$slots.default().length},updateChildren:function a(){var b,c=this.$children,d=c&&c.length;for(b=0;b<d;b++)c[b].updateTagVisible()},colCountChangeHandle:function a(){var b=this.getChildrenCount();this.dataSource||g.default.setColCount(this.sheet,b||this.colCount||q)}},updated:function a(){this.updateChildren();var b=this.getChildrenCount();b>0&&g.default.getColumnCount(this.sheet)!==b&&g.default.setColCount(this.sheet,b||this.colCount||q)},mounted:function a(){var b=this;this.initSheet(),t("gc-column:mounted",function(a,c){a===b.sheet&&0===c&&g.default.setColCount(b.sheet,1)}),t("gc-column:destroyed",function(a,c){if(a===b.sheet){var d=b.$children.length;0===d&&(b.dataSource?(g.default.setDataSource(b.sheet,null,!0),g.default.setDataSource(b.sheet,b.dataSource,!0)):g.default.setColCount(b.sheet,b.colCount||q))}})},destroyed:function a(){var b=this.spread.getSheetIndex(this.sheet.name());null!==b&&this.spread.removeSheet(b)},watch:g.default.extendObject({dataSource:function a(b,c){this.dataSourceChangeHandle(b,c)},colCount:function a(b,c){this.colCountChangeHandle(b,c)},rowCount:function a(){this.rowCountChangeHandle()},spread:function a(){this.initSheet()}},A)},I={name:m,render:function a(b){return g.default.isVue2(e.default)?b("div",{class:o}):r("div",{class:o})},props:B,data:function a(){return{columnIndex:void 0,tagVisible:!0}},computed:{sheet:function a(){var b,a,c,d=this.$parent;if((d.$options._componentTag||d.$options.name)===l)return d.sheet;for(b=d.$children||d.$slots.default&&d.$slots.default(),a=void 0,c=0;c<b.length;c++)if(b[c].$options&&(b[c].$options._componentTag||b[c].$options.name)===l&&(a=b[c].sheet),b[c]===this)return a}},methods:{updateTagVisible:function a(){this.tagVisible="none"!==this.$el.style.display},getColumnIndex:function a(){var b,c,d=0,e=this.$parent.$el,f=this.$el,g=e.getElementsByClassName(o);for(b=0;b<g.length;b++)c=g[b],c===f&&(d=b);return d},setColumnOptions:function a(b,c){var d=this.sheet,e=this.getColumnIndex();switch(g.default.suspendPaint(d),g.default.suspendEvent(d),this.updateTagVisible(),b){case"dataField":g.default.bindColumn(d,e,{name:c,displayName:this.headerText}),void 0!==this.width&&g.default.setColumnWidth(d,e,this.width),void 0!==this.visible&&g.default.setColumnVisible(d,e,this.visible),void 0!==this.resizable&&g.default.setColumnResizable(d,e,this.resizable);break;case"headerText":c&&g.default.bindColumn(d,e,{name:this.dataField,displayName:c}),void 0!==this.width&&g.default.setColumnWidth(d,e,this.width),void 0!==this.visible&&g.default.setColumnVisible(d,e,this.visible),void 0!==this.resizable&&g.default.setColumnResizable(d,e,this.resizable);break;case"width":g.default.setColumnWidth(d,e,c);break;case"visible":g.default.setColumnVisible(d,e,c&&this.tagVisible);break;case"resizable":g.default.setColumnResizable(d,e,c);break;case"autoFit":c&&g.default.setAutoFitColumn(d,e);break;case"columnStyle":g.default.setColumnStyle(d,e,c);break;case"headerStyle":g.default.setHeaderStyle(d,e,c);break;case"cellType":g.default.setCellType(d,e,c);break;case"formatter":g.default.setFormatter(d,e,c)}g.default.resumeEvent(d),g.default.resumePaint(d)},initColumn:function a(){var b,c,d,e=this.getColumnIndex();for(this.columnIndex=e,this.sheet.suspendPaint(),this.sheet.suspendEvent(),g.default.addColumn(this.sheet,e),this.updateTagVisible(),b=B.length,d=0;d<b;d++)c=B[d],void 0!==this[c]&&this.setColumnOptions(c,this[c]);this.sheet.resumeEvent(),this.sheet.resumePaint()}},created:function a(){var b=this;t("gc-sheet:dataSourceChanged",function(a){if(b.sheet&&(!b.sheet||b.sheet.name()===a)){var c=b.sheet,d=b.getColumnIndex();(b.headerText||b.dataField)&&g.default.bindColumn(b.sheet,b.getColumnIndex(),{name:b.dataField,displayName:b.headerText}),void 0!==b.width&&g.default.setColumnWidth(c,d,b.width),void 0!==b.visible&&g.default.setColumnVisible(c,d,b.visible),void 0!==b.resizable&&g.default.setColumnResizable(c,d,b.resizable)}}),t("gc-column:mounted",function(a){!b.sheet||b.sheet&&b.sheet!==a||(b.updateTagVisible(),b.columnIndex=b.getColumnIndex())})},beforeMount:function a(){var b,c=this.$parent.$el;c&&(b=c.getElementsByClassName(o),this.beforeMountColumnTagCount=b.length)},mounted:function a(){this.sheet&&(this.initColumn(),u("gc-column:mounted",this.sheet,this.beforeMountColumnTagCount))},destroyed:function a(){var b=this.columnIndex;this.sheet.getParent()&&(g.default.deleteColumn(this.sheet,b),u("gc-column:destroyed",this.sheet,b))},watch:g.default.extendObject({sheet:function a(){this.sheet&&this.initColumn()},tagVisible:function a(){if(this.sheet){var b=this.visible;void 0===b&&(b=!0),this.setColumnOptions("visible",b)}}},C)},J=void 0,K=void 0,L=void 0,g.default.isVue2(e.default)?(e.default.component(k,G),e.default.component(l,H),e.default.component(m,I),b.GcSpreadSheets=J=e.default.options.components["gc-spread-sheets"],b.GcWorksheet=K=e.default.options.components["gc-worksheet"],b.GcColumn=L=e.default.options.components["gc-column"]):(b.GcSpreadSheets=J=G,b.GcWorksheet=K=H,b.GcColumn=L=I),b.GcSpreadSheets=J,b.GcWorksheet=K,b.GcColumn=L,b.emitter=v},function(a,b,c){"use strict";var d,e;Object.defineProperty(b,"__esModule",{value:!0}),d=c(3),e=f(d);function f(a){return a&&a.__esModule?a:{default:a}}b.default=e.default},function(b,c){b.exports=a},function(a,b,c){"use strict";var d,e;Object.defineProperty(b,"__esModule",{value:!0}),d=c(5),e=f(d);function f(a){return a&&a.__esModule?a:{default:a}}b.default={findSpreadByHost:function a(b){return!!e.default.Spread.Sheets.findControl(b)},extendObject:function a(b,c){for(var d in c)c.hasOwnProperty(d)&&(b[d]=c[d]);return b},createWatchData:function a(b,c){var d,e={},f=b.length;for(d=0;d<f;d++)e[b[d]]=function(a){return function(b){this[c](a,b)}}(b[d]);return e},setSpreadOptions:function a(b,c,d){b.suspendPaint(),b.options[c]=d,b.resumePaint()},createWorkBook:function a(b,c){return new e.default.Spread.Sheets.Workbook(b,{sheetCount:c})},destroyedSpread:function a(b){b&&b.destroy()},bindEvent:function a(b,c,d){var f=e.default.Spread.Sheets.Events;b.bind(f[c],d)},setSheetAttribute:function a(b,c,d){return b[c](d)},setSheetAttributeData:function a(b,c,d){return b[c]=d},setSheetOptions:function a(b,c,d){b.suspendPaint(),b.options[c]=d,b.resumePaint()},setRowCount:function a(b,c){b.suspendPaint(),b.setRowCount(c),b.resumePaint()},setFrozenColumnCount:function a(b,c){b.frozenColumnCount(c)},suspendPaint:function a(b){b.suspendPaint()},resumePaint:function a(b){b.resumePaint()},suspendEvent:function a(b){b.suspendEvent()},resumeEvent:function a(b){b.resumeEvent()},createSheet:function a(b){return new e.default.Spread.Sheets.Worksheet(b)},addSheet:function a(b,c,d){var e=this.createSheet(c);return void 0===d&&(d=b.getSheetCount()),b.addSheet(d,e),e},getSheetName:function a(b){return b.name()},setSheetDefaultStyle:function a(b,c){b.suspendPaint(),b.setDefaultStyle(c),b.resumePaint()},setRowOutlineInfo:function a(b,c){b.suspendPaint(),c.forEach(function(a){b.rowOutlines.group(a.index,a.count)}),b.resumePaint()},setColumnOutlineInfo:function a(b,c){b.suspendPaint(),c.forEach(function(a){b.columnOutlines.group(a.index,a.count)}),b.resumePaint()},setDataSource:function a(b,c,d){b.suspendPaint(),b.setDataSource(c,d),b.resumePaint()},setColCount:function a(b,c){b.suspendPaint(),b.setColumnCount(c),b.resumePaint()},getColumnCount:function a(b){return b.getColumnCount()},addColumn:function a(b,c){b.suspendPaint(),b.addColumns(c,1),b.resumePaint()},deleteColumn:function a(b,c){b.suspendPaint(),b.deleteColumns(c,1),b.resumePaint()},bindColumn:function a(b,c,d){b.suspendPaint(),b.bindColumn(c,d),b.resumePaint()},setColumnWidth:function a(b,c,d){b.suspendPaint(),d=parseInt(d,10),b.setColumnWidth(c,d),b.resumePaint()},setColumnVisible:function a(b,c,d){b.suspendPaint(),b.setColumnVisible(c,d),b.resumePaint()},setColumnResizable:function a(b,c,d){b.suspendPaint(),b.setColumnResizable(c,d),b.resumePaint()},setAutoFitColumn:function a(b,c){b.autoFitColumn(c)},setColumnStyle:function a(b,c,d){b.suspendPaint(),b.setStyle(-1,c,d),b.resumePaint()},setHeaderStyle:function a(b,c,d){b.suspendPaint(),b.setStyle(-1,c,d,e.default.Spread.Sheets.SheetArea.colHeader),b.resumePaint()},setCellType:function a(b,c,d){b.suspendPaint(),b.setCellType(-1,c,d),b.resumePaint()},setFormatter:function a(b,c,d){b.suspendPaint(),b.setFormatter(-1,c,d,e.default.Spread.Sheets.SheetArea.viewport),b.resumePaint()},isVue2:function a(b){return!!(b&&b.version&&b.version.startsWith&&b.version.startsWith("2."))}}},function(a,b,c){"use strict";var d,e;Object.defineProperty(b,"__esModule",{value:!0}),d=c(6),e=f(d);function f(a){return a&&a.__esModule?a:{default:a}}b.default=e.default},function(a,c){a.exports=b},function(a,b){a.exports=c}])});
|
|
12
|
+
!function a(b,c){"object"==typeof exports&&"object"==typeof module?module.exports=c(require("vue"),require("@grapecity-software/spread-sheets"),require("tiny-emitter")):"function"==typeof define&&define.amd?define(["vue","@grapecity-software/spread-sheets","tiny-emitter"],c):"object"==typeof exports?exports.SpreadSheetsComponents=c(require("vue"),require("@grapecity-software/spread-sheets"),require("tiny-emitter")):b.SpreadSheetsComponents=c(b.vue,b["@grapecity-software/spread-sheets"],b["tiny-emitter"])}(this,function(a,b,c){return function(a){var b={};function c(d){if(b[d])return b[d].exports;var e=b[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,c),e.loaded=!0,e.exports}return c.m=a,c.c=b,c.p="",c(0)}([function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d=c(1);Object.keys(d).forEach(function(a){"default"!==a&&"__esModule"!==a&&Object.defineProperty(b,a,{enumerable:!0,get:function b(){return d[a]}})})},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,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L;Object.defineProperty(b,"__esModule",{value:!0}),b.emitter=b.GcColumn=b.GcWorksheet=b.GcSpreadSheets=void 0,d=c(2),e=N(d),f=c(4),g=N(f),h=c(7),i=c(3),j=M(i);function M(a){var b,c;if(a&&a.__esModule)return a;if(b={},null!=a)for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function N(a){return a&&a.__esModule?a:{default:a}}k="gc-spread-sheets",l="gc-worksheet",m="gc-column",n="gc-vue-sheet",o="gc-vue-column",p=200,q=20,r=j.h,s=j.reactive,t=void 0,u=void 0,v=void 0,g.default.isVue2(e.default)?(w=new e.default,t=w.$on.bind(w),u=w.$emit.bind(w)):(b.emitter=v=new h.TinyEmitter,t=function a(){var b;return(b=v).on.apply(b,arguments)},u=function a(){var b;return(b=v).emit.apply(b,arguments)}),x=["hostStyle","hostClass","name","allowUserZoom","allowUserResize","allowUserDragMerge","allowUndo","allowSheetReorder","allowContextMenu","allowUserDeselect","allowUserEditFormula","autoFitType","allowUserDragFill","allowUserDragDrop","allowCopyPasteExcelStyle","allowExtendPasteRange","tabStripVisible","tabEditable","tabStripRatio","tabNavigationVisible","newTabVisible","highlightInvalidData","referenceStyle","resizeZeroIndicator","backColor","cutCopyIndicatorVisible","cutCopyIndicatorBorderColor","copyPasteHeaderOptions","grayAreaBackColor","backgroundImage","backgroundImageLayout","defaultDragFillType","enableFormulaTextbox","hideSelection","showVerticalScrollbar","showHorizontalScrollbar","showDragFillSmartTag","scrollbarShowMax","scrollbarMaxAlign","showScrollTip","showResizeTip","showDragDropTip","showDragFillTip","scrollIgnoreHidden","useTouchLayout"],y=g.default.createWatchData(x,"setSpreadOptions"),z=["name","frozenColumnCount","frozenRowCount","frozenTrailingColumnCount","frozenTrailingRowCount","allowCellOverflow","frozenlineColor","sheetTabColor","selectionPolicy","selectionUnit","zoom","currentTheme","clipBoardOptions","rowHeaderVisible","columnHeaderVisible","rowHeaderAutoText","columnHeaderAutoText","rowHeaderAutoTextIndex","columnHeaderAutoTextIndex","isProtected","showRowOutline","showColumnOutline","selectionBackColor","selectionBorderColor","defaultStyle","rowOutlineInfo","columnOutlineInfo","autoGenerateColumns"],A=g.default.createWatchData(z,"setSheetOptions"),B=["dataField","headerText","width","visible","resizable","autoFit","columnStyle","headerStyle","cellType","formatter"],C=g.default.createWatchData(B,"setColumnOptions"),D=void 0,g.default.isVue2(e.default)&&(E=(new e.default).$data.__ob__,F=E&&E.constructor,D=function a(b){b.__ob__=new F({})});function O(a){return a.type===I}G={name:k,render:function a(b){return g.default.isVue2(e.default)?b("div",{class:this.hostClass,style:this.hostStyle,slot:l},[this.$slots.default]):r("div",{class:this.hostClass,style:this.hostStyle,slot:l},this.$slots.default&&this.$slots.default())},props:x,data:function a(){return{spread:null,sheetCount:0,isInit:!1}},computed:{},mounted:function a(){this.AAb()},methods:{AAb:function a(){var b,c=this.$el,d=this.getSheetTagCount(),e=void 0;e=d>0?0:1,b=g.default.createWorkBook(c,e),D?(D(b),this.spread=b):this.spread=s(b),this.workbook=b,this.initSpread(),this.bindSpreadEvent(b)},getSheetTagCount:function a(){return this.$el.getElementsByClassName(n).length},bindSpreadEvent:function a(b){var c=this,d=["ValidationError","CellClick","CellDoubleClick","EnterCell","LeaveCell","ValueChanged","TopRowChanged","LeftColumnChanged","InvalidOperation","RangeFiltering","RangeFiltered","TableFiltering","TableFiltered","RangeSorting","RangeSorted","ClipboardChanging","ClipboardChanged","ClipboardPasting","ClipboardPasted","ColumnWidthChanging","ColumnWidthChanged","RowHeightChanging","RowHeightChanged","DragDropBlock","DragDropBlockCompleted","DragFillBlock","DragFillBlockCompleted","EditStarting","EditChange","EditEnding","EditEnd","EditEnded","RangeGroupStateChanging","RangeGroupStateChanged","SelectionChanging","SelectionChanged","SheetTabClick","SheetTabDoubleClick","SheetNameChanging","SheetNameChanged","UserZooming","UserFormulaEntered","CellChanged","ColumnChanged","RowChanged","ActiveSheetChanging","ActiveSheetChanged","SparklineChanged","RangeChanged","ButtonClicked","EditorStatusChanged","FloatingObjectChanged","FloatingObjectSelectionChanged","PictureChanged","FloatingObjectRemoving","FloatingObjectRemoved","PictureSelectionChanged","FloatingObjectLoaded","TouchToolStripOpening","CommentChanged","CommentRemoving","CommentRemoved","SlicerChanged"];d.forEach(function(a){g.default.bindEvent(b,a,function(){var b=arguments,d=a.charAt(0).toLocaleLowerCase()+a.substr(1);c.$emit(d,b[0],b[1]),e.default||u(d,b[0],b[1])})})},setSpreadOptions:function a(b,c){var d=this.spread;switch(b){case"name":d.name=c;break;case"allowUserZoom":case"allowUserResize":case"tabStripVisible":case"tabEditable":case"tabStripRatio":case"tabNavigationVisible":case"newTabVisible":case"allowUserEditFormula":case"allowUserDragFill":case"allowUserDragDrop":case"allowUserDragMerge":case"allowUndo":case"allowSheetReorder":case"allowContextMenu":case"allowUserDeselect":case"allowCopyPasteExcelStyle":case"allowExtendPasteRange":case"cutCopyIndicatorVisible":case"enableFormulaTextbox":case"highlightInvalidData":case"hideSelection":case"showVerticalScrollbar":case"showHorizontalScrollbar":case"showDragDropTip":case"showDragFillTip":case"showDragFillSmartTag":case"scrollbarShowMax":case"scrollbarMaxAlign":case"scrollIgnoreHidden":case"useTouchLayout":g.default.setSpreadOptions(d,b,!!c);break;case"autoFitType":case"referenceStyle":case"resizeZeroIndicator":case"backColor":case"cutCopyIndicatorBorderColor":case"copyPasteHeaderOptions":case"grayAreaBackColor":case"backgroundImage":case"backgroundImageLayout":case"defaultDragFillType":case"showScrollTip":case"showResizeTip":g.default.setSpreadOptions(d,b,c)}},initSpread:function a(){var b,c=x.length;for(b=0;b<c;b++)void 0!==this[x[b]]&&this.setSpreadOptions(x[b],this[x[b]]);this.$nextTick(function(){this.isInit||(this.$emit("workbookInitialized",this.workbook),e.default||u("workbookInitialized",this.workbook),this.isInit=!0)})}},activated:function a(){g.default.findSpreadByHost(this.$el)||this.AAb()},deactivated:function a(){},destroyed:function a(){g.default.destroyedSpread(this.spread)},watch:g.default.extendObject({},y)},H={name:l,render:function a(b){return g.default.isVue2(e.default)?b("div",{class:n},[this.$slots.default]):r("div",{class:n},this.$slots.default&&this.$slots.default())},props:z.concat(["dataSource","rowCount","colCount"]),data:function a(){return{sheet:null,sheetName:void 0}},computed:{spread:function a(){var b,a,c,d=this.$parent;if((d.$options._componentTag||d.$options.name)===k)return d.spread;for(b=d.$children||d.$slots.default&&d.$slots.default(),a=void 0,c=0;c<b.length;c++)if((b[c].$options._componentTag||b[c].$options.name)===k&&(a=b[c].spread),b[c]===this)return a}},methods:{getColCount:function a(){var b=this.getChildrenCount(),c=this.colCount,d=void 0;return b>0&&void 0!==c?d=this.colCount-b:b>0&&void 0===c?d=b:0===b&&void 0===c?d=q:0===b&&(d=this.colCount),d},initSheet:function a(){var b,c;this.spread&&(b=this.getSheetIndex(),c=g.default.addSheet(this.$parent.workbook,this.name,b),D?(D(c),this.sheet=c):this.sheet=s(c),window.sheet=this.sheet,this.sheetName=g.default.getSheetName(this.sheet),this.initSheetOptions())},getSheetIndex:function a(){var b,c=0,d=this.$parent.$el,e=this.$el,f=d.getElementsByClassName(n);for(b in f){if(f[b]===e)break;c++}return c},initSheetOptions:function a(){var b,c=z.length,d=void 0,e=this.sheet;for(e.suspendPaint(),b=0;b<c;b++)d=z[b],void 0!==this[d]&&this.setSheetOptions(d,this[d]);this.reSizeSheet(),this.$nextTick(function(){this.setSheetOptionsAfterSheetInit()}),e.resumePaint()},setSheetOptionsAfterSheetInit:function a(){this.rowOutlineInfo&&g.default.setRowOutlineInfo(this.sheet,this.rowOutlineInfo),this.columnOutlineInfo&&g.default.setColumnOutlineInfo(this.sheet,this.columnOutlineInfo),this.frozenColumnCount&&g.default.setSheetAttribute(this.sheet,"frozenColumnCount",parseInt(this.frozenColumnCount,10))},setSheetOptions:function a(b,c){var d=this.sheet;switch(b){case"name":g.default.setSheetAttribute(d,b,c),this.sheetName=c;break;case"frozenColumnCount":case"frozenRowCount":case"frozenTrailingColumnCount":case"frozenTrailingRowCount":g.default.setSheetAttribute(d,b,parseInt(c,10));break;case"selectionPolicy":case"selectionUnit":case"zoom":case"currentTheme":case"showRowOutline":case"showColumnOutline":g.default.setSheetAttribute(d,b,c);break;case"autoGenerateColumns":g.default.setSheetAttributeData(d,b,c);break;case"isProtected":case"allowCellOverflow":case"frozenlineColor":case"sheetTabColor":case"clipBoardOptions":case"rowHeaderVisible":case"selectionBackColor":case"selectionBorderColor":case"rowHeaderAutoText":case"rowHeaderAutoTextIndex":g.default.setSheetOptions(d,b,c);break;case"columnHeaderAutoTextIndex":g.default.setSheetOptions(d,"colHeaderAutoTextIndex",c);break;case"columnHeaderVisible":g.default.setSheetOptions(d,"colHeaderVisible",c);break;case"columnHeaderAutoText":g.default.setSheetOptions(d,"colHeaderAutoText",c);break;case"defaultStyle":g.default.setSheetDefaultStyle(d,c);break;case"rowOutlineInfo":g.default.setRowOutlineInfo(d,c);break;case"columnOutlineInfo":g.default.setColumnOutlineInfo(d,c)}},reSizeSheet:function a(){var b=this.sheet,c="",d=this.dataSource,e=this.getChildrenCount(),f=this.colCount;switch(c+=null===d||void 0===d?"0":"1",c+=e>0?"1":"0",c+=f>0?"1":"0",g.default.setDataSource(b,null,!0),c){case"000":case"001":g.default.setColCount(b,this.colCount||q),g.default.setRowCount(b,this.rowCount||p);break;case"010":case"011":g.default.setColCount(b,0),g.default.setRowCount(b,this.rowCount||p);break;case"100":case"101":g.default.setDataSource(b,d,!0);break;case"110":case"111":g.default.setDataSource(b,d,!1),g.default.setColCount(b,0)}},dataSourceChangeHandle:function a(b,c){var d=this.getChildrenCount();c&&!b?(g.default.setDataSource(this.sheet,null,!0),g.default.setRowCount(this.sheet,this.rowCount||p),g.default.setColCount(this.sheet,d||this.colCount||q)):c?g.default.setDataSource(this.sheet,b):b&&(g.default.setDataSource(this.sheet,b),d&&g.default.setColCount(this.sheet,d)),u("gc-sheet:dataSourceChanged",this.sheet.name()),this.frozenColumnCount&&g.default.setSheetAttribute(this.sheet,"frozenColumnCount",parseInt(this.frozenColumnCount,10))},rowCountChangeHandle:function a(){this.dataSource||g.default.setRowCount(this.sheet,this.rowCount||p)},getSlotsCount:function a(){var b,c,d,e,f,g,h,i,j,k,l,m,n=0,o=this.$slots.default&&this.$slots.default();if(o&&o.length>0){b=!0,c=!1,d=void 0;try{for(e=o[Symbol.iterator]();!(b=(f=e.next()).done);b=!0)if(g=f.value,g.children&&g.children.length>0){h=!0,i=!1,j=void 0;try{for(k=g.children[Symbol.iterator]();!(h=(l=k.next()).done);h=!0)m=l.value,O(m)&&n++}catch(a){i=!0,j=a}finally{try{!h&&k.return&&k.return()}finally{if(i)throw j}}}else O(g)&&n++}catch(a){c=!0,d=a}finally{try{!b&&e.return&&e.return()}finally{if(c)throw d}}}return n},getChildrenCount:function a(){return this.$children?this.$children.length:this.getSlotsCount()},updateChildren:function a(){var b,c=this.$children,d=c&&c.length;for(b=0;b<d;b++)c[b].updateTagVisible()},colCountChangeHandle:function a(){var b=this.getChildrenCount();this.dataSource||g.default.setColCount(this.sheet,b||this.colCount||q)}},updated:function a(){this.updateChildren();var b=this.getChildrenCount();b>0&&g.default.getColumnCount(this.sheet)!==b&&g.default.setColCount(this.sheet,b||this.colCount||q)},mounted:function a(){var b=this;this.initSheet(),t("gc-column:mounted",function(a,c){a===b.sheet&&0===c&&g.default.setColCount(b.sheet,1)}),t("gc-column:destroyed",function(a,c){if(a===b.sheet){var d=b.$children.length;0===d&&(b.dataSource?(g.default.setDataSource(b.sheet,null,!0),g.default.setDataSource(b.sheet,b.dataSource,!0)):g.default.setColCount(b.sheet,b.colCount||q))}})},destroyed:function a(){var b=this.spread.getSheetIndex(this.sheet.name());null!==b&&this.spread.removeSheet(b)},watch:g.default.extendObject({dataSource:function a(b,c){this.dataSourceChangeHandle(b,c)},colCount:function a(b,c){this.colCountChangeHandle(b,c)},rowCount:function a(){this.rowCountChangeHandle()},spread:function a(){this.initSheet()}},A)},I={name:m,render:function a(b){return g.default.isVue2(e.default)?b("div",{class:o}):r("div",{class:o})},props:B,data:function a(){return{columnIndex:void 0,tagVisible:!0}},computed:{sheet:function a(){var b,a,c,d=this.$parent;if((d.$options._componentTag||d.$options.name)===l)return d.sheet;for(b=d.$children||d.$slots.default&&d.$slots.default(),a=void 0,c=0;c<b.length;c++)if(b[c].$options&&(b[c].$options._componentTag||b[c].$options.name)===l&&(a=b[c].sheet),b[c]===this)return a}},methods:{updateTagVisible:function a(){this.tagVisible="none"!==this.$el.style.display},getColumnIndex:function a(){var b,c,d=0,e=this.$parent.$el,f=this.$el,g=e.getElementsByClassName(o);for(b=0;b<g.length;b++)c=g[b],c===f&&(d=b);return d},setColumnOptions:function a(b,c){var d=this.sheet,e=this.getColumnIndex();switch(g.default.suspendPaint(d),g.default.suspendEvent(d),this.updateTagVisible(),b){case"dataField":g.default.bindColumn(d,e,{name:c,displayName:this.headerText}),void 0!==this.width&&g.default.setColumnWidth(d,e,this.width),void 0!==this.visible&&g.default.setColumnVisible(d,e,this.visible),void 0!==this.resizable&&g.default.setColumnResizable(d,e,this.resizable);break;case"headerText":c&&g.default.bindColumn(d,e,{name:this.dataField,displayName:c}),void 0!==this.width&&g.default.setColumnWidth(d,e,this.width),void 0!==this.visible&&g.default.setColumnVisible(d,e,this.visible),void 0!==this.resizable&&g.default.setColumnResizable(d,e,this.resizable);break;case"width":g.default.setColumnWidth(d,e,c);break;case"visible":g.default.setColumnVisible(d,e,c&&this.tagVisible);break;case"resizable":g.default.setColumnResizable(d,e,c);break;case"autoFit":c&&g.default.setAutoFitColumn(d,e);break;case"columnStyle":g.default.setColumnStyle(d,e,c);break;case"headerStyle":g.default.setHeaderStyle(d,e,c);break;case"cellType":g.default.setCellType(d,e,c);break;case"formatter":g.default.setFormatter(d,e,c)}g.default.resumeEvent(d),g.default.resumePaint(d)},initColumn:function a(){var b,c,d,e=this.getColumnIndex();for(this.columnIndex=e,this.sheet.suspendPaint(),this.sheet.suspendEvent(),g.default.addColumn(this.sheet,e),this.updateTagVisible(),b=B.length,d=0;d<b;d++)c=B[d],void 0!==this[c]&&this.setColumnOptions(c,this[c]);this.sheet.resumeEvent(),this.sheet.resumePaint()}},created:function a(){var b=this;t("gc-sheet:dataSourceChanged",function(a){if(b.sheet&&(!b.sheet||b.sheet.name()===a)){var c=b.sheet,d=b.getColumnIndex();(b.headerText||b.dataField)&&g.default.bindColumn(b.sheet,b.getColumnIndex(),{name:b.dataField,displayName:b.headerText}),void 0!==b.width&&g.default.setColumnWidth(c,d,b.width),void 0!==b.visible&&g.default.setColumnVisible(c,d,b.visible),void 0!==b.resizable&&g.default.setColumnResizable(c,d,b.resizable)}}),t("gc-column:mounted",function(a){!b.sheet||b.sheet&&b.sheet!==a||(b.updateTagVisible(),b.columnIndex=b.getColumnIndex())})},beforeMount:function a(){var b,c=this.$parent.$el;c&&(b=c.getElementsByClassName(o),this.beforeMountColumnTagCount=b.length)},mounted:function a(){this.sheet&&(this.initColumn(),u("gc-column:mounted",this.sheet,this.beforeMountColumnTagCount))},destroyed:function a(){var b=this.columnIndex;this.sheet.getParent()&&(g.default.deleteColumn(this.sheet,b),u("gc-column:destroyed",this.sheet,b))},watch:g.default.extendObject({sheet:function a(){this.sheet&&this.initColumn()},tagVisible:function a(){if(this.sheet){var b=this.visible;void 0===b&&(b=!0),this.setColumnOptions("visible",b)}}},C)},J=void 0,K=void 0,L=void 0,g.default.isVue2(e.default)?(e.default.component(k,G),e.default.component(l,H),e.default.component(m,I),b.GcSpreadSheets=J=e.default.options.components["gc-spread-sheets"],b.GcWorksheet=K=e.default.options.components["gc-worksheet"],b.GcColumn=L=e.default.options.components["gc-column"]):(b.GcSpreadSheets=J=G,b.GcWorksheet=K=H,b.GcColumn=L=I),b.GcSpreadSheets=J,b.GcWorksheet=K,b.GcColumn=L,b.emitter=v},function(a,b,c){"use strict";var d,e;Object.defineProperty(b,"__esModule",{value:!0}),d=c(3),e=f(d);function f(a){return a&&a.__esModule?a:{default:a}}b.default=e.default},function(b,c){b.exports=a},function(a,b,c){"use strict";var d,e;Object.defineProperty(b,"__esModule",{value:!0}),d=c(5),e=f(d);function f(a){return a&&a.__esModule?a:{default:a}}b.default={findSpreadByHost:function a(b){return!!e.default.Spread.Sheets.findControl(b)},extendObject:function a(b,c){for(var d in c)c.hasOwnProperty(d)&&(b[d]=c[d]);return b},createWatchData:function a(b,c){var d,e={},f=b.length;for(d=0;d<f;d++)e[b[d]]=function(a){return function(b){this[c](a,b)}}(b[d]);return e},setSpreadOptions:function a(b,c,d){b.suspendPaint(),b.options[c]=d,b.resumePaint()},createWorkBook:function a(b,c){return new e.default.Spread.Sheets.Workbook(b,{sheetCount:c})},destroyedSpread:function a(b){b&&b.destroy()},bindEvent:function a(b,c,d){var f=e.default.Spread.Sheets.Events;b.bind(f[c],d)},setSheetAttribute:function a(b,c,d){return b[c](d)},setSheetAttributeData:function a(b,c,d){return b[c]=d},setSheetOptions:function a(b,c,d){b.suspendPaint(),b.options[c]=d,b.resumePaint()},setRowCount:function a(b,c){b.suspendPaint(),b.setRowCount(c),b.resumePaint()},setFrozenColumnCount:function a(b,c){b.frozenColumnCount(c)},suspendPaint:function a(b){b.suspendPaint()},resumePaint:function a(b){b.resumePaint()},suspendEvent:function a(b){b.suspendEvent()},resumeEvent:function a(b){b.resumeEvent()},createSheet:function a(b){return new e.default.Spread.Sheets.Worksheet(b)},addSheet:function a(b,c,d){var e=this.createSheet(c);return void 0===d&&(d=b.getSheetCount()),b.addSheet(d,e),e},getSheetName:function a(b){return b.name()},setSheetDefaultStyle:function a(b,c){b.suspendPaint(),b.setDefaultStyle(c),b.resumePaint()},setRowOutlineInfo:function a(b,c){b.suspendPaint(),c.forEach(function(a){b.rowOutlines.group(a.index,a.count)}),b.resumePaint()},setColumnOutlineInfo:function a(b,c){b.suspendPaint(),c.forEach(function(a){b.columnOutlines.group(a.index,a.count)}),b.resumePaint()},setDataSource:function a(b,c,d){b.suspendPaint(),b.setDataSource(c,d),b.resumePaint()},setColCount:function a(b,c){b.suspendPaint(),b.setColumnCount(c),b.resumePaint()},getColumnCount:function a(b){return b.getColumnCount()},addColumn:function a(b,c){b.suspendPaint(),b.addColumns(c,1),b.resumePaint()},deleteColumn:function a(b,c){b.suspendPaint(),b.deleteColumns(c,1),b.resumePaint()},bindColumn:function a(b,c,d){b.suspendPaint(),b.bindColumn(c,d),b.resumePaint()},setColumnWidth:function a(b,c,d){b.suspendPaint(),d=parseInt(d,10),b.setColumnWidth(c,d),b.resumePaint()},setColumnVisible:function a(b,c,d){b.suspendPaint(),b.setColumnVisible(c,d),b.resumePaint()},setColumnResizable:function a(b,c,d){b.suspendPaint(),b.setColumnResizable(c,d),b.resumePaint()},setAutoFitColumn:function a(b,c){b.autoFitColumn(c)},setColumnStyle:function a(b,c,d){b.suspendPaint(),b.setStyle(-1,c,d),b.resumePaint()},setHeaderStyle:function a(b,c,d){b.suspendPaint(),b.setStyle(-1,c,d,e.default.Spread.Sheets.SheetArea.colHeader),b.resumePaint()},setCellType:function a(b,c,d){b.suspendPaint(),b.setCellType(-1,c,d),b.resumePaint()},setFormatter:function a(b,c,d){b.suspendPaint(),b.setFormatter(-1,c,d,e.default.Spread.Sheets.SheetArea.viewport),b.resumePaint()},isVue2:function a(b){return!!(b&&b.version&&b.version.startsWith&&b.version.startsWith("2."))}}},function(a,b,c){"use strict";var d,e;Object.defineProperty(b,"__esModule",{value:!0}),d=c(6),e=f(d);function f(a){return a&&a.__esModule?a:{default:a}}b.default=e.default},function(a,c){a.exports=b},function(a,b){a.exports=c}])});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grapecity-software/spread-sheets-vue",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.9",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description":"SpreadJS vue support",
|
|
6
6
|
"scripts": {},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"javascript"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@grapecity-software/spread-sheets": "17.0.
|
|
15
|
+
"@grapecity-software/spread-sheets": "17.0.9",
|
|
16
16
|
"tiny-emitter": "^2.1.0"
|
|
17
17
|
},
|
|
18
18
|
"author": {
|