@progress/kendo-dropdowns-vue-wrapper
Advanced tools
Comparing version 2017.3.1018 to 2017.3.1026-dev.11011456
@@ -433,3 +433,4 @@ var KendoDropdownsVueWrapper = | ||
if (childSlot.tag && childSlot.tag.indexOf(name) !== -1) { | ||
items.push(childSlot.componentOptions.propsData); | ||
var itemOptions = this.parseOptions(childSlot.componentInstance); | ||
items.push(itemOptions); | ||
} | ||
@@ -473,15 +474,22 @@ } | ||
}, | ||
parseOptions: function parseOptions() { | ||
parseOptions: function parseOptions(component) { | ||
var that = component || this; | ||
var options = {}; | ||
for (var key in this.$options.propsData) { | ||
var propOptions = this.$options.props[key]; | ||
for (var key in that.$options.propsData) { | ||
var propOptions = that.$options.props[key]; | ||
var compositeProps = propOptions.kComposite; | ||
if (!compositeProps) { | ||
options[key] = this.$options.propsData[key]; | ||
options[key] = that.$options.propsData[key]; | ||
} else { | ||
this.addCompositeProperty(options, compositeProps.split('.'), this.$props[key]); | ||
this.addCompositeProperty(options, compositeProps.split('.'), that.$props[key]); | ||
} | ||
} | ||
Object.keys(that.$props).forEach(function (event) { | ||
if (that.$listeners && that.$listeners[event.toLowerCase()]) { | ||
options[event] = that.$listeners[event.toLowerCase()]; | ||
} | ||
}); | ||
return options; | ||
@@ -498,41 +506,2 @@ }, | ||
ready: function ready() { | ||
var _this = this; | ||
var that = this; | ||
if (this.kendoWidget() && this.kendoWidget().events) { | ||
var _iteratorNormalCompletion2 = true; | ||
var _didIteratorError2 = false; | ||
var _iteratorError2 = undefined; | ||
try { | ||
var _loop = function _loop() { | ||
var event = _step2.value; | ||
if (_this.$listeners[event.toLowerCase()]) { | ||
that.kendoWidget().bind(event, function (ev) { | ||
that.$emit(event.toLowerCase(), ev); | ||
}); | ||
} | ||
}; | ||
for (var _iterator2 = this.kendoWidget().events[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { | ||
_loop(); | ||
} | ||
} catch (err) { | ||
_didIteratorError2 = true; | ||
_iteratorError2 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion2 && _iterator2.return) { | ||
_iterator2.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError2) { | ||
throw _iteratorError2; | ||
} | ||
} | ||
} | ||
} | ||
if (this.$options.propsData.disabled) { | ||
@@ -539,0 +508,0 @@ this.makeDisabled(true); |
@@ -1,2 +0,2 @@ | ||
var KendoDropdownsVueWrapper=function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.KendoBaseInputComponent=t.KendoBaseDatasourceComponent=t.KendoBaseComponent=void 0;var i=n(10),a=o(i),r=n(11),u=o(r),d=n(12),l=o(d);t.KendoBaseComponent=a.default,t.KendoBaseDatasourceComponent=u.default,t.KendoBaseInputComponent=l.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{animationCloseEffects:{type:String,kComposite:"animation.close.effects"},animationCloseDuration:{type:Number,kComposite:"animation.close.duration"},animationOpenEffects:{type:String,kComposite:"animation.open.effects"},animationOpenDuration:{type:Number,kComposite:"animation.open.duration"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{virtualItemHeight:{type:Number,kComposite:"virtual.itemHeight"},virtualMapValueTo:{type:String,kComposite:"virtual.mapValueTo"},virtualValueMapper:{type:Function,kComposite:"virtual.valueMapper"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{popupAppendTo:{type:String,kComposite:"popup.appendTo"},popupOrigin:{type:String,kComposite:"popup.origin"},popupPosition:{type:String,kComposite:"popup.position"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default={name:"kendo-autocomplete",mixins:[i.default]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(14),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default={name:"kendo-dropdownlist",mixins:[i.default]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(16),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default={name:"kendo-combobox",mixins:[i.default]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default={name:"kendo-multiselect",mixins:[i.default]}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.KendoDropdownsInstaller=t.KendoMultiSelect=t.KendoComboBox=t.KendoDropDownList=t.KendoAutoComplete=void 0;var i=n(4),a=o(i),r=n(5),u=o(r),d=n(6),l=o(d),s=n(7),c=o(s),p=n(20),f=o(p);t.KendoAutoComplete=a.default,t.KendoDropDownList=u.default,t.KendoComboBox=l.default,t.KendoMultiSelect=c.default,t.KendoDropdownsInstaller=f.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(13),r=o(a),u=n(1),d=o(u),l=n(2),s=o(l);t.default={props:r.default,template:'<div><input ref="kendoautocomplete"/><slot name="kendo-datasource"></slot></div>',mixins:[i.KendoBaseComponent,i.KendoBaseDatasourceComponent,d.default,s.default],model:{event:"changemodel"},mounted:function(){var e=this,t=e.$refs.kendoautocomplete||e.$el;kendo.jQuery(t).kendoAutoComplete(e.widgetOptions),e.$emit("kendowidgetready",e.kendoWidget()),e.kendoWidget().bind("change",function(){e.$emit("changemodel",t.value)})},methods:{kendoWidget:function(){var e=this.$refs.kendoautocomplete||this.$el;return kendo.jQuery(e).getKendoAutoComplete()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="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};t.default={template:"<div></div>",props:{disabled:Boolean,readonly:Boolean},created:function(){this.resolveWidgetOptions(),this.$on("kendowidgetready",this.ready)},beforeDestroy:function(){this.kendoWidget()&&this.kendoWidget().destroy&&this.kendoWidget().destroy()},mounted:function(){for(var e in this.$options.propsData){var t=this;"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(){t.resolveWidgetOptions(),t.kendoWidget().setOptions&&t.kendoWidget().setOptions(t.widgetOptions)})}},methods:{resolveChildren:function(e,t){if(!this.widgetOptions[e]&&this.$slots.default){var n=[],o=!0,i=!1,a=void 0;try{for(var r,u=this.$slots.default[Symbol.iterator]();!(o=(r=u.next()).done);o=!0){var d=r.value;d.tag&&-1!==d.tag.indexOf(t)&&n.push(d.componentOptions.propsData)}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}this.widgetOptions[e]=n}},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(){var e={};for(var t in this.$options.propsData){var n=this.$options.props[t],o=n.kComposite;o?this.addCompositeProperty(e,o.split("."),this.$props[t]):e[t]=this.$options.propsData[t]}return e},addCompositeProperty:function(e,t,n){var i=t.pop();t.reduce(function(e,t){return e[t]="object"===o(e[t])?e[t]||{}:{},e[t]},e)[i]=n},ready:function(){var e=this,t=this;if(this.kendoWidget()&&this.kendoWidget().events){var n=!0,o=!1,i=void 0;try{for(var a,r=this.kendoWidget().events[Symbol.iterator]();!(n=(a=r.next()).done);n=!0)!function(){var n=a.value;e.$listeners[n.toLowerCase()]&&t.kendoWidget().bind(n,function(e){t.$emit(n.toLowerCase(),e)})}()}catch(e){o=!0,i=e}finally{try{!n&&r.return&&r.return()}finally{if(o)throw i}}}this.$options.propsData.disabled&&this.makeDisabled(!0),this.$options.propsData.readonly&&this.makeReadonly(!0),kendo.jQuery(this.$el).find(".k-v-delete").remove()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={template:"<div></div>",props:{dataSourceRef:String},methods:{findDataSource:function(){var e,t=!0,n=!1,o=void 0;try{for(var i,a=this.$children[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var r=i.value;if(this.$children.length&&r.kendoDataSource){e=r.kendoDataSource;break}}}catch(e){n=!0,o=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw o}}return e},setInnerDataSource:function(){var e=this.findDataSource();if(e)this.widgetOptions.dataSource=e;else{var t=this.$parent.$refs[this.dataSourceRef];t&&(this.attachEvents(t),this.widgetOptions.dataSource=t.kendoDataSource)}},setDataSource:function(e){var t=this.$parent.$refs[e];this.kendoWidget().setDataSource&&t&&this.kendoWidget().setDataSource(t.kendoDataSource)},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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={template:'<input ref="valueInput" :value="value" />',model:{event:"changemodel"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={animation:Boolean|Object,autoWidth:Boolean,dataSource:Object|Array,clearButton:Boolean,dataTextField:String,delay:Number,enable:Boolean,enforceMinLength:Boolean,filter:String,fixedGroupTemplate:String|Function,footerTemplate:String|Function,groupTemplate:String|Function,height:Number,highlightFirst:Boolean,ignoreCase:Boolean,minLength:Number,noDataTemplate:String|Function,placeholder:String,popup:Object,separator:String|Array,suggest:Boolean,headerTemplate:String|Function,template:String|Function,value:String,valuePrimitive:Boolean,virtual:Boolean|Object,change:Function,close:Function,dataBound:Function,filtering:Function,open:Function,select:Function}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(15),r=o(a),u=n(1),d=o(u),l=n(3),s=o(l),c=n(2),p=o(c);t.default={props:r.default,template:'<div><input ref="kendodropdownlist"/><slot name="kendo-datasource"></slot></div>',mixins:[i.KendoBaseComponent,i.KendoBaseDatasourceComponent,d.default,s.default,p.default],model:{event:"changemodel"},mounted:function(){var e=this,t=e.$el||e.$refs.kendodropdownlist;kendo.jQuery(t).kendoDropDownList(e.widgetOptions),e.$emit("kendowidgetready",e.kendoWidget()),e.kendoWidget().bind("change",function(){e.$emit("changemodel",t.value)})},methods:{kendoWidget:function(){var e=this.$el||this.$refs.kendodropdownlist;return kendo.jQuery(e).getKendoDropDownList()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={animation:Boolean|Object,autoBind:Boolean,autoWidth:Boolean,cascadeFrom:String,cascadeFromField:String,dataSource:Object|Array,dataTextField:String,dataValueField:String,delay:Number,enable:Boolean,enforceMinLength:Boolean,filter:String,fixedGroupTemplate:String|Function,footerTemplate:String|Function,groupTemplate:String|Function,height:Number,ignoreCase:Boolean,index:Number,minLength:Number,noDataTemplate:String|Function,popup:Object,optionLabel:String|Object,optionLabelTemplate:String|Function,headerTemplate:String|Function,template:String|Function,valueTemplate:String|Function,text:String,value:String,valuePrimitive:Boolean,virtual:Boolean|Object,change:Function,close:Function,dataBound:Function,filtering:Function,open:Function,select:Function,cascade:Function}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(17),r=o(a),u=n(1),d=o(u),l=n(3),s=o(l),c=n(2),p=o(c);t.default={template:'<div><input ref="kendocombobox"/><slot name="kendo-datasource"></slot></div>',props:r.default,mixins:[i.KendoBaseComponent,i.KendoBaseDatasourceComponent,d.default,s.default,p.default],model:{event:"changemodel"},mounted:function(){var e=this,t=e.$el||e.$refs.kendocombobox;kendo.jQuery(t).kendoComboBox(e.widgetOptions),e.$emit("kendowidgetready",e.kendoWidget()),e.kendoWidget().bind("change",function(){e.$emit("changemodel",t.value)})},methods:{kendoWidget:function(){var e=this.$el||this.$refs.kendocombobox;return kendo.jQuery(e).getKendoComboBox()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={animation:Object,autoBind:Boolean,autoWidth:Boolean,cascadeFrom:String,cascadeFromField:String,clearButton:Boolean,dataSource:Object|Array,dataTextField:String,dataValueField:String,delay:Number,enable:Boolean,enforceMinLength:Boolean,filter:String,fixedGroupTemplate:String|Function,footerTemplate:String|Function,groupTemplate:String|Function,height:Number,highlightFirst:Boolean,ignoreCase:Boolean,index:Number,minLength:Number,noDataTemplate:String|Function,placeholder:String,popup:Object,suggest:Boolean,syncValueAndText:Boolean,headerTemplate:String|Function,template:String|Function,text:String,value:String,valuePrimitive:Boolean,virtual:Boolean|Object,change:Function,close:Function,dataBound:Function,filtering:Function,open:Function,select:Function,cascade:Function}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(19),r=o(a),u=n(1),d=o(u),l=n(3),s=o(l),c=n(2),p=o(c);t.default={props:r.default,template:'<div><select ref="kendomultiselect"/><slot name="kendo-datasource"></slot></div>',mixins:[i.KendoBaseComponent,i.KendoBaseDatasourceComponent,d.default,s.default,p.default],mounted:function(){var e=this,t=e.$refs.kendomultiselect||e.$el;kendo.jQuery(t).kendoMultiSelect(e.widgetOptions),e.$emit("kendowidgetready",e.kendoWidget()),e.kendoWidget().bind("change",function(){e.$emit("changemodel",e.kendoWidget().value())})},methods:{kendoWidget:function(){var e=this.$refs.kendomultiselect||this.$el;return kendo.jQuery(e).getKendoMultiSelect()}},model:{event:"changemodel"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={animation:Boolean|Object,autoBind:Boolean,autoClose:Boolean,autoWidth:Boolean,clearButton:Boolean,dataSource:Object|Array,dataTextField:String,dataValueField:String,delay:Number,enable:Boolean,enforceMinLength:Boolean,filter:String,fixedGroupTemplate:String|Function,footerTemplate:String|Function,groupTemplate:String|Function,height:Number,highlightFirst:Boolean,ignoreCase:Boolean,minLength:Number,maxSelectedItems:Number,noDataTemplate:String|Function,placeholder:String,popup:Object,headerTemplate:String|Function,itemTemplate:String|Function,tagTemplate:String|Function,tagMode:String,value:Array,valuePrimitive:Boolean,virtual:Boolean|Object,change:Function,close:Function,dataBound:Function,filtering:Function,open:Function,select:Function,deselect:Function}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(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 n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(4),u=o(r),d=n(5),l=o(d),s=n(6),c=o(s),p=n(7),f=o(p),m=function(){function e(){i(this,e)}return a(e,null,[{key:"install",value:function(e){e.component(u.default.name,u.default),e.component(l.default.name,l.default),e.component(c.default.name,c.default),e.component(f.default.name,f.default)}}]),e}();t.default=m,"undefined"!=typeof window&&window.Vue&&window.Vue.use(m)}]); | ||
var KendoDropdownsVueWrapper=function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.KendoBaseInputComponent=t.KendoBaseDatasourceComponent=t.KendoBaseComponent=void 0;var i=n(10),a=o(i),r=n(11),u=o(r),d=n(12),l=o(d);t.KendoBaseComponent=a.default,t.KendoBaseDatasourceComponent=u.default,t.KendoBaseInputComponent=l.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{animationCloseEffects:{type:String,kComposite:"animation.close.effects"},animationCloseDuration:{type:Number,kComposite:"animation.close.duration"},animationOpenEffects:{type:String,kComposite:"animation.open.effects"},animationOpenDuration:{type:Number,kComposite:"animation.open.duration"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{virtualItemHeight:{type:Number,kComposite:"virtual.itemHeight"},virtualMapValueTo:{type:String,kComposite:"virtual.mapValueTo"},virtualValueMapper:{type:Function,kComposite:"virtual.valueMapper"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{popupAppendTo:{type:String,kComposite:"popup.appendTo"},popupOrigin:{type:String,kComposite:"popup.origin"},popupPosition:{type:String,kComposite:"popup.position"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default={name:"kendo-autocomplete",mixins:[i.default]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(14),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default={name:"kendo-dropdownlist",mixins:[i.default]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(16),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default={name:"kendo-combobox",mixins:[i.default]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default={name:"kendo-multiselect",mixins:[i.default]}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.KendoDropdownsInstaller=t.KendoMultiSelect=t.KendoComboBox=t.KendoDropDownList=t.KendoAutoComplete=void 0;var i=n(4),a=o(i),r=n(5),u=o(r),d=n(6),l=o(d),s=n(7),c=o(s),p=n(20),f=o(p);t.KendoAutoComplete=a.default,t.KendoDropDownList=u.default,t.KendoComboBox=l.default,t.KendoMultiSelect=c.default,t.KendoDropdownsInstaller=f.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(13),r=o(a),u=n(1),d=o(u),l=n(2),s=o(l);t.default={props:r.default,template:'<div><input ref="kendoautocomplete"/><slot name="kendo-datasource"></slot></div>',mixins:[i.KendoBaseComponent,i.KendoBaseDatasourceComponent,d.default,s.default],model:{event:"changemodel"},mounted:function(){var e=this,t=e.$refs.kendoautocomplete||e.$el;kendo.jQuery(t).kendoAutoComplete(e.widgetOptions),e.$emit("kendowidgetready",e.kendoWidget()),e.kendoWidget().bind("change",function(){e.$emit("changemodel",t.value)})},methods:{kendoWidget:function(){var e=this.$refs.kendoautocomplete||this.$el;return kendo.jQuery(e).getKendoAutoComplete()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="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};t.default={template:"<div></div>",props:{disabled:Boolean,readonly:Boolean},created:function(){this.resolveWidgetOptions(),this.$on("kendowidgetready",this.ready)},beforeDestroy:function(){this.kendoWidget()&&this.kendoWidget().destroy&&this.kendoWidget().destroy()},mounted:function(){for(var e in this.$options.propsData){var t=this;"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(){t.resolveWidgetOptions(),t.kendoWidget().setOptions&&t.kendoWidget().setOptions(t.widgetOptions)})}},methods:{resolveChildren:function(e,t){if(!this.widgetOptions[e]&&this.$slots.default){var n=[],o=!0,i=!1,a=void 0;try{for(var r,u=this.$slots.default[Symbol.iterator]();!(o=(r=u.next()).done);o=!0){var d=r.value;if(d.tag&&-1!==d.tag.indexOf(t)){var l=this.parseOptions(d.componentInstance);n.push(l)}}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}this.widgetOptions[e]=n}},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,n={};for(var o in t.$options.propsData){var i=t.$options.props[o],a=i.kComposite;a?this.addCompositeProperty(n,a.split("."),t.$props[o]):n[o]=t.$options.propsData[o]}return Object.keys(t.$props).forEach(function(e){t.$listeners&&t.$listeners[e.toLowerCase()]&&(n[e]=t.$listeners[e.toLowerCase()])}),n},addCompositeProperty:function(e,t,n){var i=t.pop();t.reduce(function(e,t){return e[t]="object"===o(e[t])?e[t]||{}:{},e[t]},e)[i]=n},ready:function(){this.$options.propsData.disabled&&this.makeDisabled(!0),this.$options.propsData.readonly&&this.makeReadonly(!0),kendo.jQuery(this.$el).find(".k-v-delete").remove()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={template:"<div></div>",props:{dataSourceRef:String},methods:{findDataSource:function(){var e,t=!0,n=!1,o=void 0;try{for(var i,a=this.$children[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var r=i.value;if(this.$children.length&&r.kendoDataSource){e=r.kendoDataSource;break}}}catch(e){n=!0,o=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw o}}return e},setInnerDataSource:function(){var e=this.findDataSource();if(e)this.widgetOptions.dataSource=e;else{var t=this.$parent.$refs[this.dataSourceRef];t&&(this.attachEvents(t),this.widgetOptions.dataSource=t.kendoDataSource)}},setDataSource:function(e){var t=this.$parent.$refs[e];this.kendoWidget().setDataSource&&t&&this.kendoWidget().setDataSource(t.kendoDataSource)},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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={template:'<input ref="valueInput" :value="value" />',model:{event:"changemodel"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={animation:Boolean|Object,autoWidth:Boolean,dataSource:Object|Array,clearButton:Boolean,dataTextField:String,delay:Number,enable:Boolean,enforceMinLength:Boolean,filter:String,fixedGroupTemplate:String|Function,footerTemplate:String|Function,groupTemplate:String|Function,height:Number,highlightFirst:Boolean,ignoreCase:Boolean,minLength:Number,noDataTemplate:String|Function,placeholder:String,popup:Object,separator:String|Array,suggest:Boolean,headerTemplate:String|Function,template:String|Function,value:String,valuePrimitive:Boolean,virtual:Boolean|Object,change:Function,close:Function,dataBound:Function,filtering:Function,open:Function,select:Function}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(15),r=o(a),u=n(1),d=o(u),l=n(3),s=o(l),c=n(2),p=o(c);t.default={props:r.default,template:'<div><input ref="kendodropdownlist"/><slot name="kendo-datasource"></slot></div>',mixins:[i.KendoBaseComponent,i.KendoBaseDatasourceComponent,d.default,s.default,p.default],model:{event:"changemodel"},mounted:function(){var e=this,t=e.$el||e.$refs.kendodropdownlist;kendo.jQuery(t).kendoDropDownList(e.widgetOptions),e.$emit("kendowidgetready",e.kendoWidget()),e.kendoWidget().bind("change",function(){e.$emit("changemodel",t.value)})},methods:{kendoWidget:function(){var e=this.$el||this.$refs.kendodropdownlist;return kendo.jQuery(e).getKendoDropDownList()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={animation:Boolean|Object,autoBind:Boolean,autoWidth:Boolean,cascadeFrom:String,cascadeFromField:String,dataSource:Object|Array,dataTextField:String,dataValueField:String,delay:Number,enable:Boolean,enforceMinLength:Boolean,filter:String,fixedGroupTemplate:String|Function,footerTemplate:String|Function,groupTemplate:String|Function,height:Number,ignoreCase:Boolean,index:Number,minLength:Number,noDataTemplate:String|Function,popup:Object,optionLabel:String|Object,optionLabelTemplate:String|Function,headerTemplate:String|Function,template:String|Function,valueTemplate:String|Function,text:String,value:String,valuePrimitive:Boolean,virtual:Boolean|Object,change:Function,close:Function,dataBound:Function,filtering:Function,open:Function,select:Function,cascade:Function}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(17),r=o(a),u=n(1),d=o(u),l=n(3),s=o(l),c=n(2),p=o(c);t.default={template:'<div><input ref="kendocombobox"/><slot name="kendo-datasource"></slot></div>',props:r.default,mixins:[i.KendoBaseComponent,i.KendoBaseDatasourceComponent,d.default,s.default,p.default],model:{event:"changemodel"},mounted:function(){var e=this,t=e.$el||e.$refs.kendocombobox;kendo.jQuery(t).kendoComboBox(e.widgetOptions),e.$emit("kendowidgetready",e.kendoWidget()),e.kendoWidget().bind("change",function(){e.$emit("changemodel",t.value)})},methods:{kendoWidget:function(){var e=this.$el||this.$refs.kendocombobox;return kendo.jQuery(e).getKendoComboBox()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={animation:Object,autoBind:Boolean,autoWidth:Boolean,cascadeFrom:String,cascadeFromField:String,clearButton:Boolean,dataSource:Object|Array,dataTextField:String,dataValueField:String,delay:Number,enable:Boolean,enforceMinLength:Boolean,filter:String,fixedGroupTemplate:String|Function,footerTemplate:String|Function,groupTemplate:String|Function,height:Number,highlightFirst:Boolean,ignoreCase:Boolean,index:Number,minLength:Number,noDataTemplate:String|Function,placeholder:String,popup:Object,suggest:Boolean,syncValueAndText:Boolean,headerTemplate:String|Function,template:String|Function,text:String,value:String,valuePrimitive:Boolean,virtual:Boolean|Object,change:Function,close:Function,dataBound:Function,filtering:Function,open:Function,select:Function,cascade:Function}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(19),r=o(a),u=n(1),d=o(u),l=n(3),s=o(l),c=n(2),p=o(c);t.default={props:r.default,template:'<div><select ref="kendomultiselect"/><slot name="kendo-datasource"></slot></div>',mixins:[i.KendoBaseComponent,i.KendoBaseDatasourceComponent,d.default,s.default,p.default],mounted:function(){var e=this,t=e.$refs.kendomultiselect||e.$el;kendo.jQuery(t).kendoMultiSelect(e.widgetOptions),e.$emit("kendowidgetready",e.kendoWidget()),e.kendoWidget().bind("change",function(){e.$emit("changemodel",e.kendoWidget().value())})},methods:{kendoWidget:function(){var e=this.$refs.kendomultiselect||this.$el;return kendo.jQuery(e).getKendoMultiSelect()}},model:{event:"changemodel"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={animation:Boolean|Object,autoBind:Boolean,autoClose:Boolean,autoWidth:Boolean,clearButton:Boolean,dataSource:Object|Array,dataTextField:String,dataValueField:String,delay:Number,enable:Boolean,enforceMinLength:Boolean,filter:String,fixedGroupTemplate:String|Function,footerTemplate:String|Function,groupTemplate:String|Function,height:Number,highlightFirst:Boolean,ignoreCase:Boolean,minLength:Number,maxSelectedItems:Number,noDataTemplate:String|Function,placeholder:String,popup:Object,headerTemplate:String|Function,itemTemplate:String|Function,tagTemplate:String|Function,tagMode:String,value:Array,valuePrimitive:Boolean,virtual:Boolean|Object,change:Function,close:Function,dataBound:Function,filtering:Function,open:Function,select:Function,deselect:Function}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(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 n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(4),u=o(r),d=n(5),l=o(d),s=n(6),c=o(s),p=n(7),f=o(p),m=function(){function e(){i(this,e)}return a(e,null,[{key:"install",value:function(e){e.component(u.default.name,u.default),e.component(l.default.name,l.default),e.component(c.default.name,c.default),e.component(f.default.name,f.default)}}]),e}();t.default=m,"undefined"!=typeof window&&window.Vue&&window.Vue.use(m)}]); | ||
//# sourceMappingURL=kendo-dropdowns-vue-wrapper.min.js.map |
{ | ||
"name": "@progress/kendo-dropdowns-vue-wrapper", | ||
"version": "2017.3.1018", | ||
"version": "2017.3.1026-dev.11011456", | ||
"description": "Kendo UI DropDowns wrapper for Vue.js", | ||
@@ -30,6 +30,6 @@ "main": "./dist/npm/index.js", | ||
"dependencies": { | ||
"@progress/kendo-base-components-vue-wrapper": "2017.3.1018" | ||
"@progress/kendo-base-components-vue-wrapper": "2017.3.1026-dev.11011456" | ||
}, | ||
"peerDependencies": { | ||
"@progress/kendo-ui": "~2017.3.1018", | ||
"@progress/kendo-ui": "~2017.3.1026", | ||
"vue": "^2.3.3" | ||
@@ -36,0 +36,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
202481
1845
3