@syncfusion/ej2-vue-popups
Advanced tools
Comparing version 17.1.1-beta to 17.1.32-beta
@@ -36,2 +36,3 @@ # Changelog | ||
- Provided resizable support to the dialog for both modal dialog and modeless dialog (non-modal). | ||
- Provided option to pass animation settings as an argument to utility methods of dialog. | ||
@@ -38,0 +39,0 @@ - Provided two-way binding support to `visible` property of dialog. |
/*! | ||
* filename: ej2-vue-popups.umd.min.js | ||
* version : 17.1.1-beta | ||
* version : 17.1.32-beta | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
@@ -10,13 +10,3 @@ * Use of this code is subject to the terms of our license. | ||
*/ | ||
/*! | ||
* filename: ej2-vue-popups.umd.min.js | ||
* version : 16.4.42 | ||
* Copyright Syncfusion Inc. 2001 - 2018. All rights reserved. | ||
* Use of this code is subject to the terms of our license. | ||
* A copy of the current license can be obtained at any time by e-mailing | ||
* licensing@syncfusion.com. Any infringement will be prosecuted under | ||
* applicable laws. | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-popups"),require("vue"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-popups","vue","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Popups,e.Vue,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,o,r){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;var i=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){},t=s([o.EJComponentDecorator({})],t)}(n),a={name:"e-buttons",install:function(e){e.component(a.name,c)}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){},t=s([o.EJComponentDecorator({})],t)}(n),u={name:"e-dialogbutton",install:function(e){e.component(u.name,p)}},f=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),l=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h=["allowDragging","animationSettings","buttons","closeOnEscape","content","cssClass","enablePersistence","enableResize","enableRtl","footerTemplate","header","height","isModal","locale","position","showCloseIcon","target","visible","width","zIndex","beforeClose","beforeOpen","close","created","drag","dragStart","dragStop","open","overlayClick","resizeStart","resizeStop","resizing"],d=["visible"],y=function(e){function n(){var n=e.call(this)||this;return n.propKeys=h,n.models=d,n.hasChildDirective=!0,n.hasInjectedModules=!1,n.tagMapper={"e-buttons":"e-dialogbutton"},n.tagNameMapper={},n.ej2Instances=new t.Dialog({}),n.ej2Instances._trigger=n.ej2Instances.trigger,n.ej2Instances.trigger=n.trigger,n.bindProperties(),n}return f(n,e),n.prototype.trigger=function(e,t){if("change"===e&&this.models&&0!==this.models.length){var n=this.models.toString().match(/checked|value/)||[],o=n[0];t&&n&&!r.isUndefined(t[o])&&this.$emit("modelchanged",t[o])}this.ej2Instances&&this.ej2Instances._trigger&&this.ej2Instances._trigger(e,t)},n.prototype.setProperties=function(e,t){var n=this;if(this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&0!==this.models.length){var o=[],r=!1;Object.keys(e).map(function(e){n.models.map(function(t){e!==t||/datasource/i.test(e)||(o.push(e),r=!0)})}),r&&o.map(function(t){n.$emit("update:"+t,e[t])})}},n.prototype.render=function(e){return e("div",this.$slots.default)},n.prototype.getButtons=function(e){return this.ej2Instances.getButtons(e)},n.prototype.hide=function(e){return this.ej2Instances.hide(e)},n.prototype.refreshPosition=function(){return this.ej2Instances.refreshPosition()},n.prototype.show=function(e){return this.ej2Instances.show(e)},n=l([o.EJComponentDecorator({props:h,model:{event:"modelchanged"}})],n)}(o.ComponentBase),g={name:"ejs-dialog",install:function(e){e.component(g.name,y),e.component(u.name,p),e.component(a.name,c)}},j=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),m=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},b=["animation","closeDelay","content","cssClass","enablePersistence","enableRtl","height","isSticky","locale","mouseTrail","offsetX","offsetY","openDelay","opensOn","position","showTipPointer","target","tipPointerPosition","width","afterClose","afterOpen","beforeClose","beforeCollision","beforeOpen","beforeRender","created","destroyed"],v=[],P=function(e){function n(){var n=e.call(this)||this;return n.propKeys=b,n.models=v,n.hasChildDirective=!1,n.hasInjectedModules=!1,n.tagMapper={},n.tagNameMapper={},n.ej2Instances=new t.Tooltip({}),n.bindProperties(),n}return j(n,e),n.prototype.render=function(e){return e("div",this.$slots.default)},n.prototype.close=function(e){return this.ej2Instances.close(e)},n.prototype.open=function(e,t){return this.ej2Instances.open(e,t)},n.prototype.refresh=function(e){return this.ej2Instances.refresh(e)},n=m([o.EJComponentDecorator({props:b})],n)}(o.ComponentBase),_={name:"ejs-tooltip",install:function(e){e.component(_.name,P)}};e.ButtonsDirective=c,e.DialogButtonDirective=p,e.ButtonsPlugin=a,e.DialogButtonPlugin=u,e.DialogComponent=y,e.DialogPlugin=g,e.TooltipComponent=P,e.TooltipPlugin=_,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-popups"),require("vue"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-popups","vue","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Popups,e.Vue,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,o,r){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;var s=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),i=function(e,t,n,o){var r,s=arguments.length,i=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(s<3?r(i):s>3?r(t,n,i):r(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){},t=i([o.EJComponentDecorator({})],t)}(n),a={name:"e-buttons",install:function(e){e.component(a.name,c)}},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){},t=i([o.EJComponentDecorator({})],t)}(n),u={name:"e-dialogbutton",install:function(e){e.component(u.name,p)}},l=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),f=function(e,t,n,o){var r,s=arguments.length,i=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(s<3?r(i):s>3?r(t,n,i):r(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i},h=["allowDragging","animationSettings","buttons","closeOnEscape","content","cssClass","enablePersistence","enableResize","enableRtl","footerTemplate","header","height","isModal","locale","position","showCloseIcon","target","visible","width","zIndex","beforeClose","beforeOpen","close","created","drag","dragStart","dragStop","open","overlayClick","resizeStart","resizeStop","resizing"],d=["visible"],y=function(e){function n(){var n=e.call(this)||this;return n.propKeys=h,n.models=d,n.hasChildDirective=!0,n.hasInjectedModules=!1,n.tagMapper={"e-buttons":"e-dialogbutton"},n.tagNameMapper={},n.ej2Instances=new t.Dialog({}),n.ej2Instances._trigger=n.ej2Instances.trigger,n.ej2Instances.trigger=n.trigger,n.bindProperties(),n.ej2Instances._setProperties=n.ej2Instances.setProperties,n.ej2Instances.setProperties=n.setProperties,n}return l(n,e),n.prototype.setProperties=function(e,t){var n=this;this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(o){t!==o||/datasource/i.test(t)||n.$emit("update:"+t,e[t])})})},n.prototype.trigger=function(e,t){if(("change"===e||"input"===e)&&this.models&&0!==this.models.length){var n=this.models.toString().match(/checked|value/)||[],o=n[0];t&&n&&!r.isUndefined(t[o])&&(this.$emit("update:"+o,t[o]),this.$emit("modelchanged",t[o]))}this.ej2Instances&&this.ej2Instances._trigger&&this.ej2Instances._trigger(e,t)},n.prototype.render=function(e){return e("div",this.$slots.default)},n.prototype.getButtons=function(e){return this.ej2Instances.getButtons(e)},n.prototype.hide=function(e){return this.ej2Instances.hide(e)},n.prototype.refreshPosition=function(){return this.ej2Instances.refreshPosition()},n.prototype.show=function(e){return this.ej2Instances.show(e)},n=f([o.EJComponentDecorator({props:h,model:{event:"modelchanged"}})],n)}(o.ComponentBase),j={name:"ejs-dialog",install:function(e){e.component(j.name,y),e.component(u.name,p),e.component(a.name,c)}},g=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),m=function(e,t,n,o){var r,s=arguments.length,i=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(s<3?r(i):s>3?r(t,n,i):r(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i},b=["animation","closeDelay","content","cssClass","enablePersistence","enableRtl","height","isSticky","locale","mouseTrail","offsetX","offsetY","openDelay","opensOn","position","showTipPointer","target","tipPointerPosition","width","afterClose","afterOpen","beforeClose","beforeCollision","beforeOpen","beforeRender","created","destroyed"],P=[],_=function(e){function n(){var n=e.call(this)||this;return n.propKeys=b,n.models=P,n.hasChildDirective=!1,n.hasInjectedModules=!1,n.tagMapper={},n.tagNameMapper={},n.ej2Instances=new t.Tooltip({}),n.bindProperties(),n.ej2Instances._setProperties=n.ej2Instances.setProperties,n.ej2Instances.setProperties=n.setProperties,n}return g(n,e),n.prototype.setProperties=function(e,t){var n=this;this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(o){t!==o||/datasource/i.test(t)||n.$emit("update:"+t,e[t])})})},n.prototype.render=function(e){return e("div",this.$slots.default)},n.prototype.close=function(e){return this.ej2Instances.close(e)},n.prototype.open=function(e,t){return this.ej2Instances.open(e,t)},n.prototype.refresh=function(e){return this.ej2Instances.refresh(e)},n=m([o.EJComponentDecorator({props:b})],n)}(o.ComponentBase),v={name:"ejs-tooltip",install:function(e){e.component(v.name,_)}};e.ButtonsDirective=c,e.DialogButtonDirective=p,e.ButtonsPlugin=a,e.DialogButtonPlugin=u,e.DialogComponent=y,e.DialogPlugin=j,e.TooltipComponent=_,e.TooltipPlugin=v,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ej2-vue-popups.umd.min.js.map |
@@ -79,18 +79,6 @@ import { Dialog, Tooltip } from '@syncfusion/ej2-popups'; | ||
this.ej2Instances.trigger = this.trigger; | ||
//this.ej2Instances._setProperties = this.ej2Instances.setProperties; | ||
//this.ej2Instances.setProperties = this.setProperties; | ||
this.bindProperties(); | ||
this.ej2Instances._setProperties = this.ej2Instances.setProperties; | ||
this.ej2Instances.setProperties = this.setProperties; | ||
} | ||
trigger(eventName, eventProp) { | ||
if (eventName === 'change' && this.models && (this.models.length !== 0)) { | ||
let key = this.models.toString().match(/checked|value/) || []; | ||
let propKey = key[0]; | ||
if (eventProp && key && !isUndefined(eventProp[propKey])) { | ||
this.$emit('modelchanged', eventProp[propKey]); | ||
} | ||
} | ||
if (this.ej2Instances && this.ej2Instances._trigger) { | ||
this.ej2Instances._trigger(eventName, eventProp); | ||
} | ||
} | ||
setProperties(prop, muteOnChange) { | ||
@@ -100,20 +88,24 @@ if (this.ej2Instances && this.ej2Instances._setProperties) { | ||
} | ||
if (prop && this.models && (this.models.length !== 0)) { | ||
let keys = Object.keys(prop); | ||
let emitKeys = []; | ||
let emitFlag = false; | ||
keys.map((key) => { | ||
if (prop && this.models && this.models.length) { | ||
Object.keys(prop).map((key) => { | ||
this.models.map((model) => { | ||
if ((key === model) && !(/datasource/i.test(key))) { | ||
emitKeys.push(key); | ||
emitFlag = true; | ||
this.$emit('update:' + key, prop[key]); | ||
} | ||
}); | ||
}); | ||
if (emitFlag) { | ||
emitKeys.map((propKey) => { | ||
this.$emit('update:' + propKey, prop[propKey]); | ||
}); | ||
} | ||
} | ||
trigger(eventName, eventProp) { | ||
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) { | ||
let key = this.models.toString().match(/checked|value/) || []; | ||
let propKey = key[0]; | ||
if (eventProp && key && !isUndefined(eventProp[propKey])) { | ||
this.$emit('update:' + propKey, eventProp[propKey]); | ||
this.$emit('modelchanged', eventProp[propKey]); | ||
} | ||
} | ||
if (this.ej2Instances && this.ej2Instances._trigger) { | ||
this.ej2Instances._trigger(eventName, eventProp); | ||
} | ||
} | ||
@@ -178,3 +170,19 @@ render(createElement) { | ||
this.bindProperties(); | ||
this.ej2Instances._setProperties = this.ej2Instances.setProperties; | ||
this.ej2Instances.setProperties = this.setProperties; | ||
} | ||
setProperties(prop, muteOnChange) { | ||
if (this.ej2Instances && this.ej2Instances._setProperties) { | ||
this.ej2Instances._setProperties(prop, muteOnChange); | ||
} | ||
if (prop && this.models && this.models.length) { | ||
Object.keys(prop).map((key) => { | ||
this.models.map((model) => { | ||
if ((key === model) && !(/datasource/i.test(key))) { | ||
this.$emit('update:' + key, prop[key]); | ||
} | ||
}); | ||
}); | ||
} | ||
} | ||
render(createElement) { | ||
@@ -181,0 +189,0 @@ return createElement('div', this.$slots.default); |
@@ -116,19 +116,7 @@ import { Dialog, Tooltip } from '@syncfusion/ej2-popups'; | ||
_this.ej2Instances.trigger = _this.trigger; | ||
//this.ej2Instances._setProperties = this.ej2Instances.setProperties; | ||
//this.ej2Instances.setProperties = this.setProperties; | ||
_this.bindProperties(); | ||
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties; | ||
_this.ej2Instances.setProperties = _this.setProperties; | ||
return _this; | ||
} | ||
DialogComponent.prototype.trigger = function (eventName, eventProp) { | ||
if (eventName === 'change' && this.models && (this.models.length !== 0)) { | ||
var key = this.models.toString().match(/checked|value/) || []; | ||
var propKey = key[0]; | ||
if (eventProp && key && !isUndefined(eventProp[propKey])) { | ||
this.$emit('modelchanged', eventProp[propKey]); | ||
} | ||
} | ||
if (this.ej2Instances && this.ej2Instances._trigger) { | ||
this.ej2Instances._trigger(eventName, eventProp); | ||
} | ||
}; | ||
DialogComponent.prototype.setProperties = function (prop, muteOnChange) { | ||
@@ -139,20 +127,24 @@ var _this = this; | ||
} | ||
if (prop && this.models && (this.models.length !== 0)) { | ||
var keys = Object.keys(prop); | ||
var emitKeys_1 = []; | ||
var emitFlag_1 = false; | ||
keys.map(function (key) { | ||
if (prop && this.models && this.models.length) { | ||
Object.keys(prop).map(function (key) { | ||
_this.models.map(function (model) { | ||
if ((key === model) && !(/datasource/i.test(key))) { | ||
emitKeys_1.push(key); | ||
emitFlag_1 = true; | ||
_this.$emit('update:' + key, prop[key]); | ||
} | ||
}); | ||
}); | ||
if (emitFlag_1) { | ||
emitKeys_1.map(function (propKey) { | ||
_this.$emit('update:' + propKey, prop[propKey]); | ||
}); | ||
} | ||
}; | ||
DialogComponent.prototype.trigger = function (eventName, eventProp) { | ||
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) { | ||
var key = this.models.toString().match(/checked|value/) || []; | ||
var propKey = key[0]; | ||
if (eventProp && key && !isUndefined(eventProp[propKey])) { | ||
this.$emit('update:' + propKey, eventProp[propKey]); | ||
this.$emit('modelchanged', eventProp[propKey]); | ||
} | ||
} | ||
if (this.ej2Instances && this.ej2Instances._trigger) { | ||
this.ej2Instances._trigger(eventName, eventProp); | ||
} | ||
}; | ||
@@ -232,4 +224,21 @@ DialogComponent.prototype.render = function (createElement) { | ||
_this.bindProperties(); | ||
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties; | ||
_this.ej2Instances.setProperties = _this.setProperties; | ||
return _this; | ||
} | ||
TooltipComponent.prototype.setProperties = function (prop, muteOnChange) { | ||
var _this = this; | ||
if (this.ej2Instances && this.ej2Instances._setProperties) { | ||
this.ej2Instances._setProperties(prop, muteOnChange); | ||
} | ||
if (prop && this.models && this.models.length) { | ||
Object.keys(prop).map(function (key) { | ||
_this.models.map(function (model) { | ||
if ((key === model) && !(/datasource/i.test(key))) { | ||
_this.$emit('update:' + key, prop[key]); | ||
} | ||
}); | ||
}); | ||
} | ||
}; | ||
TooltipComponent.prototype.render = function (createElement) { | ||
@@ -236,0 +245,0 @@ return createElement('div', this.$slots.default); |
{ | ||
"name": "@syncfusion/ej2-vue-popups", | ||
"version": "17.1.1-beta", | ||
"version": "17.1.32-beta", | ||
"description": "A package of Essential JS 2 popup components such as Dialog and Tooltip that is used to display information or messages in separate pop-ups. for Vue", | ||
@@ -54,17 +54,8 @@ "author": "Syncfusion Inc.", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~17.1.1-beta", | ||
"@syncfusion/ej2-vue-base": "~17.1.1-beta", | ||
"@syncfusion/ej2-popups": "17.1.1-beta" | ||
"@syncfusion/ej2-base": "~17.1.32-beta", | ||
"@syncfusion/ej2-vue-base": "~17.1.32-beta", | ||
"@syncfusion/ej2-popups": "17.1.32-beta" | ||
}, | ||
"devDependencies": { | ||
"awesome-typescript-loader": "^3.1.3", | ||
"source-map-loader": "^0.2.1", | ||
"@types/chai": "^3.4.28", | ||
"@types/es6-promise": "0.0.28", | ||
"@types/jasmine": "^2.2.29", | ||
"@types/jasmine-ajax": "^3.1.27", | ||
"@types/requirejs": "^2.1.26", | ||
"vue": "2.5.2 - 2.5.21" | ||
}, | ||
"devDependencies": {}, | ||
"sideEffects": false | ||
} |
@@ -21,6 +21,6 @@ import { ComponentBase } from '@syncfusion/ej2-vue-base'; | ||
constructor(); | ||
setProperties(prop: any, muteOnChange: boolean): void; | ||
trigger(eventName: string, eventProp: { | ||
[key: string]: Object; | ||
}): void; | ||
setProperties(prop: any, muteOnChange: boolean): void; | ||
render(createElement: any): any; | ||
@@ -27,0 +27,0 @@ getButtons(index?: number): undefined; |
@@ -45,19 +45,7 @@ var __extends = (this && this.__extends) || (function () { | ||
_this.ej2Instances.trigger = _this.trigger; | ||
//this.ej2Instances._setProperties = this.ej2Instances.setProperties; | ||
//this.ej2Instances.setProperties = this.setProperties; | ||
_this.bindProperties(); | ||
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties; | ||
_this.ej2Instances.setProperties = _this.setProperties; | ||
return _this; | ||
} | ||
DialogComponent.prototype.trigger = function (eventName, eventProp) { | ||
if (eventName === 'change' && this.models && (this.models.length !== 0)) { | ||
var key = this.models.toString().match(/checked|value/) || []; | ||
var propKey = key[0]; | ||
if (eventProp && key && !isUndefined(eventProp[propKey])) { | ||
this.$emit('modelchanged', eventProp[propKey]); | ||
} | ||
} | ||
if (this.ej2Instances && this.ej2Instances._trigger) { | ||
this.ej2Instances._trigger(eventName, eventProp); | ||
} | ||
}; | ||
DialogComponent.prototype.setProperties = function (prop, muteOnChange) { | ||
@@ -68,20 +56,24 @@ var _this = this; | ||
} | ||
if (prop && this.models && (this.models.length !== 0)) { | ||
var keys = Object.keys(prop); | ||
var emitKeys_1 = []; | ||
var emitFlag_1 = false; | ||
keys.map(function (key) { | ||
if (prop && this.models && this.models.length) { | ||
Object.keys(prop).map(function (key) { | ||
_this.models.map(function (model) { | ||
if ((key === model) && !(/datasource/i.test(key))) { | ||
emitKeys_1.push(key); | ||
emitFlag_1 = true; | ||
_this.$emit('update:' + key, prop[key]); | ||
} | ||
}); | ||
}); | ||
if (emitFlag_1) { | ||
emitKeys_1.map(function (propKey) { | ||
_this.$emit('update:' + propKey, prop[propKey]); | ||
}); | ||
} | ||
}; | ||
DialogComponent.prototype.trigger = function (eventName, eventProp) { | ||
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) { | ||
var key = this.models.toString().match(/checked|value/) || []; | ||
var propKey = key[0]; | ||
if (eventProp && key && !isUndefined(eventProp[propKey])) { | ||
this.$emit('update:' + propKey, eventProp[propKey]); | ||
this.$emit('modelchanged', eventProp[propKey]); | ||
} | ||
} | ||
if (this.ej2Instances && this.ej2Instances._trigger) { | ||
this.ej2Instances._trigger(eventName, eventProp); | ||
} | ||
}; | ||
@@ -88,0 +80,0 @@ DialogComponent.prototype.render = function (createElement) { |
@@ -21,2 +21,3 @@ import { ComponentBase } from '@syncfusion/ej2-vue-base'; | ||
constructor(); | ||
setProperties(prop: any, muteOnChange: boolean): void; | ||
render(createElement: any): any; | ||
@@ -23,0 +24,0 @@ close(animation: Object): void; |
@@ -42,4 +42,21 @@ var __extends = (this && this.__extends) || (function () { | ||
_this.bindProperties(); | ||
_this.ej2Instances._setProperties = _this.ej2Instances.setProperties; | ||
_this.ej2Instances.setProperties = _this.setProperties; | ||
return _this; | ||
} | ||
TooltipComponent.prototype.setProperties = function (prop, muteOnChange) { | ||
var _this = this; | ||
if (this.ej2Instances && this.ej2Instances._setProperties) { | ||
this.ej2Instances._setProperties(prop, muteOnChange); | ||
} | ||
if (prop && this.models && this.models.length) { | ||
Object.keys(prop).map(function (key) { | ||
_this.models.map(function (model) { | ||
if ((key === model) && !(/datasource/i.test(key))) { | ||
_this.$emit('update:' + key, prop[key]); | ||
} | ||
}); | ||
}); | ||
} | ||
}; | ||
TooltipComponent.prototype.render = function (createElement) { | ||
@@ -46,0 +63,0 @@ return createElement('div', this.$slots.default); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
382716
0
12093
+ Added@syncfusion/ej2-popups@17.1.32-beta(transitive)
- Removed@syncfusion/ej2-popups@17.1.1-beta(transitive)