@progress/kendo-react-dialogs
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):"object"==typeof exports?exports.KendoReactDialogs=t(require("react"),require("prop-types")):e.KendoReactDialogs=t(e.React,e.PropTypes)}(window,function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.DialogActionsBar=function(e){var t=e.children;return o.createElement("div",{className:"k-button-group k-dialog-buttongroup k-dialog-button-layout-stretched"},t)}},function(e,t,n){"use strict";n.r(t);var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return!0!==e&&!!e}).map(function(e){return Array.isArray(e)?o.apply(void 0,e):"object"==typeof e?Object.keys(e).map(function(t,n){return e[n]||e[t]&&t||null}).filter(function(e){return null!==e}).join(" "):e}).filter(function(e){return!!e}).join(" ")},r=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).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},a=function(){},l=n(0),c=n(1),u=function(){var 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])};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){function t(t){var n=e.call(this,t)||this;return n.handleFocus=function(e){n.setState({focused:!0})},n.handleBlur=function(e){n.setState({focused:!1})},n.state={focused:!1},n}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.id,r=e.className,i=e.value,a=e.placeholder,c=e.valid,u=e.style,s=o({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(i||a),"k-state-invalid":!c&&void 0!==c},r);return l.createElement("span",{className:s,onFocus:this.handleFocus,onBlur:this.handleBlur,style:u},this.props.children,t?n?l.createElement("label",{htmlFor:n,className:"k-label"},t):l.createElement("span",{className:"k-label"},t):null)},t.propTypes={label:c.string,id:c.string,value:c.string,placeholder:c.string,valid:c.bool},t}(l.Component);n.d(t,"classNames",function(){return o}),n.d(t,"guid",function(){return r}),n.d(t,"Keys",function(){return i}),n.d(t,"noop",function(){return a}),n.d(t,"FloatingLabel",function(){return s})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.DialogTitleBar=function(e){var t=e.children,n=e.onCloseButtonClick,r=e.id;return o.createElement("div",{className:"k-window-titlebar k-dialog-titlebar k-header",id:r},o.createElement("div",{className:"k-window-title k-dialog-title"},t),o.createElement("div",{className:"k-window-actions k-dialog-actions"},o.createElement("a",{href:"#",role:"button","aria-label":"Close",onClick:n,className:"k-button k-bare k-button-icon k-window-action k-dialog-action k-dialog-close"},o.createElement("span",{className:"k-icon k-i-x"}))))}},function(e,t,n){"use strict";var o=this&&this.__extends||function(){var 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])};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)}}(),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),l=n(4),c=n(2),u=n(3),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.titleId=t.generateTitleId(),t.handleCloseDialog=function(e){if(e.preventDefault(),t.props.onClose){var n={syntheticEvent:e,nativeEvent:e.nativeEvent,target:t};t.props.onClose.call(void 0,n)}},t.handleKeyDown=function(e){27===e.keyCode&&t.props.onClose&&(e.preventDefault(),t.handleCloseDialog(e))},t}return o(t,e),t.prototype.render=function(){var e=void 0!==this.props.id?this.props.id:this.titleId,t=this.props,n=t.title,o=t.width,a=t.height,c=t.children,u=t.minWidth,s=i.Children.toArray(c),p=this.getContent(s),d=this.getActionBar(s),f=n?{"aria-labelledby":e}:null;return i.createElement("div",{className:"k-dialog-wrapper",onKeyDown:this.handleKeyDown,tabIndex:0},i.createElement("div",{className:"k-overlay"}),i.createElement("div",r({},f,{className:"k-widget k-window k-dialog",role:"dialog",style:{width:o,height:a,minWidth:u}}),this.props.title&&i.createElement(l.DialogTitleBar,{onCloseButtonClick:this.handleCloseDialog,id:e},n),i.createElement("div",{className:"k-content k-window-content k-dialog-content"},p),d))},t.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===c.DialogActionsBar})},t.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==c.DialogActionsBar})},t.prototype.generateTitleId=function(){return"dialog-title"+u.guid()},t.propTypes={title:a.any,id:a.string,width:a.oneOfType([a.number,a.string]),height:a.oneOfType([a.number,a.string]),minWidth:a.oneOfType([a.number,a.string])},t}(i.Component);t.Dialog=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(5);t.Dialog=o.Dialog;var r=n(2);t.DialogActionsBar=r.DialogActionsBar}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):"object"==typeof exports?exports.KendoReactDialogs=t(require("react"),require("prop-types")):e.KendoReactDialogs=t(e.React,e.PropTypes)}(window,function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.DialogActionsBar=function(e){var t=e.children;return o.createElement("div",{className:"k-button-group k-dialog-buttongroup k-dialog-button-layout-stretched"},t)}},function(e,t,n){"use strict";n.r(t);var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return!0!==e&&!!e}).map(function(e){return Array.isArray(e)?o.apply(void 0,e):"object"==typeof e?Object.keys(e).map(function(t,n){return e[n]||e[t]&&t||null}).filter(function(e){return null!==e}).join(" "):e}).filter(function(e){return!!e}).join(" ")},r=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).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},a=function(){},l=n(0),c=n(1),u=function(){var 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])};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){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={focused:!1},t.handleFocus=function(e){t.setState({focused:!0})},t.handleBlur=function(e){t.setState({focused:!1})},t}return u(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.id,r=e.className,i=e.value,a=e.placeholder,c=e.valid,u=e.style,s=o({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(i||a),"k-state-invalid":!c&&void 0!==c},r);return l.createElement("span",{className:s,onFocus:this.handleFocus,onBlur:this.handleBlur,style:u},this.props.children,t?n?l.createElement("label",{htmlFor:n,className:"k-label"},t):l.createElement("span",{className:"k-label"},t):null)},t.propTypes={label:c.string,id:c.string,value:c.string,placeholder:c.string,valid:c.bool},t}(l.Component);n.d(t,"classNames",function(){return o}),n.d(t,"guid",function(){return r}),n.d(t,"Keys",function(){return i}),n.d(t,"noop",function(){return a}),n.d(t,"FloatingLabel",function(){return s})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.DialogTitleBar=function(e){var t=e.children,n=e.onCloseButtonClick,r=e.id;return o.createElement("div",{className:"k-window-titlebar k-dialog-titlebar k-header",id:r},o.createElement("div",{className:"k-window-title k-dialog-title"},t),o.createElement("div",{className:"k-window-actions k-dialog-actions"},o.createElement("a",{href:"#",role:"button","aria-label":"Close",onClick:n,className:"k-button k-bare k-button-icon k-window-action k-dialog-action k-dialog-close"},o.createElement("span",{className:"k-icon k-i-x"}))))}},function(e,t,n){"use strict";var o=this&&this.__extends||function(){var 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])};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)}}(),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),l=n(4),c=n(2),u=n(3),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.titleId=t.generateTitleId(),t.handleCloseDialog=function(e){if(e.preventDefault(),t.props.onClose){var n={syntheticEvent:e,nativeEvent:e.nativeEvent,target:t};t.props.onClose.call(void 0,n)}},t.handleKeyDown=function(e){27===e.keyCode&&t.props.onClose&&(e.preventDefault(),t.handleCloseDialog(e))},t}return o(t,e),t.prototype.render=function(){var e=void 0!==this.props.id?this.props.id:this.titleId,t=this.props,n=t.title,o=t.width,a=t.height,c=t.children,u=t.minWidth,s=i.Children.toArray(c),p=this.getContent(s),d=this.getActionBar(s),f=n?{"aria-labelledby":e}:null;return i.createElement("div",{className:"k-dialog-wrapper",onKeyDown:this.handleKeyDown,tabIndex:0},i.createElement("div",{className:"k-overlay"}),i.createElement("div",r({},f,{className:"k-widget k-window k-dialog",role:"dialog",style:{width:o,height:a,minWidth:u}}),this.props.title&&i.createElement(l.DialogTitleBar,{onCloseButtonClick:this.handleCloseDialog,id:e},n),i.createElement("div",{className:"k-content k-window-content k-dialog-content"},p),d))},t.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===c.DialogActionsBar})},t.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==c.DialogActionsBar})},t.prototype.generateTitleId=function(){return"dialog-title"+u.guid()},t.propTypes={title:a.any,id:a.string,width:a.oneOfType([a.number,a.string]),height:a.oneOfType([a.number,a.string]),minWidth:a.oneOfType([a.number,a.string])},t}(i.Component);t.Dialog=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(5);t.Dialog=o.Dialog;var r=n(2);t.DialogActionsBar=r.DialogActionsBar}])}); |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-react-dialogs",["react","@progress/kendo-react-common","prop-types"],function(i){var n,o,r;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){o=t(e)},function(e){r=t(e)}],execute:function(){!function(n){var o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.DialogActionsBar=function(e){var t=e.children;return o.createElement("div",{className:"k-button-group k-dialog-buttongroup k-dialog-button-layout-stretched"},t)}},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.DialogTitleBar=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.id;return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar k-header",id:o},r.createElement("div",{className:"k-window-title k-dialog-title"},t),r.createElement("div",{className:"k-window-actions k-dialog-actions"},r.createElement("a",{href:"#",role:"button","aria-label":"Close",onClick:n,className:"k-button k-bare k-button-icon k-window-action k-dialog-action k-dialog-close"},r.createElement("span",{className:"k-icon k-i-x"}))))}},function(e,t){e.exports=r},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=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])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var p=n(0),i=n(4),f=n(3),a=n(1),l=n(2),c=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.titleId=n.generateTitleId(),n.handleCloseDialog=function(e){if(e.preventDefault(),n.props.onClose){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:n};n.props.onClose.call(void 0,t)}},n.handleKeyDown=function(e){27===e.keyCode&&n.props.onClose&&(e.preventDefault(),n.handleCloseDialog(e))},n}return r(t,e),t.prototype.render=function(){var e=void 0!==this.props.id?this.props.id:this.titleId,t=this.props,n=t.title,o=t.width,r=t.height,i=t.children,a=t.minWidth,l=p.Children.toArray(i),c=this.getContent(l),s=this.getActionBar(l),u=n?{"aria-labelledby":e}:null;return p.createElement("div",{className:"k-dialog-wrapper",onKeyDown:this.handleKeyDown,tabIndex:0},p.createElement("div",{className:"k-overlay"}),p.createElement("div",d({},u,{className:"k-widget k-window k-dialog",role:"dialog",style:{width:o,height:r,minWidth:a}}),this.props.title&&p.createElement(f.DialogTitleBar,{onCloseButtonClick:this.handleCloseDialog,id:e},n),p.createElement("div",{className:"k-content k-window-content k-dialog-content"},c),s))},t.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===a.DialogActionsBar})},t.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==a.DialogActionsBar})},t.prototype.generateTitleId=function(){return"dialog-title"+l.guid()},t.propTypes={title:i.any,id:i.string,width:i.oneOfType([i.number,i.string]),height:i.oneOfType([i.number,i.string]),minWidth:i.oneOfType([i.number,i.string])},t}(p.Component);t.Dialog=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(5);t.Dialog=o.Dialog;var r=n(1);t.DialogActionsBar=r.DialogActionsBar,function(e){for(var t in e)i(t,e[t])}(t)}])}}}); | ||
System.register("@progress/kendo-react-dialogs",["@progress/kendo-react-common","react","prop-types"],function(i){var n,o,r;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){o=t(e)},function(e){r=t(e)}],execute:function(){!function(n){var o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.DialogActionsBar=function(e){var t=e.children;return o.createElement("div",{className:"k-button-group k-dialog-buttongroup k-dialog-button-layout-stretched"},t)}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.DialogTitleBar=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.id;return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar k-header",id:o},r.createElement("div",{className:"k-window-title k-dialog-title"},t),r.createElement("div",{className:"k-window-actions k-dialog-actions"},r.createElement("a",{href:"#",role:"button","aria-label":"Close",onClick:n,className:"k-button k-bare k-button-icon k-window-action k-dialog-action k-dialog-close"},r.createElement("span",{className:"k-icon k-i-x"}))))}},function(e,t){e.exports=r},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=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])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var p=n(0),i=n(4),f=n(3),a=n(1),l=n(2),c=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.titleId=n.generateTitleId(),n.handleCloseDialog=function(e){if(e.preventDefault(),n.props.onClose){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:n};n.props.onClose.call(void 0,t)}},n.handleKeyDown=function(e){27===e.keyCode&&n.props.onClose&&(e.preventDefault(),n.handleCloseDialog(e))},n}return r(t,e),t.prototype.render=function(){var e=void 0!==this.props.id?this.props.id:this.titleId,t=this.props,n=t.title,o=t.width,r=t.height,i=t.children,a=t.minWidth,l=p.Children.toArray(i),c=this.getContent(l),s=this.getActionBar(l),u=n?{"aria-labelledby":e}:null;return p.createElement("div",{className:"k-dialog-wrapper",onKeyDown:this.handleKeyDown,tabIndex:0},p.createElement("div",{className:"k-overlay"}),p.createElement("div",d({},u,{className:"k-widget k-window k-dialog",role:"dialog",style:{width:o,height:r,minWidth:a}}),this.props.title&&p.createElement(f.DialogTitleBar,{onCloseButtonClick:this.handleCloseDialog,id:e},n),p.createElement("div",{className:"k-content k-window-content k-dialog-content"},c),s))},t.prototype.getActionBar=function(e){return e.filter(function(e){return e&&e.type===a.DialogActionsBar})},t.prototype.getContent=function(e){return e.filter(function(e){return e&&e.type!==a.DialogActionsBar})},t.prototype.generateTitleId=function(){return"dialog-title"+l.guid()},t.propTypes={title:i.any,id:i.string,width:i.oneOfType([i.number,i.string]),height:i.oneOfType([i.number,i.string]),minWidth:i.oneOfType([i.number,i.string])},t}(p.Component);t.Dialog=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(5);t.Dialog=o.Dialog;var r=n(1);t.DialogActionsBar=r.DialogActionsBar,function(e){for(var t in e)i(t,e[t])}(t)}])}}}); |
{ | ||
"name": "@progress/kendo-react-dialogs", | ||
"version": "1.2.0-dev.201806211309", | ||
"version": "1.2.0-dev.201806281338", | ||
"description": "Kendo UI for React Dialogs package", | ||
@@ -30,3 +30,3 @@ "repository": { | ||
"dependencies": { | ||
"@progress/kendo-react-common": "1.2.0-dev.201806211309", | ||
"@progress/kendo-react-common": "1.2.0-dev.201806281338", | ||
"prop-types": "^15.6.0" | ||
@@ -33,0 +33,0 @@ }, |
38362
0.05%+ Added
- Removed