Fixes tradingview/charting_library#4599 Fixes tradingview/charting_library#4613 Fixes tradingview/charting_library#4764 Fixes tradingview/charting_library#4801 Fixes tradingview/charting_library#5112
3 lines
8.1 KiB
JavaScript
3 lines
8.1 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{"+l/S":function(e,t,n){},"/KDZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("mrSG"),r=n("q1tI"),i=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChange=function(){n.forceUpdate()},n.state={query:window.matchMedia(n.props.rule)},n}return Object(a.__extends)(t,e),t.prototype.componentDidMount=function(){this._subscribe(this.state.query)},t.prototype.componentDidUpdate=function(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))},t.prototype.componentWillUnmount=function(){this._unsubscribe(this.state.query)},t.prototype.render=function(){return this.props.children(this.state.query.matches)},t.getDerivedStateFromProps=function(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null},t.prototype._subscribe=function(e){e.addListener(this._handleChange)},t.prototype._unsubscribe=function(e){e.removeListener(this._handleChange)},t}(r.PureComponent)},"02pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n("q1tI"),r=n("TSYQ"),i=n("XiJV");function s(e){return a.createElement("div",{className:r(i.separator,e.className)})}},"2A9e":function(e){e.exports=JSON.parse('{"button":"button-1iktpaT1","content":"content-2PGssb8d","noOutline":"noOutline-d9Yp4qvi","appearance-default":"appearance-default-dMjF_2Hu","intent-primary":"intent-primary-1-IOYcbg","intent-success":"intent-success-25a4XZXM","intent-default":"intent-default-2ZbSqQDs","intent-warning":"intent-warning-24j5HMi0","intent-danger":"intent-danger-1EETHCla","appearance-stroke":"appearance-stroke-12lxiUSM","appearance-text":"appearance-text-DqKJVT3U","appearance-inverse":"appearance-inverse-r1Y2JQg_","size-s":"size-s-3mait84m","size-m":"size-m-2G7L7Qat","size-l":"size-l-2NEs9_xt","size-p":"size-p-3D4rn3v0","full-width":"full-width-1wU8ljjC","with-icon":"with-icon-yumghDr-","icon":"icon-1grlgNdV"}')},"4vL2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("TSYQ");t.getButtonClasses=function(e,t){var n=t.intent,r=void 0===n?"primary":n,i=t.size,s=void 0===i?"m":i,o=t.appearance,l=void 0===o?"default":o,c=t.useFullWidth,u=void 0!==c&&c,d=t.tabIndex,p=void 0===d?0:d,m=t.icon,f=t.className;return a(f,e.button,e["size-"+s],e["intent-"+r],e["appearance-"+l],u&&e["full-width"],-1===p&&e.noOutline,m&&"s"!==s&&e["with-icon"])}},ASyk:function(e,t,n){e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 419px)"}},ItnF:function(e,t,n){e.exports={dialog:"dialog-2QwUBM-N",wrapper:"wrapper-3ePvQMAQ",separator:"separator-1L40XQyb"}},V6cB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mrSG"),r=n("q1tI"),i=n("TSYQ"),s=n("4vL2"),o=n("2A9e");n("+l/S"),t.Button=function(e){
|
|
var t=e.className,n=e.intent,l=e.size,c=e.appearance,u=e.disabled,d=e.useFullWidth,p=e.reference,m=e.icon,f=e.children,h=e.tabIndex,b=a.__rest(e,["className","intent","size","appearance","disabled","useFullWidth","reference","icon","children","tabIndex"]),_=s.getButtonClasses(o,{intent:n,size:l,appearance:c,disabled:u,useFullWidth:d,tabIndex:h,icon:m});return r.createElement("button",a.__assign({className:i(_,t),disabled:u,ref:p,tabIndex:h},b),m&&"s"!==l&&r.createElement("span",{className:o.icon},m),r.createElement("span",{className:o.content},f))}},XiJV:function(e,t,n){e.exports={separator:"separator-1TZB5HZ-"}},"e95/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mrSG"),r=n("q1tI"),i=n("TSYQ"),s=n("4vL2"),o=n("2A9e");n("+l/S"),t.AnchorButton=function(e){var t=e.className,n=e.intent,l=e.size,c=e.appearance,u=e.disabled,d=e.useFullWidth,p=e.reference,m=e.icon,f=e.children,h=e.href,b=e.tabIndex,_=a.__rest(e,["className","intent","size","appearance","disabled","useFullWidth","reference","icon","children","href","tabIndex"]),v=s.getButtonClasses(o,{intent:n,size:l,appearance:c,disabled:u,useFullWidth:d,tabIndex:b,icon:m});return r.createElement("a",a.__assign({className:i(t,v),href:u?void 0:h,"aria-disabled":u,ref:p,tabIndex:b},_),m&&"s"!==l&&r.createElement("span",{className:o.icon},m),r.createElement("span",{className:o.content},f))}},g89m:function(e,t,n){"use strict";var a=n("mrSG"),r=n("q1tI"),i=n.n(r),s=n("Eyy1"),o=n("TSYQ"),l=n.n(o),c=n("/3z9"),u=n("d700"),d=n("WXjp"),p=n("02pg"),m=n("uhCe"),f=n("/KDZ"),h=n("pafz"),b=n("ZjKI"),_=n("FQhm"),v=n("Iivm"),g=n("zztK"),w=n("px1m");function y(e){var t=e.title,n=e.subtitle,a=e.onClose,r=e.renderBefore,s=e.renderAfter;return i.a.createElement("div",{className:l()(w.container,n&&w.unsetAlign)},r,i.a.createElement("div",{"data-dragg-area":!0,className:w.title},i.a.createElement("div",{className:w.ellipsis},t),n&&i.a.createElement("div",{className:l()(w.ellipsis,w.subtitle)},n)),s,i.a.createElement(v.Icon,{className:w.close,icon:g,onClick:a,"data-name":"close","data-role":"button"}))}var x=n("ItnF");n.d(t,"a",(function(){return C}));var N={vertical:20},S={vertical:0},C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._controller=null,t._reference=null,t._renderChildren=function(e,n){return t._controller=e,t.props.render({requestResize:t._requestResize,centerAndFit:t._centerAndFit,isSmallWidth:n})},t._handleReference=function(e){return t._reference=e},t._handleClose=function(){t.props.onClose()},t._handleKeyDown=function(e){if(!e.defaultPrevented)switch(t.props.onKeyDown&&t.props.onKeyDown(e),Object(c.hashFromEvent)(e)){case 27:var n=document.activeElement,a=Object(s.ensureNotNull)(t._reference);if(null!==n){if(e.preventDefault(),E(n))return void t._handleClose();if(Object(u.b)(n))return void a.focus();if(a.contains(n))return void t._handleClose()}}},t._requestResize=function(){null!==t._controller&&t._controller.recalculateBounds()},t._centerAndFit=function(){
|
|
null!==t._controller&&t._controller.centerAndFit()},t}return Object(a.__extends)(t,e),t.prototype.componentDidMount=function(){_.subscribe(b.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)},t.prototype.componentWillUnmount=function(){_.unsubscribe(b.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)},t.prototype.focus=function(){Object(s.ensureNotNull)(this._reference).focus()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,a=t.isOpened,r=t.title,s=t.dataName,o=t.onClickOutside,c=t.additionalElementPos,u=t.additionalHeaderElement,b=t.backdrop,_=t.shouldForceFocus,v=void 0===_||_,g=t.showSeparator,w=t.subtitle,C=t.fullScreen,E=void 0!==C&&C,O="after"!==c?u:void 0,z="after"===c?u:void 0;return i.a.createElement(f.a,{rule:m.a.SmallHeight},(function(t){return i.a.createElement(f.a,{rule:m.a.TabletSmall},(function(c){return i.a.createElement(d.a,{className:l()(x.dialog,n),isOpened:a,reference:e._handleReference,onKeyDown:e._handleKeyDown,onClickOutside:o,fullscreen:c||E,guard:t?S:N,boundByScreen:c||E,shouldForceFocus:v,backdrop:b,name:e.props.dataName},i.a.createElement("div",{className:x.wrapper,"data-name":s,"data-dialog-name":r},i.a.createElement(y,{onClose:e._handleClose,renderAfter:z,renderBefore:O,subtitle:w,title:r}),g&&i.a.createElement(p.a,{className:x.separator}),i.a.createElement(h.a.Consumer,null,(function(t){return e._renderChildren(t,c||E)}))))}))}))},t}(i.a.PureComponent);function E(e){return"true"===e.getAttribute("data-haspopup")&&"true"!==e.getAttribute("data-expanded")}},mwqF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mrSG");a.__exportStar(n("V6cB"),t),a.__exportStar(n("e95/"),t)},px1m:function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-12F9cTKw",unsetAlign:"unsetAlign-39w7dDTj",title:"title-TQFObfxW",subtitle:"subtitle-EM1kLgFz",ellipsis:"ellipsis-1PT8QOxq",close:"close-3NTwKnT_"}},uhCe:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("ASyk"),r={SmallHeight:a["small-height-breakpoint"],TabletSmall:a["tablet-small-breakpoint"],TabletNormal:a["tablet-normal-breakpoint"]}},zztK:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="none"><path stroke="currentColor" stroke-width="1.2" d="M1 1l15 15m0-15L1 16"/></svg>'}}]); |