@progress/kendo-spreadsheet-vue-wrapper
Advanced tools
Comparing version 2019.1.124 to 2019.1.220
@@ -207,4 +207,7 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
exports.default = { | ||
template: '<div><slot></slot></div>', | ||
props: _SpreadsheetProps2.default, | ||
render: function render(h) { | ||
return h('div', this.$slots.default); | ||
}, | ||
mixins: [_kendoBaseComponentsVueWrapper.KendoBaseComponent, _kendoBaseComponentsVueWrapper.KendoBaseDatasourceComponent, _DefaultCellStyle2.default, _Excel2.default, _Pdf2.default, _Toolbar2.default], | ||
@@ -286,3 +289,2 @@ mounted: function mounted() { | ||
exports.default = { | ||
template: '<div></div>', | ||
props: { | ||
@@ -292,2 +294,5 @@ disabled: Boolean, | ||
}, | ||
render: function render(h) { | ||
return h('div'); | ||
}, | ||
created: function created() { | ||
@@ -581,6 +586,9 @@ this.resolveWidgetOptions(); | ||
exports.default = { | ||
template: '<div></div>', | ||
props: { | ||
dataSourceRef: String | ||
}, | ||
render: function render(h) { | ||
return h('div'); | ||
}, | ||
methods: { | ||
@@ -718,3 +726,11 @@ findDataSource: function findDataSource() { | ||
exports.default = { | ||
template: '<input ref="valueInput" :value="value" />', | ||
render: function render(h) { | ||
return h('input', { | ||
ref: 'valueInput', | ||
props: { | ||
value: this.value | ||
} | ||
}); | ||
}, | ||
model: { | ||
@@ -721,0 +737,0 @@ event: 'changemodel' |
@@ -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),l=n(d);t.KendoSpreadsheet=a.default,t.Spreadsheet=a.default,t.KendoSpreadsheetSheet=s.default,t.SpreadsheetSheet=s.default,t.KendoSpreadsheetInstaller=l.default,t.SpreadsheetInstaller=l.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),l=o(12),u=n(l),p=o(13),f=n(p),c=o(14),h=n(c),m=o(15),y=n(m);t.default={template:"<div><slot></slot></div>",props:i.default,mixins:[r.KendoBaseComponent,r.KendoBaseDatasourceComponent,u.default,f.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),l=n(d),u=o(9),p=n(u);t.KendoBaseComponent=a.default,t.KendoBaseDatasourceComponent=s.default,t.KendoBaseInputComponent=l.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={template:"<div></div>",props:{disabled:Boolean,readonly:Boolean},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.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(){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 l=this.parseOptions(d.componentInstance);l.dataSourceRef&&this.setInnerDataSource("dataSourceRef","dataSource",l),o.push(l),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.disabled&&e.makeDisabled(!0),e.$options.propsData.readonly&&e.makeReadonly(!0)}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={template:"<div></div>",props:{dataSourceRef:String},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={template:'<input ref="valueInput" :value="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,l=d.propsData;d.propsData.items||(l.items=s.componentInstance.subitems),t.push(l),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,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,change:Function,render:Function,excelExport:Function,excelImport:Function,pdfExport: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),l=n(d),u=function(){function e(){r(this,e)}return a(e,null,[{key:"install",value:function(e){e.component(s.default.name,s.default),e.component(l.default.name,l.default)}}]),e}();t.default=u,"undefined"!=typeof window&&window.Vue&&window.Vue.use(u)}])}); | ||
!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),l=n(d);t.KendoSpreadsheet=a.default,t.Spreadsheet=a.default,t.KendoSpreadsheetSheet=s.default,t.SpreadsheetSheet=s.default,t.KendoSpreadsheetInstaller=l.default,t.SpreadsheetInstaller=l.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),l=o(12),u=n(l),p=o(13),f=n(p),c=o(14),h=n(c),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,u.default,f.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),l=n(d),u=o(9),p=n(u);t.KendoBaseComponent=a.default,t.KendoBaseDatasourceComponent=s.default,t.KendoBaseInputComponent=l.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.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(){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 l=this.parseOptions(d.componentInstance);l.dataSourceRef&&this.setInnerDataSource("dataSourceRef","dataSource",l),o.push(l),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.disabled&&e.makeDisabled(!0),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,l=d.propsData;d.propsData.items||(l.items=s.componentInstance.subitems),t.push(l),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,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,change:Function,render:Function,excelExport:Function,excelImport:Function,pdfExport: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),l=n(d),u=function(){function e(){r(this,e)}return a(e,null,[{key:"install",value:function(e){e.component(s.default.name,s.default),e.component(l.default.name,l.default)}}]),e}();t.default=u,"undefined"!=typeof window&&window.Vue&&window.Vue.use(u)}])}); | ||
//# sourceMappingURL=kendo-spreadsheet-vue-wrapper.min.js.map |
@@ -36,4 +36,7 @@ 'use strict'; | ||
exports.default = { | ||
template: '<div><slot></slot></div>', | ||
props: _SpreadsheetProps2.default, | ||
render: function render(h) { | ||
return h('div', this.$slots.default); | ||
}, | ||
mixins: [_kendoBaseComponentsVueWrapper.KendoBaseComponent, _kendoBaseComponentsVueWrapper.KendoBaseDatasourceComponent, _DefaultCellStyle2.default, _Excel2.default, _Pdf2.default, _Toolbar2.default], | ||
@@ -40,0 +43,0 @@ mounted: function mounted() { |
@@ -36,4 +36,6 @@ 'use strict'; | ||
exports.default = { | ||
template: '<div><slot></slot></div>', | ||
props: _SpreadsheetProps2.default, | ||
render(h) { | ||
return h('div', this.$slots.default); | ||
}, | ||
mixins: [_kendoBaseComponentsVueWrapper.KendoBaseComponent, _kendoBaseComponentsVueWrapper.KendoBaseDatasourceComponent, _DefaultCellStyle2.default, _Excel2.default, _Pdf2.default, _Toolbar2.default], | ||
@@ -40,0 +42,0 @@ mounted() { |
@@ -42,4 +42,4 @@ --- | ||
## See Also | ||
## Suggested Links | ||
* [`DefaultCellStyle` in Kendo UI Spreadsheet for jQuery](https://docs.telerik.com/kendo-ui/api/javascript/ui/spreadsheet/configuration/defaultcellstyle) |
@@ -30,4 +30,4 @@ --- | ||
## See Also | ||
## Suggested Links | ||
* [`Excel` in Kendo UI Spreadsheet for jQuery](https://docs.telerik.com/kendo-ui/api/javascript/ui/spreadsheet/configuration/excel) |
@@ -120,4 +120,4 @@ --- | ||
## See Also | ||
## Suggested Links | ||
* [`Pdf` in Kendo UI Spreadsheet in jQuery](https://docs.telerik.com/kendo-ui/api/javascript/ui/spreadsheet/configuration/pdf) |
@@ -32,3 +32,3 @@ --- | ||
### default-cell-style `Object` | ||
### default-cell-style `Object` | ||
@@ -45,7 +45,7 @@ The default cell styles that will be applied to the sheet cells ([`defaultCellStyle` in Kendo UI for jQuery](https://docs.telerik.com/kendo-ui/api/javascript/ui/spreadsheet/configuration/defaultcellstyle)). The supported composite props are available in [`DefaultCellStyleProps`]({% slug api_spreadsheet_defaultcellstyleprops %}). | ||
### excel `Object` | ||
### excel `Object` | ||
Configures the Excel export settings of the Spreadsheet ([`excel` in Kendo UI for jQuery](https://docs.telerik.com/kendo-ui/api/javascript/ui/spreadsheet/configuration/excel)). The supported composite props are available in [`ExcelProps`]({% slug api_spreadsheet_excelprops %}). | ||
### pdf `Object` | ||
### pdf `Object` | ||
@@ -70,3 +70,3 @@ Configures the PDF export settings of the Spreadsheet ([`pdf` in Kendo UI for jQuery](https://docs.telerik.com/kendo-ui/api/javascript/ui/spreadsheet/configuration/pdf)). The supported composite props are available in [`PdfProps`]({% slug api_spreadsheet_pdfprops %}). | ||
### toolbar `Boolean | Object` | ||
### toolbar `Boolean | Object` | ||
@@ -73,0 +73,0 @@ A Boolean value which indicates if the toolbar will be displayed ([`toolbar` in Kendo UI for jQuery](https://docs.telerik.com/kendo-ui/api/javascript/ui/spreadsheet/configuration/toolbar)). The supported composite props are available in [`ToolbarProps`]({% slug api_spreadsheet_toolbarprops %}). |
@@ -76,4 +76,4 @@ --- | ||
## See Also | ||
## Suggested Links | ||
* [`Sheets` in Kendo UI Spreadsheet for jQuery](https://docs.telerik.com/kendo-ui/api/javascript/ui/spreadsheet/configuration/sheets) |
@@ -56,4 +56,4 @@ --- | ||
## See Also | ||
## Suggested Links | ||
* [`Toolbar` in Kendo UI Spreadsheet for jQuery](https://docs.telerik.com/kendo-ui/api/javascript/ui/spreadsheet/configuration/toolbar) |
{ | ||
"name": "@progress/kendo-spreadsheet-vue-wrapper", | ||
"version": "2019.1.124", | ||
"version": "2019.1.220", | ||
"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.1.124" | ||
"@progress/kendo-base-components-vue-wrapper": "2019.1.220" | ||
}, | ||
"peerDependencies": { | ||
"@progress/kendo-ui": "~2019.1.115", | ||
"@progress/kendo-ui": "~2019.1.220", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
315564
1829
+ Added@progress/kendo-base-components-vue-wrapper@2019.1.220(transitive)
- Removed@progress/kendo-base-components-vue-wrapper@2019.1.124(transitive)
Updated@progress/kendo-base-components-vue-wrapper@2019.1.220