@progress/kendo-react-layout
Advanced tools
Comparing version 0.6.0-dev.201805081109 to 0.6.0-dev.201805091607
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-react-layout",["react","@progress/kendo-react-animation","prop-types","@progress/kendo-react-common"],function(d){var n,r,o,i;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){r=t(e)},function(e){o=t(e)},function(e){i=t(e)}],execute:function(){!function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=14)}([function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var k=n(0),i=n(1),P=n(2),S=n(5),a=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.handleItemClick=function(){var e=o.props,t=e.onSelect,n=e.disabled,r=e.id;t&&!n&&t.call(void 0,{uniquePrivateKey:o.props.uniquePrivateKey,id:r,target:o})},o}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.id,r=t.children,o=t.title,i=t.uniquePrivateKey,a=t.disabled,s=t.selected,l=t.focused,c=t.expanded,p=t.className,d=t.root,u=t.headerClassName,f=t.animation,h={role:"treeitem","aria-disabled":a,"aria-hidden":!a&&!c,"aria-selected":!a&&s,"aria-expanded":!a&&c&&!!r},v=P.classNames({"k-item":!0,"k-state-default":!a,"k-state-expanded":c&&!!r,"k-state-disabled":a},p),y=P.classNames({"k-link":!0,"k-header":d,"k-state-selected":!a&&s,"k-state-focused":!a&&l},u),b=P.classNames(((e={})["k-icon"]=!0,e["k-i-arrow-n"]=c&&!!r,e["k-panelbar-collapse"]=c&&!!r,e["k-i-arrow-s"]=!c&&!!r,e["k-panelbar-expand"]=!c&&!!r,e)),m=function(e){var t=e.imageUrl,n=e.icon,r=e.iconClass;if(t)return k.createElement("img",{role:"presentation",className:"k-image",src:t});if(n){var o=P.classNames("k-icon","k-i-"+n);return k.createElement("span",{role:"presentation",className:o})}return r?k.createElement("span",{role:"presentation",className:r}):null}(this.props),_=!a&&r?k.createElement("span",{className:b}):null,g=!a&&c?k.createElement("div",{role:"group",className:"k-panel k-group"},r):null,O=void 0!==f&&!f||a||!r?g:k.createElement(S.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,key:i+"_animation",style:{position:"static"},children:g});return k.createElement("div",x({id:n,className:v},h),k.createElement("span",{className:y,onClick:this.handleItemClick},m,o,_),O)},t.propTypes={animation:i.bool,children:i.any,className:i.string,expanded:i.bool,disabled:i.bool,onSelect:i.func,selected:i.bool,root:i.bool,title:i.oneOfType([i.string,i.element]),id:i.oneOfType([i.string,i.number]),focused:i.bool},t.defaultProps={title:"Untitled"},t}(k.PureComponent);t.default=a},function(e,p,t){"use strict";var d=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(p,"__esModule",{value:!0});var u=t(0),f=t(3),r=function(e){return e.map(function(e,t){var n;return e.content&&(n=e.content),e.children&&(n=r(e.children)),u.createElement(f.default,d({},e,{children:n,key:e.id||t}))})};p.renderChildren=function(o,i,a,e,s,l,c){return void 0===o&&(o=!0),void 0===s&&(s=!0),void 0===l&&(l=!0),void 0===c&&(c=[]),u.Children.map(e,function(e,t){if(e.type===f.default){var n=void 0,r=c.length?c[c.length-1]+"."+t:"."+t;return e.props.children&&(n=p.renderChildren(o,i,a,e.props.children,-1<(i.expanded||[]).indexOf(r)&&s,!1,c.concat([r]))),u.cloneElement(e,d({},e.props,{animation:void 0!==e.props.animation?e.props.animation:o,id:e.props.id||"k-panelbar-item-default-"+r,uniquePrivateKey:r,parentUniquePrivateKey:c,parentExpanded:s,root:l,expanded:-1<(i.expanded||[]).indexOf(r)&&s,focused:i.focused===r&&i.wrapperFocused,selected:i.selected===r,children:n,onSelect:a}))}return u.createElement("div",{className:"k-content"},e)})},p.getInitialState=function(e,r,o,t,i,a){return void 0===o&&(o={expanded:e.expanded||[],selected:e.selected||"",focused:e.focused||".0",wrapperFocused:!1}),void 0===t&&(t=!0),void 0===i&&(i=!0),void 0===a&&(a=[]),u.Children.map(e.children,function(e,t){if(e.type===f.default){var n=a.length?a[a.length-1]+"."+t:"."+t;!e.props.disabled&&i&&(e.props.selected&&(o.selected=n),e.props.focused&&(o.focused=n),e.props.expanded&&("multiple"===r?o.expanded.push(n):"single"===r&&(o.expanded=[n])),e.props.children&&(o=p.getInitialState(e.props,r,o,!1,!!e.props.expanded,a.concat([n]))))}}),o},p.flatVisibleItems=function t(e,n,r){return void 0===n&&(n=[]),void 0===r&&(r=null),(e||[]).forEach(function(e){e.disabled||(n.push(e),e.expanded&&e.children&&t(e.children,n))}),n},p.isPresent=function(e){return null!=e};var n={mapItemsToComponents:r};p.default=n},function(e,t){e.exports=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(1),l=n(5),c=n(2),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=c.classNames("k-content","k-state-active");return a.createElement("div",{className:e,style:this.props.style},this.renderContent(this.props.children))},t.prototype.renderContent=function(e){var t={role:"tabpanel","aria-expanded":!0},n=a.Children.toArray(e)[this.props.selected];return this.props.animation?a.createElement(l.Fade,{style:{position:"initial"},appear:!0},a.createElement("div",i({},t,{key:this.props.index}),n.props.children)):a.createElement("div",i({},t,{key:this.props.index}),n.props.children)},t.propTypes={animation:s.bool,children:s.oneOfType([s.element,s.arrayOf(s.element)]),selected:s.number,style:s.object},t}(a.Component);t.default=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),i=n(1),p=n(2),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onClick=function(){e.props.onSelect&&e.props.onSelect(e.props.index)},e}return o(e,t),e.prototype.render=function(){var e,t=this.props,n=t.active,r=t.disabled,o=t.title,i=void 0===o?"Untitled":o,a={"aria-selected":n,role:"tab",onClick:r?void 0:this.onClick},s=p.classNames(((e={})["k-item"]=!0,e["k-state-default"]=!(r||n),e["k-state-disabled"]=r,e["k-state-active"]=n,e["k-tab-on-top"]=n,e));return c.createElement("li",l({},a,{className:s}),c.createElement("span",{className:"k-link"},i))},e.propTypes={active:i.bool,disabled:i.bool,index:i.number,onSelect:i.func,title:i.oneOfType([i.string,i.element])},e}(c.Component);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var p=n(0),i=n(1),d=n(7),u=n(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.selected,o=n.children,i=n.onSelect,a=n.onKeyDown,s=p.Children.count(o);o&&(e=(t=s,Array.apply(null,Array(t))).map(function(e,t,n){return{first:0===t,last:t===n.length-1}}).map(function(e,t){var n={active:r===t,disabled:o[t].props.disabled,index:t,title:o[t].props.title,onSelect:i};return p.createElement(d.default,c({key:t},n))}));var l=u.classNames("k-tabstrip-items","k-reset");return p.createElement("ul",{className:l,role:"tablist",tabIndex:this.props.tabIndex,onKeyDown:a},e)},t.propTypes={children:i.oneOfType([i.element,i.arrayOf(i.element)]),onSelect:i.func,onKeyDown:i.func,selected:i.number,tabIndex:i.number},t}(p.Component);t.default=a},function(e,t,n){"use strict";var o,r;Object.defineProperty(t,"__esModule",{value:!0}),(r=o=t.NavigationAction||(t.NavigationAction={}))[r.Undefined=0]="Undefined",r[r.Toggle=1]="Toggle",r[r.Next=2]="Next",r[r.Previous=3]="Previous";var i=function(){function e(e){this.onNavigate=e}return e.prototype.navigate=function(e,t){var n=e.keyCode,r=o.Undefined;switch(n){case 37:r=t?o.Next:o.Previous;break;case 38:r=o.Previous;break;case 39:r=t?o.Previous:o.Next;break;case 40:r=o.Next;break;case 32:case 13:r=o.Toggle;break;default:r=o.Undefined}r!==o.Undefined&&e.preventDefault(),this.onNavigate(r)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),r=function(){function e(e,t,n){var r=this;this.flatChildren=function(e,t){return void 0===t&&(t=[]),s.Children.forEach(e,function(e){e.props&&!e.props.disabled&&(t.push(e),e.props.children&&r.flatChildren(e.props.children,t))}),t},this.flatVisibleChildren=function(e,t){return void 0===t&&(t=[]),s.Children.forEach(e,function(e){e.props&&!e.props.disabled&&(e.props.expanded||e.props.parentExpanded)&&(t.push(e),e.props.children&&r.flatVisibleChildren(e.props.children,t))}),t},this.onSelect=e,this.onFocus=t,this.expandMode=n}return e.prototype.select=function(t,e,n){var r,o;switch(this.flatChildren(s.Children.toArray(e)).forEach(function(e){e.props.uniquePrivateKey===t&&(r=e)}),this.expandMode){case"single":o=r.props.parentUniquePrivateKey.concat([r.props.uniquePrivateKey]);break;case"multiple":var i=(o=n.slice()).indexOf(r.props.uniquePrivateKey);-1===i?o.push(r.props.uniquePrivateKey):o.splice(i,1);break;default:o=n.slice()}this.onSelect(r,o)},e.prototype.focus=function(r,o,e){var i,a=this.flatVisibleChildren(s.Children.toArray(e));a.forEach(function(e,t){if(e.props.uniquePrivateKey===r){var n=t+o<0?0:t+o>=a.length?a.length-1:t+o;i=a[n]}}),this.onFocus(i)},e.prototype.setExpandMode=function(e){this.expandMode=e},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(1),l=n(3),c=n(4),p=n(10),d=n(9),u=function(t){function e(e){var n=t.call(this,e)||this;return n._element=null,n.handleSelect=function(e){n._selectionService.select(e.uniquePrivateKey,c.renderChildren(n.props.animation,n.state,n.handleSelect,n.props.children),n.state.expanded),n._selectionService.focus(e.uniquePrivateKey,0,c.renderChildren(n.props.animation,n.state,n.handleSelect,n.props.children))},n.onSelect=function(e,t){n.setState({selected:e.props.uniquePrivateKey,expanded:t},function(){n.props.onSelect&&n.props.onSelect.call(void 0,{target:e,action:"select"})})},n.onFocus=function(e){n.activeDescendant=e.props.id,n.setState({focused:e.props.uniquePrivateKey})},n.onNavigate=function(e){switch(e){case d.NavigationAction.Previous:n._selectionService.focus(n.state.focused,-1,c.renderChildren(n.props.animation,n.state,n.handleSelect,n.props.children));break;case d.NavigationAction.Next:n._selectionService.focus(n.state.focused,1,c.renderChildren(n.props.animation,n.state,n.handleSelect,n.props.children));break;case d.NavigationAction.Toggle:n._selectionService.select(n.state.focused,c.renderChildren(n.props.animation,n.state,n.handleSelect,n.props.children),n.state.expanded)}},n.handleWrapperFocus=function(e){n.setState({wrapperFocused:"focus"===e.nativeEvent.type})},n.handleKeyDown=function(e){var t=n._element&&"rtl"===getComputedStyle(n._element).direction||!1;n._navigationService.navigate(e,t)},n.state=c.getInitialState(e,e.expandMode||"multiple"),n._selectionService=new p.default(n.onSelect,n.onFocus,n.props.expandMode||"multiple"),n._navigationService=new d.default(n.onNavigate),n}return o(e,t),e.prototype.componentWillReceiveProps=function(e){e.expandMode!==this.props.expandMode&&this._selectionService.setExpandMode(e.expandMode),e.selected!==this.state.selected&&void 0!==e.selected&&this.setState({selected:e.selected})},e.prototype.render=function(){var t=this,e={"aria-activedescendant":this.activeDescendant},n=c.renderChildren(this.props.animation,this.state,this.handleSelect,this.props.children);return a.createElement("div",i({ref:function(e){t._element=e},dir:this.props.dir,role:"tree",tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperFocus,className:"k-widget k-panelbar k-reset k-header"},e),n)},e.propTypes={animation:s.bool,children:function(e,t){var n=e[t];if(n)if(n instanceof Array)for(var r=0,o=n;r<o.length;r++){var i=o[r];if(!i.type||i.type!==l.default)return new Error("PanelBar children should be either PanelBarItem or Array of PanelBarItem.")}else if(n.type!==l.default)return new Error("PanelBar child should be either PanelBarItem or Array of PanelBarItem.")},dir:s.string,selected:s.string,expanded:s.arrayOf(s.string),focused:s.string,expandMode:s.oneOf(["single","multiple"]),className:s.string,onSelect:s.func},e.defaultProps={expandMode:"multiple",animation:!0},e}(a.Component);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.propTypes={disabled:a.bool,children:a.oneOfType([a.element,a.node]),title:a.oneOfType([a.string,a.element,a.node])},t}(i.Component);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),i=n(1),p=n(8),s=n(6),d=n(2),a=function(t){function e(){var e,a=null!==t&&t.apply(this,arguments)||this;return a._element=null,a.keyBinding=((e={})[37]=function(){return a.prevNavigatableTab()},e[39]=function(){return a.nextNavigatableTab()},e[40]=function(){return a.nextNavigatableTab()},e[38]=function(){return a.prevNavigatableTab()},e[36]=function(){return 0},e[35]=function(){return c.Children.count(a.props.children)-1},e),a.onSelect=function(e){a.props.selected!==e&&a.props.onSelect&&a.props.onSelect({selected:e})},a.onKeyDown=function(e){var t;switch(e.keyCode){case 37:t=a.keyBinding[a.invertKeys(37,39)];break;case 39:t=a.keyBinding[a.invertKeys(39,37)];break;case 38:t=a.keyBinding[38];break;case 40:t=a.keyBinding[40]}t&&(e.preventDefault(),a.onSelect(t()))},a.renderContent=function(e){var t=a.props,n=t.selected,r=t.children,o=t.tabContentStyle;return n<c.Children.count(r)&&-1<n?c.createElement(s.default,l({index:n},e,{style:o})):null},a.firstNavigatableTab=function(){var e=a.props.children,t=c.Children.count(e);if(e)for(var n=0;n<t;n++)if(!e[n].props.disabled)return n},a.lastNavigatableTab=function(){var e=a.props.children,t=c.Children.count(e);if(e)for(var n=t-1;0<n;n--)if(!e[n].props.disabled)return n},a.prevNavigatableTab=function(){var e=a.props,t=e.children,n=e.selected,r=n?n-1:-1;if(r<0)return a.lastNavigatableTab();if(t)for(var o=r;-1<o;o--){if(!t[o].props.disabled)return o;if(0===o)return a.lastNavigatableTab()}},a.nextNavigatableTab=function(){var e=a.props,t=e.children,n=e.selected,r=n?n+1:1,o=c.Children.count(t);if(o<=r)return a.firstNavigatableTab();if(t)for(var i=r;i<o;i++){if(!t[i].props.disabled)return i;if(i+1===o)return a.firstNavigatableTab()}},a}return o(e,t),e.prototype.render=function(){var e,t=this,n=l({},this.props,{onKeyDown:this.onKeyDown,selected:this.props.selected,onSelect:this.onSelect}),r=n.tabPosition,o=n.tabIndex,i=void 0===o?0:o,a="bottom"===r,s=d.classNames(((e={})["k-widget"]=!0,e["k-header"]=!0,e["k-floatwrap"]=!0,e["k-tabstrip"]=!0,e["k-tabstrip-left"]="left"===r,e["k-tabstrip-right"]="right"===r,e["k-tabstrip-bottom"]="bottom"===r,e["k-tabstrip-top"]="top"===r,e));return c.createElement("div",{ref:function(e){t._element=e},dir:this.props.dir,className:s,style:this.props.style},!a&&c.createElement(p.default,l({},n,{tabIndex:i})),this.renderContent(n),a&&c.createElement(p.default,l({},n,{tabIndex:i})))},e.prototype.invertKeys=function(e,t){return this._element&&"rtl"===getComputedStyle(this._element).direction?t:e},e.propTypes={animation:i.bool,children:i.oneOfType([i.element,i.arrayOf(i.element)]),onSelect:i.func,selected:i.number,style:i.object,tabContentStyle:i.object,tabPosition:i.string,tabIndex:i.number,dir:i.string},e.defaultProps={animation:!0,tabPosition:"top"},e}(c.Component);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13);t.TabStrip=r.default;var o=n(6);t.TabStripContent=o.default;var i=n(8);t.TabStripNavigation=i.default;var a=n(7);t.TabStripNavigationItem=a.default;var s=n(12);t.TabStripTab=s.default;var l=n(11);t.PanelBar=l.default;var c=n(3);t.PanelBarItem=c.default;var p=n(4);t.PanelBarUtils=p.default,function(e){for(var t in e)d(t,e[t])}(t)}])}}}); | ||
System.register("@progress/kendo-react-layout",["react","prop-types","@progress/kendo-react-animation","@progress/kendo-react-common"],function(d){var n,r,o,i;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){r=t(e)},function(e){o=t(e)},function(e){i=t(e)}],execute:function(){!function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=14)}([function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var k=n(0),i=n(1),P=n(2),S=n(5),a=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.handleItemClick=function(){var e=o.props,t=e.onSelect,n=e.disabled,r=e.id;t&&!n&&t.call(void 0,{uniquePrivateKey:o.props.uniquePrivateKey,id:r,target:o})},o}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.id,r=t.children,o=t.title,i=t.uniquePrivateKey,a=t.disabled,s=t.selected,l=t.focused,c=t.expanded,p=t.className,d=t.root,u=t.headerClassName,f=t.animation,h={role:"treeitem","aria-disabled":a,"aria-hidden":!a&&!c,"aria-selected":!a&&s,"aria-expanded":!a&&c&&!!r},v=P.classNames({"k-item":!0,"k-state-default":!a,"k-state-expanded":c&&!!r,"k-state-disabled":a},p),y=P.classNames({"k-link":!0,"k-header":d,"k-state-selected":!a&&s,"k-state-focused":!a&&l},u),b=P.classNames(((e={})["k-icon"]=!0,e["k-i-arrow-n"]=c&&!!r,e["k-panelbar-collapse"]=c&&!!r,e["k-i-arrow-s"]=!c&&!!r,e["k-panelbar-expand"]=!c&&!!r,e)),m=function(e){var t=e.imageUrl,n=e.icon,r=e.iconClass;if(t)return k.createElement("img",{role:"presentation",className:"k-image",src:t});if(n){var o=P.classNames("k-icon","k-i-"+n);return k.createElement("span",{role:"presentation",className:o})}return r?k.createElement("span",{role:"presentation",className:r}):null}(this.props),_=!a&&r?k.createElement("span",{className:b}):null,g=!a&&c?k.createElement("div",{role:"group",className:"k-panel k-group"},r):null,O=void 0!==f&&!f||a||!r?g:k.createElement(S.Reveal,{transitionEnterDuration:200,transitionExitDuration:200,key:i+"_animation",style:{position:"static"},children:g});return k.createElement("div",x({id:n,className:v},h),k.createElement("span",{className:y,onClick:this.handleItemClick},m,o,_),O)},t.propTypes={animation:i.bool,children:i.any,className:i.string,expanded:i.bool,disabled:i.bool,onSelect:i.func,selected:i.bool,root:i.bool,title:i.oneOfType([i.string,i.element]),id:i.oneOfType([i.string,i.number]),focused:i.bool},t.defaultProps={title:"Untitled"},t}(k.PureComponent);t.default=a},function(e,p,t){"use strict";var d=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(p,"__esModule",{value:!0});var u=t(0),f=t(3),r=function(e){return e.map(function(e,t){var n;return e.content&&(n=e.content),e.children&&(n=r(e.children)),u.createElement(f.default,d({},e,{children:n,key:e.id||t}))})};p.renderChildren=function(o,i,a,e,s,l,c){return void 0===o&&(o=!0),void 0===s&&(s=!0),void 0===l&&(l=!0),void 0===c&&(c=[]),u.Children.map(e,function(e,t){if(e.type===f.default){var n=void 0,r=c.length?c[c.length-1]+"."+t:"."+t;return e.props.children&&(n=p.renderChildren(o,i,a,e.props.children,-1<(i.expanded||[]).indexOf(r)&&s,!1,c.concat([r]))),u.cloneElement(e,d({},e.props,{animation:void 0!==e.props.animation?e.props.animation:o,id:e.props.id||"k-panelbar-item-default-"+r,uniquePrivateKey:r,parentUniquePrivateKey:c,parentExpanded:s,root:l,expanded:-1<(i.expanded||[]).indexOf(r)&&s,focused:i.focused===r&&i.wrapperFocused,selected:i.selected===r,children:n,onSelect:a}))}return u.createElement("div",{className:"k-content"},e)})},p.getInitialState=function(e,r,o,t,i,a){return void 0===o&&(o={expanded:e.expanded||[],selected:e.selected||"",focused:e.focused||".0",wrapperFocused:!1}),void 0===t&&(t=!0),void 0===i&&(i=!0),void 0===a&&(a=[]),u.Children.map(e.children,function(e,t){if(e.type===f.default){var n=a.length?a[a.length-1]+"."+t:"."+t;!e.props.disabled&&i&&(e.props.selected&&(o.selected=n),e.props.focused&&(o.focused=n),e.props.expanded&&("multiple"===r?o.expanded.push(n):"single"===r&&(o.expanded=[n])),e.props.children&&(o=p.getInitialState(e.props,r,o,!1,!!e.props.expanded,a.concat([n]))))}}),o},p.flatVisibleItems=function t(e,n,r){return void 0===n&&(n=[]),void 0===r&&(r=null),(e||[]).forEach(function(e){e.disabled||(n.push(e),e.expanded&&e.children&&t(e.children,n))}),n},p.isPresent=function(e){return null!=e};var n={mapItemsToComponents:r};p.default=n},function(e,t){e.exports=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(1),l=n(5),c=n(2),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=c.classNames("k-content","k-state-active");return a.createElement("div",{className:e,style:this.props.style},this.renderContent(this.props.children))},t.prototype.renderContent=function(e){var t={role:"tabpanel","aria-expanded":!0},n=a.Children.toArray(e)[this.props.selected];return this.props.animation?a.createElement(l.Fade,{style:{position:"initial"},appear:!0},a.createElement("div",i({},t,{key:this.props.index}),n.props.children)):a.createElement("div",i({},t,{key:this.props.index}),n.props.children)},t.propTypes={animation:s.bool,children:s.oneOfType([s.element,s.arrayOf(s.element)]),selected:s.number,style:s.object},t}(a.Component);t.default=p},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),i=n(1),p=n(2),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onClick=function(){e.props.onSelect&&e.props.onSelect(e.props.index)},e}return o(e,t),e.prototype.render=function(){var e,t=this.props,n=t.active,r=t.disabled,o=t.title,i=void 0===o?"Untitled":o,a={"aria-selected":n,role:"tab",onClick:r?void 0:this.onClick},s=p.classNames(((e={})["k-item"]=!0,e["k-state-default"]=!(r||n),e["k-state-disabled"]=r,e["k-state-active"]=n,e["k-tab-on-top"]=n,e));return c.createElement("li",l({},a,{className:s}),c.createElement("span",{className:"k-link"},i))},e.propTypes={active:i.bool,disabled:i.bool,index:i.number,onSelect:i.func,title:i.oneOfType([i.string,i.element])},e}(c.Component);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var p=n(0),i=n(1),d=n(7),u=n(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.selected,o=n.children,i=n.onSelect,a=n.onKeyDown,s=p.Children.count(o);o&&(e=(t=s,Array.apply(null,Array(t))).map(function(e,t,n){return{first:0===t,last:t===n.length-1}}).map(function(e,t){var n={active:r===t,disabled:o[t].props.disabled,index:t,title:o[t].props.title,onSelect:i};return p.createElement(d.default,c({key:t},n))}));var l=u.classNames("k-tabstrip-items","k-reset");return p.createElement("ul",{className:l,role:"tablist",tabIndex:this.props.tabIndex,onKeyDown:a},e)},t.propTypes={children:i.oneOfType([i.element,i.arrayOf(i.element)]),onSelect:i.func,onKeyDown:i.func,selected:i.number,tabIndex:i.number},t}(p.Component);t.default=a},function(e,t,n){"use strict";var o,r;Object.defineProperty(t,"__esModule",{value:!0}),(r=o=t.NavigationAction||(t.NavigationAction={}))[r.Undefined=0]="Undefined",r[r.Toggle=1]="Toggle",r[r.Next=2]="Next",r[r.Previous=3]="Previous";var i=function(){function e(e){this.onNavigate=e}return e.prototype.navigate=function(e,t){var n=e.keyCode,r=o.Undefined;switch(n){case 37:r=t?o.Next:o.Previous;break;case 38:r=o.Previous;break;case 39:r=t?o.Previous:o.Next;break;case 40:r=o.Next;break;case 32:case 13:r=o.Toggle;break;default:r=o.Undefined}r!==o.Undefined&&e.preventDefault(),this.onNavigate(r)},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),r=function(){function e(e,t,n){var r=this;this.flatChildren=function(e,t){return void 0===t&&(t=[]),s.Children.forEach(e,function(e){e.props&&!e.props.disabled&&(t.push(e),e.props.children&&r.flatChildren(e.props.children,t))}),t},this.flatVisibleChildren=function(e,t){return void 0===t&&(t=[]),s.Children.forEach(e,function(e){e.props&&!e.props.disabled&&(e.props.expanded||e.props.parentExpanded)&&(t.push(e),e.props.children&&r.flatVisibleChildren(e.props.children,t))}),t},this.onSelect=e,this.onFocus=t,this.expandMode=n}return e.prototype.select=function(t,e,n){var r,o;switch(this.flatChildren(s.Children.toArray(e)).forEach(function(e){e.props.uniquePrivateKey===t&&(r=e)}),this.expandMode){case"single":o=r.props.parentUniquePrivateKey.concat([r.props.uniquePrivateKey]);break;case"multiple":var i=(o=n.slice()).indexOf(r.props.uniquePrivateKey);-1===i?o.push(r.props.uniquePrivateKey):o.splice(i,1);break;default:o=n.slice()}this.onSelect(r,o)},e.prototype.focus=function(r,o,e){var i,a=this.flatVisibleChildren(s.Children.toArray(e));a.forEach(function(e,t){if(e.props.uniquePrivateKey===r){var n=t+o<0?0:t+o>=a.length?a.length-1:t+o;i=a[n]}}),this.onFocus(i)},e.prototype.setExpandMode=function(e){this.expandMode=e},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(1),l=n(3),c=n(4),p=n(10),d=n(9),u=function(t){function e(e){var n=t.call(this,e)||this;return n._element=null,n.handleSelect=function(e){n._selectionService.select(e.uniquePrivateKey,c.renderChildren(n.props.animation,n.state,n.handleSelect,n.props.children),n.state.expanded),n._selectionService.focus(e.uniquePrivateKey,0,c.renderChildren(n.props.animation,n.state,n.handleSelect,n.props.children))},n.onSelect=function(e,t){n.setState({selected:e.props.uniquePrivateKey,expanded:t},function(){n.props.onSelect&&n.props.onSelect.call(void 0,{target:e,action:"select"})})},n.onFocus=function(e){n.activeDescendant=e.props.id,n.setState({focused:e.props.uniquePrivateKey})},n.onNavigate=function(e){switch(e){case d.NavigationAction.Previous:n._selectionService.focus(n.state.focused,-1,c.renderChildren(n.props.animation,n.state,n.handleSelect,n.props.children));break;case d.NavigationAction.Next:n._selectionService.focus(n.state.focused,1,c.renderChildren(n.props.animation,n.state,n.handleSelect,n.props.children));break;case d.NavigationAction.Toggle:n._selectionService.select(n.state.focused,c.renderChildren(n.props.animation,n.state,n.handleSelect,n.props.children),n.state.expanded)}},n.handleWrapperFocus=function(e){n.setState({wrapperFocused:"focus"===e.nativeEvent.type})},n.handleKeyDown=function(e){var t=n._element&&"rtl"===getComputedStyle(n._element).direction||!1;n._navigationService.navigate(e,t)},n.state=c.getInitialState(e,e.expandMode||"multiple"),n._selectionService=new p.default(n.onSelect,n.onFocus,n.props.expandMode||"multiple"),n._navigationService=new d.default(n.onNavigate),n}return o(e,t),e.prototype.componentWillReceiveProps=function(e){e.expandMode!==this.props.expandMode&&this._selectionService.setExpandMode(e.expandMode),e.selected!==this.state.selected&&void 0!==e.selected&&this.setState({selected:e.selected})},e.prototype.render=function(){var t=this,e={"aria-activedescendant":this.activeDescendant},n=c.renderChildren(this.props.animation,this.state,this.handleSelect,this.props.children);return a.createElement("div",i({ref:function(e){t._element=e},dir:this.props.dir,role:"tree",tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperFocus,className:"k-widget k-panelbar k-reset k-header"},e),n)},e.propTypes={animation:s.bool,children:function(e,t){var n=e[t];if(n)if(n instanceof Array)for(var r=0,o=n;r<o.length;r++){var i=o[r];if(!i.type||i.type!==l.default)return new Error("PanelBar children should be either PanelBarItem or Array of PanelBarItem.")}else if(n.type!==l.default)return new Error("PanelBar child should be either PanelBarItem or Array of PanelBarItem.")},dir:s.string,selected:s.string,expanded:s.arrayOf(s.string),focused:s.string,expandMode:s.oneOf(["single","multiple"]),className:s.string,onSelect:s.func},e.defaultProps={expandMode:"multiple",animation:!0},e}(a.Component);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.propTypes={disabled:a.bool,children:a.oneOfType([a.element,a.node]),title:a.oneOfType([a.string,a.element,a.node])},t}(i.Component);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),i=n(1),p=n(8),s=n(6),d=n(2),a=function(t){function e(){var e,a=null!==t&&t.apply(this,arguments)||this;return a._element=null,a.keyBinding=((e={})[37]=function(){return a.prevNavigatableTab()},e[39]=function(){return a.nextNavigatableTab()},e[40]=function(){return a.nextNavigatableTab()},e[38]=function(){return a.prevNavigatableTab()},e[36]=function(){return 0},e[35]=function(){return c.Children.count(a.props.children)-1},e),a.onSelect=function(e){a.props.selected!==e&&a.props.onSelect&&a.props.onSelect({selected:e})},a.onKeyDown=function(e){var t;switch(e.keyCode){case 37:t=a.keyBinding[a.invertKeys(37,39)];break;case 39:t=a.keyBinding[a.invertKeys(39,37)];break;case 38:t=a.keyBinding[38];break;case 40:t=a.keyBinding[40]}t&&(e.preventDefault(),a.onSelect(t()))},a.renderContent=function(e){var t=a.props,n=t.selected,r=t.children,o=t.tabContentStyle;return n<c.Children.count(r)&&-1<n?c.createElement(s.default,l({index:n},e,{style:o})):null},a.firstNavigatableTab=function(){var e=a.props.children,t=c.Children.count(e);if(e)for(var n=0;n<t;n++)if(!e[n].props.disabled)return n},a.lastNavigatableTab=function(){var e=a.props.children,t=c.Children.count(e);if(e)for(var n=t-1;0<n;n--)if(!e[n].props.disabled)return n},a.prevNavigatableTab=function(){var e=a.props,t=e.children,n=e.selected,r=n?n-1:-1;if(r<0)return a.lastNavigatableTab();if(t)for(var o=r;-1<o;o--){if(!t[o].props.disabled)return o;if(0===o)return a.lastNavigatableTab()}},a.nextNavigatableTab=function(){var e=a.props,t=e.children,n=e.selected,r=n?n+1:1,o=c.Children.count(t);if(o<=r)return a.firstNavigatableTab();if(t)for(var i=r;i<o;i++){if(!t[i].props.disabled)return i;if(i+1===o)return a.firstNavigatableTab()}},a}return o(e,t),e.prototype.render=function(){var e,t=this,n=l({},this.props,{onKeyDown:this.onKeyDown,selected:this.props.selected,onSelect:this.onSelect}),r=n.tabPosition,o=n.tabIndex,i=void 0===o?0:o,a="bottom"===r,s=d.classNames(((e={})["k-widget"]=!0,e["k-header"]=!0,e["k-floatwrap"]=!0,e["k-tabstrip"]=!0,e["k-tabstrip-left"]="left"===r,e["k-tabstrip-right"]="right"===r,e["k-tabstrip-bottom"]="bottom"===r,e["k-tabstrip-top"]="top"===r,e));return c.createElement("div",{ref:function(e){t._element=e},dir:this.props.dir,className:s,style:this.props.style},!a&&c.createElement(p.default,l({},n,{tabIndex:i})),this.renderContent(n),a&&c.createElement(p.default,l({},n,{tabIndex:i})))},e.prototype.invertKeys=function(e,t){return this._element&&"rtl"===getComputedStyle(this._element).direction?t:e},e.propTypes={animation:i.bool,children:i.oneOfType([i.element,i.arrayOf(i.element)]),onSelect:i.func,selected:i.number,style:i.object,tabContentStyle:i.object,tabPosition:i.string,tabIndex:i.number,dir:i.string},e.defaultProps={animation:!0,tabPosition:"top"},e}(c.Component);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13);t.TabStrip=r.default;var o=n(6);t.TabStripContent=o.default;var i=n(8);t.TabStripNavigation=i.default;var a=n(7);t.TabStripNavigationItem=a.default;var s=n(12);t.TabStripTab=s.default;var l=n(11);t.PanelBar=l.default;var c=n(3);t.PanelBarItem=c.default;var p=n(4);t.PanelBarUtils=p.default,function(e){for(var t in e)d(t,e[t])}(t)}])}}}); |
{ | ||
"name": "@progress/kendo-react-layout", | ||
"version": "0.6.0-dev.201805081109", | ||
"version": "0.6.0-dev.201805091607", | ||
"description": "Kendo UI for React Layout package", | ||
@@ -32,4 +32,4 @@ "repository": { | ||
"dependencies": { | ||
"@progress/kendo-react-animation": "0.6.0-dev.201805081109", | ||
"@progress/kendo-react-common": "0.6.0-dev.201805081109", | ||
"@progress/kendo-react-animation": "0.6.0-dev.201805091607", | ||
"@progress/kendo-react-common": "0.6.0-dev.201805091607", | ||
"prop-types": "^15.6.0" | ||
@@ -36,0 +36,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
+ Added@progress/kendo-react-animation@0.6.0-dev.201805091607(transitive)
+ Added@progress/kendo-react-common@0.6.0-dev.201805091607(transitive)
- Removed@progress/kendo-react-animation@0.6.0-dev.201805081109(transitive)
- Removed@progress/kendo-react-common@0.6.0-dev.201805081109(transitive)
Updated@progress/kendo-react-animation@0.6.0-dev.201805091607