akkoma/priv/static/packs/features/lists.js

2 lines
6.9 KiB
JavaScript
Raw Normal View History

2018-06-02 14:11:38 +00:00
webpackJsonp([20],{1006:function(n,t,e){"use strict";e.d(t,"a",function(){return _});var i,o,a=e(2),r=e.n(a),c=e(1),l=e.n(c),s=e(3),u=e.n(s),d=e(4),f=e.n(d),h=e(0),p=e.n(h),b=e(9),m=e(96),v=e(23),g=e(7),k=Object(g.f)({label:{id:"lists.new.title_placeholder",defaultMessage:"New list title"},title:{id:"lists.new.create",defaultMessage:"Add list"}}),y=function(n){return{value:n.getIn(["listEditor","title"]),disabled:n.getIn(["listEditor","isSubmitting"])}},C=function(n){return{onChange:function(t){return n(Object(m.w)(t))},onSubmit:function(){return n(Object(m.G)(!0))}}},_=(i=Object(b.connect)(y,C))(o=Object(g.g)(o=function(n){function t(){var e,i,o;l()(this,t);for(var a=arguments.length,r=Array(a),c=0;c<a;c++)r[c]=arguments[c];return e=i=u()(this,n.call.apply(n,[this].concat(r))),i.handleChange=function(n){i.props.onChange(n.target.value)},i.handleSubmit=function(n){n.preventDefault(),i.props.onSubmit()},i.handleClick=function(){i.props.onSubmit()},o=e,u()(i,o)}return f()(t,n),t.prototype.render=function(){var n=this.props,t=n.value,e=n.disabled,i=n.intl,o=i.formatMessage(k.label),a=i.formatMessage(k.title);return r()("form",{className:"column-inline-form",onSubmit:this.handleSubmit},void 0,r()("label",{},void 0,r()("span",{style:{display:"none"}},void 0,o),r()("input",{className:"setting-text",value:t,disabled:e,onChange:this.handleChange,placeholder:o})),r()(v.a,{disabled:e,icon:"plus",title:a,onClick:this.handleClick}))},t}(p.a.PureComponent))||o)||o},153:function(n,t,e){"use strict";e.d(t,"a",function(){return b});var i=e(2),o=e.n(i),a=e(1),r=e.n(a),c=e(3),l=e.n(c),s=e(4),u=e.n(s),d=e(0),f=e.n(d),h=e(10),p=e.n(h),b=function(n){function t(){var e,i,o;r()(this,t);for(var a=arguments.length,c=Array(a),s=0;s<a;s++)c[s]=arguments[s];return e=i=l()(this,n.call.apply(n,[this].concat(c))),i.handleClick=function(){i.props.onClick()},o=e,l()(i,o)}return u()(t,n),t.prototype.render=function(){var n=this.props,t=n.icon,e=n.type,i=n.active,a=n.columnHeaderId,r="";return t&&(r=o()("i",{className:"fa fa-fw fa-"+t+" column-header__icon"})),o()("h1",{className:p()("column-header",{active:i}),id:a||null},void 0,o()("button",{onClick:this.handleClick},void 0,r,e))},t}(f.a.PureComponent)},283:function(n,t,e){"use strict";e.d(t,"a",function(){return g});var i=e(2),o=e.n(i),a=e(1),r=e.n(a),c=e(3),l=e.n(c),s=e(4),u=e.n(s),d=e(32),f=e.n(d),h=e(0),p=e.n(h),b=e(153),m=e(90),v=e(43),g=function(n){function t(){var e,i,o;r()(this,t);for(var a=arguments.length,c=Array(a),s=0;s<a;s++)c[s]=arguments[s];return e=i=l()(this,n.call.apply(n,[this].concat(c))),i.handleHeaderClick=function(){var n=i.node.querySelector(".scrollable");n&&(i._interruptScrollAnimation=Object(m.b)(n))},i.handleScroll=f()(function(){void 0!==i._interruptScrollAnimation&&i._interruptScrollAnimation()},200),i.setRef=function(n){i.node=n},o=e,l()(i,o)}return u()(t,n),t.prototype.scrollTop=function(){var n=this.node.querySelector(".scrollable");n&&(this._interruptScrollAnimation=Object(m.b)(n))},t.prototype.render=function(){var n=this.props,t=n.heading,e=n.icon,i=n.children,a=n.active,r=n.hideHeadingOnMobile,c=t&&(!r||r&&!Object(v.b)(window.innerWidth)),l=c&&t.replace(/ /g,"-"),s=c&&o()(b.a,{icon:e,active:a,type:t,onClick:this.handleHeaderClick,columnHeaderId:l});return p.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":l,className:"column",onScroll:this.handleScroll},s,i)},t}(p.a.PureComponent)},285:function(n,t,e){"use strict";e.d(t,"a",function(){return g});var i,o,a=e(2),r=e.n(a),c=e(1),l=e.n(c),s=e(3),u=e.n(s),d=e(4),f=e.n(d),h=e(0),p=e.n(h),b=e(7),m=e(5),v=e.n(m),g=(o=i=function(n){function t(){var e,i,o;l()(this,t);for(var a=arguments.length,r=Array(a),c=0;c<a;c++)r[c]=arguments[c];return e=i=u()(this,n.call.apply(n,[this].concat(r))),i.handleClick=function(){window.history&&1===window.history.length?i.context.router.history.push("/"):i.context.router.history.goBack()},o=e,u()(i,o)}return f()(t,n),t.prototype.render=function(){return r()("button",{onClick:this.handleClick,className:"column-back-button"},void 0,r()("i",{className:"fa fa-fw fa-chevron-le
//# sourceMappingURL=lists.js.map