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#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#94 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#1995 Fixes tradingview/charting_library#5726 Fixes tradingview/charting_library#6025 Fixes tradingview/charting_library#6406 Fixes tradingview/charting_library#6636 Fixes tradingview/charting_library#6767 Fixes tradingview/charting_library#6775 Fixes tradingview/charting_library#6783 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
9 lines
25 KiB
JavaScript
9 lines
25 KiB
JavaScript
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3596],{25008:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ChartPropertyDefinitionsViewModel:()=>Tt});var r=i(50151),n=i(44352),o=i(2484),l=(i(8169),i(97070),i(40549)),s=i.n(l),a=i(65279),c=i(82623),d=i(11954),p=i(43074),u=i(37364),h=i(68622),v=i(35663),y=i(47539),g=i(1930),P=i(52865),b=i(21580),f=i(7019);const m=new y.TranslatedString("change symbol description visibility",n.t(null,void 0,i(26717))),w=new y.TranslatedString("change symbol legend format",n.t(null,void 0,i(95071))),S=new y.TranslatedString("change open market status visibility",n.t(null,void 0,i(18644))),D=new y.TranslatedString("change OHLC values visibility",n.t(null,void 0,i(57889))),T=new y.TranslatedString("change bar change visibility",n.t(null,void 0,i(45110))),_=new y.TranslatedString("change indicator arguments visibility",n.t(null,void 0,i(96162))),C=new y.TranslatedString("change indicator titles visibility",n.t(null,void 0,i(31325))),k=new y.TranslatedString("change indicator values visibility",n.t(null,void 0,i(99774))),V=new y.TranslatedString("change legend background visibility",n.t(null,void 0,i(61061))),L=new y.TranslatedString("change legend background transparency",n.t(null,void 0,i(97956))),M=new y.TranslatedString("change volume values visibility",n.t(null,void 0,i(9455))),O=n.t(null,void 0,i(67369)),x=n.t(null,void 0,i(99487)),G=n.t(null,void 0,i(22519)),A=n.t(null,void 0,i(1111)),z=n.t(null,void 0,i(31326)),F=n.t(null,void 0,i(68791)),E=n.t(null,void 0,i(91322)),H=n.t(null,void 0,i(27331)),R=n.t(null,void 0,i(75991));var W=i(79807),j=i(99846),N=i(34440),B=i(87172),I=i(35624);const U=o.enabled("show_average_close_price_line_and_label"),q=new y.TranslatedString("change symbol labels visibility",n.t(null,void 0,i(9402))),J=new y.TranslatedString("change symbol last value visibility",n.t(null,void 0,i(53150))),K=new y.TranslatedString("change symbol last value mode",n.t(null,void 0,i(28741))),Q=(new y.TranslatedString("change symbol previous close value visibility",n.t(null,void 0,i(12707))),new y.TranslatedString("change bid and ask labels visibility",n.t(null,void 0,i(5100))),new y.TranslatedString("change pre/post market price label visibility",n.t(null,void 0,i(49889))),new y.TranslatedString("change high and low price labels visibility",n.t(null,void 0,i(66805)))),X=new y.TranslatedString("change average close price label visibility",n.t(null,void 0,i(39402))),Y=(new y.TranslatedString("change indicators and financials name labels visibility",n.t(null,void 0,i(59820))),new y.TranslatedString("change indicators name labels visibility",n.t(null,void 0,i(87027)))),Z=(new y.TranslatedString("change indicators and financials value labels visibility",n.t(null,void 0,i(90512))),
|
|
new y.TranslatedString("change indicators value labels visibility",n.t(null,void 0,i(14922)))),$=new y.TranslatedString("change no overlapping labels",n.t(null,void 0,i(83935))),ee=new y.TranslatedString("change countdown to bar close visibility",n.t(null,void 0,i(58108))),te=new y.TranslatedString("change currency label visibility",n.t(null,void 0,i(79570))),ie=new y.TranslatedString("change unit label visibility",n.t(null,void 0,i(7011))),re=new y.TranslatedString("change currency and unit labels visibility",n.t(null,void 0,i(88161))),ne=new y.TranslatedString("change plus button visibility",n.t(null,void 0,i(50190))),oe=new y.TranslatedString("toggle lock scale",n.t(null,void 0,i(21203))),le=new y.TranslatedString("change price to bar ratio",n.t(null,void 0,i(69510))),se=new y.TranslatedString("change date format",n.t(null,void 0,i(50457))),ae=new y.TranslatedString("change time hours format",n.t(null,void 0,i(76991))),ce=(new y.TranslatedString("change day of week on labels",n.t(null,void 0,i(7104))),n.t(null,void 0,i(35383))),de=n.t(null,void 0,i(27767)),pe=(n.t(null,void 0,i(40847)),n.t(null,void 0,i(25084)),n.t(null,void 0,i(9654))),ue=(n.t(null,void 0,i(29687)),n.t(null,void 0,i(34905))),he=(n.t(null,void 0,i(47586)),n.t(null,void 0,i(74823)),n.t(null,void 0,i(95036))),ve=n.t(null,void 0,i(60971)),ye=n.t(null,void 0,i(42502)),ge=n.t(null,void 0,i(94420)),Pe=n.t(null,void 0,i(94370)),be=n.t(null,void 0,i(50985)),fe=n.t(null,void 0,i(77534)),me=n.t(null,void 0,i(17319)),we=n.t(null,void 0,i(97378)),Se=n.t(null,void 0,i(53224)),De=n.t(null,void 0,i(18219)),Te=n.t(null,void 0,i(64859)),_e=n.t(null,void 0,i(25209)),Ce=n.t(null,void 0,i(97316)),ke=n.t(null,void 0,i(43637)),Ve=(n.t(null,void 0,i(55090)),[{value:j.PriceAxisLastValueMode.LastPriceAndPercentageValue,title:n.t(null,void 0,i(76523))},{value:j.PriceAxisLastValueMode.LastValueAccordingToScale,title:n.t(null,void 0,i(80170))}]);const Le=new y.TranslatedString("change chart background color",n.t(null,void 0,i(99011))),Me=new y.TranslatedString("change chart background type",n.t(null,void 0,i(72458))),Oe=new y.TranslatedString("change vert grid lines color",n.t(null,void 0,i(22722))),xe=(new y.TranslatedString("change vert grid lines style",n.t(null,void 0,i(22867))),new y.TranslatedString("change horz grid lines color",n.t(null,void 0,i(88096)))),Ge=(new y.TranslatedString("change horz grid lines style",n.t(null,void 0,i(2523))),
|
|
new y.TranslatedString("change sessions breaks visibility",n.t(null,void 0,i(71589)))),Ae=new y.TranslatedString("change sessions breaks color",n.t(null,void 0,i(1579))),ze=new y.TranslatedString("change sessions breaks width",n.t(null,void 0,i(15035))),Fe=new y.TranslatedString("change sessions breaks style",n.t(null,void 0,i(21460))),Ee=new y.TranslatedString("change scales text color",n.t(null,void 0,i(35065))),He=new y.TranslatedString("change scales font size",n.t(null,void 0,i(84382))),Re=new y.TranslatedString("change scales lines color",n.t(null,void 0,i(12468))),We=new y.TranslatedString("change pane separators color",n.t(null,void 0,i(89032))),je=new y.TranslatedString("change crosshair color",n.t(null,void 0,i(29951))),Ne=new y.TranslatedString("change crosshair width",n.t(null,void 0,i(37034))),Be=new y.TranslatedString("change crosshair style",n.t(null,void 0,i(92027))),Ie=new y.TranslatedString("change symbol watermark visibility",n.t(null,void 0,i(87159))),Ue=new y.TranslatedString("change symbol watermark color",n.t(null,void 0,i(25616))),qe=new y.TranslatedString("change navigation buttons visibility",n.t(null,void 0,i(35646))),Je=new y.TranslatedString("change pane buttons visibility",n.t(null,void 0,i(37730))),Ke=new y.TranslatedString("change top margin",n.t(null,void 0,i(98905))),Qe=new y.TranslatedString("change bottom margin",n.t(null,void 0,i(10349))),Xe=new y.TranslatedString("change right margin",n.t(null,void 0,i(35636))),Ye=n.t(null,void 0,i(27331)),Ze=n.t(null,void 0,i(70353)),$e=n.t(null,void 0,i(95338)),et=n.t(null,void 0,i(59827)),tt=n.t(null,void 0,i(37229)),it=n.t(null,void 0,i(83182)),rt=n.t(null,void 0,i(73908)),nt=n.t(null,void 0,i(46720)),ot=n.t(null,void 0,i(77705)),lt=n.t(null,void 0,i(74343)),st=n.t(null,void 0,i(50446)),at=n.t(null,void 0,i(65994)),ct=n.t(null,void 0,i(91757)),dt=n.t(null,void 0,i(21141)),pt=n.t(null,{context:"unit"},i(50831));var ut=i(54808),ht=i(55262),vt=i(86985),yt=i(51620),gt=i(20364);const Pt={symbol:i(77822),legend:i(35885),scales:i(23068),appearance:i(37424),events:i(13168),trading:i(73837)},bt=n.t(null,void 0,i(89053)),ft=n.t(null,void 0,i(79194)),mt=n.t(null,void 0,i(43115)),wt=n.t(null,void 0,i(19481)),St=(n.t(null,void 0,i(26897)),n.t(null,void 0,i(90801)),n.t(null,void 0,i(70500)),n.t(null,void 0,i(78621)),n.t(null,void 0,i(30973)),!1);const Dt=[{id:"symbol-text-source-description",value:"description",title:n.t(null,void 0,i(29601))},{id:"symbol-text-source-ticker",value:"ticker",title:n.t(null,void 0,i(23097))},{id:"symbol-text-source-ticker-and-description",value:"ticker-and-description",title:n.t(null,void 0,i(82168))}];class Tt{constructor(e,t,i){this._propertyPages=null,this._maxRightOffsetPropertyObject=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(),
|
|
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._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:gt.availableTimezones.map((e=>({value:e.id,title:e.title})))};return new h.SeriesPropertyDefinitionsViewModel(this._series,this._undoModel,"symbol",bt,Pt.symbol,e)}_createLegendPropertyPage(){const e=this._chartWidgetProperties.childs().paneProperties.childs().legendProperties.childs(),t={property:this._series.properties().childs().statusViewStyle.childs().symbolTextSource,values:Dt},r=function(e,t,r,o,l){const c=[],d=[],p=(0,a.createOptionsPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showSeriesTitle,m),option:(0,a.convertToDefinitionProperty)(e,r.property,w)},{id:"symbolTextSource",title:O,options:new(s())(r.values)});if(d.push(p),null!==o){const t=(0,f.combineWithFilteredUpdate)(((t,i)=>"market"===t&&!(0,g.isEconomicSymbol)(e.mainSeries().symbolInfo())),((e,t)=>null!==e),e.mainSeries().marketStatusModel().status(),e.mainSeries().symbolResolvingActive()),i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,o,S),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(t)},{
|
|
id:"showOpenMarketStatus",title:R});d.push(i)}const u=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showSeriesOHLC,D)},{id:"ohlcTitle",title:x});d.push(u);const h=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showBarChange,T)},{id:"barChange",title:G});d.push(h),d.push((0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showVolume,M)},{id:"barVolume",title:A})),c.push((0,a.createPropertyDefinitionsGeneralGroup)(d,"seriesLegendVisibilityGroup",n.t(null,void 0,i(89053))));const v=[],y=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyArguments,_)},{id:"studyArguments",title:F}),W=(0,a.createCheckableSetPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyTitles,C)},{id:"studyTitles",title:z},[y]),j=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showStudyValues,k)},{id:"studyValues",title:E}),N=(0,P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,b.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());v.push(W,j),c.push((0,a.createPropertyDefinitionsGeneralGroup)(v,"studiesLegendVisibilityGroup",n.t(null,void 0,i(61142)),N));const B=[],I=(0,a.createTransparencyPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showBackground,V),transparency:(0,a.convertToDefinitionProperty)(e,t.backgroundTransparency,L)},{id:"legendBgTransparency",title:H});return B.push(I),c.push((0,a.createPropertyDefinitionsGeneralGroup)(B,"generalLegendGroup")),{definitions:c}}(this._undoModel,e,t,this._options.marketStatusWidgetEnabled?v.showMarketOpenStatusProperty:null);return(0,c.createPropertyPage)(r,"legend",ft,Pt.legend)}_createScalesPropertyPage(){const e=this._createScalesDefinitions();return(0,c.createPropertyPage)(e,"scales",mt,Pt.scales)}_createScalesDefinitions(){const e=this._chartWidgetProperties.childs().scalesProperties.childs(),t={property:this._model.properties().childs().priceScaleSelectionStrategyName,values:(0,u.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 ut.availableDateFormats.map((i=>({value:i,title:new vt.DateFormatter(i,e).format(t)})))}()).spawn());const r={property:ht.dateFormatProperty,values:this._availableDateFormatValues},l={property:yt.timeHoursFormatProperty,values:[{value:"24-hours",title:n.t(null,void 0,i(55838))},{value:"12-hours",title:n.t(null,void 0,i(19648))}]},c=this._model.mainSeriesScaleRatioProperty();return function(e,t,i,r){const n=r.seriesPriceScale.properties().childs(),l=[],c=[],d=[],p=[];if(r.seriesHasClosePrice){const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showSymbolLabels,q)},{id:"symbolNameLabel",title:ce}),r=(0,a.createOptionsPropertyDefinition)({checked:(0,
|
|
a.convertToDefinitionProperty)(e,i.showSeriesLastValue,J),option:(0,a.convertToDefinitionProperty)(e,i.seriesLastValueMode,K)},{id:"symbolLastValueLabel",title:de,options:new(s())(Ve)});c.push(t,r)}const u=t.highLowAvgPrice.childs(),h=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,u.highLowPriceLabelsVisible,Q)},{id:"highLowPriceLabels",title:ve});if(c.push(h),U){const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,u.averageClosePriceLabelVisible,X)},{id:"averageClosePriceLabel",title:he});c.push(t)}const v=(0,P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,b.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());{const t=(0,a.createCheckablePropertyDefinition)({visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(v),checked:(0,a.convertToDefinitionProperty)(e,i.showStudyPlotLabels,Y)},{id:"studyNameLabel",title:pe});c.push(t)}const y=(0,P.createWVFromGetterAndSubscription)((()=>e.model().priceDataSources().some((e=>!(0,b.isActingAsSymbolSource)(e)&&e.showInObjectTree()))),e.model().dataSourceCollectionChanged());{const t=(0,a.createCheckablePropertyDefinition)({visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(y),checked:(0,a.convertToDefinitionProperty)(e,i.showStudyLastValue,Z)},{id:"studyLastValueLabel",title:ue});c.push(t)}const g=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,n.alignLabels,$)},{id:"noOverlappingLabels",title:ye});if(c.push(g),l.push((0,a.createPropertyDefinitionsGeneralGroup)(c,"scalesLabelsGroup",ge)),r.countdownEnabled){const i=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,t.showCountdown,ee)},{id:"countdown",title:Pe});d.push(i)}if(e.crossHairSource().isMenuEnabled()){const t=(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,B.addPlusButtonProperty,ne)},{id:"addPlusButton",title:we});d.push(t)}if(r.currencyConversionEnabled||r.unitConversionEnabled){const t=r.currencyConversionEnabled&&r.unitConversionEnabled?me:r.currencyConversionEnabled?be:fe,i=r.currencyConversionEnabled&&r.unitConversionEnabled?re:r.currencyConversionEnabled?te:ie,n=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,(0,I.currencyUnitVisibilityProperty)(),i)},{id:"scalesCurrencyUnit",title:t,options:new(s())((0,I.currencyUnitVisibilityOptions)())});d.push(n)}const f=(0,a.createNumberPropertyDefinition)({checked:(0,a.getLockPriceScaleDefinitionProperty)(e,n.lockScale,r.seriesPriceScale,oe),value:(0,a.getScaleRatioDefinitionProperty)(e,r.mainSeriesScaleRatioProperty,le,[(0,N.limitedPrecision)(7),e=>e])},{id:"lockScale",title:De,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:Se,options:new(s())(r.scalesPlacementPropertyObj.values)});if(d.push(f,m),l.push((0,a.createPropertyDefinitionsGeneralGroup)(d,"scalesPriceScaleGroup",Te)),o.enabled("scales_date_format")){const t=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,r.dateFormatPropertyObj.property,se)},{id:"dateFormat",title:_e,options:r.dateFormatPropertyObj.values});p.push(t)}if(o.enabled("scales_time_hours_format")){const t=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,r.timeHoursFormatPropertyObj.property,ae)},{id:"timeHoursFormat",title:Ce,options:new(s())(r.timeHoursFormatPropertyObj.values)});p.push(t)}return p.length>0&&l.push((0,a.createPropertyDefinitionsGeneralGroup)(p,"scalesTimeScaleGroup",ke)),{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}}_createAppearancePropertyPage(){const e=this._chartWidgetProperties.childs(),t=e.paneProperties.childs(),l=e.scalesProperties.childs(),u=this._model.watermarkSource();let h=null;null!==u&&(h=u.properties().childs());const v={property:d.property(),values:d.availableValues()},y={property:p.property(),values:p.availableValues()},g=this._model.sessions().properties().childs().graphics.childs().vertlines.childs().sessBreaks.childs();null===this._maxRightOffsetPropertyObject&&this._createMaxOffsetPropertyObject();const b=(0,r.ensureNotNull)(this._maxRightOffsetPropertyObject),f=function(e,t,r,l,c,d,p,u,h){const v=[],y=[],g=[],b=[],f=(0,a.createColorPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,t.background,null,Le),gradientColor1:(0,a.getColorDefinitionProperty)(e,t.backgroundGradientStartColor,null,Le),gradientColor2:(0,a.getColorDefinitionProperty)(e,t.backgroundGradientEndColor,null,Le),type:(0,a.convertToDefinitionProperty)(e,t.backgroundType,Me)},{id:"chartBackground",title:Ye,noAlpha:!0}),m=t.vertGridProperties.childs(),w=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,m.color,null,Oe),style:void 0},{id:"vertGridLine",title:Ze}),S=t.horzGridProperties.childs(),D=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,S.color,null,xe),style:void 0},{
|
|
id:"horizGridLine",title:$e}),T=(0,P.combineProperty)((e=>!e),e.mainSeries().isDWMProperty()),_=(0,a.createLinePropertyDefinition)({visible:(0,W.makeProxyDefinitionPropertyDestroyable)(T),checked:(0,a.convertToDefinitionProperty)(e,c.visible,Ge),color:(0,a.getColorDefinitionProperty)(e,c.color,null,Ae),width:(0,a.convertToDefinitionProperty)(e,c.width,ze),style:(0,a.convertToDefinitionProperty)(e,c.style,Fe)},{id:"sessionBeaks",title:et}),C=(0,P.createWVFromGetterAndSubscription)((()=>1!==e.model().panes().length),e.model().panesCollectionChanged()),k=(0,a.createLinePropertyDefinition)({visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(C),color:(0,a.getColorDefinitionProperty)(e,t.separatorColor,null,We)},{id:"paneSeparators",title:rt}),V=t.crossHairProperties.childs(),L=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,V.color,V.transparency,je),width:(0,a.convertToDefinitionProperty)(e,V.width,Ne),style:(0,a.convertToDefinitionProperty)(e,V.style,Be)},{id:"crossHair",title:nt});if(v.push(f,w,D,_,k,L),null!==r){const t=(0,a.createColorPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,r.visibility,Ie),color:(0,a.getColorDefinitionProperty)(e,r.color,null,Ue)},{id:"watermark",title:ot});v.push(t)}const M=(0,a.createTextPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,l.textColor,null,Ee),size:(0,a.convertToDefinitionProperty)(e,l.fontSize,He)},{id:"scalesText",title:tt}),O=(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,l.lineColor,null,Re)},{id:"scalesLine",title:it});y.push(M,O);const x=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,u.property,qe)},{id:"navButtons",title:lt,options:new(s())(u.values)}),G=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,h.property,Je)},{id:"paneButtons",title:st,options:new(s())(h.values)});g.push(x,G);const A=(0,a.createNumberPropertyDefinition)({value:(0,a.convertToDefinitionProperty)(e,t.topMargin,Ke,[N.floor])},{type:0,id:"paneTopMargin",title:at,min:new(s())(0),max:new(s())(25),step:new(s())(1),unit:new(s())("%")}),z=(0,a.createNumberPropertyDefinition)({value:(0,a.convertToDefinitionProperty)(e,t.bottomMargin,Qe,[N.floor])},{type:0,id:"paneBottomMargin",title:ct,min:new(s())(0),max:new(s())(25),step:new(s())(1),unit:new(s())("%")});if(b.push(A,z),o.enabled("chart_property_page_right_margin_editor")){const t=(0,a.createNumberPropertyDefinition)({value:(0,a.convertFromWVToDefinitionProperty)(e,p.value,Xe,[N.floor])},{type:0,id:"paneRightMargin",title:dt,min:p.min,max:p.max,step:new(s())(1),unit:new(s())(pt)});b.push(t)}return{definitions:[(0,a.createPropertyDefinitionsGeneralGroup)(v,"chartBasicStylesAppearanceGroup",n.t(null,void 0,i(88364))),(0,a.createPropertyDefinitionsGeneralGroup)(y,"scalesAppearanceGroup",n.t(null,void 0,i(43115))),(0,a.createPropertyDefinitionsGeneralGroup)(g,"buttonsAppearanceGroup",n.t(null,void 0,i(87845))),(0,
|
|
a.createPropertyDefinitionsGeneralGroup)(b,"marginsAppearanceGroup",n.t(null,void 0,i(66653)))]}}(this._undoModel,t,h,l,g,this._series.isDWMProperty(),b,v,y);return(0,c.createPropertyPage)(f,"appearance",wt,Pt.appearance)}_createTradingPropertyPage(){return null}_createEventsPropertyPage(){return null}}},37424:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M7.5 16.5l-1 1v4h4l1-1m-4-4l2 2m-2-2l9-9m-5 13l-2-2m2 2l9-9m-11 7l9-9m0 0l-2-2m2 2l2 2m-4-4l.94-.94a1.5 1.5 0 0 1 2.12 0l1.88 1.88a1.5 1.5 0 0 1 0 2.12l-.94.94"/></svg>'},13168:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M10 4h1v2h6V4h1v2h2.5A2.5 2.5 0 0 1 23 8.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 5 19.5v-11A2.5 2.5 0 0 1 7.5 6H10V4zm8 3H7.5A1.5 1.5 0 0 0 6 8.5v11A1.5 1.5 0 0 0 7.5 21h13a1.5 1.5 0 0 0 1.5-1.5v-11A1.5 1.5 0 0 0 20.5 7H18zm-3 2h-2v2h2V9zm-7 4h2v2H8v-2zm12-4h-2v2h2V9zm-7 4h2v2h-2v-2zm-3 4H8v2h2v-2zm3 0h2v2h-2v-2zm7-4h-2v2h2v-2z"/></svg>'},23068: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>'},35885:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" d="M6 13h12v1H6zM6 17h12v1H6zM6 21h12v1H6z"/><rect width="17" height="3" stroke="currentColor" rx="1.5" x="5.5" y="6.5"/></svg>'},77822:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M9 7H7v14h2v3h1v-3h2V7h-2V4H9v3zM8 8v12h3V8H8zm9 1h-2v10h2v3h1v-3h2V9h-2V6h-1v3zm-1 1v8h3v-8h-3z"/></svg>'},73837:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M24.068 9a.569.569 0 0 1 .73.872L19 14.842l-5.798-4.97a.569.569 0 0 1 .73-.872l4.751 3.887.317.26.317-.26L24.068 9zm1.47-.67a1.569 1.569 0 0 0-2.103-.104L19 11.854l-4.435-3.628a1.569 1.569 0 0 0-2.014 2.405l6.124 5.249.325.279.325-.28 6.124-5.248a1.569 1.569 0 0 0 .088-2.3zm-11.484 9.728a.57.57 0 0 0 .688-.91L9 12.636l-5.742 4.512a.57.57 0 0 0 .688.91l4.76-3.462.294-.214.294.214 4.76 3.462zm1.446.649a1.57 1.57 0 0 1-2.034.16L9 15.618l-4.466 3.249a1.57 1.57 0 0 1-1.894-2.505l6.051-4.755.309-.243.309.243 6.051 4.755c.74.581.806 1.68.14 2.345z"/></svg>'}}]); |