Fixes tradingview/charting_library#60 Fixes tradingview/charting_library#65 Fixes tradingview/charting_library#70 Fixes tradingview/charting_library#71 Fixes tradingview/charting_library#75 Fixes tradingview/charting_library#76 Fixes tradingview/charting_library#77 Fixes tradingview/charting_library#78 Fixes tradingview/charting_library#79 Fixes tradingview/charting_library#81 Fixes tradingview/charting_library#82 Fixes tradingview/charting_library#84 Fixes tradingview/charting_library#86 Fixes tradingview/charting_library#89 Fixes tradingview/charting_library#90 Fixes tradingview/charting_library#91 Fixes tradingview/charting_library#92 Fixes tradingview/charting_library#93 Fixes tradingview/charting_library#94 Fixes tradingview/charting_library#95 Fixes tradingview/charting_library#96 Fixes tradingview/charting_library#97 Fixes tradingview/charting_library#99 Fixes tradingview/charting_library#100 Fixes tradingview/charting_library#101 Fixes tradingview/charting_library#102 Fixes tradingview/charting_library#103 Fixes tradingview/charting_library#105 Fixes tradingview/charting_library#106 Fixes tradingview/charting_library#107 Fixes tradingview/charting_library#108 Fixes tradingview/charting_library#109 Fixes tradingview/charting_library#110 Fixes tradingview/charting_library#111 Fixes tradingview/charting_library#113 Fixes tradingview/charting_library#114 Fixes tradingview/charting_library#115 Fixes tradingview/charting_library#116 Fixes tradingview/charting_library#118 Fixes tradingview/charting_library#336 Fixes tradingview/charting_library#683 Fixes tradingview/charting_library#1818 Fixes tradingview/charting_library#1899 Fixes tradingview/charting_library#1995 Fixes tradingview/charting_library#2323 Fixes tradingview/charting_library#3945 Fixes tradingview/charting_library#4522 Fixes tradingview/charting_library#5348 Fixes tradingview/charting_library#5573 Fixes tradingview/charting_library#5726 Fixes tradingview/charting_library#6025 Fixes tradingview/charting_library#6039 Fixes tradingview/charting_library#6165 Fixes tradingview/charting_library#6215 Fixes tradingview/charting_library#6406 Fixes tradingview/charting_library#6500 Fixes tradingview/charting_library#6550 Fixes tradingview/charting_library#6559 Fixes tradingview/charting_library#6572 Fixes tradingview/charting_library#6617 Fixes tradingview/charting_library#6636 Fixes tradingview/charting_library#6659 Fixes tradingview/charting_library#6678 Fixes tradingview/charting_library#6695 Fixes tradingview/charting_library#6713 Fixes tradingview/charting_library#6714 Fixes tradingview/charting_library#6723 Fixes tradingview/charting_library#6737 Fixes tradingview/charting_library#6765 Fixes tradingview/charting_library#6767 Fixes tradingview/charting_library#6775 Fixes tradingview/charting_library#6783 Fixes tradingview/charting_library#6800 Fixes tradingview/charting_library#6825 Fixes tradingview/charting_library#6864 Fixes tradingview/charting_library#6926 Fixes tradingview/charting_library#7060 Fixes tradingview/charting_library#7169 Fixes tradingview/charting_library#7307 Fixes tradingview/charting_library#7443 Fixes tradingview/charting_library#7445 Fixes tradingview/charting_library#7446 Fixes tradingview/charting_library#7457 Fixes tradingview/charting_library#7472 Fixes tradingview/charting_library#7483 Fixes tradingview/charting_library#7492 Fixes tradingview/charting_library#7519 Fixes tradingview/charting_library#7578
11 lines
31 KiB
JavaScript
11 lines
31 KiB
JavaScript
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3596],{63151:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ChartPropertyDefinitionsViewModel:()=>Nt});var r=i(50151),o=i(44352),n=i(14483),l=(i(67980),i(40493),i(58275)),s=i.n(l),a=i(28985),c=i(73955),d=i(78159),u=i(3228),p=i(49535),h=i(73986),v=i(98425),g=i(36298),y=i(42960),P=i(79861),f=i(18611),b=i(97906),m=i(3347);const w=new g.TranslatedString("change symbol description visibility",o.t(null,void 0,i(26717))),S=new g.TranslatedString("change symbol legend format",o.t(null,void 0,i(95071))),_=new g.TranslatedString("change open market status visibility",o.t(null,void 0,i(18644))),D=new g.TranslatedString("change OHLC values visibility",o.t(null,void 0,i(57889))),T=new g.TranslatedString("change bar change visibility",o.t(null,void 0,i(45110))),C=new g.TranslatedString("change indicator arguments visibility",o.t(null,void 0,i(96162))),V=new g.TranslatedString("change indicator titles visibility",o.t(null,void 0,i(31325))),L=new g.TranslatedString("change indicator values visibility",o.t(null,void 0,i(99774))),k=new g.TranslatedString("change legend background visibility",o.t(null,void 0,i(61061))),x=new g.TranslatedString("change legend background transparency",o.t(null,void 0,i(97956))),M=new g.TranslatedString("change volume values visibility",o.t(null,void 0,i(9455))),O=new g.TranslatedString("change symbol field visibility",o.t(null,void 0,i(6091))),G=o.t(null,void 0,i(67369)),R=o.t(null,void 0,i(99487)),A=o.t(null,void 0,i(22519)),W=o.t(null,void 0,i(1111)),H=o.t(null,void 0,i(31326)),F=o.t(null,void 0,i(68791)),Z=o.t(null,void 0,i(91322)),N=o.t(null,void 0,i(27331)),E=o.t(null,void 0,i(75991)),B=o.t(null,void 0,i(24248)),j=n.enabled("symbol_info_price_source");var z=i(74304),U=i(20345),I=i(11095),q=i(42226);const J=n.enabled("show_average_close_price_line_and_label"),K=new g.TranslatedString("change symbol labels visibility",o.t(null,void 0,i(9402))),Q=new g.TranslatedString("change symbol last value visibility",o.t(null,void 0,i(53150))),X=new g.TranslatedString("change symbol last value mode",o.t(null,void 0,i(28741))),Y=(new g.TranslatedString("change symbol previous close value visibility",o.t(null,void 0,i(12707))),new g.TranslatedString("change bid and ask labels visibility",o.t(null,void 0,i(5100))),new g.TranslatedString("change pre/post market price label visibility",o.t(null,void 0,i(49889))),new g.TranslatedString("change high and low price labels visibility",o.t(null,void 0,i(66805)))),$=new g.TranslatedString("change average close price label visibility",o.t(null,void 0,i(39402))),ee=(new g.TranslatedString("change indicators and financials name labels visibility",o.t(null,void 0,i(59820))),new g.TranslatedString("change indicators name labels visibility",o.t(null,void 0,i(87027)))),te=(new g.TranslatedString("change indicators and financials value labels visibility",o.t(null,void 0,i(90512))),
|
|
new g.TranslatedString("change indicators value labels visibility",o.t(null,void 0,i(14922)))),ie=new g.TranslatedString("change no overlapping labels",o.t(null,void 0,i(83935))),re=new g.TranslatedString("change countdown to bar close visibility",o.t(null,void 0,i(58108))),oe=new g.TranslatedString("change currency label visibility",o.t(null,void 0,i(84060))),ne=new g.TranslatedString("change unit label visibility",o.t(null,void 0,i(7011))),le=new g.TranslatedString("change currency and unit labels visibility",o.t(null,void 0,i(88161))),se=new g.TranslatedString("change plus button visibility",o.t(null,void 0,i(50190))),ae=new g.TranslatedString("toggle lock scale",o.t(null,void 0,i(21203))),ce=new g.TranslatedString("change price to bar ratio",o.t(null,void 0,i(69510))),de=new g.TranslatedString("change date format",o.t(null,void 0,i(50457))),ue=new g.TranslatedString("change time hours format",o.t(null,void 0,i(76991))),pe=(new g.TranslatedString("change day of week on labels",o.t(null,void 0,i(7104))),o.t(null,void 0,i(35383))),he=o.t(null,void 0,i(27767)),ve=(o.t(null,void 0,i(40847)),o.t(null,void 0,i(25084)),o.t(null,void 0,i(9654))),ge=(o.t(null,void 0,i(29687)),o.t(null,void 0,i(34905))),ye=(o.t(null,void 0,i(47586)),o.t(null,void 0,i(74823)),o.t(null,void 0,i(95036))),Pe=o.t(null,void 0,i(60971)),fe=o.t(null,void 0,i(42502)),be=o.t(null,void 0,i(78905)),me=o.t(null,void 0,i(94370)),we=o.t(null,void 0,i(50985)),Se=o.t(null,void 0,i(77534)),_e=o.t(null,void 0,i(17319)),De=o.t(null,void 0,i(97378)),Te=o.t(null,void 0,i(53224)),Ce=o.t(null,void 0,i(18219)),Ve=o.t(null,void 0,i(64859)),Le=o.t(null,void 0,i(25209)),ke=o.t(null,void 0,i(97316)),xe=o.t(null,void 0,i(43637)),Me=(o.t(null,void 0,i(55090)),[{value:z.PriceAxisLastValueMode.LastPriceAndPercentageValue,title:o.t(null,void 0,i(76523))},{value:z.PriceAxisLastValueMode.LastValueAccordingToScale,title:o.t(null,void 0,i(80170))}])
|
|
;const Oe=new g.TranslatedString("change chart background color",o.t(null,void 0,i(99011))),Ge=new g.TranslatedString("change chart background type",o.t(null,void 0,i(72458))),Re=new g.TranslatedString("change vert grid lines color",o.t(null,void 0,i(22722))),Ae=new g.TranslatedString("change horz grid lines color",o.t(null,void 0,i(88096))),We=new g.TranslatedString("change grid lines visibility",o.t(null,void 0,i(27764))),He=new g.TranslatedString("change scales text color",o.t(null,void 0,i(35065))),Fe=new g.TranslatedString("change scales font size",o.t(null,void 0,i(84382))),Ze=new g.TranslatedString("change scales lines color",o.t(null,void 0,i(12468))),Ne=new g.TranslatedString("change pane separators color",o.t(null,void 0,i(89032))),Ee=new g.TranslatedString("change crosshair color",o.t(null,void 0,i(29951))),Be=new g.TranslatedString("change crosshair width",o.t(null,void 0,i(37034))),je=new g.TranslatedString("change crosshair style",o.t(null,void 0,i(92027))),ze=new g.TranslatedString("change symbol watermark visibility",o.t(null,void 0,i(87159))),Ue=new g.TranslatedString("change symbol watermark color",o.t(null,void 0,i(25616))),Ie=new g.TranslatedString("change navigation buttons visibility",o.t(null,void 0,i(35646))),qe=new g.TranslatedString("change pane buttons visibility",o.t(null,void 0,i(37730))),Je=new g.TranslatedString("change top margin",o.t(null,void 0,i(98905))),Ke=new g.TranslatedString("change bottom margin",o.t(null,void 0,i(10349))),Qe=new g.TranslatedString("change right margin",o.t(null,void 0,i(35636))),Xe=new g.TranslatedString("change right margin percentage",o.t(null,void 0,i(66601))),Ye=o.t(null,void 0,i(27331)),$e=o.t(null,void 0,i(37174)),et=o.t(null,void 0,i(36426)),tt=o.t(null,void 0,i(34403)),it=o.t(null,void 0,i(49199)),rt=o.t(null,void 0,i(39392)),ot=o.t(null,void 0,i(37229)),nt=o.t(null,void 0,i(83182)),lt=o.t(null,void 0,i(73908)),st=o.t(null,void 0,i(46720)),at=o.t(null,void 0,i(77705)),ct=o.t(null,void 0,i(74343)),dt=o.t(null,void 0,i(50446)),ut=o.t(null,void 0,i(65994)),pt=o.t(null,void 0,i(91757)),ht=o.t(null,void 0,i(21141)),vt=o.t(null,void 0,i(36014)),gt=o.t(null,void 0,i(16812)),yt=o.t(null,{context:"unit"},i(50831));var Pt=i(15879),ft=i(83407),bt=i(53741),mt=i(16164),wt=i(38618),St=i(53078),_t=i(82038),Dt=i(84806),Tt=i(87717),Ct=i(5666),Vt=i(7621),Lt=i(8021),kt=i(60339),xt=i(75709),Mt=i(99165),Ot=i(84504);const Gt={symbol:{active:Lt,default:St},legend:{active:kt,default:_t},scales:{active:xt,default:Dt},appearance:{active:i(97660),default:Vt},events:{active:Ot,default:Ct},trading:{active:Mt,default:Tt}},Rt=o.t(null,void 0,i(89053)),At=o.t(null,void 0,i(79194)),Wt=o.t(null,void 0,i(43115)),Ht=o.t(null,void 0,i(19481)),Ft=(o.t(null,void 0,i(26897)),o.t(null,void 0,i(90801)),o.t(null,void 0,i(70500)),o.t(null,void 0,i(78621)),o.t(null,void 0,i(30973)),!1);const Zt=[{id:"symbol-text-source-description",value:"description",title:o.t(null,void 0,i(29601))},{id:"symbol-text-source-ticker",value:"ticker",title:o.t(null,void 0,i(23097))},{
|
|
id:"symbol-text-source-ticker-and-description",value:"ticker-and-description",title:o.t(null,void 0,i(82168))}];n.enabled("symbol_info_long_description")&&Zt.push({id:"symbol-text-source-long-description",value:"long-description",title:o.t(null,void 0,i(96073))});class Nt{constructor(e,t,i){this._propertyPages=null,this._maxRightOffsetPropertyObject=null,this._defaultRightOffsetPercentageWatchedValue=null,this._useRightOffsetPercentageWatchedValue=null,this._profitLossOptions=null,this._isDestroyed=!1,this._availableDateFormatValues=null,this._undoModel=e,this._model=this._undoModel.model(),this._series=this._model.mainSeries(),this._chartWidgetProperties=t,this._options=i,this._seriesPropertyDefinitionViewModel=this._createSeriesViewModel();const r=this._chartWidgetProperties.childs().paneProperties.childs(),o=(0,P.createWVFromProperty)(r.gridLinesMode);this._gridColorsVisibilities={gridLinesMode:o,vertLinesVisible:(0,b.combine)((e=>"both"===e||"vert"===e),o),horzLinesVisible:(0,b.combine)((e=>"both"===e||"horz"===e),o)},this._legendPropertyPage=this._createLegendPropertyPage(),this._scalesPropertyPage=this._createScalesPropertyPage(),this._appearancePropertyPage=this._createAppearancePropertyPage(),this._tradingPropertyPage=this._createTradingPropertyPage(),this._eventsPropertyPage=this._createEventsPropertyPage(),this._series.onStyleChanged().subscribe(this,this._updateDefinitions),this._series.priceScaleChanged().subscribe(this,this._updateDefinitions)}destroy(){var e,t;null!==this._propertyPages&&this._propertyPages.filter(((e,t)=>0!==t)).forEach((e=>{(0,a.destroyDefinitions)(e.definitions.value())})),this._seriesPropertyDefinitionViewModel.destroy(),null===(e=this._pipValueTypeSubscription)||void 0===e||e.unsubscribe(),null===(t=this._availableDateFormatValues)||void 0===t||t.destroy(),this._series.onStyleChanged().unsubscribe(this,this._updateDefinitions),this._series.priceScaleChanged().unsubscribe(this,this._updateDefinitions);(0,r.ensureNotNull)(this._model.timeScale()).maxRightOffsetChanged().unsubscribeAll(this),this._gridColorsVisibilities.vertLinesVisible.destroy(),this._gridColorsVisibilities.horzLinesVisible.destroy(),this._gridColorsVisibilities.gridLinesMode.destroy(),this._isDestroyed=!0}propertyPages(){return null===this._propertyPages?this._seriesPropertyDefinitionViewModel.propertyPages().then((e=>{if(this._isDestroyed)throw new Error("ChartPropertyDefinitionsViewModel already destroyed");return null===this._propertyPages&&(this._propertyPages=[...e],this._propertyPages.push(this._legendPropertyPage,this._scalesPropertyPage,this._appearancePropertyPage),null!==this._tradingPropertyPage&&this._propertyPages.push(this._tradingPropertyPage),null!==this._eventsPropertyPage&&this._propertyPages.push(this._eventsPropertyPage)),this._propertyPages})):Promise.resolve(this._propertyPages)}_updatePlDisplayOptions(e){(0,r.ensureNotNull)(this._profitLossOptions).setValue([])}_updateDefinitions(){(0,a.destroyDefinitions)(this._scalesPropertyPage.definitions.value());const e=this._createScalesDefinitions()
|
|
;this._scalesPropertyPage.definitions.setValue(e.definitions)}_createSeriesViewModel(){const e={property:this._model.properties().childs().timezone,values:wt.availableTimezones.map((e=>({value:e.id,title:e.title})))};return new h.SeriesPropertyDefinitionsViewModel(this._series,this._undoModel,"symbol",Rt,Gt.symbol,e)}_createLegendPropertyPage(){const e=this._chartWidgetProperties.childs().paneProperties.childs().legendProperties.childs(),t={property:this._series.properties().childs().statusViewStyle.childs().symbolTextSource,values:Zt},r=function(e,t,r,n,l){const c=[],d=[],u=(0,a.createOptionsPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showSeriesTitle,w),option:(0,a.convertToDefinitionProperty)(e,r.property,S)},{id:"symbolTextSource",title:G,options:new(s())(r.values)});if(d.push(u),null!==n){const t=(0,b.combineWithFilteredUpdate)(((t,i)=>"market"===t&&!(0,y.isEconomicSymbol)(e.mainSeries().symbolInfo())),((e,t)=>null!==e),e.mainSeries().marketStatusModel().status(),e.mainSeries().symbolResolvingActive()),i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,n,_),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(t)},{id:"showOpenMarketStatus",title:E});d.push(i)}const p=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showSeriesOHLC,D)},{id:"ohlcTitle",title:R});d.push(p);const h=(0,P.combineProperty)((e=>12!==e),e.mainSeries().properties().childs().style),v=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showBarChange,T),visible:(0,m.makeProxyDefinitionPropertyDestroyable)(h)},{id:"barChange",title:A});if(d.push(v),d.push((0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showVolume,M)},{id:"barVolume",title:W})),j){const i=(0,b.combineWithFilteredUpdate)((()=>e.model().symbolSources().some((e=>{var t;return void 0!==(null===(t=e.symbolInfo())||void 0===t?void 0:t.price_source_id)}))),(e=>!e),e.model().symbolSourceResolvingActive(),(0,P.createWVFromGetterAndSubscription)((()=>e.model().symbolSources().length),e.model().symbolSourceCollectionChanged()));d.push((0,a.createCheckablePropertyDefinition)({disabled:(0,a.convertFromReadonlyWVToDefinitionProperty)(e.model().symbolSourceResolvingActive()),checked:(0,a.convertToDefinitionProperty)(e,t.showPriceSource,O),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(i)},{id:"priceSource",title:B}))}c.push((0,a.createPropertyDefinitionsGeneralGroup)(d,"seriesLegendVisibilityGroup",o.t(null,void 0,i(89053))));const g=[],z=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyArguments,C)},{id:"studyArguments",title:F}),U=(0,a.createCheckableSetPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyTitles,V)},{id:"studyTitles",title:H},[z]),I=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyValues,L)},{id:"studyValues",title:Z}),q=(0,
|
|
P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,f.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());g.push(U,I),c.push((0,a.createPropertyDefinitionsGeneralGroup)(g,"studiesLegendVisibilityGroup",o.t(null,void 0,i(61142)),q));const J=[],K=(0,a.createTransparencyPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showBackground,k),transparency:(0,a.convertToDefinitionProperty)(e,t.backgroundTransparency,x)},{id:"legendBgTransparency",title:N});return J.push(K),c.push((0,a.createPropertyDefinitionsGeneralGroup)(J,"generalLegendGroup")),{definitions:c}}(this._undoModel,e,t,this._options.marketStatusWidgetEnabled?v.showMarketOpenStatusProperty:null);return(0,c.createPropertyPage)(r,"legend",At,Gt.legend)}_createScalesPropertyPage(){const e=this._createScalesDefinitions();return(0,c.createPropertyPage)(e,"scales",Wt,Gt.scales)}_createScalesDefinitions(){const e=this._chartWidgetProperties.childs().scalesProperties.childs(),t={property:this._model.properties().childs().priceScaleSelectionStrategyName,values:(0,p.allPriceScaleSelectionStrategyInfo)().map((e=>({value:e.name,title:e.title})))};null===this._availableDateFormatValues&&(this._availableDateFormatValues=new(s())(function(e=!1){const t=new Date(Date.UTC(1997,8,29));return Pt.availableDateFormats.map((i=>({value:i,title:new bt.DateFormatter(i,e).format(t)})))}()).spawn());const r={property:ft.dateFormatProperty,values:this._availableDateFormatValues},l={property:mt.timeHoursFormatProperty,values:[{value:"24-hours",title:o.t(null,void 0,i(55838))},{value:"12-hours",title:o.t(null,void 0,i(19648))}]},c=this._model.mainSeriesScaleRatioProperty();return function(e,t,i,r){const o=r.seriesPriceScale.properties().childs(),l=[],c=[],d=[],u=[];if(r.seriesHasClosePrice){const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showSymbolLabels,K)},{id:"symbolNameLabel",title:pe}),r=(0,a.createOptionsPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showSeriesLastValue,Q),option:(0,a.convertToDefinitionProperty)(e,i.seriesLastValueMode,X)},{id:"symbolLastValueLabel",title:he,options:new(s())(Me)});c.push(t,r)}const p=t.highLowAvgPrice.childs(),h=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,p.highLowPriceLabelsVisible,Y)},{id:"highLowPriceLabels",title:Pe});if(c.push(h),J){const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,p.averageClosePriceLabelVisible,$)},{id:"averageClosePriceLabel",title:ye});c.push(t)}const v=(0,P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,f.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());{const t=(0,a.createCheckablePropertyDefinition)({visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(v),checked:(0,a.convertToDefinitionProperty)(e,i.showStudyPlotLabels,ee)},{id:"studyNameLabel",title:ve});c.push(t)}const g=(0,
|
|
P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,f.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());{const t=(0,a.createCheckablePropertyDefinition)({visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(g),checked:(0,a.convertToDefinitionProperty)(e,i.showStudyLastValue,te)},{id:"studyLastValueLabel",title:ge});c.push(t)}const y=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,o.alignLabels,ie)},{id:"noOverlappingLabels",title:fe});if(c.push(y),l.push((0,a.createPropertyDefinitionsGeneralGroup)(c,"scalesLabelsGroup",be)),r.countdownEnabled){const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showCountdown,re)},{id:"countdown",title:me});d.push(i)}if(e.crossHairSource().isMenuEnabled()){const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,I.addPlusButtonProperty,se)},{id:"addPlusButton",title:De});d.push(t)}if(r.currencyConversionEnabled||r.unitConversionEnabled){const t=r.currencyConversionEnabled&&r.unitConversionEnabled?_e:r.currencyConversionEnabled?we:Se,i=r.currencyConversionEnabled&&r.unitConversionEnabled?le:r.currencyConversionEnabled?oe:ne,o=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,(0,q.currencyUnitVisibilityProperty)(),i)},{id:"scalesCurrencyUnit",title:t,options:new(s())((0,q.currencyUnitVisibilityOptions)())});d.push(o)}const b=(0,a.createNumberPropertyDefinition)({checked:(0,a.getLockPriceScaleDefinitionProperty)(e,o.lockScale,r.seriesPriceScale,ae),value:(0,a.getScaleRatioDefinitionProperty)(e,r.mainSeriesScaleRatioProperty,ce,[(0,U.limitedPrecision)(7),e=>e])},{id:"lockScale",title:Ce,min:new(s())(r.mainSeriesScaleRatioProperty.getMinValue()),max:new(s())(r.mainSeriesScaleRatioProperty.getMaxValue()),step:new(s())(r.mainSeriesScaleRatioProperty.getStepChangeValue())}),m=(0,a.createOptionsPropertyDefinition)({option:(0,a.getPriceScaleSelectionStrategyDefinitionProperty)(e,r.scalesPlacementPropertyObj.property)},{id:"scalesPlacement",title:Te,options:new(s())(r.scalesPlacementPropertyObj.values)});if(d.push(b,m),l.push((0,a.createPropertyDefinitionsGeneralGroup)(d,"scalesPriceScaleGroup",Ve)),n.enabled("scales_date_format")){const t=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,r.dateFormatPropertyObj.property,de)},{id:"dateFormat",title:Le,options:r.dateFormatPropertyObj.values});u.push(t)}if(n.enabled("scales_time_hours_format")){const t=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,r.timeHoursFormatPropertyObj.property,ue)},{id:"timeHoursFormat",title:ke,options:new(s())(r.timeHoursFormatPropertyObj.values)});u.push(t)}return u.length>0&&l.push((0,a.createPropertyDefinitionsGeneralGroup)(u,"scalesTimeScaleGroup",xe)),{definitions:l}}(this._undoModel,this._series.properties().childs(),e,{disableSeriesPrevCloseValueProperty:this._series.isDWMProperty(),
|
|
seriesHasClosePrice:this._series.hasClosePrice(),seriesPriceScale:this._series.priceScale(),mainSeriesScaleRatioProperty:c,scalesPlacementPropertyObj:t,dateFormatPropertyObj:r,timeHoursFormatPropertyObj:l,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled,withWeekdayProperty:void 0})}_createMaxOffsetPropertyObject(){const e=(0,r.ensureNotNull)(this._model.timeScale()),t=new(s())(Math.floor(e.maxRightOffset()));e.maxRightOffsetChanged().subscribe(this,(e=>{t.setValue(Math.floor(e))})),this._maxRightOffsetPropertyObject={value:e.defaultRightOffset(),min:new(s())(0),max:t}}_createDefaultRightOffsetPercentageWatchedValue(){const e=(0,r.ensureNotNull)(this._model.timeScale());this._defaultRightOffsetPercentageWatchedValue=e.defaultRightOffsetPercentage()}_createUseRightOffsetPercentageWatchedValue(){const e=(0,r.ensureNotNull)(this._model.timeScale());this._useRightOffsetPercentageWatchedValue=e.usePercentageRightOffset()}_createAppearancePropertyPage(){const e=this._chartWidgetProperties.childs(),t=e.paneProperties.childs(),l=e.scalesProperties.childs(),p=this._model.watermarkSource();let h=null;null!==p&&(h=p.properties().childs());const v={property:d.property(),values:d.availableValues()},g={property:u.property(),values:u.availableValues()};null===this._maxRightOffsetPropertyObject&&this._createMaxOffsetPropertyObject(),null===this._defaultRightOffsetPercentageWatchedValue&&this._createDefaultRightOffsetPercentageWatchedValue(),null===this._useRightOffsetPercentageWatchedValue&&this._createUseRightOffsetPercentageWatchedValue();const y=(0,r.ensureNotNull)(this._maxRightOffsetPropertyObject),f=(0,r.ensureNotNull)(this._defaultRightOffsetPercentageWatchedValue),b=(0,r.ensureNotNull)(this._useRightOffsetPercentageWatchedValue),m=function(e,t,r,l,c,d,u,p,h,v){const g=[],y=[],f=[],b=[],m=[],w=(0,a.createColorPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,t.background,null,Oe),gradientColor1:(0,a.getColorDefinitionProperty)(e,t.backgroundGradientStartColor,null,Oe),gradientColor2:(0,a.getColorDefinitionProperty)(e,t.backgroundGradientEndColor,null,Oe),type:(0,a.convertToDefinitionProperty)(e,t.backgroundType,Ge)},{id:"chartBackground",title:Ye,noAlpha:!0}),S=t.vertGridProperties.childs(),_=t.horzGridProperties.childs(),D=(0,a.createOptionalTwoColorsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,t.gridLinesMode,We),color1:(0,a.getColorDefinitionProperty)(e,S.color,null,Re),color2:(0,a.getColorDefinitionProperty)(e,_.color,null,Ae)},{id:"gridLines",title:rt,options:new(s())([{title:$e,value:"both"},{title:et,value:"vert"},{title:tt,value:"horz"},{title:it,value:"none"}]),color1Visible:v.vertLinesVisible,color2Visible:v.horzLinesVisible}),T=(0,P.createWVFromGetterAndSubscription)((()=>1!==e.model().panes().length),e.model().panesCollectionChanged()),C=(0,a.createLinePropertyDefinition)({visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(T),color:(0,
|
|
a.getColorDefinitionProperty)(e,t.separatorColor,null,Ne)},{id:"paneSeparators",title:lt}),V=t.crossHairProperties.childs(),L=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,V.color,V.transparency,Ee),width:(0,a.convertToDefinitionProperty)(e,V.width,Be),style:(0,a.convertToDefinitionProperty)(e,V.style,je)},{id:"crossHair",title:st});if(g.push(w,D,C,L),null!==r){const t=(0,a.createColorPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.visibility,ze),color:(0,a.getColorDefinitionProperty)(e,r.color,null,Ue)},{id:"watermark",title:at});g.push(t)}const k=(0,a.createTextPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,l.textColor,null,He),size:(0,a.convertToDefinitionProperty)(e,l.fontSize,Fe)},{id:"scalesText",title:ot}),x=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,l.lineColor,null,Ze)},{id:"scalesLine",title:nt});y.push(k,x);const M=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,d.property,Ie)},{id:"navButtons",title:ct,options:new(s())(d.values)}),O=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,u.property,qe)},{id:"paneButtons",title:dt,options:new(s())(u.values)});f.push(M,O);const G=(0,a.createNumberPropertyDefinition)({value:(0,a.convertToDefinitionProperty)(e,t.topMargin,Je,[U.floor])},{type:0,id:"paneTopMargin",title:ut,min:new(s())(0),max:new(s())(25),step:new(s())(1),unit:new(s())("%")}),R=(0,a.createNumberPropertyDefinition)({value:(0,a.convertToDefinitionProperty)(e,t.bottomMargin,Ke,[U.floor])},{type:0,id:"paneBottomMargin",title:pt,min:new(s())(0),max:new(s())(25),step:new(s())(1),unit:new(s())("%")});if(b.push(G,R),n.enabled("chart_property_page_right_margin_editor")){const t={value:(0,a.convertFromWVToDefinitionProperty)(e,c.value,Qe,[U.floor])},i={type:0,id:"paneRightMargin",title:ht,min:c.min,max:c.max,step:new(s())(1),unit:new(s())(yt)};if(n.enabled("show_percent_option_for_right_margin")){const r=(0,a.createNumberPropertyDefinition)({...t,checked:(0,a.convertFromWVToDefinitionProperty)(e,h.opposite(),Xe)},{...i,title:gt}),o=(0,a.createNumberPropertyDefinition)({checked:(0,a.convertFromWVToDefinitionProperty)(e,h,Xe),value:(0,a.convertFromWVToDefinitionProperty)(e,p,Xe,[U.floor])},{type:0,id:"paneRightMarginPercentage",title:vt,min:new(s())(0),max:new(s())(99),step:new(s())(1),unit:new(s())("%")});m.push(r),m.push(o)}else{const e=(0,a.createNumberPropertyDefinition)(t,i);b.push(e)}}const A=[(0,a.createPropertyDefinitionsGeneralGroup)(g,"chartBasicStylesAppearanceGroup",o.t(null,void 0,i(88364))),(0,a.createPropertyDefinitionsGeneralGroup)(y,"scalesAppearanceGroup",o.t(null,void 0,i(43115))),(0,a.createPropertyDefinitionsGeneralGroup)(f,"buttonsAppearanceGroup",o.t(null,void 0,i(87845))),(0,a.createPropertyDefinitionsGeneralGroup)(b,"marginsAppearanceGroup",o.t(null,void 0,i(66653)))];return m.length>0&&A.push((0,a.createPropertyDefinitionsGeneralGroup)(m,"rightMarginsAppearanceGroup",o.t(null,void 0,i(40187)))),{definitions:A}
|
|
}(this._undoModel,t,h,l,y,v,g,f,b,this._gridColorsVisibilities);return(0,c.createPropertyPage)(m,"appearance",Ht,Gt.appearance)}_createTradingPropertyPage(){return null}_createEventsPropertyPage(){return null}}},84504:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M9.75 3c.41 0 .75.34.75.75V5h7V3.75a.75.75 0 0 1 1.5 0V5a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H9a4 4 0 0 1-4-4V9a4 4 0 0 1 4-4V3.75c0-.41.34-.75.75-.75zM9 6.5h10A2.5 2.5 0 0 1 21.5 9v1.5h-15V9A2.5 2.5 0 0 1 9 6.5zM6.5 12v7A2.5 2.5 0 0 0 9 21.5h10a2.5 2.5 0 0 0 2.5-2.5v-7h-15z"/></svg>'},8021:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M12 7h-.75V4h-1.5v3H9a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h.75v3h1.5v-3H12a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1ZM9.5 19.5v-11h2v11h-2Zm8-3v-5h2v5h-2Zm.24-6.5H17a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h.75v3h1.5v-3H20a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1h-.76V7h-1.5v3Z"/></svg>'},97660:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" stroke-width="1.5" d="m7.5 16.5-1 1v4h4l1-1m-4-4 9-9m-9 9 4 4m0 0 9-9m-4-4 .59-.59a2 2 0 0 1 2.82 0L21.1 8.1a2 2 0 0 1 0 2.82l-.59.59m-4-4 2 2 2 2"/></svg>'},75709:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" stroke-width="1.5" d="M10.5 20.5a2 2 0 1 1-2-2m2 2a2 2 0 0 0-2-2m2 2h14m-16-2v-14m16 16L21 17m3.5 3.5L21 24M8.5 4.5 12 8M8.5 4.5 5 8"/></svg>'},60339:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M7 7.5h14a.5.5 0 0 1 0 1H7a.5.5 0 0 1 0-1ZM5 8c0-1.1.9-2 2-2h14a2 2 0 1 1 0 4H7a2 2 0 0 1-2-2Zm13 5H6v1.5h12V13ZM6 17h12v1.5H6V17Zm12 4H6v1.5h12V21Z"/></svg>'},99165:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="m17.53 15.08.45.33.44-.33 6.65-4.92a2.3 2.3 0 0 0 .42-3.3 2.35 2.35 0 0 0-3.23-.4l-4.28 3.18-4.29-3.18a2.35 2.35 0 0 0-3.22.4 2.3 2.3 0 0 0 .42 3.3l6.64 4.92Zm6.64-6.1-6.2 4.59-6.19-4.6a.83.83 0 0 1-.15-1.18.85.85 0 0 1 1.17-.15l4.73 3.51.45.33.44-.33 4.74-3.5a.85.85 0 0 1 1.16.14c.3.37.23.9-.15 1.19Zm-13.7 3.94-.45-.33-.44.33-6.65 4.92a2.3 2.3 0 0 0-.42 3.3 2.35 2.35 0 0 0 3.23.4l4.28-3.18 4.29 3.18c1 .75 2.44.57 3.22-.4a2.3 2.3 0 0 0-.42-3.3l-6.64-4.92Zm-6.64 6.1 6.2-4.59 6.19 4.6c.38.27.45.81.15 1.18a.85.85 0 0 1-1.17.15l-4.73-3.51-.45-.33-.44.33-4.74 3.5a.85.85 0 0 1-1.16-.14.83.83 0 0 1 .15-1.19Z"/></svg>'},5666:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M10 5h8V3h1v2h.5A3.5 3.5 0 0 1 23 8.5v11a3.5 3.5 0 0 1-3.5 3.5h-11A3.5 3.5 0 0 1 5 19.5v-11A3.5 3.5 0 0 1 8.5 5H9V3h1v2Zm12 5V8.5A2.5 2.5 0 0 0 19.5 6h-11A2.5 2.5 0 0 0 6 8.5V10h16ZM6 11v8.5A2.5 2.5 0 0 0 8.5 22h11a2.5 2.5 0 0 0 2.5-2.5V11H6Z"/></svg>'},
|
|
53078:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M11 4h-1v3H8.5a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5H10v3h1v-3h1.5a.5.5 0 0 0 .5-.5v-13a.5.5 0 0 0-.5-.5H11V4ZM9 8v12h3V8H9Zm10-1h-1v3h-1.5a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5H18v3h1v-3h1.5a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5H19V7Zm-2 10v-6h3v6h-3Z"/></svg>'},7621:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M16.73 6.56a2.5 2.5 0 0 1 3.54 0l1.17 1.17a2.5 2.5 0 0 1 0 3.54l-.59.58-9 9-1 1-.14.15H6v-4.7l.15-.15 1-1 9-9 .58-.59Zm2.83.7a1.5 1.5 0 0 0-2.12 0l-.23.24 3.29 3.3.23-.24a1.5 1.5 0 0 0 0-2.12l-1.17-1.17Zm.23 4.24L16.5 8.2l-8.3 8.3 3.3 3.3 8.3-8.3Zm-9 9L7.5 17.2l-.5.5V21h3.3l.5-.5Z"/></svg>'},84806:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M10.5 20.5a2 2 0 1 1-2-2m2 2a2 2 0 0 0-2-2m2 2h14m-16-2v-14m16 16L21 17m3.5 3.5L21 24M8.5 4.5L12 8M8.5 4.5L5 8"/></svg>'},82038:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M7 7h14a1 1 0 1 1 0 2H7a1 1 0 0 1 0-2ZM5 8c0-1.1.9-2 2-2h14a2 2 0 1 1 0 4H7a2 2 0 0 1-2-2Zm13 5H6v1h12v-1Zm0 4H6v1h12v-1ZM6 21h12v1H6v-1Z"/></svg>'},87717:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M12.8441 8.61921C13.232 8.13425 13.9481 8.07567 14.4097 8.49112L18.1651 11.871L18.4996 12.172L18.8341 11.871L22.5896 8.49121C23.0512 8.07582 23.7672 8.13438 24.1551 8.61927C24.5188 9.07382 24.4567 9.73484 24.0147 10.1137L18.4996 14.8409L12.9845 10.1137C12.5425 9.73482 12.4804 9.07379 12.8441 8.61921ZM15.0787 7.74783C14.1896 6.94765 12.8104 7.06048 12.0632 7.99452C11.3628 8.87007 11.4824 10.1432 12.3338 10.8729L18.1742 15.879L18.4996 16.158L18.825 15.879L24.6655 10.8729C25.5168 10.1432 25.6364 8.87006 24.936 7.99454C24.1888 7.06061 22.8097 6.94781 21.9207 7.7479L18.4996 10.8267L15.0787 7.74783ZM15.1551 18.8798C14.7672 19.3647 14.0511 19.4233 13.5895 19.0078L9.83409 15.628L9.49962 15.3269L9.16514 15.6279L5.4096 19.0077C4.94802 19.4231 4.23205 19.3646 3.84411 18.8797C3.48044 18.4251 3.54256 17.7641 3.98455 17.3853L9.49961 12.6581L15.0147 17.3853C15.4567 17.7641 15.5188 18.4252 15.1551 18.8798ZM12.9205 19.7511C13.8096 20.5513 15.1888 20.4385 15.936 19.5044C16.6364 18.6289 16.5168 17.3557 15.6655 16.626L9.82501 11.6199L9.49961 11.341L9.17421 11.6199L3.33376 16.626C2.48244 17.3557 2.3628 18.6289 3.06327 19.5044C3.81047 20.4383 5.1895 20.5512 6.07854 19.7511L9.4996 16.6723L12.9205 19.7511Z"/></svg>'}}]); |