Skip to content

Commit fd31745

Browse files
authored
Chart doesn't have an option to change html encoding behavior (T1334517) (#34998)
1 parent f815fde commit fd31745

31 files changed

Lines changed: 410 additions & 3 deletions

File tree

packages/devextreme-angular/src/ui/bar-gauge/index.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,19 @@ export class DxBarGaugeComponent extends DxComponent implements OnDestroy, OnCha
191191
}
192192

193193

194+
/**
195+
* [descr:BaseWidgetOptions.encodeHtml]
196+
197+
*/
198+
@Input()
199+
get encodeHtml(): boolean {
200+
return this._getOption('encodeHtml');
201+
}
202+
set encodeHtml(value: boolean) {
203+
this._setOption('encodeHtml', value);
204+
}
205+
206+
194207
/**
195208
* [descr:dxBarGaugeOptions.endValue]
196209
@@ -579,6 +592,13 @@ export class DxBarGaugeComponent extends DxComponent implements OnDestroy, OnCha
579592
*/
580593
@Output() elementAttrChange: EventEmitter<Record<string, any>>;
581594

595+
/**
596+
597+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
598+
599+
*/
600+
@Output() encodeHtmlChange: EventEmitter<boolean>;
601+
582602
/**
583603
584604
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -749,6 +769,7 @@ export class DxBarGaugeComponent extends DxComponent implements OnDestroy, OnCha
749769
{ emit: 'centerTemplateChange' },
750770
{ emit: 'disabledChange' },
751771
{ emit: 'elementAttrChange' },
772+
{ emit: 'encodeHtmlChange' },
752773
{ emit: 'endValueChange' },
753774
{ emit: 'exportChange' },
754775
{ emit: 'geometryChange' },

packages/devextreme-angular/src/ui/bullet/index.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,19 @@ export class DxBulletComponent extends DxComponent implements OnDestroy {
109109
}
110110

111111

112+
/**
113+
* [descr:BaseWidgetOptions.encodeHtml]
114+
115+
*/
116+
@Input()
117+
get encodeHtml(): boolean {
118+
return this._getOption('encodeHtml');
119+
}
120+
set encodeHtml(value: boolean) {
121+
this._setOption('encodeHtml', value);
122+
}
123+
124+
112125
/**
113126
* [descr:dxBulletOptions.endScaleValue]
114127
@@ -391,6 +404,13 @@ export class DxBulletComponent extends DxComponent implements OnDestroy {
391404
*/
392405
@Output() elementAttrChange: EventEmitter<Record<string, any>>;
393406

407+
/**
408+
409+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
410+
411+
*/
412+
@Output() encodeHtmlChange: EventEmitter<boolean>;
413+
394414
/**
395415
396416
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -514,6 +534,7 @@ export class DxBulletComponent extends DxComponent implements OnDestroy {
514534
{ emit: 'colorChange' },
515535
{ emit: 'disabledChange' },
516536
{ emit: 'elementAttrChange' },
537+
{ emit: 'encodeHtmlChange' },
517538
{ emit: 'endScaleValueChange' },
518539
{ emit: 'marginChange' },
519540
{ emit: 'pathModifiedChange' },

packages/devextreme-angular/src/ui/chart/index.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,19 @@ export class DxChartComponent extends DxComponent implements OnDestroy, OnChange
575575
}
576576

577577

578+
/**
579+
* [descr:BaseWidgetOptions.encodeHtml]
580+
581+
*/
582+
@Input()
583+
get encodeHtml(): boolean {
584+
return this._getOption('encodeHtml');
585+
}
586+
set encodeHtml(value: boolean) {
587+
this._setOption('encodeHtml', value);
588+
}
589+
590+
578591
/**
579592
* [descr:BaseWidgetOptions.export]
580593
@@ -1273,6 +1286,13 @@ export class DxChartComponent extends DxComponent implements OnDestroy, OnChange
12731286
*/
12741287
@Output() elementAttrChange: EventEmitter<Record<string, any>>;
12751288

1289+
/**
1290+
1291+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
1292+
1293+
*/
1294+
@Output() encodeHtmlChange: EventEmitter<boolean>;
1295+
12761296
/**
12771297
12781298
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -1532,6 +1552,7 @@ export class DxChartComponent extends DxComponent implements OnDestroy, OnChange
15321552
{ emit: 'defaultPaneChange' },
15331553
{ emit: 'disabledChange' },
15341554
{ emit: 'elementAttrChange' },
1555+
{ emit: 'encodeHtmlChange' },
15351556
{ emit: 'exportChange' },
15361557
{ emit: 'legendChange' },
15371558
{ emit: 'loadingIndicatorChange' },

packages/devextreme-angular/src/ui/circular-gauge/index.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,19 @@ export class DxCircularGaugeComponent extends DxComponent implements OnDestroy,
187187
}
188188

189189

190+
/**
191+
* [descr:BaseWidgetOptions.encodeHtml]
192+
193+
*/
194+
@Input()
195+
get encodeHtml(): boolean {
196+
return this._getOption('encodeHtml');
197+
}
198+
set encodeHtml(value: boolean) {
199+
this._setOption('encodeHtml', value);
200+
}
201+
202+
190203
/**
191204
* [descr:BaseWidgetOptions.export]
192205
@@ -522,6 +535,13 @@ export class DxCircularGaugeComponent extends DxComponent implements OnDestroy,
522535
*/
523536
@Output() elementAttrChange: EventEmitter<Record<string, any>>;
524537

538+
/**
539+
540+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
541+
542+
*/
543+
@Output() encodeHtmlChange: EventEmitter<boolean>;
544+
525545
/**
526546
527547
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -669,6 +689,7 @@ export class DxCircularGaugeComponent extends DxComponent implements OnDestroy,
669689
{ emit: 'containerBackgroundColorChange' },
670690
{ emit: 'disabledChange' },
671691
{ emit: 'elementAttrChange' },
692+
{ emit: 'encodeHtmlChange' },
672693
{ emit: 'exportChange' },
673694
{ emit: 'geometryChange' },
674695
{ emit: 'loadingIndicatorChange' },

packages/devextreme-angular/src/ui/funnel/index.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,19 @@ export class DxFunnelComponent extends DxComponent implements OnDestroy, OnChang
201201
}
202202

203203

204+
/**
205+
* [descr:BaseWidgetOptions.encodeHtml]
206+
207+
*/
208+
@Input()
209+
get encodeHtml(): boolean {
210+
return this._getOption('encodeHtml');
211+
}
212+
set encodeHtml(value: boolean) {
213+
this._setOption('encodeHtml', value);
214+
}
215+
216+
204217
/**
205218
* [descr:BaseWidgetOptions.export]
206219
@@ -644,6 +657,13 @@ export class DxFunnelComponent extends DxComponent implements OnDestroy, OnChang
644657
*/
645658
@Output() elementAttrChange: EventEmitter<Record<string, any>>;
646659

660+
/**
661+
662+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
663+
664+
*/
665+
@Output() encodeHtmlChange: EventEmitter<boolean>;
666+
647667
/**
648668
649669
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -837,6 +857,7 @@ export class DxFunnelComponent extends DxComponent implements OnDestroy, OnChang
837857
{ emit: 'dataSourceChange' },
838858
{ emit: 'disabledChange' },
839859
{ emit: 'elementAttrChange' },
860+
{ emit: 'encodeHtmlChange' },
840861
{ emit: 'exportChange' },
841862
{ emit: 'hoverEnabledChange' },
842863
{ emit: 'invertedChange' },

packages/devextreme-angular/src/ui/linear-gauge/index.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,19 @@ export class DxLinearGaugeComponent extends DxComponent implements OnDestroy, On
176176
}
177177

178178

179+
/**
180+
* [descr:BaseWidgetOptions.encodeHtml]
181+
182+
*/
183+
@Input()
184+
get encodeHtml(): boolean {
185+
return this._getOption('encodeHtml');
186+
}
187+
set encodeHtml(value: boolean) {
188+
this._setOption('encodeHtml', value);
189+
}
190+
191+
179192
/**
180193
* [descr:BaseWidgetOptions.export]
181194
@@ -504,6 +517,13 @@ export class DxLinearGaugeComponent extends DxComponent implements OnDestroy, On
504517
*/
505518
@Output() elementAttrChange: EventEmitter<Record<string, any>>;
506519

520+
/**
521+
522+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
523+
524+
*/
525+
@Output() encodeHtmlChange: EventEmitter<boolean>;
526+
507527
/**
508528
509529
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -650,6 +670,7 @@ export class DxLinearGaugeComponent extends DxComponent implements OnDestroy, On
650670
{ emit: 'containerBackgroundColorChange' },
651671
{ emit: 'disabledChange' },
652672
{ emit: 'elementAttrChange' },
673+
{ emit: 'encodeHtmlChange' },
653674
{ emit: 'exportChange' },
654675
{ emit: 'geometryChange' },
655676
{ emit: 'loadingIndicatorChange' },

packages/devextreme-angular/src/ui/pie-chart/index.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,19 @@ export class DxPieChartComponent extends DxComponent implements OnDestroy, OnCha
313313
}
314314

315315

316+
/**
317+
* [descr:BaseWidgetOptions.encodeHtml]
318+
319+
*/
320+
@Input()
321+
get encodeHtml(): boolean {
322+
return this._getOption('encodeHtml');
323+
}
324+
set encodeHtml(value: boolean) {
325+
this._setOption('encodeHtml', value);
326+
}
327+
328+
316329
/**
317330
* [descr:BaseWidgetOptions.export]
318331
@@ -822,6 +835,13 @@ export class DxPieChartComponent extends DxComponent implements OnDestroy, OnCha
822835
*/
823836
@Output() elementAttrChange: EventEmitter<Record<string, any>>;
824837

838+
/**
839+
840+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
841+
842+
*/
843+
@Output() encodeHtmlChange: EventEmitter<boolean>;
844+
825845
/**
826846
827847
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -1024,6 +1044,7 @@ export class DxPieChartComponent extends DxComponent implements OnDestroy, OnCha
10241044
{ emit: 'diameterChange' },
10251045
{ emit: 'disabledChange' },
10261046
{ emit: 'elementAttrChange' },
1047+
{ emit: 'encodeHtmlChange' },
10271048
{ emit: 'exportChange' },
10281049
{ emit: 'innerRadiusChange' },
10291050
{ emit: 'legendChange' },

packages/devextreme-angular/src/ui/polar-chart/index.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,19 @@ export class DxPolarChartComponent extends DxComponent implements OnDestroy, OnC
434434
}
435435

436436

437+
/**
438+
* [descr:BaseWidgetOptions.encodeHtml]
439+
440+
*/
441+
@Input()
442+
get encodeHtml(): boolean {
443+
return this._getOption('encodeHtml');
444+
}
445+
set encodeHtml(value: boolean) {
446+
this._setOption('encodeHtml', value);
447+
}
448+
449+
437450
/**
438451
* [descr:BaseWidgetOptions.export]
439452
@@ -993,6 +1006,13 @@ export class DxPolarChartComponent extends DxComponent implements OnDestroy, OnC
9931006
*/
9941007
@Output() elementAttrChange: EventEmitter<Record<string, any>>;
9951008

1009+
/**
1010+
1011+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
1012+
1013+
*/
1014+
@Output() encodeHtmlChange: EventEmitter<boolean>;
1015+
9961016
/**
9971017
9981018
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -1191,6 +1211,7 @@ export class DxPolarChartComponent extends DxComponent implements OnDestroy, OnC
11911211
{ emit: 'dataSourceChange' },
11921212
{ emit: 'disabledChange' },
11931213
{ emit: 'elementAttrChange' },
1214+
{ emit: 'encodeHtmlChange' },
11941215
{ emit: 'exportChange' },
11951216
{ emit: 'legendChange' },
11961217
{ emit: 'loadingIndicatorChange' },

packages/devextreme-angular/src/ui/range-selector/index.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,19 @@ export class DxRangeSelectorComponent extends DxComponent implements OnDestroy,
331331
}
332332

333333

334+
/**
335+
* [descr:BaseWidgetOptions.encodeHtml]
336+
337+
*/
338+
@Input()
339+
get encodeHtml(): boolean {
340+
return this._getOption('encodeHtml');
341+
}
342+
set encodeHtml(value: boolean) {
343+
this._setOption('encodeHtml', value);
344+
}
345+
346+
334347
/**
335348
* [descr:BaseWidgetOptions.export]
336349
@@ -679,6 +692,13 @@ export class DxRangeSelectorComponent extends DxComponent implements OnDestroy,
679692
*/
680693
@Output() elementAttrChange: EventEmitter<Record<string, any>>;
681694

695+
/**
696+
697+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
698+
699+
*/
700+
@Output() encodeHtmlChange: EventEmitter<boolean>;
701+
682702
/**
683703
684704
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -838,6 +858,7 @@ export class DxRangeSelectorComponent extends DxComponent implements OnDestroy,
838858
{ emit: 'dataSourceFieldChange' },
839859
{ emit: 'disabledChange' },
840860
{ emit: 'elementAttrChange' },
861+
{ emit: 'encodeHtmlChange' },
841862
{ emit: 'exportChange' },
842863
{ emit: 'indentChange' },
843864
{ emit: 'loadingIndicatorChange' },

0 commit comments

Comments
 (0)