Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-spreadsheet-vue-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-spreadsheet-vue-wrapper - npm Package Compare versions

Comparing version 2019.3.1023 to 2020.1.114-dev.115

3

dist/cdn/kendo-spreadsheet-vue-wrapper.js

@@ -418,3 +418,4 @@ (function webpackUniversalModuleDefinition(root, factory) {

object = templateDefinition.apply(this, arguments);
var vueObject = new _vue2.default(object.template);
var newVue = _vue2.default.extend(object);
var vueObject = new newVue(object.template);
vueObject.$data.templateArgs = object.templateArgs;

@@ -421,0 +422,0 @@

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports.KendoSpreadsheetVueWrapper=t(require("vue")):e.KendoSpreadsheetVueWrapper=t(e.Vue)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var o={};return t.m=e,t.c=o,t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=3)}([function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(11),a=n(r),i=o(2),s=n(i);t.default={name:"kendo-spreadsheet-sheet",render:function(){return s.default.prototype._e},mixins:[a.default]}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(4),r=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"kendo-spreadsheet",mixins:[r.default]}},function(t,o){t.exports=e},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SpreadsheetInstaller=t.KendoSpreadsheetInstaller=t.SpreadsheetSheet=t.KendoSpreadsheetSheet=t.Spreadsheet=t.KendoSpreadsheet=void 0;var r=o(1),a=n(r),i=o(0),s=n(i),d=o(16),u=n(d);t.KendoSpreadsheet=a.default,t.Spreadsheet=a.default,t.KendoSpreadsheetSheet=s.default,t.SpreadsheetSheet=s.default,t.KendoSpreadsheetInstaller=u.default,t.SpreadsheetInstaller=u.default},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(5),a=o(10),i=n(a),s=o(0),d=n(s),u=o(12),l=n(u),p=o(13),c=n(p),f=o(14),h=n(f),m=o(15),y=n(m);t.default={props:i.default,render:function(e){return e("div",this.$slots.default)},mixins:[r.KendoBaseComponent,r.KendoBaseDatasourceComponent,l.default,c.default,h.default,y.default],mounted:function(){this._resolveChildren(),kendo.jQuery(this.$el).kendoSpreadsheet(this.widgetOptions),this.$emit("kendowidgetready",this.kendoWidget())},methods:{kendoWidget:function(){return kendo.jQuery(this.$el).getKendoSpreadsheet()},_resolveChildren:function(){this.resolveChildren("sheets",d.default.name)}}}},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.KendoSharedMethods=t.KendoBaseInputComponent=t.KendoBaseDatasourceComponent=t.KendoBaseComponent=void 0;var r=o(6),a=n(r),i=o(7),s=n(i),d=o(8),u=n(d),l=o(9),p=n(l);t.KendoBaseComponent=a.default,t.KendoBaseDatasourceComponent=s.default,t.KendoBaseInputComponent=u.default,t.KendoSharedMethods=p.default},function(e,t,o){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=o(2),i=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default={props:{disabled:Boolean,readonly:Boolean},render:function(e){return e("div")},created:function(){this.resolveWidgetOptions(),this.$_nativeTemplates=[],this.$on("kendowidgetready",this.ready)},beforeDestroy:function(){if(this.kendoWidget()&&this.kendoWidget().destroy&&(this.kendoWidget().destroy(),this.$_nativeTemplates.length))for(var e=0;e<this.$_nativeTemplates.length;e++)this.$_nativeTemplates[e].$destroy()},mounted:function(){this.$el.classList.length>0?this.nativeClasses=[].concat(n(this.$el.classList)):this.nativeClasses=[];for(var e in this.$options.propsData){var t=this;if(-1!==e.toLowerCase().indexOf("template")){this.widgetOptions[e]instanceof Function&&(this.widgetOptions[e]=this.transformTemplate(e))}"value"===e?t.$watch(e,function(e){t.changeValue(e)}):"disabled"===e?t.$watch(e,function(e){t.makeDisabled(e)}):"readonly"===e?t.$watch(e,function(e){t.makeReadonly(e)}):t.$watch(e,function(e,o){JSON.stringify(o)!==JSON.stringify(e)&&t.updateWidget()})}},watch:{$attrs:function(){this.toggleClasses()}},methods:{toggleClasses:function(){var e=this,t=kendo.jQuery(e.$el),o=e.kendoWidget().wrapper;o&&o[0]!==t[0]&&(e.nativeClasses.forEach(function(e){o.removeClass(e)}),e.kendoClasses?e.nativeClasses=[].concat(n(e.$el.classList)).filter(function(t){return e.kendoClasses.indexOf(t)<0}):e.nativeClasses=[].concat(n(e.$el.classList)),e.nativeClasses.forEach(function(e){o.addClass(e)})),e.kendoClasses&&e.kendoClasses.forEach(function(e){t.addClass(e)})},updateWidget:function(){var e=this;e.resolveWidgetOptions(),e._resolveChildren&&e._resolveChildren(),e.kendoWidget().setOptions&&e.kendoWidget().setOptions(e.widgetOptions)},transformTemplate:function(e,t){var o,n=this,r=t||n.$options.propsData[e];try{o=r.call(n,{})}catch(e){return r}return o.template?function(){o=r.apply(this,arguments);var e=new i.default(o.template);e.$data.templateArgs=o.templateArgs;var t="kendo"+kendo.guid();return n.$nextTick(function(){document.getElementById(t)&&(e.$mount("#"+t),n.$_nativeTemplates.push(e))}),'<div id="'+t+'"></div>'}:r},resolveChildren:function(e,t){if(!this.widgetOptions[e]&&this.$slots.default){var o=[],n=!0,r=!1,a=void 0;try{for(var i,s=this.$slots.default[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var d=i.value;if(d.tag&&-1!==d.tag.indexOf(t)){var u=this.parseOptions(d.componentInstance);u.dataSourceRef&&this.setInnerDataSource("dataSourceRef","dataSource",u),o.push(u),this.handleWatcher(d.componentInstance)}}}catch(e){r=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw a}}o.length&&(this.widgetOptions[e]=o)}},handleWatcher:function(e){var t=this;e.stashedPropsData=JSON.stringify(e.$options.propsData),e._isWatchAttached||(e.$watch("$props",function(){var o=JSON.stringify(e.$options.propsData),n=e.stashedPropsData!==o;t.updateWidget&&n?t.updateWidget():t._resolveInnerChildren&&t._resolveInnerChildren(),e.stashedPropsData=o},{deep:!0}),e._isWatchAttached=!0)},makeDisabled:function(e){this.kendoWidget().enable&&this.kendoWidget().enable(!e)},makeReadonly:function(e){this.kendoWidget().readonly&&this.kendoWidget().readonly(e)},changeValue:function(e){this.kendoWidget().value&&this.kendoWidget().value(e)},resolveWidgetOptions:function(){this.widgetOptions=this.parseOptions()},parseOptions:function(e){var t=e||this,o={};for(var n in t.$options.propsData){var r=t.$options.props[n],a=t.$options.propsData[n],i=r.kComposite;i?this.addCompositeProperty(o,i.split("."),t.$props[n]):-1!==n.toLowerCase().indexOf("template")&&a instanceof Function?o[n]=this.transformTemplate(n,a):o[n]=a}return Object.keys(t.$props).forEach(function(e){if(t.$listeners&&t.$listeners[e.toLowerCase()]){var n,r=e.lastIndexOf("kendo");-1!==r&&(n=e.replace("kendo","").toLowerCase()),o[n||e]=t.$listeners[e.toLowerCase()]}}),o},addCompositeProperty:function(e,t,o){var n=t.pop(),a=t.reduce(function(e,t){return e[t]="object"===r(e[t])?e[t]||{}:{},e[t]},e);-1!==n.toLowerCase().indexOf("template")&&o instanceof Function?a[n]=this.transformTemplate(n,o):a[n]=o},ready:function(){var e=this;this.$el.classList.length>0&&(e.kendoClasses=[].concat(n(e.$el.classList)).filter(function(t){return e.nativeClasses.indexOf(t)<0})),e.$options.propsData&&e.$options.propsData.disabled&&e.makeDisabled(!0),e.$options.propsData&&e.$options.propsData.readonly&&e.makeReadonly(!0)}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{dataSourceRef:String},render:function(e){return e("div")},methods:{findDataSource:function(){var e,t=!0,o=!1,n=void 0;try{for(var r,a=this.$children[Symbol.iterator]();!(t=(r=a.next()).done);t=!0){var i=r.value;if(this.$children.length&&i.kendoDataSource){e=i.kendoDataSource;break}}}catch(e){o=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(o)throw n}}return e},setInnerDataSource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"dataSourceRef",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dataSource",o=arguments[2],n=this.findDataSource();if(n)o?o[t]=n:this.widgetOptions[t]=n;else{var r=o?o[e]:this[e],a=this.getParentsRef(r);a&&(this.attachEvents(a),o?o[t]=a.kendoDataSource:this.widgetOptions[t]=a.kendoDataSource)}},getParentsRef:function(e){for(var t=this.$parent;t&&!t.$refs[e];)t=t.$parent;return t?t.$refs[e]:void 0},setDataSource:function(e){var t=this.getParentsRef(e),o=this.kendoWidget();o.setDataSource&&t?o.setDataSource(t.kendoDataSource):o.setDataSource&&o.setDataSource(e)},attachEvents:function(e){e.kendoDataSource&&(e.kendoDataSource.bind("change",function(t){e.$emit("change",t)}),e.kendoDataSource.bind("error",function(t){e.$emit("error",t)}),e.kendoDataSource.bind("push",function(t){e.$emit("push",t)}),e.kendoDataSource.bind("requestEnd",function(t){e.$emit("requestend",t)}),e.kendoDataSource.bind("requestStart",function(t){e.$emit("requeststart",t)}),e.kendoDataSource.bind("sync",function(t){e.$emit("sync",t)}))}},mounted:function(){var e=this;e.$watch("dataSourceRef",function(t){e.setDataSource(t)}),e.$watch("dataSource",function(t){e.setDataSource(t)}),e.setInnerDataSource()}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={render:function(e){return e("input",{ref:"valueInput",props:{value:this.value}})},model:{event:"changemodel"}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={methods:{resolveInnerTags:function(e){var t=[],o=!0,n=!1,r=void 0;try{for(var a,i=this.$slots.default[Symbol.iterator]();!(o=(a=i.next()).done);o=!0){var s=a.value;if(s.tag&&-1!==s.tag.indexOf(e)){var d=s.componentOptions,u=d.propsData;d.propsData.items||(u.items=s.componentInstance.subitems),t.push(u),this.handleWatcher(s.componentInstance)}}}catch(e){n=!0,r=e}finally{try{!o&&i.return&&i.return()}finally{if(n)throw r}}return t},handleWatcher:function(e){var t=this;e._isWatchAttached||(e.$watch("$props",function(){t.updateWidget?t.updateWidget():t._resolveInnerChildren&&t._resolveInnerChildren()},{deep:!0}),e._isWatchAttached=!0)}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={activeSheet:String,columnWidth:Number,columns:Number,defaultCellStyle:Object,headerHeight:Number,headerWidth:Number,excel:Object,pdf:Object,rowHeight:Number,rows:Number,sheets:Array,sheetsbar:Boolean,toolbar:Boolean|Object,useCultureDecimals:Boolean,insertSheet:Function,removeSheet:Function,renameSheet:Function,selectSheet:Function,unhideColumn:Function,unhideRow:Function,hideColumn:Function,hideRow:Function,deleteColumn:Function,deleteRow:Function,insertColumn:Function,insertRow:Function,select:Function,changeFormat:Function,changing:Function,change:Function,render:Function,excelExport:Function,excelImport:Function,pdfExport:Function,copy:Function,cut:Function,paste:Function,dataBinding:Function,dataBound:Function}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{activeCell:{type:String,kComposite:"activeCell"},name:{type:String,kComposite:"name"},columns:{type:Array,kComposite:"columns"},dataSource:{type:Object|Array,kComposite:"dataSource"},dataSourceRef:{type:String,kComposite:"dataSourceRef"},filterColumns:{type:Array,kComposite:"filter.columns"},filterRef:{type:String,kComposite:"filter.ref"},frozenColumns:{type:Number,kComposite:"frozenColumns"},frozenRows:{type:Number,kComposite:"frozenRows"},mergedCells:{type:Array,kComposite:"mergedCells"},rows:{type:Array,kComposite:"rows"},selection:{type:String,kComposite:"selection"},showGridLines:{type:Boolean,kComposite:"showGridLines"},sortColumns:{type:Array,kComposite:"sort.columns"},sortRef:{type:String,kComposite:"sort.ref"}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{defaultCellStyleBackground:{type:String,kComposite:"defaultCellStyle.background"},defaultCellStyleColor:{type:String,kComposite:"defaultCellStyle.color"},defaultCellStyleFontFamily:{type:String,kComposite:"defaultCellStyle.fontFamily"},defaultCellStyleFontSize:{type:String,kComposite:"defaultCellStyle.fontSize"},defaultCellStyleItalic:{type:Boolean,kComposite:"defaultCellStyle.Italic"},defaultCellStyleBold:{type:Boolean,kComposite:"defaultCellStyle.bold"},defaultCellStyleUnderline:{type:Boolean,kComposite:"defaultCellStyle.underline"},defaultCellStyleWrap:{type:Boolean,kComposite:"defaultCellStyle.wrap"}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{excelFileName:{type:String,kComposite:"excel.fileName"},excelForceProxy:{type:Boolean,kComposite:"excel.forceProxy"},excelProxyURL:{type:String,kComposite:"excel.proxyURL"}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{pdfArea:{type:String,kComposite:"pdf.area"},pdfAuthor:{type:String,kComposite:"pdf.author"},pdfCreator:{type:String,kComposite:"pdf.creator"},pdfDate:{type:Date,kComposite:"pdf.date"},pdfFileName:{type:String,kComposite:"pdf.fileName"},pdfFitWidth:{type:Boolean,kComposite:"pdf.fitWidth"},pdfForceProxy:{type:Boolean,kComposite:"pdf.forceProxy"},pdfGuidelines:{type:Boolean,kComposite:"pdf.guidelines"},pdfHCenter:{type:Boolean,kComposite:"pdf.hCenter"},pdfKeywords:{type:String,kComposite:"pdf.keywords"},pdfLandscape:{type:Boolean,kComposite:"pdf.landscape"},pdfMarginBottom:{type:Number|String,kComposite:"pdf.margin.bottom"},pdfMarginLeft:{type:Number|String,kComposite:"pdf.margin.left"},pdfMarginRight:{type:Number|String,kComposite:"pdf.margin.right"},pdfMarginTop:{type:Number|String,kComposite:"pdf.margin.top"},pdfPaperSize:{type:String|Array,kComposite:"pdf.paperSize"},pdfProxyURL:{type:String,kComposite:"pdf.proxyURL"},pdfProxyTarget:{type:String,kComposite:"pdf.proxyTarget"},pdfSubject:{type:String,kComposite:"pdf.subject"},pdfTitle:{type:String,kComposite:"pdf.title"},pdfVCenter:{type:Boolean,kComposite:"pdf.vCenter"}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{toolbarHome:{type:Boolean|Array,kComposite:"toolbar.home"},toolbarInsert:{type:Boolean|Array,kComposite:"toolbar.insert"},toolbarData:{type:Boolean|Array,kComposite:"toolbar.data"}}}},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=o(1),s=n(i),d=o(0),u=n(d),l=function(){function e(){r(this,e)}return a(e,null,[{key:"install",value:function(e){e.component(s.default.name,s.default),e.component(u.default.name,u.default)}}]),e}();t.default=l,"undefined"!=typeof window&&window.Vue&&window.Vue.use(l)}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports.KendoSpreadsheetVueWrapper=t(require("vue")):e.KendoSpreadsheetVueWrapper=t(e.Vue)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var o={};return t.m=e,t.c=o,t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=3)}([function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(11),a=n(r),i=o(2),s=n(i);t.default={name:"kendo-spreadsheet-sheet",render:function(){return s.default.prototype._e},mixins:[a.default]}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(4),r=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"kendo-spreadsheet",mixins:[r.default]}},function(t,o){t.exports=e},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SpreadsheetInstaller=t.KendoSpreadsheetInstaller=t.SpreadsheetSheet=t.KendoSpreadsheetSheet=t.Spreadsheet=t.KendoSpreadsheet=void 0;var r=o(1),a=n(r),i=o(0),s=n(i),d=o(16),u=n(d);t.KendoSpreadsheet=a.default,t.Spreadsheet=a.default,t.KendoSpreadsheetSheet=s.default,t.SpreadsheetSheet=s.default,t.KendoSpreadsheetInstaller=u.default,t.SpreadsheetInstaller=u.default},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(5),a=o(10),i=n(a),s=o(0),d=n(s),u=o(12),l=n(u),p=o(13),c=n(p),f=o(14),h=n(f),m=o(15),y=n(m);t.default={props:i.default,render:function(e){return e("div",this.$slots.default)},mixins:[r.KendoBaseComponent,r.KendoBaseDatasourceComponent,l.default,c.default,h.default,y.default],mounted:function(){this._resolveChildren(),kendo.jQuery(this.$el).kendoSpreadsheet(this.widgetOptions),this.$emit("kendowidgetready",this.kendoWidget())},methods:{kendoWidget:function(){return kendo.jQuery(this.$el).getKendoSpreadsheet()},_resolveChildren:function(){this.resolveChildren("sheets",d.default.name)}}}},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.KendoSharedMethods=t.KendoBaseInputComponent=t.KendoBaseDatasourceComponent=t.KendoBaseComponent=void 0;var r=o(6),a=n(r),i=o(7),s=n(i),d=o(8),u=n(d),l=o(9),p=n(l);t.KendoBaseComponent=a.default,t.KendoBaseDatasourceComponent=s.default,t.KendoBaseInputComponent=u.default,t.KendoSharedMethods=p.default},function(e,t,o){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=o(2),i=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default={props:{disabled:Boolean,readonly:Boolean},render:function(e){return e("div")},created:function(){this.resolveWidgetOptions(),this.$_nativeTemplates=[],this.$on("kendowidgetready",this.ready)},beforeDestroy:function(){if(this.kendoWidget()&&this.kendoWidget().destroy&&(this.kendoWidget().destroy(),this.$_nativeTemplates.length))for(var e=0;e<this.$_nativeTemplates.length;e++)this.$_nativeTemplates[e].$destroy()},mounted:function(){this.$el.classList.length>0?this.nativeClasses=[].concat(n(this.$el.classList)):this.nativeClasses=[];for(var e in this.$options.propsData){var t=this;if(-1!==e.toLowerCase().indexOf("template")){this.widgetOptions[e]instanceof Function&&(this.widgetOptions[e]=this.transformTemplate(e))}"value"===e?t.$watch(e,function(e){t.changeValue(e)}):"disabled"===e?t.$watch(e,function(e){t.makeDisabled(e)}):"readonly"===e?t.$watch(e,function(e){t.makeReadonly(e)}):t.$watch(e,function(e,o){JSON.stringify(o)!==JSON.stringify(e)&&t.updateWidget()})}},watch:{$attrs:function(){this.toggleClasses()}},methods:{toggleClasses:function(){var e=this,t=kendo.jQuery(e.$el),o=e.kendoWidget().wrapper;o&&o[0]!==t[0]&&(e.nativeClasses.forEach(function(e){o.removeClass(e)}),e.kendoClasses?e.nativeClasses=[].concat(n(e.$el.classList)).filter(function(t){return e.kendoClasses.indexOf(t)<0}):e.nativeClasses=[].concat(n(e.$el.classList)),e.nativeClasses.forEach(function(e){o.addClass(e)})),e.kendoClasses&&e.kendoClasses.forEach(function(e){t.addClass(e)})},updateWidget:function(){var e=this;e.resolveWidgetOptions(),e._resolveChildren&&e._resolveChildren(),e.kendoWidget().setOptions&&e.kendoWidget().setOptions(e.widgetOptions)},transformTemplate:function(e,t){var o,n=this,r=t||n.$options.propsData[e];try{o=r.call(n,{})}catch(e){return r}return o.template?function(){o=r.apply(this,arguments);var e=i.default.extend(o),t=new e(o.template);t.$data.templateArgs=o.templateArgs;var a="kendo"+kendo.guid();return n.$nextTick(function(){document.getElementById(a)&&(t.$mount("#"+a),n.$_nativeTemplates.push(t))}),'<div id="'+a+'"></div>'}:r},resolveChildren:function(e,t){if(!this.widgetOptions[e]&&this.$slots.default){var o=[],n=!0,r=!1,a=void 0;try{for(var i,s=this.$slots.default[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var d=i.value;if(d.tag&&-1!==d.tag.indexOf(t)){var u=this.parseOptions(d.componentInstance);u.dataSourceRef&&this.setInnerDataSource("dataSourceRef","dataSource",u),o.push(u),this.handleWatcher(d.componentInstance)}}}catch(e){r=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw a}}o.length&&(this.widgetOptions[e]=o)}},handleWatcher:function(e){var t=this;e.stashedPropsData=JSON.stringify(e.$options.propsData),e._isWatchAttached||(e.$watch("$props",function(){var o=JSON.stringify(e.$options.propsData),n=e.stashedPropsData!==o;t.updateWidget&&n?t.updateWidget():t._resolveInnerChildren&&t._resolveInnerChildren(),e.stashedPropsData=o},{deep:!0}),e._isWatchAttached=!0)},makeDisabled:function(e){this.kendoWidget().enable&&this.kendoWidget().enable(!e)},makeReadonly:function(e){this.kendoWidget().readonly&&this.kendoWidget().readonly(e)},changeValue:function(e){this.kendoWidget().value&&this.kendoWidget().value(e)},resolveWidgetOptions:function(){this.widgetOptions=this.parseOptions()},parseOptions:function(e){var t=e||this,o={};for(var n in t.$options.propsData){var r=t.$options.props[n],a=t.$options.propsData[n],i=r.kComposite;i?this.addCompositeProperty(o,i.split("."),t.$props[n]):-1!==n.toLowerCase().indexOf("template")&&a instanceof Function?o[n]=this.transformTemplate(n,a):o[n]=a}return Object.keys(t.$props).forEach(function(e){if(t.$listeners&&t.$listeners[e.toLowerCase()]){var n,r=e.lastIndexOf("kendo");-1!==r&&(n=e.replace("kendo","").toLowerCase()),o[n||e]=t.$listeners[e.toLowerCase()]}}),o},addCompositeProperty:function(e,t,o){var n=t.pop(),a=t.reduce(function(e,t){return e[t]="object"===r(e[t])?e[t]||{}:{},e[t]},e);-1!==n.toLowerCase().indexOf("template")&&o instanceof Function?a[n]=this.transformTemplate(n,o):a[n]=o},ready:function(){var e=this;this.$el.classList.length>0&&(e.kendoClasses=[].concat(n(e.$el.classList)).filter(function(t){return e.nativeClasses.indexOf(t)<0})),e.$options.propsData&&e.$options.propsData.disabled&&e.makeDisabled(!0),e.$options.propsData&&e.$options.propsData.readonly&&e.makeReadonly(!0)}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{dataSourceRef:String},render:function(e){return e("div")},methods:{findDataSource:function(){var e,t=!0,o=!1,n=void 0;try{for(var r,a=this.$children[Symbol.iterator]();!(t=(r=a.next()).done);t=!0){var i=r.value;if(this.$children.length&&i.kendoDataSource){e=i.kendoDataSource;break}}}catch(e){o=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(o)throw n}}return e},setInnerDataSource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"dataSourceRef",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dataSource",o=arguments[2],n=this.findDataSource();if(n)o?o[t]=n:this.widgetOptions[t]=n;else{var r=o?o[e]:this[e],a=this.getParentsRef(r);a&&(this.attachEvents(a),o?o[t]=a.kendoDataSource:this.widgetOptions[t]=a.kendoDataSource)}},getParentsRef:function(e){for(var t=this.$parent;t&&!t.$refs[e];)t=t.$parent;return t?t.$refs[e]:void 0},setDataSource:function(e){var t=this.getParentsRef(e),o=this.kendoWidget();o.setDataSource&&t?o.setDataSource(t.kendoDataSource):o.setDataSource&&o.setDataSource(e)},attachEvents:function(e){e.kendoDataSource&&(e.kendoDataSource.bind("change",function(t){e.$emit("change",t)}),e.kendoDataSource.bind("error",function(t){e.$emit("error",t)}),e.kendoDataSource.bind("push",function(t){e.$emit("push",t)}),e.kendoDataSource.bind("requestEnd",function(t){e.$emit("requestend",t)}),e.kendoDataSource.bind("requestStart",function(t){e.$emit("requeststart",t)}),e.kendoDataSource.bind("sync",function(t){e.$emit("sync",t)}))}},mounted:function(){var e=this;e.$watch("dataSourceRef",function(t){e.setDataSource(t)}),e.$watch("dataSource",function(t){e.setDataSource(t)}),e.setInnerDataSource()}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={render:function(e){return e("input",{ref:"valueInput",props:{value:this.value}})},model:{event:"changemodel"}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={methods:{resolveInnerTags:function(e){var t=[],o=!0,n=!1,r=void 0;try{for(var a,i=this.$slots.default[Symbol.iterator]();!(o=(a=i.next()).done);o=!0){var s=a.value;if(s.tag&&-1!==s.tag.indexOf(e)){var d=s.componentOptions,u=d.propsData;d.propsData.items||(u.items=s.componentInstance.subitems),t.push(u),this.handleWatcher(s.componentInstance)}}}catch(e){n=!0,r=e}finally{try{!o&&i.return&&i.return()}finally{if(n)throw r}}return t},handleWatcher:function(e){var t=this;e._isWatchAttached||(e.$watch("$props",function(){t.updateWidget?t.updateWidget():t._resolveInnerChildren&&t._resolveInnerChildren()},{deep:!0}),e._isWatchAttached=!0)}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={activeSheet:String,columnWidth:Number,columns:Number,defaultCellStyle:Object,headerHeight:Number,headerWidth:Number,excel:Object,pdf:Object,rowHeight:Number,rows:Number,sheets:Array,sheetsbar:Boolean,toolbar:Boolean|Object,useCultureDecimals:Boolean,insertSheet:Function,removeSheet:Function,renameSheet:Function,selectSheet:Function,unhideColumn:Function,unhideRow:Function,hideColumn:Function,hideRow:Function,deleteColumn:Function,deleteRow:Function,insertColumn:Function,insertRow:Function,select:Function,changeFormat:Function,changing:Function,change:Function,render:Function,excelExport:Function,excelImport:Function,pdfExport:Function,copy:Function,cut:Function,paste:Function,dataBinding:Function,dataBound:Function}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{activeCell:{type:String,kComposite:"activeCell"},name:{type:String,kComposite:"name"},columns:{type:Array,kComposite:"columns"},dataSource:{type:Object|Array,kComposite:"dataSource"},dataSourceRef:{type:String,kComposite:"dataSourceRef"},filterColumns:{type:Array,kComposite:"filter.columns"},filterRef:{type:String,kComposite:"filter.ref"},frozenColumns:{type:Number,kComposite:"frozenColumns"},frozenRows:{type:Number,kComposite:"frozenRows"},mergedCells:{type:Array,kComposite:"mergedCells"},rows:{type:Array,kComposite:"rows"},selection:{type:String,kComposite:"selection"},showGridLines:{type:Boolean,kComposite:"showGridLines"},sortColumns:{type:Array,kComposite:"sort.columns"},sortRef:{type:String,kComposite:"sort.ref"}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{defaultCellStyleBackground:{type:String,kComposite:"defaultCellStyle.background"},defaultCellStyleColor:{type:String,kComposite:"defaultCellStyle.color"},defaultCellStyleFontFamily:{type:String,kComposite:"defaultCellStyle.fontFamily"},defaultCellStyleFontSize:{type:String,kComposite:"defaultCellStyle.fontSize"},defaultCellStyleItalic:{type:Boolean,kComposite:"defaultCellStyle.Italic"},defaultCellStyleBold:{type:Boolean,kComposite:"defaultCellStyle.bold"},defaultCellStyleUnderline:{type:Boolean,kComposite:"defaultCellStyle.underline"},defaultCellStyleWrap:{type:Boolean,kComposite:"defaultCellStyle.wrap"}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{excelFileName:{type:String,kComposite:"excel.fileName"},excelForceProxy:{type:Boolean,kComposite:"excel.forceProxy"},excelProxyURL:{type:String,kComposite:"excel.proxyURL"}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{pdfArea:{type:String,kComposite:"pdf.area"},pdfAuthor:{type:String,kComposite:"pdf.author"},pdfCreator:{type:String,kComposite:"pdf.creator"},pdfDate:{type:Date,kComposite:"pdf.date"},pdfFileName:{type:String,kComposite:"pdf.fileName"},pdfFitWidth:{type:Boolean,kComposite:"pdf.fitWidth"},pdfForceProxy:{type:Boolean,kComposite:"pdf.forceProxy"},pdfGuidelines:{type:Boolean,kComposite:"pdf.guidelines"},pdfHCenter:{type:Boolean,kComposite:"pdf.hCenter"},pdfKeywords:{type:String,kComposite:"pdf.keywords"},pdfLandscape:{type:Boolean,kComposite:"pdf.landscape"},pdfMarginBottom:{type:Number|String,kComposite:"pdf.margin.bottom"},pdfMarginLeft:{type:Number|String,kComposite:"pdf.margin.left"},pdfMarginRight:{type:Number|String,kComposite:"pdf.margin.right"},pdfMarginTop:{type:Number|String,kComposite:"pdf.margin.top"},pdfPaperSize:{type:String|Array,kComposite:"pdf.paperSize"},pdfProxyURL:{type:String,kComposite:"pdf.proxyURL"},pdfProxyTarget:{type:String,kComposite:"pdf.proxyTarget"},pdfSubject:{type:String,kComposite:"pdf.subject"},pdfTitle:{type:String,kComposite:"pdf.title"},pdfVCenter:{type:Boolean,kComposite:"pdf.vCenter"}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{toolbarHome:{type:Boolean|Array,kComposite:"toolbar.home"},toolbarInsert:{type:Boolean|Array,kComposite:"toolbar.insert"},toolbarData:{type:Boolean|Array,kComposite:"toolbar.data"}}}},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),i=o(1),s=n(i),d=o(0),u=n(d),l=function(){function e(){r(this,e)}return a(e,null,[{key:"install",value:function(e){e.component(s.default.name,s.default),e.component(u.default.name,u.default)}}]),e}();t.default=l,"undefined"!=typeof window&&window.Vue&&window.Vue.use(l)}])});
//# sourceMappingURL=kendo-spreadsheet-vue-wrapper.min.js.map
{
"name": "@progress/kendo-spreadsheet-vue-wrapper",
"version": "2019.3.1023",
"version": "2020.1.114-dev.0115",
"description": "Kendo UI Spreadsheet wrapper for Vue.js",

@@ -28,6 +28,6 @@ "main": "./dist/npm/index.js",

"dependencies": {
"@progress/kendo-base-components-vue-wrapper": "2019.3.1023"
"@progress/kendo-base-components-vue-wrapper": "2020.1.114-dev.0115"
},
"peerDependencies": {
"@progress/kendo-ui": "~2019.3.1023",
"@progress/kendo-ui": "~2020.1.114",
"vue": "^2.3.3"

@@ -34,0 +34,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc