You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
83 KiB
4 lines
83 KiB
10 years ago
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var s=r[n]={exports:{},id:n,loaded:!1};return e[n].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},s=n(r(23)),o=n(r(24)),i=n(r(15)),a=n(r(25)),p=n(r(3)),l=n(r(26)),c=n(r(7)),u=n(r(10)),d=n(r(27)),h=n(r(31)),f=n(r(28)),m=n(r(29)),v=n(r(30)),y=n(r(8)),g=n(r(32)),b=n(r(11)),T=n(r(12)),P=n(r(16)),O=n(r(34)),E=n(r(35)),N=n(r(36)),C=n(r(17)),x=n(r(37)),w=n(r(38)),S=n(r(39)),k=n(r(40)),_=n(r(41)),D=n(r(42)),M=n(r(18)),I=n(r(44)),A=n(r(19)),j=n(r(43)),K=n(r(45)),B=n(r(13)),L=n(r(46)),H=n(r(49)),R=n(r(20)),W=n(r(47)),U=n(r(48)),z=n(r(50)),q=n(r(51)),V=n(r(52)),F=n(r(53)),G=n(r(54)),Y=n(r(56)),Z=n(r(57)),Q=n(r(55)),J=n(r(58)),X=n(r(59)),$=n(r(9));e.exports={Accordion:s,Affix:o,AffixMixin:i,Alert:a,BootstrapMixin:p,Badge:l,Button:c,ButtonGroup:u,ButtonToolbar:d,CollapsableNav:h,Carousel:f,CarouselItem:m,Col:v,CollapsableMixin:y,DropdownButton:g,DropdownMenu:b,DropdownStateMixin:T,FadeMixin:P,Glyphicon:O,Grid:E,Input:N,Interpolate:C,Jumbotron:x,Label:w,ListGroup:S,ListGroupItem:k,MenuItem:_,Modal:D,Nav:M,Navbar:I,NavItem:A,ModalTrigger:j,OverlayTrigger:K,OverlayMixin:B,PageHeader:L,Panel:H,PanelGroup:R,PageItem:W,Pager:U,Popover:z,ProgressBar:q,Row:V,SplitButton:F,SubNav:G,TabbedArea:Y,Table:Z,TabPane:Q,Tooltip:J,Well:X,constants:$}},function(t){t.exports=e},function(e){function t(){for(var e,r="",n=0;n<arguments.length;n++)if(e=arguments[n])if("string"==typeof e||"number"==typeof e)r+=" "+e;else if("[object Array]"===Object.prototype.toString.call(e))r+=" "+t.apply(null,e);else if("object"==typeof e)for(var s in e)e.hasOwnProperty(s)&&e[s]&&(r+=" "+s);return r.substr(1)}"undefined"!=typeof e&&e.exports&&(e.exports=t)},function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},s=n(r(1)),o=n(r(9)),i={propTypes:{bsClass:s.PropTypes.oneOf(Object.keys(o.CLASSES)),bsStyle:s.PropTypes.oneOf(Object.keys(o.STYLES)),bsSize:s.PropTypes.oneOf(Object.keys(o.SIZES))},getBsClassSet:function(){var e={},t=this.props.bsClass&&o.CLASSES[this.props.bsClass];if(t){e[t]=!0;var r=t+"-",n=this.props.bsSize&&o.SIZES[this.props.bsSize];n&&(e[r+n]=!0);var s=this.props.bsStyle&&o.STYLES[this.props.bsStyle];this.props.bsStyle&&(e[r+s]=!0)}return e},prefixClass:function(e){return o.CLASSES[this.props.bsClass]+"-"+e}};e.exports=i},function(e,t,r){"use strict";function n(e,t,r){var n=0;return p.Children.map(e,function(e){if(p.isValidElement(e)){var s=n;return n++,t.call(r,e,s)}return e})}function s(e,t,r){var n=0;return p.Children.forEach(e,function(e){p.isValidElement(e)&&(t.call(r,e,n),n++)})}function o(e){var t=0;return p.Children.forEach(e,function(e){p.isValidElement(e)&&t++}),t}function i(e){var t=!1;return p.Children.forEach(e,function(e){!t&&p.isValidElement(e)&&(t=!0)}),t}var a=function(e){return e&&e.__esModule?e["default"]:e},p=a(r(1));e.exports={map:n,forEach:s,numberOf:o,hasValidComponent:i}},function(e){"use strict";function t(e,t){var r="function"==typeof e,n="function"==typeof t;return r||n?r?n?function(){e.apply(this,arguments),t.apply(this,arguments)}:e:t:null}e.exports=t},function(e,t,r){"use strict";function n(e){var t=l.findDOMNode(e);return t&&t.ownerDocument||document}function s(e){return n(e).defaultView.getComputedStyle(e,null)}function o(e){if(window.jQuery)return window.jQuery(e).offset();var t=n(e).documentElement,r={top:0,left:0};return"undefined"!=typeof e.getBoundingClientRect&&(r=e.getBoundingClientRect()),{top:r.top+window.pageYOffset-t.clientTop,left:r.left+window.pageXOffset-t.clientLeft}}function i(e,t){if(window.jQuery)return window.jQuery(e).position();var r=void 0,n={top:0,left:0};return"fixed"===s(e).position?r=e.getBoundingClientRect():(t|
|
||
|
|
||
|
},renderPrev:function(){return i.createElement("a",{className:"left carousel-control",href:"#prev",key:0,onClick:this.prev},i.createElement("span",{className:"glyphicon glyphicon-chevron-left"}))},renderNext:function(){return i.createElement("a",{className:"right carousel-control",href:"#next",key:1,onClick:this.next},i.createElement("span",{className:"glyphicon glyphicon-chevron-right"}))},renderControls:function(){if(!this.props.wrap){var e=this.getActiveIndex(),t=c.numberOf(this.props.children);return[0!==e?this.renderPrev():null,e!==t-1?this.renderNext():null]}return[this.renderPrev(),this.renderNext()]},renderIndicator:function(e,t){var r=t===this.getActiveIndex()?"active":null;return i.createElement("li",{key:t,className:r,onClick:this.handleSelect.bind(this,t,null)})},renderIndicators:function(){var e=[];return c.forEach(this.props.children,function(t,r){e.push(this.renderIndicator(t,r)," ")},this),i.createElement("ol",{className:"carousel-indicators"},e)},getActiveIndex:function(){return null!=this.props.activeIndex?this.props.activeIndex:this.state.activeIndex},handleItemAnimateOutEnd:function(){this.setState({previousActiveIndex:null,direction:null},function(){this.waitForNext(),this.props.onSlideEnd&&this.props.onSlideEnd()})},renderItem:function(e,t){var r=this.getActiveIndex(),n=t===r,s=null!=this.state.previousActiveIndex&&this.state.previousActiveIndex===t&&this.props.slide;return a(e,{active:n,ref:e.ref,key:e.key?e.key:t,index:t,animateOut:s,animateIn:n&&null!=this.state.previousActiveIndex&&this.props.slide,direction:this.state.direction,onAnimateOutEnd:s?this.handleItemAnimateOutEnd:null})},handleSelect:function(e,t){clearTimeout(this.timeout);var r=this.getActiveIndex();if(t=t||this.getDirection(r,e),this.props.onSelect&&this.props.onSelect(e,t),null==this.props.activeIndex&&e!==r){if(null!=this.state.previousActiveIndex)return;this.setState({activeIndex:e,previousActiveIndex:r,direction:t})}}});e.exports=u},function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=n(r(1)),i=n(r(2)),a=n(r(22)),p=o.createClass({displayName:"CarouselItem",propTypes:{direction:o.PropTypes.oneOf(["prev","next"]),onAnimateOutEnd:o.PropTypes.func,active:o.PropTypes.bool,animateIn:o.PropTypes.bool,animateOut:o.PropTypes.bool,caption:o.PropTypes.node,index:o.PropTypes.number},getInitialState:function(){return{direction:null}},getDefaultProps:function(){return{animation:!0}},handleAnimateOutEnd:function(){this.props.onAnimateOutEnd&&this.isMounted()&&this.props.onAnimateOutEnd(this.props.index)},componentWillReceiveProps:function(e){this.props.active!==e.active&&this.setState({direction:null})},componentDidUpdate:function(e){!this.props.active&&e.active&&a.addEndEventListener(o.findDOMNode(this),this.handleAnimateOutEnd),this.props.active!==e.active&&setTimeout(this.startAnimation,20)},startAnimation:function(){this.isMounted()&&this.setState({direction:"prev"===this.props.direction?"right":"left"})},render:function(){var e={item:!0,active:this.props.active&&!this.props.animateIn||this.props.animateOut,next:this.props.active&&this.props.animateIn&&"next"===this.props.direction,prev:this.props.active&&this.props.animateIn&&"prev"===this.props.direction};return this.state.direction&&(this.props.animateIn||this.props.animateOut)&&(e[this.state.direction]=!0),o.createElement("div",s({},this.props,{className:i(this.props.className,e)}),this.props.children,this.props.caption?this.renderCaption():null)},renderCaption:function(){return o.createElement("div",{className:"carousel-caption"},this.props.caption)}});e.exports=p},function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=n(r(1)),i=n(r(2)),a=n(r(9)),p=o.createClass({displayName:"Col",propTypes:{x
|
||
|
for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=n(r(1)),i=n(r(2)),a=o.createClass({displayName:"PageItem",propTypes:{href:o.PropTypes.string,target:o.PropTypes.string,title:o.PropTypes.string,disabled:o.PropTypes.bool,previous:o.PropTypes.bool,next:o.PropTypes.bool,onSelect:o.PropTypes.func,eventKey:o.PropTypes.any},getDefaultProps:function(){return{href:"#"}},render:function(){var e={disabled:this.props.disabled,previous:this.props.previous,next:this.props.next};return o.createElement("li",s({},this.props,{className:i(this.props.className,e)}),o.createElement("a",{href:this.props.href,title:this.props.title,target:this.props.target,onClick:this.handleSelect,ref:"anchor"},this.props.children))},handleSelect:function(e){this.props.onSelect&&(e.preventDefault(),this.props.disabled||this.props.onSelect(this.props.eventKey,this.props.href,this.props.target))}});e.exports=a},function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(1),i=n(o),a=o.cloneElement,p=n(r(2)),l=n(r(4)),c=n(r(5)),u=i.createClass({displayName:"Pager",propTypes:{onSelect:i.PropTypes.func},render:function(){return i.createElement("ul",s({},this.props,{className:p(this.props.className,"pager")}),l.map(this.props.children,this.renderPageItem))},renderPageItem:function(e,t){return a(e,{onSelect:c(e.props.onSelect,this.props.onSelect),key:e.key?e.key:t})}});e.exports=u},function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e["default"]:e},s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(1),i=n(o),a=o.cloneElement,p=n(r(2)),l=n(r(3)),c=n(r(8)),u=i.createClass({displayName:"Panel",mixins:[l,c],propTypes:{collapsable:i.PropTypes.bool,onSelect:i.PropTypes.func,header:i.PropTypes.node,id:i.PropTypes.string,footer:i.PropTypes.node,eventKey:i.PropTypes.any},getDefaultProps:function(){return{bsClass:"panel",bsStyle:"default"}},handleSelect:function(e){e.selected=!0,this.props.onSelect?this.props.onSelect(e,this.props.eventKey):e.preventDefault(),e.selected&&this.handleToggle()},handleToggle:function(){this.setState({expanded:!this.state.expanded})},getCollapsableDimensionValue:function(){return i.findDOMNode(this.refs.panel).scrollHeight},getCollapsableDOMNode:function(){return this.isMounted()&&this.refs&&this.refs.panel?i.findDOMNode(this.refs.panel):null},render:function(){var e=this.getBsClassSet();return i.createElement("div",s({},this.props,{className:p(this.props.className,e),id:this.props.collapsable?null:this.props.id,onSelect:null}),this.renderHeading(),this.props.collapsable?this.renderCollapsableBody():this.renderBody(),this.renderFooter())},renderCollapsableBody:function(){var e=this.prefixClass("collapse");return i.createElement("div",{className:p(this.getCollapsableClassSet(e)),id:this.props.id,ref:"panel","aria-expanded":this.isExpanded()?"true":"false"},this.renderBody())},renderBody:function(){function e(){return{key:p.length}}function t(t){p.push(a(t,e()))}function r(t){p.push(i.createElement("div",s({className:c},e()),t))}function n(){0!==l.length&&(r(l),l=[])}var o=this.props.children,p=[],l=[],c=this.prefixClass("body");return Array.isArray(o)&&0!==o.length?(o.forEach(function(e){this.shouldRenderFill(e)?(n(),t(e)):l.push(e)}.bind(this)),n()):this.shouldRenderFill(o)?t(o):r(o),p},shouldRenderFill:function(e){return i.isValidElement(e)&&null!=e.props.fill},renderHeading:function(){var e=this.props.header;return e?(e=!i.isValidElement(e)||Array.isArray(e)?this.props.collapsable?this.renderCollapsableTitle(e):e:this.props.collapsable?a(e,{className:p(this.prefixClass("title")),children:this.renderAnchor(e.props.children)}):a(e,{className:p(this.prefixClass("title"))}),i.createElement("div",{className:this.prefixClass("heading")},e)):n
|