@progress/kendo-base-components-vue-wrapper
Advanced tools
Comparing version 2017.3.1018 to 2017.3.1026-dev.11011456
@@ -65,3 +65,4 @@ 'use strict'; | ||
if (childSlot.tag && childSlot.tag.indexOf(name) !== -1) { | ||
items.push(childSlot.componentOptions.propsData); | ||
var itemOptions = this.parseOptions(childSlot.componentInstance); | ||
items.push(itemOptions); | ||
} | ||
@@ -105,15 +106,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; | ||
@@ -130,41 +138,2 @@ }, | ||
ready: function ready() { | ||
var _this = this; | ||
var that = this; | ||
if (this.kendoWidget() && this.kendoWidget().events) { | ||
var _loop = function _loop(event) { | ||
if (_this.$listeners[event.toLowerCase()]) { | ||
that.kendoWidget().bind(event, function (ev) { | ||
that.$emit(event.toLowerCase(), ev); | ||
}); | ||
} | ||
}; | ||
var _iteratorNormalCompletion2 = true; | ||
var _didIteratorError2 = false; | ||
var _iteratorError2 = undefined; | ||
try { | ||
for (var _iterator2 = this.kendoWidget().events[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { | ||
var event = _step2.value; | ||
_loop(event); | ||
} | ||
} catch (err) { | ||
_didIteratorError2 = true; | ||
_iteratorError2 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion2 && _iterator2.return) { | ||
_iterator2.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError2) { | ||
throw _iteratorError2; | ||
} | ||
} | ||
} | ||
} | ||
if (this.$options.propsData.disabled) { | ||
@@ -171,0 +140,0 @@ this.makeDisabled(true); |
@@ -54,3 +54,4 @@ 'use strict'; | ||
if (childSlot.tag && childSlot.tag.indexOf(name) !== -1) { | ||
items.push(childSlot.componentOptions.propsData); | ||
var itemOptions = this.parseOptions(childSlot.componentInstance); | ||
items.push(itemOptions); | ||
} | ||
@@ -79,15 +80,22 @@ } | ||
}, | ||
parseOptions() { | ||
parseOptions(component) { | ||
var that = component || this; | ||
var options = {}; | ||
for (let key in this.$options.propsData) { | ||
var propOptions = this.$options.props[key]; | ||
for (let 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(event => { | ||
if (that.$listeners && that.$listeners[event.toLowerCase()]) { | ||
options[event] = that.$listeners[event.toLowerCase()]; | ||
} | ||
}); | ||
return options; | ||
@@ -104,14 +112,2 @@ }, | ||
ready() { | ||
var that = this; | ||
if (this.kendoWidget() && this.kendoWidget().events) { | ||
for (let event of this.kendoWidget().events) { | ||
if (this.$listeners[event.toLowerCase()]) { | ||
that.kendoWidget().bind(event, function (ev) { | ||
that.$emit(event.toLowerCase(), ev); | ||
}); | ||
} | ||
} | ||
} | ||
if (this.$options.propsData.disabled) { | ||
@@ -118,0 +114,0 @@ this.makeDisabled(true); |
{ | ||
"name": "@progress/kendo-base-components-vue-wrapper", | ||
"version": "2017.3.1018", | ||
"version": "2017.3.1026-dev.11011456", | ||
"description": "Kendo UI Base Component wrapper for Vue.js", | ||
@@ -27,3 +27,3 @@ "main": "./dist/npm/index.js", | ||
"peerDependencies": { | ||
"@progress/kendo-ui": "~2017.3.1018", | ||
"@progress/kendo-ui": "~2017.3.1026", | ||
"vue": "^2.3.3" | ||
@@ -30,0 +30,0 @@ }, |
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
20161
453
3