Release v31.0.0 (from 028f81fbf6fef55e9694e5df4bd5106cc04c188a)

This commit is contained in:
jenkins
2026-03-05 21:03:46 +00:00
committed by Edward Dewhurst
parent 6fe5436603
commit c8eebb69a4
3622 changed files with 7663 additions and 6956 deletions

View File

@@ -0,0 +1,2 @@
"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3164],{35746:(e,t,i)=>{i.d(t,{DateAndPriceBaseProperties:()=>y,allPropertiesStateKeysBase:()=>p,nonThemedFactoryDefaultsBase:()=>h,themedFactoryDefaultsBase:()=>m});var s=i(85842),r=i(11284),o=i(47097),a=i(33993),l=i(82347),n=i(88483),c=i(22384),u=i(86371);const d=(0,r.getHexColorByName)("color-tv-blue-500"),h={linewidth:2,fontsize:12,fillLabelBackground:!0,fillBackground:!0,backgroundTransparency:60,showVolume:!0,intervalsVisibilities:{...n.intervalsVisibilitiesDefaults},customText:{visible:!1,fontsize:12,bold:!1,italic:!1}},m=new Map([[o.StdTheme.Light,{textcolor:(0,r.getHexColorByName)("color-black"),labelBackgroundColor:(0,r.getHexColorByName)("color-white"),linecolor:d,backgroundColor:(0,l.generateColor)(d,85),shadow:"rgba(0, 0, 0, 0.2)",customText:{color:d}}],[o.StdTheme.Dark,{textcolor:(0,r.getHexColorByName)("color-white"),labelBackgroundColor:(0,r.getHexColorByName)("color-cold-gray-800"),linecolor:d,backgroundColor:(0,l.generateColor)(d,85),shadow:"rgba(0, 0, 0, 0.4)",customText:{color:d}}]]),p=["customText.text"];function f(e){const{showVolume:t=!0,...i}=e;return{...i,showVolume:t}}class y extends u.LineDataSourceProperty{constructor({nonThemedDefaultsKeys:e,themedDefaultsKeys:t,state:i,...r}){super({nonThemedDefaultsKeys:e,themedDefaultsKeys:t,templateKeys:[...e??[],...t??[],...p],state:i?f(i):void 0,...r});const o=i?.customText;this._textProperty=new c.Property(o?.text??""),this.childs().customText?.addChild("text",this._textProperty),this.addChild("textsColors",new a.LineToolColorsProperty([(0,s.ensureDefined)(this.childs().customText?.child("color"))]))}template(){const e=super.template();return e.customText.text=this._textProperty.value(),e}}},25432:(e,t,i)=>{i.d(t,{commonLineToolPropertiesStateKeys:()=>s});const s=["symbolStateVersion","zOrderVersion","frozen","title","interval","symbol","currencyId","unitId","metricId","visible","adjustedToSplitTime","intervalsVisibilities.ticks","intervalsVisibilities.seconds","intervalsVisibilities.secondsFrom","intervalsVisibilities.secondsTo","intervalsVisibilities.minutes","intervalsVisibilities.minutesFrom","intervalsVisibilities.minutesTo","intervalsVisibilities.hours","intervalsVisibilities.hoursFrom","intervalsVisibilities.hoursTo","intervalsVisibilities.days","intervalsVisibilities.daysFrom","intervalsVisibilities.daysTo","intervalsVisibilities.weeks","intervalsVisibilities.weeksFrom","intervalsVisibilities.weeksTo","intervalsVisibilities.months","intervalsVisibilities.monthsFrom","intervalsVisibilities.monthsTo","intervalsVisibilities.ranges"];var r,o,a;!function(e){e[e.NotShared=0]="NotShared",e[e.SharedInLayout=1]="SharedInLayout",e[e.GloballyShared=2]="GloballyShared"}(r||(r={})),function(e){e.BeforeAllAction="BeforeAll",e.CustomAction="CustomAction"}(o||(o={})),function(e){e.FloatingToolbarButton="FloatingToolbarButton",e.Default="Default"}(a||(a={}))},86371:(e,t,i)=>{i.d(t,{LineDataSourceProperty:()=>n});var s=i(57600),r=i(35558),o=i(85842),a=i(93445),l=i(47895)
;class n extends a.DefaultProperty{constructor({templateKeys:e,factoryDefaultsSupplier:t,...i}){let s=t;t&&(s=()=>{const e=t();return(0,l.applyDefaultsOverrides)(e,void 0,void 0,i.defaultName),e}),super({saveNonDefaultUserPreferencesOnly:!0,factoryDefaultsSupplier:s,...i}),this._templateKeys=(0,o.ensureDefined)(e||this._allDefaultsKeys)}template(){return(0,a.extractState)(this.state(),this._templateKeys,[])}applyTemplate(e){this.mergeAndFire((0,a.extractState)((0,r.default)((0,s.default)(this._factoryDefaultsSupplier()),e),this._templateKeys))}}},3244:(e,t,i)=>{i.r(t),i.d(t,{LineToolPriceRange:()=>b});var s=i(82014),r=i(85842),o=i(47097),a=i(93445),l=i(17567),n=i(35746),c=i(25432);const u={...n.nonThemedFactoryDefaultsBase,extendLeft:!1,extendRight:!1,showPriceRange:!0,showPercentPriceRange:!0,showPipsPriceRange:!0},d=n.themedFactoryDefaultsBase,h=(0,a.extractThemedColors)((0,r.ensureDefined)(d.get(o.StdTheme.Light)),(0,r.ensureDefined)(d.get(o.StdTheme.Dark))),m=(0,a.extractAllPropertiesKeys)((0,r.ensureDefined)(d.get(o.StdTheme.Light))),p=(0,a.extractAllPropertiesKeys)(u),f=[...new Set([...m,...p,...c.commonLineToolPropertiesStateKeys,...n.allPropertiesStateKeysBase])];class y extends n.DateAndPriceBaseProperties{static create(e,t){return new this({defaultName:"linetoolpricerange",factoryDefaultsSupplier:()=>(0,l.factoryDefaultsForCurrentTheme)(u,d),nonThemedDefaultsKeys:p,themedDefaultsKeys:m,allStateKeys:f,themedColors:h,replaceThemedColorsOnThemeChange:!0,state:t,theme:e})}}class b extends s.LineDataSource{constructor(e,t,s,r){super(e,t??b.createProperties(e.backgroundTheme().spawnOwnership()),s,r),Promise.all([i.e(8263),i.e(144),i.e(4073),i.e(1912),i.e(1495)]).then(i.bind(i,60156)).then((e=>{this._setPaneViews([new e.PriceRangePaneView(this,this._model)])}))}pointsCount(){return 2}name(){return"Price Range"}template(){return this._properties.template()}static createProperties(e,t){const i=y.create(e,t);return this._configureProperties(i),i}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1982),i.e(7686),i.e(2428),i.e(3920),i.e(9328)]).then(i.bind(i,52989))).GeneralDatePriceRangeDefinitionsViewModel}}},17567:(e,t,i)=>{i.d(t,{factoryDefaultsForCurrentTheme:()=>n});var s=i(35558),r=i(57600),o=i(85842),a=i(49841),l=i(47097);function n(e,t){const i=a.watchedTheme.value()??l.StdTheme.Light,n=(0,r.default)(e);return(0,s.default)(n,(0,o.ensureDefined)(t.get(i))),n}}}]);