Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-vue-dialogs

Package Overview
Dependencies
Maintainers
1
Versions
559
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 1.0.0-dev.202005070802 to 1.0.0-dev.202005081224

2

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

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoVueDialogs=e():t.KendoVueDialogs=e()}(window,(function(){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=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1);e.Dialog=o.Dialog;var r=n(3);e.DialogActionsBar=r.DialogActionsBar},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(4),i={name:"KendoDialog",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]},created:function(){this.titleId=this.generateTitleId()},methods:{handleCloseDialog:function(t){t.preventDefault(),this.$emit("close",{event:t,target:this})},handleKeyDown:function(t){t.keyCode===r.Keys.esc&&this.$listeners.close&&(t.preventDefault(),this.handleCloseDialog(t))},transformDimesion:function(t){return"string"==typeof t&&t.endsWith("px")?t:t+"px"},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")}))},generateTitleId:function(){return"dialog-title"+r.guid()}},render:function(t){var e=void 0!==this.$props.id?this.$props.id:this.titleId,n=this.$props,i=n.title,s=n.width,l=n.height,a=n.minWidth,u=n.dir,c=n.contentStyle,d=this.$props.titleRender?r.templateRendering.call(this,this.$props.titleRender,this.$listeners):null,f=this.$slots.default||[];s=this.transformDimesion(s),l=this.transformDimesion(l),a=this.transformDimesion(a);var p,g=this.getActionBarIndex(f);-1!==g&&(p=f[g],f.splice(g,1));var h=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":i||d?e:void 0,role:"dialog"},class:"k-widget k-window k-dialog",style:{width:s,height:l,minWidth:a}},[(i||d)&&t(o.DialogTitleBar,{attrs:{closeIcon:h,id:e,title:i,titleRender:d},on:{closebuttonclick:this.handleCloseDialog}}),t("div",{class:"k-content k-window-content k-dialog-content",style:c},[f]),p])])}};e.Dialog=i},function(t,e,n){"use strict";var o=function(){return(o=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)};Object.defineProperty(e,"__esModule",{value:!0});var r={props:{id:String,closeIcon:{type:Boolean,default:!0},title:String,titleRender:[String,Function,Object]},methods:{onCloseButtonClick:function(t){this.$emit("closebuttonclick",t)}},render:function(t){var e,n=this.$props,r=n.id,i=n.closeIcon,s=n.titleRender,l=n.title;if(s){var a=o({},s.listeners);e="slot"===s.type?s.render({props:this.$props,listeners:a,methods:a})[0]:"renderFunction"===s.type?s.render(t,l,this.$props,a):t(s.render,{props:{},on:a})}else e=l;return t("div",{class:"k-window-titlebar k-dialog-titlebar k-header",attrs:{id:r}},[t("div",{class:"k-window-title k-dialog-title"},[e]),t("div",{class:"k-window-actions k-dialog-actions"},[i&&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.DialogTitleBar=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.DialogActionsBar={render:function(t){return t("div",{class:"k-dialog-buttongroup k-dialog-button-layout-stretched"},[this.$slots.default])}}},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 p})),n.d(e,"canUseDOM",(function(){return s})),n.d(e,"focusFirstFocusableChild",(function(){return l})),n.d(e,"clone",(function(){return u})),n.d(e,"cloneArray",(function(){return f})),n.d(e,"cloneValue",(function(){return d})),n.d(e,"cloneObject",(function(){return c})),n.d(e,"cloneDate",(function(){return a})),n.d(e,"templateRendering",(function(){return g}));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},s=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),l=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 u(t){var e={};return c(t,e),e}function c(t,e){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];e[n]=d(o,e[n])}}function d(t,e){if(Array.isArray(t))return f(t);if(t instanceof Date)return a(t);if(t&&"object"==typeof t){var n=e||{};return c(t,n),n}return t}function f(t){return t.map((function(t){return d(t,void 0)}))}var p=function(){};function g(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){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoVueDialogs=e():t.KendoVueDialogs=e()}(window,(function(){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=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1);e.Dialog=o.Dialog;var r=n(3);e.DialogActionsBar=r.DialogActionsBar},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(4),i={name:"KendoDialog",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]},created:function(){this.titleId=this.generateTitleId()},methods:{handleCloseDialog:function(t){t.preventDefault(),this.$emit("close",{event:t,target:this})},handleKeyDown:function(t){t.keyCode===r.Keys.esc&&this.$listeners.close&&(t.preventDefault(),this.handleCloseDialog(t))},transformDimesion:function(t){return"string"==typeof t&&t.endsWith("px")?t:t+"px"},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("actions-bar")}))},generateTitleId:function(){return"dialog-title"+r.guid()}},render:function(t){var e=void 0!==this.$props.id?this.$props.id:this.titleId,n=this.$props,i=n.title,s=n.width,l=n.height,a=n.minWidth,u=n.dir,c=n.contentStyle,d=this.$props.titleRender?r.templateRendering.call(this,this.$props.titleRender,this.$listeners):null,f=this.$slots.default||[];s=this.transformDimesion(s),l=this.transformDimesion(l),a=this.transformDimesion(a);var p,g=this.getActionBarIndex(f);-1!==g&&(p=f[g],f.splice(g,1));var h=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":i||d?e:void 0,role:"dialog"},class:"k-widget k-window k-dialog",style:{width:s,height:l,minWidth:a}},[(i||d)&&t(o.DialogTitleBar,{attrs:{closeIcon:h,id:e,title:i,titleRender:d},on:{closebuttonclick:this.handleCloseDialog}}),t("div",{class:"k-content k-window-content k-dialog-content",style:c},[f]),p])])}};e.Dialog=i},function(t,e,n){"use strict";var o=function(){return(o=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)};Object.defineProperty(e,"__esModule",{value:!0});var r={props:{id:String,closeIcon:{type:Boolean,default:!0},title:String,titleRender:[String,Function,Object]},methods:{onCloseButtonClick:function(t){this.$emit("closebuttonclick",t)}},render:function(t){var e,n=this.$props,r=n.id,i=n.closeIcon,s=n.titleRender,l=n.title;if(s){var a=o({},s.listeners);e="slot"===s.type?s.render({props:this.$props,listeners:a,methods:a})[0]:"renderFunction"===s.type?s.render(t,l,this.$props,a):t(s.render,{props:{},on:a})}else e=l;return t("div",{class:"k-window-titlebar k-dialog-titlebar k-header",attrs:{id:r}},[t("div",{class:"k-window-title k-dialog-title"},[e]),t("div",{class:"k-window-actions k-dialog-actions"},[i&&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.DialogTitleBar=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.DialogActionsBar={render:function(t){return t("div",{class:"k-dialog-buttongroup k-dialog-button-layout-stretched"},[this.$slots.default])}}},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 p})),n.d(e,"canUseDOM",(function(){return s})),n.d(e,"focusFirstFocusableChild",(function(){return l})),n.d(e,"clone",(function(){return u})),n.d(e,"cloneArray",(function(){return f})),n.d(e,"cloneValue",(function(){return d})),n.d(e,"cloneObject",(function(){return c})),n.d(e,"cloneDate",(function(){return a})),n.d(e,"templateRendering",(function(){return g}));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},s=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),l=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 u(t){var e={};return c(t,e),e}function c(t,e){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];e[n]=d(o,e[n])}}function d(t,e){if(Array.isArray(t))return f(t);if(t instanceof Date)return a(t);if(t&&"object"==typeof t){var n=e||{};return c(t,n),n}return t}function f(t){return t.map((function(t){return d(t,void 0)}))}var p=function(){};function g(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}}}}])}));

@@ -44,3 +44,3 @@ import { DialogTitleBar } from './DialogTitleBar';

var actionBarIndex = children.findIndex(function (child) {
return child && child.tag && child.tag.toLowerCase().indexOf('dialogactionsbar') !== -1 || child.componentOptions && child.componentOptions.tag && child.componentOptions.tag.toLowerCase().indexOf('kendo-dialog-actions-bar') !== -1;
return child && child.tag && child.tag.toLowerCase().indexOf('dialogactionsbar') !== -1 || child.componentOptions && child.componentOptions.tag && child.componentOptions.tag.toLowerCase().indexOf('actions-bar') !== -1;
});

@@ -47,0 +47,0 @@ return actionBarIndex;

@@ -52,3 +52,3 @@ "use strict";

var actionBarIndex = children.findIndex(function (child) {
return child && child.tag && child.tag.toLowerCase().indexOf('dialogactionsbar') !== -1 || child.componentOptions && child.componentOptions.tag && child.componentOptions.tag.toLowerCase().indexOf('kendo-dialog-actions-bar') !== -1;
return child && child.tag && child.tag.toLowerCase().indexOf('dialogactionsbar') !== -1 || child.componentOptions && child.componentOptions.tag && child.componentOptions.tag.toLowerCase().indexOf('actions-bar') !== -1;
});

@@ -55,0 +55,0 @@ return actionBarIndex;

@@ -25,3 +25,3 @@ ---

</span>
<k-dialog v-if="visibleDialog" :title="'Please confirm'" @close="toggleDialog">
<kdialog v-if="visibleDialog" :title="'Please confirm'" @close="toggleDialog">
<p :style="{ margin: '25px', textAlign: 'center' }">Are you sure you want to continue?</p>

@@ -32,3 +32,3 @@ <dialog-actions-bar>

</dialog-actions-bar>
</k-dialog>
</kdialog>
</div>

@@ -39,3 +39,3 @@ </div>

import { Dialog, DialogActionsBar } from '@progress/kendo-vue-dialogs';
Vue.component('k-dialog', Dialog);
Vue.component('kdialog', Dialog);
Vue.component('dialog-actions-bar', DialogActionsBar);

@@ -42,0 +42,0 @@

@@ -35,3 +35,3 @@ ---

{% meta %}
{% meta height:450 %}
{% embed_file dialog/title/title-template/main.html %}

@@ -43,3 +43,3 @@ {% embed_file dialog/title/title-template/main.js %}

{% meta %}
{% meta height:450 %}
{% embed_file dialog/title/no-title/main.html %}

@@ -46,0 +46,0 @@ {% embed_file dialog/title/no-title/main.js %}

{
"name": "@progress/kendo-vue-dialogs",
"description": "KendoVue Dialogs package",
"version": "1.0.0-dev.202005070802",
"version": "1.0.0-dev.202005081224",
"repository": {

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

"dependencies": {
"@progress/kendo-vue-common": "1.0.0-dev.202005070802"
"@progress/kendo-vue-common": "1.0.0-dev.202005081224"
},

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

Sorry, the diff of this file is not supported yet

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