New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-vue-dialogs

Package Overview
Dependencies
Maintainers
1
Versions
568
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-vue-dialogs - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4-dev.202004270553

2

dist/cdn/js/kendo-vue-dialogs.js

@@ -7,2 +7,2 @@ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports.KendoVueDialogs=e(require("vue")):t.KendoVueDialogs=e(t.Vue)}(window,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"createDecorator",(function(){return p})),n.d(e,"mixins",(function(){return d}));var o=n(0),r=n.n(o);

*/
function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function f(t,e){l(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){l(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){l(t,e,n)}))}function l(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(o){var r=n?Reflect.getOwnMetadata(o,e,n):Reflect.getOwnMetadata(o,e);n?Reflect.defineMetadata(o,r,t,n):Reflect.defineMetadata(o,r,t)}))}var s={__proto__:[]}instanceof Array;function p(t){return function(e,n,o){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof o&&(o=void 0),r.__decorators__.push((function(e){return t(e,n,o)}))}}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.a.extend({mixins:e})}function y(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var o in t.$options.props)t.hasOwnProperty(o)||n.push(o);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var o=new e;e.prototype._init=n;var r={};return Object.keys(o).forEach((function(t){void 0!==o[t]&&(r[t]=o[t])})),r}var b=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(b.indexOf(t)>-1)e[t]=n[t];else{var o=Object.getOwnPropertyDescriptor(n,t);void 0!==o.value?"function"==typeof o.value?(e.methods||(e.methods={}))[t]=o.value:(e.mixins||(e.mixins=[])).push({data:function(){return c({},t,o.value)}}):(o.get||o.set)&&((e.computed||(e.computed={}))[t]={get:o.get,set:o.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return y(this,t)}});var o=t.__decorators__;o&&(o.forEach((function(t){return t(e)})),delete t.__decorators__);var i=Object.getPrototypeOf(t.prototype),u=i instanceof r.a?i.constructor:r.a,l=u.extend(e);return v(l,t,u),a()&&f(l,t),l}var h={prototype:!0,arguments:!0,callee:!0,caller:!0};function v(t,e,n){Object.getOwnPropertyNames(e).forEach((function(o){if(!h[o]){var r=Object.getOwnPropertyDescriptor(t,o);if(!r||r.configurable){var c,u,a=Object.getOwnPropertyDescriptor(e,o);if(!s){if("cid"===o)return;var f=Object.getOwnPropertyDescriptor(n,o);if(c=a.value,u=i(c),null!=c&&("object"===u||"function"===u)&&f&&f.value===a.value)return}0,Object.defineProperty(t,o,a)}}}))}function m(t){return"function"==typeof t?g(t):function(e){return g(e,t)}}m.registerHooks=function(t){b.push.apply(b,u(t))},e.default=m},function(t,e,n){"use strict";n.r(e),n.d(e,"classNames",(function(){return o})),n.d(e,"guid",(function(){return r})),n.d(e,"Keys",(function(){return i})),n.d(e,"noop",(function(){return y})),n.d(e,"canUseDOM",(function(){return c})),n.d(e,"focusFirstFocusableChild",(function(){return u})),n.d(e,"clone",(function(){return f})),n.d(e,"cloneArray",(function(){return p})),n.d(e,"cloneValue",(function(){return s})),n.d(e,"cloneObject",(function(){return l})),n.d(e,"cloneDate",(function(){return a})),n.d(e,"VueComponent",(function(){return h})),n.d(e,"templateRendering",(function(){return v}));var o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?o.apply(void 0,t):"object"==typeof t?Object.keys(t).map((function(e,n){return t[n]||t[e]&&e||null})).filter((function(t){return null!==t})).join(" "):t})).filter((function(t){return!!t})).join(" ")},r=function(){var t,e,n="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(n+="-"),n+=(12===t?4:16===t?3&e|8:e).toString(16);return n},i={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},c=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),u=function(t){if(t){var e=t.querySelectorAll('input, [tabindex]:not([tabindex="-1"])');e.length&&e[0].focus&&e[0].focus()}},a=function(t){return t?new Date(t.getTime()):null};function f(t){var e={};return l(t,e),e}function l(t,e){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];e[n]=s(o,e[n])}}function s(t,e){if(Array.isArray(t))return p(t);if(t instanceof Date)return a(t);if(t&&"object"==typeof t){var n=e||{};return l(t,n),n}return t}function p(t){return t.map((function(t){return s(t,void 0)}))}var d,y=function(){},b=n(0),g=(d=function(t,e){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return g(e,t),e}(n.n(b).a);function v(t,e){if(!t)return null;var n=this.$scopedSlots[t]||(t.toLowerCase?this.$scopedSlots[t.toLowerCase()]:null);return"string"==typeof t&&n?{type:"slot",render:n,listeners:e}:"string"==typeof t||"object"==typeof t||"function"==typeof t&&t.component?{type:"component",render:t,listeners:e}:{type:"renderFunction",render:t,listeners:e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(4);e.Dialog=o.Dialog;var r=n(6);e.DialogActionsBar=r.DialogActionsBar},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t,e,n,o){var i,c=arguments.length,u=c<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(u=(c<3?i(u):c>3?i(e,n,u):i(e,n))||u);return c>3&&u&&Object.defineProperty(e,n,u),u},u=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=u(n(1)),f=n(5),l=n(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.titleId=e.generateTitleId(),e}return i(e,t),e.prototype.render=function(t){var e=void 0!==this.$props.id?this.$props.id:this.titleId,n=this.$props,o=n.title,r=n.width,i=n.height,c=n.minWidth,u=n.dir,a=n.contentStyle,s=this.$props.titleRender?l.templateRendering.call(this,this.$props.titleRender,this.$listeners):null,p=this.$slots.default||[];r=this.transformDimesion(r),i=this.transformDimesion(i),c=this.transformDimesion(c);var d,y=this.getActionBarIndex(p);-1!==y&&(d=p[y],p.splice(y,1));var b=void 0===this.$props.closeIcon||this.$props.closeIcon;return t("div",{class:"k-dialog-wrapper",on:{keydown:this.handleKeyDown},attrs:{tabIndex:0,dir:u}},[t("div",{class:"k-overlay"}),t("div",{attrs:{"aria-labelledby":o||s?e:void 0,role:"dialog"},class:"k-widget k-window k-dialog",style:{width:r,height:i,minWidth:c}},[(o||s)&&t(f.DialogTitleBar,{attrs:{closeIcon:b,id:e,title:o,titleRender:s},on:{closebuttonclick:this.handleCloseDialog}}),t("div",{class:"k-content k-window-content k-dialog-content",style:a},[p]),d])])},e.prototype.handleCloseDialog=function(t){t.preventDefault(),this.$emit("close",{event:t,target:this})},e.prototype.handleKeyDown=function(t){t.keyCode===l.Keys.esc&&this.$listeners.close&&(t.preventDefault(),this.handleCloseDialog(t))},e.prototype.transformDimesion=function(t){return"string"==typeof t&&t.endsWith("px")?t:t+"px"},e.prototype.getActionBarIndex=function(t){return t.findIndex((function(t){return t&&t.tag&&-1!==t.tag.toLowerCase().indexOf("dialogactionsbar")||t.componentOptions&&t.componentOptions.tag&&-1!==t.componentOptions.tag.toLowerCase().indexOf("kendo-dialog-actions-bar")}))},e.prototype.generateTitleId=function(){return"dialog-title"+l.guid()},e.propTypes={},e=c([a.default({props:{title:String,titleRender:[String,Function,Object],id:String,dir:String,closeIcon:{type:Boolean,default:!0},width:[String,Number],height:[String,Number],minWidth:[String,Number]}})],e)}(l.VueComponent);e.Dialog=s},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(){return(c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},u=function(t,e,n,o){var i,c=arguments.length,u=c<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(u=(c<3?i(u):c>3?i(e,n,u):i(e,n))||u);return c>3&&u&&Object.defineProperty(e,n,u),u},a=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=a(n(1)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.onCloseButtonClick=function(t){this.$emit("closebuttonclick",t)},e.prototype.render=function(t){var e,n=this.$props,o=n.id,r=n.closeIcon,i=n.titleRender,u=n.title;if(i){var a=c({},i.listeners);e="slot"===i.type?i.render({props:this.$props,listeners:a,methods:a})[0]:"renderFunction"===i.type?i.render(t,u,this.$props,a):t(i.render,{props:{},on:a})}else e=u;return t("div",{class:"k-window-titlebar k-dialog-titlebar k-header",attrs:{id:o}},[t("div",{class:"k-window-title k-dialog-title"},[e]),t("div",{class:"k-window-actions k-dialog-actions"},[r&&t("a",{attrs:{href:"#",role:"button","aria-label":"Close"},on:{click:this.onCloseButtonClick},class:"k-button k-bare k-button-icon k-window-action k-dialog-action k-dialog-close"},[t("span",{class:"k-icon k-i-x"})])])])},e=u([f.default({props:{id:String,closeIcon:{type:Boolean,default:!0},title:String,titleRender:[String,Function,Object]}})],e)}(n(2).VueComponent);e.DialogTitleBar=l},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t,e,n,o){var i,c=arguments.length,u=c<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(u=(c<3?i(u):c>3?i(e,n,u):i(e,n))||u);return c>3&&u&&Object.defineProperty(e,n,u),u},u=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=u(n(1)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(t){return t("div",{class:"k-dialog-buttongroup k-dialog-button-layout-stretched"},[this.$slots.default])},e=c([a.default({})],e)}(n(2).VueComponent);e.DialogActionsBar=f}])}));
function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function f(t,e){l(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){l(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){l(t,e,n)}))}function l(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(o){var r=n?Reflect.getOwnMetadata(o,e,n):Reflect.getOwnMetadata(o,e);n?Reflect.defineMetadata(o,r,t,n):Reflect.defineMetadata(o,r,t)}))}var s={__proto__:[]}instanceof Array;function p(t){return function(e,n,o){var r="function"==typeof e?e:e.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof o&&(o=void 0),r.__decorators__.push((function(e){return t(e,n,o)}))}}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.a.extend({mixins:e})}function y(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var o in t.$options.props)t.hasOwnProperty(o)||n.push(o);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var o=new e;e.prototype._init=n;var r={};return Object.keys(o).forEach((function(t){void 0!==o[t]&&(r[t]=o[t])})),r}var b=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(b.indexOf(t)>-1)e[t]=n[t];else{var o=Object.getOwnPropertyDescriptor(n,t);void 0!==o.value?"function"==typeof o.value?(e.methods||(e.methods={}))[t]=o.value:(e.mixins||(e.mixins=[])).push({data:function(){return c({},t,o.value)}}):(o.get||o.set)&&((e.computed||(e.computed={}))[t]={get:o.get,set:o.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return y(this,t)}});var o=t.__decorators__;o&&(o.forEach((function(t){return t(e)})),delete t.__decorators__);var i=Object.getPrototypeOf(t.prototype),u=i instanceof r.a?i.constructor:r.a,l=u.extend(e);return v(l,t,u),a()&&f(l,t),l}var h={prototype:!0,arguments:!0,callee:!0,caller:!0};function v(t,e,n){Object.getOwnPropertyNames(e).forEach((function(o){if(!h[o]){var r=Object.getOwnPropertyDescriptor(t,o);if(!r||r.configurable){var c,u,a=Object.getOwnPropertyDescriptor(e,o);if(!s){if("cid"===o)return;var f=Object.getOwnPropertyDescriptor(n,o);if(c=a.value,u=i(c),null!=c&&("object"===u||"function"===u)&&f&&f.value===a.value)return}0,Object.defineProperty(t,o,a)}}}))}function m(t){return"function"==typeof t?g(t):function(e){return g(e,t)}}m.registerHooks=function(t){b.push.apply(b,u(t))},e.default=m},function(t,e,n){"use strict";n.r(e),n.d(e,"classNames",(function(){return o})),n.d(e,"guid",(function(){return r})),n.d(e,"Keys",(function(){return i})),n.d(e,"noop",(function(){return y})),n.d(e,"canUseDOM",(function(){return c})),n.d(e,"focusFirstFocusableChild",(function(){return u})),n.d(e,"clone",(function(){return f})),n.d(e,"cloneArray",(function(){return p})),n.d(e,"cloneValue",(function(){return s})),n.d(e,"cloneObject",(function(){return l})),n.d(e,"cloneDate",(function(){return a})),n.d(e,"VueComponent",(function(){return h})),n.d(e,"templateRendering",(function(){return v}));var o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?o.apply(void 0,t):"object"==typeof t?Object.keys(t).map((function(e,n){return t[n]||t[e]&&e||null})).filter((function(t){return null!==t})).join(" "):t})).filter((function(t){return!!t})).join(" ")},r=function(){var t,e,n="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(n+="-"),n+=(12===t?4:16===t?3&e|8:e).toString(16);return n},i={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},c=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),u=function(t){if(t){var e=t.querySelectorAll('input, [tabindex]:not([tabindex="-1"])');e.length&&e[0].focus&&e[0].focus()}},a=function(t){return t?new Date(t.getTime()):null};function f(t){var e={};return l(t,e),e}function l(t,e){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];e[n]=s(o,e[n])}}function s(t,e){if(Array.isArray(t))return p(t);if(t instanceof Date)return a(t);if(t&&"object"==typeof t){var n=e||{};return l(t,n),n}return t}function p(t){return t.map((function(t){return s(t,void 0)}))}var d,y=function(){},b=n(0),g=(d=function(t,e){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return g(e,t),e}(n.n(b).a);function v(t,e){if(t){var n=this.$scopedSlots[t]||(t.toLowerCase?this.$scopedSlots[t.toLowerCase()]:null);return"string"==typeof t&&n?{type:"slot",render:n,listeners:e}:"string"==typeof t||"object"==typeof t||"function"==typeof t&&t.component?{type:"component",render:t,listeners:e}:{type:"renderFunction",render:t,listeners:e}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(4);e.Dialog=o.Dialog;var r=n(6);e.DialogActionsBar=r.DialogActionsBar},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t,e,n,o){var i,c=arguments.length,u=c<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(u=(c<3?i(u):c>3?i(e,n,u):i(e,n))||u);return c>3&&u&&Object.defineProperty(e,n,u),u},u=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=u(n(1)),f=n(5),l=n(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.titleId=e.generateTitleId(),e}return i(e,t),e.prototype.render=function(t){var e=void 0!==this.$props.id?this.$props.id:this.titleId,n=this.$props,o=n.title,r=n.width,i=n.height,c=n.minWidth,u=n.dir,a=n.contentStyle,s=this.$props.titleRender?l.templateRendering.call(this,this.$props.titleRender,this.$listeners):null,p=this.$slots.default||[];r=this.transformDimesion(r),i=this.transformDimesion(i),c=this.transformDimesion(c);var d,y=this.getActionBarIndex(p);-1!==y&&(d=p[y],p.splice(y,1));var b=void 0===this.$props.closeIcon||this.$props.closeIcon;return t("div",{class:"k-dialog-wrapper",on:{keydown:this.handleKeyDown},attrs:{tabIndex:0,dir:u}},[t("div",{class:"k-overlay"}),t("div",{attrs:{"aria-labelledby":o||s?e:void 0,role:"dialog"},class:"k-widget k-window k-dialog",style:{width:r,height:i,minWidth:c}},[(o||s)&&t(f.DialogTitleBar,{attrs:{closeIcon:b,id:e,title:o,titleRender:s},on:{closebuttonclick:this.handleCloseDialog}}),t("div",{class:"k-content k-window-content k-dialog-content",style:a},[p]),d])])},e.prototype.handleCloseDialog=function(t){t.preventDefault(),this.$emit("close",{event:t,target:this})},e.prototype.handleKeyDown=function(t){t.keyCode===l.Keys.esc&&this.$listeners.close&&(t.preventDefault(),this.handleCloseDialog(t))},e.prototype.transformDimesion=function(t){return"string"==typeof t&&t.endsWith("px")?t:t+"px"},e.prototype.getActionBarIndex=function(t){return t.findIndex((function(t){return t&&t.tag&&-1!==t.tag.toLowerCase().indexOf("dialogactionsbar")||t.componentOptions&&t.componentOptions.tag&&-1!==t.componentOptions.tag.toLowerCase().indexOf("kendo-dialog-actions-bar")}))},e.prototype.generateTitleId=function(){return"dialog-title"+l.guid()},e.propTypes={},e=c([a.default({props:{title:String,titleRender:[String,Function,Object],id:String,dir:String,closeIcon:{type:Boolean,default:!0},width:[String,Number],height:[String,Number],minWidth:[String,Number]}})],e)}(l.VueComponent);e.Dialog=s},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(){return(c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},u=function(t,e,n,o){var i,c=arguments.length,u=c<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(u=(c<3?i(u):c>3?i(e,n,u):i(e,n))||u);return c>3&&u&&Object.defineProperty(e,n,u),u},a=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=a(n(1)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.onCloseButtonClick=function(t){this.$emit("closebuttonclick",t)},e.prototype.render=function(t){var e,n=this.$props,o=n.id,r=n.closeIcon,i=n.titleRender,u=n.title;if(i){var a=c({},i.listeners);e="slot"===i.type?i.render({props:this.$props,listeners:a,methods:a})[0]:"renderFunction"===i.type?i.render(t,u,this.$props,a):t(i.render,{props:{},on:a})}else e=u;return t("div",{class:"k-window-titlebar k-dialog-titlebar k-header",attrs:{id:o}},[t("div",{class:"k-window-title k-dialog-title"},[e]),t("div",{class:"k-window-actions k-dialog-actions"},[r&&t("a",{attrs:{href:"#",role:"button","aria-label":"Close"},on:{click:this.onCloseButtonClick},class:"k-button k-bare k-button-icon k-window-action k-dialog-action k-dialog-close"},[t("span",{class:"k-icon k-i-x"})])])])},e=u([f.default({props:{id:String,closeIcon:{type:Boolean,default:!0},title:String,titleRender:[String,Function,Object]}})],e)}(n(2).VueComponent);e.DialogTitleBar=l},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t,e,n,o){var i,c=arguments.length,u=c<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(u=(c<3?i(u):c>3?i(e,n,u):i(e,n))||u);return c>3&&u&&Object.defineProperty(e,n,u),u},u=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=u(n(1)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(t){return t("div",{class:"k-dialog-buttongroup k-dialog-button-layout-stretched"},[this.$slots.default])},e=c([a.default({})],e)}(n(2).VueComponent);e.DialogActionsBar=f}])}));
{
"name": "@progress/kendo-vue-dialogs",
"description": "KendoVue Dialogs package",
"version": "0.5.3",
"version": "0.5.4-dev.202004270553",
"repository": {

@@ -40,3 +40,3 @@ "type": "git",

"dependencies": {
"@progress/kendo-vue-common": "0.5.3"
"@progress/kendo-vue-common": "0.5.4-dev.202004270553"
},

@@ -43,0 +43,0 @@ "author": "Progress",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc