igniteui-webcomponents-dashboards 5.1.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/License +27 -0
  2. package/README.md +19 -0
  3. package/bundles/igniteui-webcomponents-dashboards.umd.js +9396 -0
  4. package/bundles/igniteui-webcomponents-dashboards.umd.min.js +7 -0
  5. package/esm2015/igniteui-webcomponents-dashboards.js +1 -0
  6. package/esm2015/lib/DashboardTile.js +7 -0
  7. package/esm2015/lib/DashboardTileChangingContentEventArgs.js +26 -0
  8. package/esm2015/lib/DashboardTileCommonFeature.js +39 -0
  9. package/esm2015/lib/DashboardTileCustomization.js +7 -0
  10. package/esm2015/lib/DashboardTileCustomizationCollection.js +7 -0
  11. package/esm2015/lib/DashboardTileFilterStringErrorsParsingEventArgs.js +33 -0
  12. package/esm2015/lib/DashboardTileGalleryIconInfo.js +22 -0
  13. package/esm2015/lib/DashboardTileGroupDescription.js +52 -0
  14. package/esm2015/lib/DashboardTileGroupDescriptionCollection.js +84 -0
  15. package/esm2015/lib/DashboardTilePrimitiveValueWrapper.js +20 -0
  16. package/esm2015/lib/DashboardTileSortDescription.js +61 -0
  17. package/esm2015/lib/DashboardTileSortDescriptionCollection.js +96 -0
  18. package/esm2015/lib/DashboardTileSummaryDescription.js +123 -0
  19. package/esm2015/lib/DashboardTileSummaryDescriptionCollection.js +102 -0
  20. package/esm2015/lib/DashboardTileToolbarProvider.js +7 -0
  21. package/esm2015/lib/DashboardTileView.js +7 -0
  22. package/esm2015/lib/DashboardTileView_combined.js +3151 -0
  23. package/esm2015/lib/DashboardTileVisualizationType.js +50 -0
  24. package/esm2015/lib/DataChartDashboardTileFeature.js +76 -0
  25. package/esm2015/lib/DataSeriesToDescriptionAdapter.js +1556 -0
  26. package/esm2015/lib/DataSeriesToDescriptionAdapterControlType.js +11 -0
  27. package/esm2015/lib/DataSeriesToDescriptionAdapterResult.js +146 -0
  28. package/esm2015/lib/DataSeriesToDescriptionAdapterSettings.js +85 -0
  29. package/esm2015/lib/DataSeriesToDescriptionCustomizations.js +176 -0
  30. package/esm2015/lib/DescriptionValueLookupHelper.js +38 -0
  31. package/esm2015/lib/GeographicMapDashboardTileFeature.js +26 -0
  32. package/esm2015/lib/IDashboardTileView.js +11 -0
  33. package/esm2015/lib/IExternalDashboardTile.js +11 -0
  34. package/esm2015/lib/LinearGaugeDashboardTileFeature.js +26 -0
  35. package/esm2015/lib/PieChartDashboardTileFeature.js +28 -0
  36. package/esm2015/lib/RadialGaugeDashboardTileFeature.js +26 -0
  37. package/esm2015/lib/igc-dashboard-tile-changing-content-event-args.js +36 -0
  38. package/esm2015/lib/igc-dashboard-tile-component.js +1147 -0
  39. package/esm2015/lib/igc-dashboard-tile-customization-collection.js +53 -0
  40. package/esm2015/lib/igc-dashboard-tile-customization-component.js +265 -0
  41. package/esm2015/lib/igc-dashboard-tile-customization-module.js +16 -0
  42. package/esm2015/lib/igc-dashboard-tile-filter-string-errors-parsing-event-args.js +48 -0
  43. package/esm2015/lib/igc-dashboard-tile-group-description-collection.js +76 -0
  44. package/esm2015/lib/igc-dashboard-tile-group-description-module.js +15 -0
  45. package/esm2015/lib/igc-dashboard-tile-group-description.js +19 -0
  46. package/esm2015/lib/igc-dashboard-tile-module.js +33 -0
  47. package/esm2015/lib/igc-dashboard-tile-sort-description-collection.js +86 -0
  48. package/esm2015/lib/igc-dashboard-tile-sort-description-module.js +15 -0
  49. package/esm2015/lib/igc-dashboard-tile-sort-description.js +70 -0
  50. package/esm2015/lib/igc-dashboard-tile-summary-description-collection.js +83 -0
  51. package/esm2015/lib/igc-dashboard-tile-summary-description-module.js +15 -0
  52. package/esm2015/lib/igc-dashboard-tile-summary-description.js +107 -0
  53. package/esm2015/lib/igc-data-chart-dashboard-tile-module.js +36 -0
  54. package/esm2015/lib/igc-geographic-map-dashboard-tile-module.js +18 -0
  55. package/esm2015/lib/igc-linear-gauge-dashboard-tile-module.js +18 -0
  56. package/esm2015/lib/igc-pie-chart-dashboard-tile-module.js +18 -0
  57. package/esm2015/lib/igc-radial-gauge-dashboard-tile-module.js +18 -0
  58. package/esm2015/public_api.js +51 -0
  59. package/esm5/igniteui-webcomponents-dashboards.js +1 -0
  60. package/esm5/lib/DashboardTile.js +7 -0
  61. package/esm5/lib/DashboardTileChangingContentEventArgs.js +32 -0
  62. package/esm5/lib/DashboardTileCommonFeature.js +43 -0
  63. package/esm5/lib/DashboardTileCustomization.js +7 -0
  64. package/esm5/lib/DashboardTileCustomizationCollection.js +7 -0
  65. package/esm5/lib/DashboardTileFilterStringErrorsParsingEventArgs.js +43 -0
  66. package/esm5/lib/DashboardTileGalleryIconInfo.js +24 -0
  67. package/esm5/lib/DashboardTileGroupDescription.js +59 -0
  68. package/esm5/lib/DashboardTileGroupDescriptionCollection.js +94 -0
  69. package/esm5/lib/DashboardTilePrimitiveValueWrapper.js +22 -0
  70. package/esm5/lib/DashboardTileSortDescription.js +75 -0
  71. package/esm5/lib/DashboardTileSortDescriptionCollection.js +110 -0
  72. package/esm5/lib/DashboardTileSummaryDescription.js +149 -0
  73. package/esm5/lib/DashboardTileSummaryDescriptionCollection.js +116 -0
  74. package/esm5/lib/DashboardTileToolbarProvider.js +7 -0
  75. package/esm5/lib/DashboardTileView.js +7 -0
  76. package/esm5/lib/DashboardTileView_combined.js +3814 -0
  77. package/esm5/lib/DashboardTileVisualizationType.js +50 -0
  78. package/esm5/lib/DataChartDashboardTileFeature.js +80 -0
  79. package/esm5/lib/DataSeriesToDescriptionAdapter.js +1581 -0
  80. package/esm5/lib/DataSeriesToDescriptionAdapterControlType.js +11 -0
  81. package/esm5/lib/DataSeriesToDescriptionAdapterResult.js +168 -0
  82. package/esm5/lib/DataSeriesToDescriptionAdapterSettings.js +111 -0
  83. package/esm5/lib/DataSeriesToDescriptionCustomizations.js +277 -0
  84. package/esm5/lib/DescriptionValueLookupHelper.js +46 -0
  85. package/esm5/lib/GeographicMapDashboardTileFeature.js +30 -0
  86. package/esm5/lib/IDashboardTileView.js +11 -0
  87. package/esm5/lib/IExternalDashboardTile.js +11 -0
  88. package/esm5/lib/LinearGaugeDashboardTileFeature.js +30 -0
  89. package/esm5/lib/PieChartDashboardTileFeature.js +32 -0
  90. package/esm5/lib/RadialGaugeDashboardTileFeature.js +30 -0
  91. package/esm5/lib/igc-dashboard-tile-changing-content-event-args.js +46 -0
  92. package/esm5/lib/igc-dashboard-tile-component.js +1401 -0
  93. package/esm5/lib/igc-dashboard-tile-customization-collection.js +58 -0
  94. package/esm5/lib/igc-dashboard-tile-customization-component.js +319 -0
  95. package/esm5/lib/igc-dashboard-tile-customization-module.js +20 -0
  96. package/esm5/lib/igc-dashboard-tile-filter-string-errors-parsing-event-args.js +62 -0
  97. package/esm5/lib/igc-dashboard-tile-group-description-collection.js +82 -0
  98. package/esm5/lib/igc-dashboard-tile-group-description-module.js +19 -0
  99. package/esm5/lib/igc-dashboard-tile-group-description.js +27 -0
  100. package/esm5/lib/igc-dashboard-tile-module.js +37 -0
  101. package/esm5/lib/igc-dashboard-tile-sort-description-collection.js +96 -0
  102. package/esm5/lib/igc-dashboard-tile-sort-description-module.js +19 -0
  103. package/esm5/lib/igc-dashboard-tile-sort-description.js +84 -0
  104. package/esm5/lib/igc-dashboard-tile-summary-description-collection.js +93 -0
  105. package/esm5/lib/igc-dashboard-tile-summary-description-module.js +19 -0
  106. package/esm5/lib/igc-dashboard-tile-summary-description.js +134 -0
  107. package/esm5/lib/igc-data-chart-dashboard-tile-module.js +40 -0
  108. package/esm5/lib/igc-geographic-map-dashboard-tile-module.js +22 -0
  109. package/esm5/lib/igc-linear-gauge-dashboard-tile-module.js +22 -0
  110. package/esm5/lib/igc-pie-chart-dashboard-tile-module.js +22 -0
  111. package/esm5/lib/igc-radial-gauge-dashboard-tile-module.js +22 -0
  112. package/esm5/public_api.js +51 -0
  113. package/fesm2015/igniteui-webcomponents-dashboards.js +7990 -0
  114. package/fesm5/igniteui-webcomponents-dashboards.js +9344 -0
  115. package/igniteui-webcomponents-dashboards.d.ts +1 -0
  116. package/lib/DashboardTile.d.ts +1 -0
  117. package/lib/DashboardTileChangingContentEventArgs.d.ts +11 -0
  118. package/lib/DashboardTileCommonFeature.d.ts +9 -0
  119. package/lib/DashboardTileCustomization.d.ts +1 -0
  120. package/lib/DashboardTileCustomizationCollection.d.ts +1 -0
  121. package/lib/DashboardTileFilterStringErrorsParsingEventArgs.d.ts +14 -0
  122. package/lib/DashboardTileGalleryIconInfo.d.ts +11 -0
  123. package/lib/DashboardTileGroupDescription.d.ts +16 -0
  124. package/lib/DashboardTileGroupDescriptionCollection.d.ts +27 -0
  125. package/lib/DashboardTilePrimitiveValueWrapper.d.ts +8 -0
  126. package/lib/DashboardTileSortDescription.d.ts +20 -0
  127. package/lib/DashboardTileSortDescriptionCollection.d.ts +31 -0
  128. package/lib/DashboardTileSummaryDescription.d.ts +38 -0
  129. package/lib/DashboardTileSummaryDescriptionCollection.d.ts +31 -0
  130. package/lib/DashboardTileToolbarProvider.d.ts +1 -0
  131. package/lib/DashboardTileView.d.ts +1 -0
  132. package/lib/DashboardTileView_combined.d.ts +525 -0
  133. package/lib/DashboardTileVisualizationType.d.ts +43 -0
  134. package/lib/DataChartDashboardTileFeature.d.ts +10 -0
  135. package/lib/DataSeriesToDescriptionAdapter.d.ts +62 -0
  136. package/lib/DataSeriesToDescriptionAdapterControlType.d.ts +15 -0
  137. package/lib/DataSeriesToDescriptionAdapterResult.d.ts +36 -0
  138. package/lib/DataSeriesToDescriptionAdapterSettings.d.ts +36 -0
  139. package/lib/DataSeriesToDescriptionCustomizations.d.ts +21 -0
  140. package/lib/DescriptionValueLookupHelper.d.ts +12 -0
  141. package/lib/GeographicMapDashboardTileFeature.d.ts +10 -0
  142. package/lib/IDashboardTileView.d.ts +20 -0
  143. package/lib/IExternalDashboardTile.d.ts +13 -0
  144. package/lib/LinearGaugeDashboardTileFeature.d.ts +10 -0
  145. package/lib/PieChartDashboardTileFeature.d.ts +10 -0
  146. package/lib/RadialGaugeDashboardTileFeature.d.ts +10 -0
  147. package/lib/igc-dashboard-tile-changing-content-event-args.d.ts +14 -0
  148. package/lib/igc-dashboard-tile-component.d.ts +348 -0
  149. package/lib/igc-dashboard-tile-customization-collection.d.ts +8 -0
  150. package/lib/igc-dashboard-tile-customization-component.d.ts +59 -0
  151. package/lib/igc-dashboard-tile-customization-module.d.ts +3 -0
  152. package/lib/igc-dashboard-tile-filter-string-errors-parsing-event-args.d.ts +22 -0
  153. package/lib/igc-dashboard-tile-group-description-collection.d.ts +23 -0
  154. package/lib/igc-dashboard-tile-group-description-module.d.ts +3 -0
  155. package/lib/igc-dashboard-tile-group-description.d.ts +13 -0
  156. package/lib/igc-dashboard-tile-module.d.ts +3 -0
  157. package/lib/igc-dashboard-tile-sort-description-collection.d.ts +28 -0
  158. package/lib/igc-dashboard-tile-sort-description-module.d.ts +3 -0
  159. package/lib/igc-dashboard-tile-sort-description.d.ts +33 -0
  160. package/lib/igc-dashboard-tile-summary-description-collection.d.ts +25 -0
  161. package/lib/igc-dashboard-tile-summary-description-module.d.ts +3 -0
  162. package/lib/igc-dashboard-tile-summary-description.d.ts +40 -0
  163. package/lib/igc-data-chart-dashboard-tile-module.d.ts +3 -0
  164. package/lib/igc-geographic-map-dashboard-tile-module.d.ts +3 -0
  165. package/lib/igc-linear-gauge-dashboard-tile-module.d.ts +3 -0
  166. package/lib/igc-pie-chart-dashboard-tile-module.d.ts +3 -0
  167. package/lib/igc-radial-gauge-dashboard-tile-module.d.ts +3 -0
  168. package/package.json +42 -0
  169. package/public_api.d.ts +51 -0
@@ -0,0 +1,1581 @@
1
+ /*
2
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
3
+ https://www.infragistics.com/legal/license/igultimate-la
4
+ https://www.infragistics.com/legal/license/igultimate-eula
5
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
6
+ */
7
+ import { __extends, __values } from "tslib";
8
+ import { Base, typeCast, Array_$type, fromEnum, String_$type, enumGetBox, EnumUtil, markType, getInstanceType } from "igniteui-webcomponents-core";
9
+ import { DataSeriesToDescriptionAdapterResult } from "./DataSeriesToDescriptionAdapterResult";
10
+ import { PropertyEditorPanelDescription } from "igniteui-webcomponents-core";
11
+ import { List$1 } from "igniteui-webcomponents-core";
12
+ import { PropertyEditorPropertyDescriptionDescription } from "igniteui-webcomponents-core";
13
+ import { Description } from "igniteui-webcomponents-core";
14
+ import { DescriptionPathParser } from "igniteui-webcomponents-core";
15
+ import { DescriptionPathEvaluator } from "igniteui-webcomponents-core";
16
+ import { LinearGaugeDescription } from "igniteui-webcomponents-core";
17
+ import { GeographicMapDescription } from "igniteui-webcomponents-core";
18
+ import { SeriesDescription } from "igniteui-webcomponents-core";
19
+ import { DataPieChartDescription } from "igniteui-webcomponents-core";
20
+ import { RadialGaugeDescription } from "igniteui-webcomponents-core";
21
+ import { DataChartDescription } from "igniteui-webcomponents-core";
22
+ import { DescriptionValueLookupHelper } from "./DescriptionValueLookupHelper";
23
+ import { DataGridDescription } from "igniteui-webcomponents-core";
24
+ import { StackedSeriesBaseDescription } from "igniteui-webcomponents-core";
25
+ import { Dictionary$2 } from "igniteui-webcomponents-core";
26
+ import { DataSeriesType_$type } from "igniteui-webcomponents-core";
27
+ import { StackedFragmentSeriesDescription } from "igniteui-webcomponents-core";
28
+ import { GeographicSymbolSeriesDescription } from "igniteui-webcomponents-core";
29
+ import { GeographicScatterAreaSeriesDescription } from "igniteui-webcomponents-core";
30
+ import { BubbleSeriesDescription } from "igniteui-webcomponents-core";
31
+ import { GeographicProportionalSymbolSeriesDescription } from "igniteui-webcomponents-core";
32
+ import { LineSeriesDescription } from "igniteui-webcomponents-core";
33
+ import { ColumnSeriesDescription } from "igniteui-webcomponents-core";
34
+ import { AreaSeriesDescription } from "igniteui-webcomponents-core";
35
+ import { StepLineSeriesDescription } from "igniteui-webcomponents-core";
36
+ import { StepAreaSeriesDescription } from "igniteui-webcomponents-core";
37
+ import { SplineSeriesDescription } from "igniteui-webcomponents-core";
38
+ import { SplineAreaSeriesDescription } from "igniteui-webcomponents-core";
39
+ import { WaterfallSeriesDescription } from "igniteui-webcomponents-core";
40
+ import { PointSeriesDescription } from "igniteui-webcomponents-core";
41
+ import { BarSeriesDescription } from "igniteui-webcomponents-core";
42
+ import { RadialPieSeriesDescription } from "igniteui-webcomponents-core";
43
+ import { ScatterSeriesDescription } from "igniteui-webcomponents-core";
44
+ import { ScatterLineSeriesDescription } from "igniteui-webcomponents-core";
45
+ import { ScatterSplineSeriesDescription } from "igniteui-webcomponents-core";
46
+ import { ScatterAreaSeriesDescription } from "igniteui-webcomponents-core";
47
+ import { ScatterContourSeriesDescription } from "igniteui-webcomponents-core";
48
+ import { HighDensityScatterSeriesDescription } from "igniteui-webcomponents-core";
49
+ import { ScatterPolygonSeriesDescription } from "igniteui-webcomponents-core";
50
+ import { ScatterPolylineSeriesDescription } from "igniteui-webcomponents-core";
51
+ import { FinancialPriceSeriesDescription } from "igniteui-webcomponents-core";
52
+ import { RadialLineSeriesDescription } from "igniteui-webcomponents-core";
53
+ import { ValueOverlayDescription } from "igniteui-webcomponents-core";
54
+ import { ItemToolTipLayerDescription } from "igniteui-webcomponents-core";
55
+ import { CategoryToolTipLayerDescription } from "igniteui-webcomponents-core";
56
+ import { CrosshairLayerDescription } from "igniteui-webcomponents-core";
57
+ import { CalloutLayerDescription } from "igniteui-webcomponents-core";
58
+ import { FinalValueLayerDescription } from "igniteui-webcomponents-core";
59
+ import { CategoryHighlightLayerDescription } from "igniteui-webcomponents-core";
60
+ import { CategoryItemHighlightLayerDescription } from "igniteui-webcomponents-core";
61
+ import { DataToolTipLayerDescription } from "igniteui-webcomponents-core";
62
+ import { ValueLayerDescription } from "igniteui-webcomponents-core";
63
+ import { GeographicPolylineSeriesDescription } from "igniteui-webcomponents-core";
64
+ import { GeographicContourLineSeriesDescription } from "igniteui-webcomponents-core";
65
+ import { GeographicHighDensityScatterSeriesDescription } from "igniteui-webcomponents-core";
66
+ import { GeographicShapeSeriesDescription } from "igniteui-webcomponents-core";
67
+ import { StackedLineSeriesDescription } from "igniteui-webcomponents-core";
68
+ import { StackedColumnSeriesDescription } from "igniteui-webcomponents-core";
69
+ import { StackedAreaSeriesDescription } from "igniteui-webcomponents-core";
70
+ import { StackedSplineSeriesDescription } from "igniteui-webcomponents-core";
71
+ import { StackedSplineAreaSeriesDescription } from "igniteui-webcomponents-core";
72
+ import { StackedBarSeriesDescription } from "igniteui-webcomponents-core";
73
+ import { HorizontalStackedSeriesBaseDescription } from "igniteui-webcomponents-core";
74
+ import { VerticalStackedSeriesBaseDescription } from "igniteui-webcomponents-core";
75
+ import { ValueBrushScaleDescription } from "igniteui-webcomponents-core";
76
+ import { DataSeriesMarker_$type } from "igniteui-webcomponents-core";
77
+ import { NumericXAxisDescription } from "igniteui-webcomponents-core";
78
+ import { NumericYAxisDescription } from "igniteui-webcomponents-core";
79
+ import { NumericRadiusAxisDescription } from "igniteui-webcomponents-core";
80
+ import { CategoryYAxisDescription } from "igniteui-webcomponents-core";
81
+ import { OrdinalTimeXAxisDescription } from "igniteui-webcomponents-core";
82
+ import { CategoryXAxisDescription } from "igniteui-webcomponents-core";
83
+ import { TimeXAxisDescription } from "igniteui-webcomponents-core";
84
+ import { CategoryAngleAxisDescription } from "igniteui-webcomponents-core";
85
+ import { ProportionalCategoryAngleAxisDescription } from "igniteui-webcomponents-core";
86
+ import { ToolbarDescription } from "igniteui-webcomponents-core";
87
+ import { ItemLegendDescription } from "igniteui-webcomponents-core";
88
+ import { LegendDescription } from "igniteui-webcomponents-core";
89
+ import { truncate, log10 } from "igniteui-webcomponents-core";
90
+ import { stringReplace } from "igniteui-webcomponents-core";
91
+ /**
92
+ * @hidden
93
+ */
94
+ var DataSeriesToDescriptionAdapter = /** @class */ /*@__PURE__*/ (function (_super) {
95
+ __extends(DataSeriesToDescriptionAdapter, _super);
96
+ function DataSeriesToDescriptionAdapter(a) {
97
+ var _this = _super.call(this) || this;
98
+ _this.ab = null;
99
+ _this.ac = null;
100
+ _this.i = null;
101
+ _this.g = null;
102
+ _this.j = null;
103
+ _this.h = null;
104
+ _this.f = null;
105
+ _this.ab = a;
106
+ if (_this.ab.customizations != null) {
107
+ _this.ay(a.customizations);
108
+ }
109
+ return _this;
110
+ }
111
+ DataSeriesToDescriptionAdapter.prototype.ay = function (a) {
112
+ this.ac = a;
113
+ };
114
+ DataSeriesToDescriptionAdapter.prototype.getMainContent = function (a) {
115
+ var b = this.e(a);
116
+ switch (b) {
117
+ case 0:
118
+ this.i = this.m(a);
119
+ return this.i;
120
+ case 1:
121
+ this.i = this.x(a);
122
+ return this.i;
123
+ case 3:
124
+ this.i = this.z(a);
125
+ return this.i;
126
+ case 4:
127
+ this.i = this.u(a);
128
+ return this.i;
129
+ case 2:
130
+ this.i = this.q(a);
131
+ return this.i;
132
+ }
133
+ this.i = this.m(a);
134
+ return this.i;
135
+ };
136
+ DataSeriesToDescriptionAdapter.prototype.getEditorContent = function (a) {
137
+ var b = this.e(a);
138
+ switch (b) {
139
+ case 0:
140
+ this.f = this.l(a);
141
+ return this.f;
142
+ case 1:
143
+ this.f = this.w(a);
144
+ return this.f;
145
+ case 3:
146
+ this.f = this.y(a);
147
+ return this.f;
148
+ case 4:
149
+ this.f = this.t(a);
150
+ return this.f;
151
+ case 2:
152
+ this.f = this.p(a);
153
+ return this.f;
154
+ }
155
+ return this.m(a);
156
+ };
157
+ DataSeriesToDescriptionAdapter.prototype.p = function (a) {
158
+ return null;
159
+ };
160
+ DataSeriesToDescriptionAdapter.prototype.t = function (a) {
161
+ return null;
162
+ };
163
+ DataSeriesToDescriptionAdapter.prototype.y = function (a) {
164
+ var _this = this;
165
+ var b = new DataSeriesToDescriptionAdapterResult(this.ab);
166
+ var c = new PropertyEditorPanelDescription();
167
+ c.targetRef = "dashboardTile";
168
+ if (this.ab.refNamespace != null) {
169
+ c.targetRef = this.ab.refNamespace;
170
+ }
171
+ c.name = "propertyEditor";
172
+ c.componentRendererRef = "componentRenderer";
173
+ c.updateMode = "DataSeriesToDescriptionCustomizations";
174
+ var d = new List$1(PropertyEditorPropertyDescriptionDescription.$, 0);
175
+ d.add(((function () {
176
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
177
+ $ret.name = "RadialGaugeStylingHeader";
178
+ $ret.valueType = "Header";
179
+ $ret.label = "Styling";
180
+ return $ret;
181
+ })()));
182
+ d.add(((function () {
183
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
184
+ $ret.name = "RadialGaugeScaleMinimum";
185
+ $ret.propertyPath = "MinimumValue";
186
+ $ret.label = "Scale Minimum";
187
+ $ret.subtitle = "use blank for auto";
188
+ $ret.primitiveValue = _this.ar("RadialGaugeScaleMinimum", "MinimumValue", NaN, null);
189
+ return $ret;
190
+ })()));
191
+ d.add(((function () {
192
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
193
+ $ret.name = "RadialGaugeScaleMaximum";
194
+ $ret.propertyPath = "MaximumValue";
195
+ $ret.label = "Scale Maximum";
196
+ $ret.subtitle = "use blank for auto";
197
+ $ret.primitiveValue = _this.ar("RadialGaugeScaleMaximum", "MaximumValue", NaN, null);
198
+ return $ret;
199
+ })()));
200
+ d.add(((function () {
201
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
202
+ $ret.name = "RadialGaugeSeparator";
203
+ $ret.valueType = "Separator";
204
+ return $ret;
205
+ })()));
206
+ d.add(((function () {
207
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
208
+ $ret.name = "RadialGaugeNeedleBrush";
209
+ $ret.propertyPath = "NeedleBrush";
210
+ $ret.label = "Needle Color";
211
+ $ret.primitiveValue = _this.ar("RadialGaugeNeedleBrush", "NeedleBrush", "rgba(206, 211, 216, 1)", null);
212
+ return $ret;
213
+ })()));
214
+ c.descriptionType = "RadialGauge";
215
+ c.properties = d.toArray();
216
+ b.content = c;
217
+ b.content = this.ag(b.content);
218
+ return b;
219
+ };
220
+ DataSeriesToDescriptionAdapter.prototype.w = function (a) {
221
+ var _this = this;
222
+ var b = new DataSeriesToDescriptionAdapterResult(this.ab);
223
+ var c = new PropertyEditorPanelDescription();
224
+ c.targetRef = "dashboardTile";
225
+ if (this.ab.refNamespace != null) {
226
+ c.targetRef = this.ab.refNamespace;
227
+ }
228
+ c.name = "propertyEditor";
229
+ c.componentRendererRef = "componentRenderer";
230
+ c.updateMode = "DataSeriesToDescriptionCustomizations";
231
+ var d = new List$1(PropertyEditorPropertyDescriptionDescription.$, 0);
232
+ d.add(((function () {
233
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
234
+ $ret.name = "PieChartStylingHeader";
235
+ $ret.valueType = "Header";
236
+ $ret.label = "Styling";
237
+ return $ret;
238
+ })()));
239
+ var e = this.ar("PieChartLegendVisibility", "LegendItemVisibility", true, this.d("VisibilityToBooleanConverter"));
240
+ var f = this.d("BooleanToVisibilityConverter");
241
+ var g = this.ar(null, "LegendItemVisibility", f(e), null);
242
+ d.add(((function () {
243
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
244
+ $ret.name = "PieChartLegendVisibility";
245
+ $ret.propertyPath = "LegendItemVisibility";
246
+ $ret.label = "Show Legend";
247
+ $ret.shouldOverrideDefaultEditor = true;
248
+ $ret.valueType = "Boolean";
249
+ $ret.useCoercedValue = true;
250
+ $ret.coercedValueType = "EnumValue";
251
+ $ret.primitiveValue = e;
252
+ $ret.coercedPrimitiveValue = g;
253
+ $ret.coercingValueRef = "VisibilityConverter";
254
+ return $ret;
255
+ })()));
256
+ d.add(((function () {
257
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
258
+ $ret.name = "PieChartStartPosition";
259
+ $ret.propertyPath = "StartAngle";
260
+ $ret.label = "Start Position";
261
+ $ret.primitiveValue = _this.ar("PieChartStartPosition", "StartAngle", 0, null);
262
+ return $ret;
263
+ })()));
264
+ d.add(((function () {
265
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
266
+ $ret.name = "PieChartSliceLabel";
267
+ $ret.propertyPath = "SliceLabelContentMode";
268
+ $ret.label = "Slice Label";
269
+ $ret.primitiveValue = _this.ar("PieChartSliceLabel", "SliceLabelContentMode", "Auto", null);
270
+ return $ret;
271
+ })()));
272
+ d.add(((function () {
273
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
274
+ $ret.name = "PieChartSliceLegendLabel";
275
+ $ret.propertyPath = "LegendSliceLabelContentMode";
276
+ $ret.label = "Slice Legend Label";
277
+ $ret.primitiveValue = _this.ar("PieChartSliceLegendLabel", "LegendSliceLabelContentMode", "Auto", null);
278
+ return $ret;
279
+ })()));
280
+ d.add(((function () {
281
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
282
+ $ret.name = "PieChartOthersCategoryThreshold";
283
+ $ret.propertyPath = "OthersCategoryThreshold";
284
+ $ret.label = "Others Category Threshold";
285
+ $ret.subtitle = "use blank for auto";
286
+ $ret.primitiveValue = _this.ar("PieChartOthersCategoryThreshold", "OthersCategoryThreshold", NaN, null);
287
+ return $ret;
288
+ })()));
289
+ d.add(((function () {
290
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
291
+ $ret.name = "PieChartSeparator";
292
+ $ret.valueType = "Separator";
293
+ return $ret;
294
+ })()));
295
+ c.descriptionType = "DataPieChart";
296
+ c.properties = d.toArray();
297
+ b.content = c;
298
+ b.content = this.ag(b.content);
299
+ return b;
300
+ };
301
+ DataSeriesToDescriptionAdapter.prototype.d = function (a) {
302
+ return this.ab.a(a);
303
+ };
304
+ DataSeriesToDescriptionAdapter.prototype.ar = function (a, b, c, d) {
305
+ if (a != null && this.ab.hasSettingsValue(a)) {
306
+ return this.ab.getSettingsValue(a);
307
+ }
308
+ return this.as([this.i], b, c, d);
309
+ };
310
+ DataSeriesToDescriptionAdapter.prototype.as = function (a, b, c, d) {
311
+ var e = new DescriptionPathParser();
312
+ var f = e.parse(b);
313
+ var g = new DescriptionPathEvaluator();
314
+ for (var h = 0; h < a.length; h++) {
315
+ var i = a[h];
316
+ if (i == null) {
317
+ continue;
318
+ }
319
+ if (i.content == null) {
320
+ continue;
321
+ }
322
+ if (f == null) {
323
+ continue;
324
+ }
325
+ var j = g.a(this.ab.context, i.content, f);
326
+ if (j == null) {
327
+ continue;
328
+ }
329
+ if (j.length == 0) {
330
+ continue;
331
+ }
332
+ for (var k = 0; k < j.length; k++) {
333
+ var l = j[k].a;
334
+ if (d != null) {
335
+ l = d(l);
336
+ }
337
+ return l;
338
+ }
339
+ }
340
+ return c;
341
+ };
342
+ DataSeriesToDescriptionAdapter.prototype.av = function (a) {
343
+ if (a == null) {
344
+ return null;
345
+ }
346
+ return stringReplace(stringReplace(stringReplace(stringReplace(stringReplace(a, ".", "__dot__"), "[", "__ob__"), "]", "__cb__"), " ", "__sp__"), "*", "__star__");
347
+ };
348
+ DataSeriesToDescriptionAdapter.prototype.l = function (a) {
349
+ var _this = this;
350
+ var b = new DataSeriesToDescriptionAdapterResult(this.ab);
351
+ var c = new PropertyEditorPanelDescription();
352
+ c.targetRef = "dashboardTile";
353
+ if (this.ab.refNamespace != null) {
354
+ c.targetRef = this.ab.refNamespace;
355
+ }
356
+ c.name = "propertyEditor";
357
+ c.componentRendererRef = "componentRenderer";
358
+ c.updateMode = "DataSeriesToDescriptionCustomizations";
359
+ var d = new List$1(PropertyEditorPropertyDescriptionDescription.$, 0);
360
+ d.add(((function () {
361
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
362
+ $ret.name = "DataChartStylingHeader";
363
+ $ret.valueType = "Header";
364
+ $ret.label = "Styling";
365
+ return $ret;
366
+ })()));
367
+ d.add(((function () {
368
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
369
+ $ret.name = "DataChartPlotAreaBackground";
370
+ $ret.propertyPath = "PlotAreaBackground";
371
+ $ret.label = "Plot Area Background";
372
+ $ret.primitiveValue = _this.ar("DataChartPlotAreaBackground", "PlotAreaBackground", "White", null);
373
+ return $ret;
374
+ })()));
375
+ var e = this.ar("DataChartShowLegend", "Series[* as Series].LegendItemVisibility", true, this.d("VisibilityToBooleanConverter"));
376
+ var f = this.d("BooleanToVisibilityConverter");
377
+ var g = this.ar(null, "Series[* as Series].LegendItemVisibility", f(e), null);
378
+ d.add(((function () {
379
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
380
+ $ret.name = "DataChartShowLegend";
381
+ $ret.propertyPath = "Series[* as Series].LegendItemVisibility";
382
+ $ret.label = "Show Legend";
383
+ $ret.shouldOverrideDefaultEditor = true;
384
+ $ret.valueType = "Boolean";
385
+ $ret.useCoercedValue = true;
386
+ $ret.coercedValueType = "EnumValue";
387
+ $ret.primitiveValue = e;
388
+ $ret.coercedPrimitiveValue = g;
389
+ $ret.coercingValueRef = "VisibilityConverter";
390
+ return $ret;
391
+ })()));
392
+ var h = this.ar("DataChartShowXAxis", "Axes[* as CategoryAxisBase].LabelVisibility", true, this.d("VisibilityToBooleanConverter"));
393
+ var i = this.ar(null, "Axes[* as CategoryAxisBase].LabelVisibility", f(h), null);
394
+ d.add(((function () {
395
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
396
+ $ret.name = "DataChartShowXAxis";
397
+ $ret.propertyPath = "Axes[* as CategoryAxisBase].LabelVisibility";
398
+ $ret.label = "Show X Axis";
399
+ $ret.shouldOverrideDefaultEditor = true;
400
+ $ret.valueType = "Boolean";
401
+ $ret.useCoercedValue = true;
402
+ $ret.coercedValueType = "EnumValue";
403
+ $ret.primitiveValue = h;
404
+ $ret.coercedPrimitiveValue = i;
405
+ $ret.coercingValueRef = "VisibilityConverter";
406
+ return $ret;
407
+ })()));
408
+ var j = this.ar("DataChartShowYAxis", "Axes[* as NumericAxisBase].LabelVisibility", true, this.d("VisibilityToBooleanConverter"));
409
+ var k = this.ar(null, "Axes[* as NumericAxisBase].LabelVisibility", f(j), null);
410
+ d.add(((function () {
411
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
412
+ $ret.name = "DataChartShowYAxis";
413
+ $ret.propertyPath = "Axes[* as NumericAxisBase].LabelVisibility";
414
+ $ret.label = "Show Y Axis";
415
+ $ret.shouldOverrideDefaultEditor = true;
416
+ $ret.valueType = "Boolean";
417
+ $ret.useCoercedValue = true;
418
+ $ret.coercedValueType = "EnumValue";
419
+ $ret.primitiveValue = j;
420
+ $ret.coercedPrimitiveValue = k;
421
+ $ret.coercingValueRef = "VisibilityConverter";
422
+ return $ret;
423
+ })()));
424
+ d.add(((function () {
425
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
426
+ $ret.name = "DataChartShowToolTipSummaryType";
427
+ $ret.propertyPath = "Series[* as DataToolTipLayer].SummaryType";
428
+ $ret.label = "Tool Tip Summary Type";
429
+ $ret.primitiveValue = _this.ar("DataChartShowToolTipSummaryType", "Series[* as DataToolTipLayer].SummaryType", "Auto", null);
430
+ return $ret;
431
+ })()));
432
+ d.add(((function () {
433
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
434
+ $ret.name = "DataChartSeparator";
435
+ $ret.valueType = "Separator";
436
+ return $ret;
437
+ })()));
438
+ d.add(((function () {
439
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
440
+ $ret.name = "DataChartChartTrendline";
441
+ $ret.propertyPath = "Series[* as AnchoredCategorySeries, * as FinancialIndicator, * as FinancialPriceSeries, * as PolarBase, * as ScatterBase, * as AnchoredRadialSeries].TrendLineType";
442
+ $ret.label = "Chart Trendline";
443
+ $ret.primitiveValue = _this.ar("DataChartChartTrendline", "Series[* as AnchoredCategorySeries, * as FinancialIndicator, * as FinancialPriceSeries, * as PolarBase, * as ScatterBase, * as AnchoredRadialSeries].TrendLineType", "None", null);
444
+ return $ret;
445
+ })()));
446
+ d.add(((function () {
447
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
448
+ $ret.name = "DataChartIsWindowSyncedToVisibleRange";
449
+ $ret.propertyPath = "IsWindowSyncedToVisibleRange";
450
+ $ret.label = "Sync Axis to the Visible Range";
451
+ $ret.primitiveValue = _this.ar("DataChartIsWindowSyncedToVisibleRange", "IsWindowSyncedToVisibleRange", false, null);
452
+ return $ret;
453
+ })()));
454
+ d.add(((function () {
455
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
456
+ $ret.name = "DataChartAutomaticLabelRotation";
457
+ $ret.propertyPath = "ShouldConsiderAutoRotationForInitialLabels";
458
+ $ret.label = "Automatic Label Rotation";
459
+ $ret.primitiveValue = _this.ar("DataChartAutomaticLabelRotation", "ShouldConsiderAutoRotationForInitialLabels", true, null);
460
+ return $ret;
461
+ })()));
462
+ d.add(((function () {
463
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
464
+ $ret.name = "DataChartSeparator2";
465
+ $ret.valueType = "Separator";
466
+ return $ret;
467
+ })()));
468
+ d.add(((function () {
469
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
470
+ $ret.name = "DataChartValueAxisIsLogarithmic";
471
+ $ret.propertyPath = "Axes[* as NumericAxisBase].IsLogarithmic";
472
+ $ret.label = "Is Value Axis Logarithmic";
473
+ $ret.primitiveValue = _this.ar("DataChartValueAxisIsLogarithmic", "Axes[* as NumericAxisBase].IsLogarithmic", false, null);
474
+ return $ret;
475
+ })()));
476
+ d.add(((function () {
477
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
478
+ $ret.name = "DataChartValueAxisMinimum";
479
+ $ret.propertyPath = "Axes[* as NumericAxisBase].MinimumValue";
480
+ $ret.label = "Value Axis Minimum";
481
+ $ret.subtitle = "use blank for auto";
482
+ $ret.primitiveValue = _this.ar("DataChartValueAxisMinimum", "Axes[* as NumericAxisBase].MinimumValue", NaN, null);
483
+ return $ret;
484
+ })()));
485
+ d.add(((function () {
486
+ var $ret = new PropertyEditorPropertyDescriptionDescription();
487
+ $ret.name = "DataChartValueAxisMaximum";
488
+ $ret.propertyPath = "Axes[* as NumericAxisBase].MaximumValue";
489
+ $ret.label = "Value Axis Maximum";
490
+ $ret.subtitle = "use blank for auto";
491
+ $ret.primitiveValue = _this.ar("DataChartValueAxisMaximum", "Axes[* as NumericAxisBase].MaximumValue", NaN, null);
492
+ return $ret;
493
+ })()));
494
+ c.descriptionType = "DataChart";
495
+ c.properties = d.toArray();
496
+ b.content = c;
497
+ b.content = this.ag(b.content);
498
+ return b;
499
+ };
500
+ DataSeriesToDescriptionAdapter.prototype.u = function (a) {
501
+ var b = new DataSeriesToDescriptionAdapterResult(this.ab);
502
+ var c = new LinearGaugeDescription();
503
+ c.transitionDuration = 300;
504
+ c.name = "linearGauge";
505
+ b.mainRef = "linearGauge";
506
+ b.descriptionType = "LinearGauge";
507
+ if (this.ab.refNamespace != null) {
508
+ b.mainRef = this.ab.refNamespace + "/" + "linearGauge";
509
+ }
510
+ c.value = a[0].data;
511
+ var d = truncate(Math.floor(log10(c.value)));
512
+ var e = c.value / Math.pow(10, d);
513
+ var f = e <= 1 ? 1 : e <= 2 ? 2 : e <= 5 ? 5 : 10;
514
+ var g = f * Math.pow(10, d);
515
+ c.minimumValue = 0;
516
+ c.maximumValue = g;
517
+ b.content = c;
518
+ b.content = this.ag(b.content);
519
+ return b;
520
+ };
521
+ DataSeriesToDescriptionAdapter.prototype.q = function (a) {
522
+ var b = new DataSeriesToDescriptionAdapterResult(this.ab);
523
+ var c = new GeographicMapDescription();
524
+ c.name = "geoMap";
525
+ b.mainRef = "geoMap";
526
+ b.descriptionType = "GeographicMap";
527
+ c.legendRef = "legend";
528
+ c.isHorizontalWrappingEnabled = true;
529
+ if (this.ab.refNamespace != null) {
530
+ c.legendRef = this.ab.refNamespace + "/" + "legend";
531
+ b.mainRef = this.ab.refNamespace + "/" + "geoMap";
532
+ }
533
+ c.shouldMatchZOrderToSeriesOrder = true;
534
+ c.zoomable = true;
535
+ c.selectedSeriesItemsChangedRef = "ChartSelectedItemsChanged";
536
+ c.selectionMode = "FadeOthers";
537
+ c.selectionBehavior = "PerDataItemMultiSelect";
538
+ c.animateSeriesWhenAxisRangeChanges = true;
539
+ var d = this.c(a, b);
540
+ c.series = d;
541
+ b.content = c;
542
+ b.content = this.ag(b.content);
543
+ return b;
544
+ };
545
+ DataSeriesToDescriptionAdapter.prototype.x = function (a) {
546
+ var b = new DataSeriesToDescriptionAdapterResult(this.ab);
547
+ var c = new DataPieChartDescription();
548
+ c.name = "pieChart";
549
+ b.mainRef = "pieChart";
550
+ b.descriptionType = "DataPieChart";
551
+ c.legendRef = "legend";
552
+ c.selectionMode = "FadeOthers";
553
+ c.selectionBehavior = "PerDataItemMultiSelect";
554
+ if (this.ab.refNamespace != null) {
555
+ c.legendRef = this.ab.refNamespace + "/" + "legend";
556
+ b.mainRef = this.ab.refNamespace + "/" + "pieChart";
557
+ }
558
+ c.dataSourceRef = b.m(this.ab.originalData);
559
+ c.selectedSeriesItemsChangedRef = "PieChartSelectedItemsChanged";
560
+ b.content = c;
561
+ b.content = this.ag(b.content);
562
+ return b;
563
+ };
564
+ DataSeriesToDescriptionAdapter.prototype.z = function (a) {
565
+ var b = new DataSeriesToDescriptionAdapterResult(this.ab);
566
+ var c = new RadialGaugeDescription();
567
+ c.transitionDuration = 300;
568
+ c.name = "radialGauge";
569
+ b.mainRef = "radialGauge";
570
+ b.descriptionType = "RadialGauge";
571
+ if (this.ab.refNamespace != null) {
572
+ b.mainRef = this.ab.refNamespace + "/" + "radialGauge";
573
+ }
574
+ c.value = a[0].data;
575
+ var d = truncate(Math.floor(log10(c.value)));
576
+ var e = c.value / Math.pow(10, d);
577
+ var f = e <= 1 ? 1 : e <= 2 ? 2 : e <= 5 ? 5 : 10;
578
+ var g = f * Math.pow(10, d);
579
+ c.minimumValue = 0;
580
+ c.maximumValue = g;
581
+ b.content = c;
582
+ b.content = this.ag(b.content);
583
+ return b;
584
+ };
585
+ DataSeriesToDescriptionAdapter.prototype.m = function (a) {
586
+ var b = new DataSeriesToDescriptionAdapterResult(this.ab);
587
+ var c = new DataChartDescription();
588
+ c.name = "dataChart";
589
+ b.mainRef = "dataChart";
590
+ b.descriptionType = "DataChart";
591
+ c.legendRef = "legend";
592
+ if (this.ab.refNamespace != null) {
593
+ c.legendRef = this.ab.refNamespace + "/" + "legend";
594
+ b.mainRef = this.ab.refNamespace + "/" + "dataChart";
595
+ }
596
+ c.computedPlotAreaMarginMode = "Series";
597
+ c.shouldMatchZOrderToSeriesOrder = true;
598
+ c.isHorizontalZoomEnabled = true;
599
+ c.isVerticalZoomEnabled = true;
600
+ c.shouldAutoExpandMarginForInitialLabels = true;
601
+ c.shouldConsiderAutoRotationForInitialLabels = true;
602
+ c.autoMarginAndAngleUpdateMode = "SizeChanging";
603
+ c.selectedSeriesItemsChangedRef = "ChartSelectedItemsChanged";
604
+ c.selectionMode = "FadeOthers";
605
+ c.selectionBehavior = "PerDataItemMultiSelect";
606
+ c.animateSeriesWhenAxisRangeChanges = true;
607
+ var d = this.b(a, b);
608
+ var e = this.c(a, b);
609
+ c.axes = d;
610
+ c.series = e;
611
+ b.content = c;
612
+ b.content = this.ag(b.content);
613
+ return b;
614
+ };
615
+ DataSeriesToDescriptionAdapter.prototype.ag = function (a) {
616
+ var _this = this;
617
+ var b = this.ao(a);
618
+ for (var c = 0; c < b.count; c++) {
619
+ a = this.ah(b._inner[c], a, -1);
620
+ }
621
+ this.ax(a, function (d, e) {
622
+ var f = _this.ao(d);
623
+ for (var g = 0; g < f.count; g++) {
624
+ d = _this.ah(f._inner[g], d, e);
625
+ }
626
+ return d;
627
+ });
628
+ return a;
629
+ };
630
+ DataSeriesToDescriptionAdapter.prototype.ax = function (a, b) {
631
+ var e_1, _a;
632
+ var c = a.a();
633
+ for (var e = 0; e < c.length; e++) {
634
+ var d = c[e];
635
+ var f = null;
636
+ f = DescriptionValueLookupHelper.b.c(a, d);
637
+ if (f != null && typeCast(Description.$, f) !== null) {
638
+ b(f, -1);
639
+ this.ax(f, b);
640
+ }
641
+ if (f != null && typeCast(Array_$type, f) !== null) {
642
+ var g = this.ap(f);
643
+ var h = 0;
644
+ try {
645
+ for (var _b = (e_1 = void 0, __values(fromEnum(g))), _c = _b.next(); !_c.done; _c = _b.next()) {
646
+ var i = _c.value;
647
+ if (typeCast(Description.$, i) !== null) {
648
+ b(i, h);
649
+ this.ax(i, b);
650
+ }
651
+ h++;
652
+ }
653
+ }
654
+ catch (e_1_1) {
655
+ e_1 = { error: e_1_1 };
656
+ }
657
+ finally {
658
+ try {
659
+ if (_c && !_c.done && (_a = _b.return))
660
+ _a.call(_b);
661
+ }
662
+ finally {
663
+ if (e_1)
664
+ throw e_1.error;
665
+ }
666
+ }
667
+ }
668
+ }
669
+ };
670
+ DataSeriesToDescriptionAdapter.prototype.ah = function (a, b, c) {
671
+ if (this.ab.customizations.hasCustomizationsFor(a)) {
672
+ var d = this.ab.customizations.getPropertyCustomizations(a);
673
+ if (d != null) {
674
+ for (var e = 0; e < d.length; e++) {
675
+ if (c >= 0) {
676
+ if (d[e].matchParentIndex >= 0) {
677
+ if (d[e].matchParentIndex != c) {
678
+ continue;
679
+ }
680
+ }
681
+ }
682
+ b = this.aj(d[e], b);
683
+ }
684
+ }
685
+ var f = this.ab.customizations.getCollectionModifiers(a);
686
+ if (f != null) {
687
+ for (var g = 0; g < f.length; g++) {
688
+ if (c >= 0) {
689
+ if (f[g].matchParentIndex >= 0) {
690
+ if (f[g].matchParentIndex != c) {
691
+ continue;
692
+ }
693
+ }
694
+ }
695
+ b = this.ai(f[g], b);
696
+ }
697
+ }
698
+ }
699
+ return b;
700
+ };
701
+ DataSeriesToDescriptionAdapter.prototype.ai = function (a, b) {
702
+ var c = DescriptionValueLookupHelper.b.c(b, a.propertyName);
703
+ var d = this.ap(c);
704
+ var e = this.ab.context.getMetadata(stringReplace(getInstanceType(b).typeName, "Description", ""), a.propertyName);
705
+ if (e == null) {
706
+ return b;
707
+ }
708
+ if (a.isCollectionInsertionAtStart) {
709
+ if (typeCast(Array_$type, a.propertyValue) !== null) {
710
+ var f = this.ap(a.propertyValue);
711
+ for (var g = 0; g < f.count; g++) {
712
+ d.insert1(this.aq(d, g), f._inner[g]);
713
+ }
714
+ }
715
+ else {
716
+ d.insert1(0, a.propertyValue);
717
+ }
718
+ }
719
+ if (a.isCollectionInsertionAtEnd) {
720
+ if (typeCast(Array_$type, a.propertyValue) !== null) {
721
+ var h = this.ap(a.propertyValue);
722
+ for (var i = 0; i < h.count; i++) {
723
+ d.add1(h._inner[i]);
724
+ }
725
+ }
726
+ else {
727
+ d.add1(a.propertyValue);
728
+ }
729
+ }
730
+ if (a.isCollectionInsertionAtIndex) {
731
+ if (typeCast(Array_$type, a.propertyValue) !== null) {
732
+ var j = this.ap(a.propertyValue);
733
+ for (var k = 0; k < j.count; k++) {
734
+ d.insert1(this.aq(d, a.collectionIndex + k), j._inner[k]);
735
+ }
736
+ }
737
+ else {
738
+ d.insert1(this.aq(d, a.collectionIndex), a.propertyValue);
739
+ }
740
+ }
741
+ var l = new Array(d.count);
742
+ for (var m = 0; m < d.count; m++) {
743
+ l[m] = d._inner[m];
744
+ }
745
+ DescriptionValueLookupHelper.b.d(b, a.propertyName, l);
746
+ return b;
747
+ };
748
+ DataSeriesToDescriptionAdapter.prototype.aq = function (a, b) {
749
+ if (b < 0) {
750
+ return 0;
751
+ }
752
+ if (b > a.count) {
753
+ return a.count;
754
+ }
755
+ return b;
756
+ };
757
+ DataSeriesToDescriptionAdapter.prototype.ap = function (a) {
758
+ var b = null;
759
+ var c = a;
760
+ b = new Array(c.length);
761
+ for (var d = 0; d < c.length; d++) {
762
+ b[d] = c[d];
763
+ }
764
+ var e = new List$1(Base.$, 0);
765
+ for (var f = 0; f < b.length; f++) {
766
+ e.add1(b[f]);
767
+ }
768
+ return e;
769
+ };
770
+ DataSeriesToDescriptionAdapter.prototype.aj = function (a, b) {
771
+ DescriptionValueLookupHelper.b.d(b, a.propertyName, a.propertyValue);
772
+ return b;
773
+ };
774
+ DataSeriesToDescriptionAdapter.prototype.ao = function (a) {
775
+ var b = new List$1(String_$type, 0);
776
+ if (a == null) {
777
+ return b;
778
+ }
779
+ var c = getInstanceType(a);
780
+ while (c != null && c.typeName != "Description" && c != Base.$) {
781
+ b.insert(0, c.typeName);
782
+ c = c.baseType;
783
+ }
784
+ return b;
785
+ };
786
+ DataSeriesToDescriptionAdapter.prototype.getDataGridContent = function (a) {
787
+ var b = new DataSeriesToDescriptionAdapterResult(this.ab);
788
+ var c = new DataGridDescription();
789
+ c.name = "dataGrid";
790
+ c.background = "white";
791
+ c.selectionMode = "MultipleRow";
792
+ c.dataSourceRef = b.m(this.ab.originalData);
793
+ c.selectedItemsChangedRef = "GridSelectedItemsChanged";
794
+ c.summaryScope = "Both";
795
+ b.content = c;
796
+ this.g = b;
797
+ return b;
798
+ };
799
+ DataSeriesToDescriptionAdapter.prototype.c = function (a, b) {
800
+ var c = new List$1(SeriesDescription.$, 0);
801
+ var d = 0;
802
+ var e = new List$1(StackedSeriesBaseDescription.$, 0);
803
+ var f = new Dictionary$2(DataSeriesType_$type, StackedSeriesBaseDescription.$, 0);
804
+ for (var h = 0; h < a.length; h++) {
805
+ var g = a[h];
806
+ var i = g.suggestedSeries;
807
+ var j = null;
808
+ var k = null;
809
+ var l = null;
810
+ var m = false;
811
+ switch (g.suggestedSeries) {
812
+ case 0:
813
+ l = new LineSeriesDescription();
814
+ break;
815
+ case 1:
816
+ l = new ColumnSeriesDescription();
817
+ break;
818
+ case 2:
819
+ l = new AreaSeriesDescription();
820
+ break;
821
+ case 4:
822
+ l = new StepLineSeriesDescription();
823
+ break;
824
+ case 5:
825
+ l = new StepAreaSeriesDescription();
826
+ break;
827
+ case 6:
828
+ l = new SplineSeriesDescription();
829
+ break;
830
+ case 7:
831
+ l = new SplineAreaSeriesDescription();
832
+ break;
833
+ case 8:
834
+ l = new WaterfallSeriesDescription();
835
+ break;
836
+ case 10:
837
+ l = new PointSeriesDescription();
838
+ break;
839
+ case 3:
840
+ l = new BarSeriesDescription();
841
+ break;
842
+ case 9: continue;
843
+ case 34:
844
+ l = new RadialPieSeriesDescription();
845
+ break;
846
+ case 11:
847
+ l = new ScatterSeriesDescription();
848
+ break;
849
+ case 12:
850
+ l = new ScatterLineSeriesDescription();
851
+ break;
852
+ case 13:
853
+ l = new ScatterSplineSeriesDescription();
854
+ break;
855
+ case 14:
856
+ l = new ScatterAreaSeriesDescription();
857
+ break;
858
+ case 15:
859
+ l = new ScatterContourSeriesDescription();
860
+ break;
861
+ case 16:
862
+ l = new HighDensityScatterSeriesDescription();
863
+ break;
864
+ case 17:
865
+ l = new BubbleSeriesDescription();
866
+ break;
867
+ case 18:
868
+ l = new ScatterPolygonSeriesDescription();
869
+ break;
870
+ case 19:
871
+ l = new ScatterPolylineSeriesDescription();
872
+ break;
873
+ case 20:
874
+ l = new FinancialPriceSeriesDescription();
875
+ break;
876
+ case 35:
877
+ l = new RadialLineSeriesDescription();
878
+ break;
879
+ case 21: continue;
880
+ case 22: continue;
881
+ case 23:
882
+ l = new ValueOverlayDescription();
883
+ break;
884
+ case 24: continue;
885
+ case 25:
886
+ l = new ItemToolTipLayerDescription();
887
+ break;
888
+ case 26:
889
+ l = new CategoryToolTipLayerDescription();
890
+ break;
891
+ case 27:
892
+ l = new CrosshairLayerDescription();
893
+ break;
894
+ case 28:
895
+ l = new CalloutLayerDescription();
896
+ break;
897
+ case 29:
898
+ l = new FinalValueLayerDescription();
899
+ break;
900
+ case 30:
901
+ l = new CategoryHighlightLayerDescription();
902
+ break;
903
+ case 31:
904
+ l = new CategoryItemHighlightLayerDescription();
905
+ break;
906
+ case 32:
907
+ l = new DataToolTipLayerDescription();
908
+ break;
909
+ case 33:
910
+ l = new ValueLayerDescription();
911
+ break;
912
+ case 38:
913
+ l = new GeographicSymbolSeriesDescription();
914
+ break;
915
+ case 39:
916
+ l = new GeographicPolylineSeriesDescription();
917
+ break;
918
+ case 40:
919
+ l = new GeographicScatterAreaSeriesDescription();
920
+ break;
921
+ case 41:
922
+ l = new GeographicContourLineSeriesDescription();
923
+ break;
924
+ case 42:
925
+ l = new GeographicHighDensityScatterSeriesDescription();
926
+ break;
927
+ case 43:
928
+ l = new GeographicProportionalSymbolSeriesDescription();
929
+ break;
930
+ case 44:
931
+ l = new GeographicShapeSeriesDescription();
932
+ break;
933
+ }
934
+ if (this.ab.shouldStackCategories) {
935
+ var n = null;
936
+ switch (g.suggestedSeries) {
937
+ case 0:
938
+ n = new StackedLineSeriesDescription();
939
+ break;
940
+ case 1:
941
+ n = new StackedColumnSeriesDescription();
942
+ break;
943
+ case 2:
944
+ n = new StackedAreaSeriesDescription();
945
+ break;
946
+ case 6:
947
+ n = new StackedSplineSeriesDescription();
948
+ break;
949
+ case 7:
950
+ n = new StackedSplineAreaSeriesDescription();
951
+ break;
952
+ case 3:
953
+ n = new StackedBarSeriesDescription();
954
+ break;
955
+ }
956
+ if (n != null) {
957
+ j = new StackedFragmentSeriesDescription();
958
+ if (!f.containsKey(g.suggestedSeries)) {
959
+ var o = n;
960
+ o.name = "StackedParent" + enumGetBox(DataSeriesType_$type, g.suggestedSeries);
961
+ o.dataSourceRef = b.m(g.data);
962
+ f.item(g.suggestedSeries, o);
963
+ m = true;
964
+ if (typeCast(HorizontalStackedSeriesBaseDescription.$, o) !== null) {
965
+ o.xAxisRef = b.i(g);
966
+ o.yAxisRef = b.j(g);
967
+ }
968
+ if (typeCast(VerticalStackedSeriesBaseDescription.$, o) !== null) {
969
+ o.xAxisRef = b.j(g);
970
+ o.yAxisRef = b.i(g);
971
+ }
972
+ }
973
+ var p = f.item(g.suggestedSeries);
974
+ k = p;
975
+ var q = p.series;
976
+ if (q == null) {
977
+ q = new Array(0);
978
+ }
979
+ var r = new Array(q.length + 1);
980
+ for (var s = 0; s < q.length; s++) {
981
+ r[s] = q[s];
982
+ }
983
+ r[r.length - 1] = j;
984
+ i = 9;
985
+ k.series = r;
986
+ }
987
+ }
988
+ if (l == null) {
989
+ continue;
990
+ }
991
+ {
992
+ l.index = d;
993
+ d++;
994
+ }
995
+ l.name = b.k(i);
996
+ l.title = g.title != null ? g.title : "Series Title";
997
+ switch (i) {
998
+ case 9:
999
+ j.name = "Fragment" + b.k(i);
1000
+ j.title = g.title != null ? g.title : "Series Title";
1001
+ j.isTransitionInEnabled = true;
1002
+ j.valueMemberPath = g.getMemberPathFor(0);
1003
+ j.dataSourceRef = b.m(g.data);
1004
+ j.markerType = this.aw(g);
1005
+ if (g.highlightedData != null) {
1006
+ j.highlightedDataSourceRef = b.m(g.highlightedData);
1007
+ }
1008
+ break;
1009
+ case 0:
1010
+ case 1:
1011
+ case 2:
1012
+ case 4:
1013
+ case 5:
1014
+ case 6:
1015
+ case 7:
1016
+ case 8:
1017
+ case 10:
1018
+ var t = l;
1019
+ t.isTransitionInEnabled = true;
1020
+ t.xAxisRef = b.i(g);
1021
+ t.yAxisRef = b.j(g);
1022
+ t.valueMemberPath = g.getMemberPathFor(0);
1023
+ t.dataSourceRef = b.m(g.data);
1024
+ t.markerType = this.aw(g);
1025
+ if (g.highlightedData != null) {
1026
+ t.highlightedDataSourceRef = b.m(g.highlightedData);
1027
+ }
1028
+ break;
1029
+ case 3:
1030
+ var u = l;
1031
+ u.isTransitionInEnabled = true;
1032
+ u.yAxisRef = b.i(g);
1033
+ u.xAxisRef = b.j(g);
1034
+ u.valueMemberPath = g.getMemberPathFor(0);
1035
+ u.dataSourceRef = b.m(g.data);
1036
+ u.markerType = this.aw(g);
1037
+ if (g.highlightedData != null) {
1038
+ u.highlightedDataSourceRef = b.m(g.highlightedData);
1039
+ }
1040
+ break;
1041
+ case 34:
1042
+ var v = l;
1043
+ v.isTransitionInEnabled = true;
1044
+ v.angleAxisRef = b.i(g);
1045
+ v.valueAxisRef = b.j(g);
1046
+ v.valueMemberPath = g.getMemberPathFor(0);
1047
+ v.dataSourceRef = b.m(g.data);
1048
+ if (g.highlightedData != null) {
1049
+ v.highlightedDataSourceRef = b.m(g.highlightedData);
1050
+ }
1051
+ break;
1052
+ case 35:
1053
+ var w = l;
1054
+ w.isTransitionInEnabled = true;
1055
+ w.angleAxisRef = b.i(g);
1056
+ w.valueAxisRef = b.j(g);
1057
+ w.valueMemberPath = g.getMemberPathFor(0);
1058
+ w.dataSourceRef = b.m(g.data);
1059
+ w.markerType = this.aw(g);
1060
+ if (g.highlightedData != null) {
1061
+ w.highlightedDataSourceRef = b.m(g.highlightedData);
1062
+ }
1063
+ break;
1064
+ case 11:
1065
+ case 12:
1066
+ case 13:
1067
+ case 14:
1068
+ case 17:
1069
+ var x = l;
1070
+ x.xAxisRef = b.i(g);
1071
+ x.yAxisRef = b.j(g);
1072
+ x.xMemberPath = g.getMemberPathFor(1);
1073
+ x.yMemberPath = g.getMemberPathFor(2);
1074
+ x.dataSourceRef = b.m(g.data);
1075
+ if (g.highlightedData != null) {
1076
+ x.highlightedDataSourceRef = b.m(g.highlightedData);
1077
+ }
1078
+ if (g.suggestedSeries == 17) {
1079
+ var y = l;
1080
+ if (g.hasMatchingHint(5)) {
1081
+ y.radiusMemberPath = g.getMemberPathFor(5);
1082
+ }
1083
+ if (g.hasMatchingHint(3)) {
1084
+ y.fillMemberPath = g.getMemberPathFor(3);
1085
+ y.fillScale = this.af();
1086
+ if (g.f(3).logarithmicSuggested) {
1087
+ y.fillScale.isLogarithmic = true;
1088
+ }
1089
+ }
1090
+ }
1091
+ break;
1092
+ case 15:
1093
+ case 16: break;
1094
+ case 18:
1095
+ case 19:
1096
+ var z = l;
1097
+ z.xAxisRef = b.i(g);
1098
+ z.yAxisRef = b.j(g);
1099
+ z.shapeMemberPath = g.getMemberPathFor(7);
1100
+ z.dataSourceRef = b.m(g.data);
1101
+ if (g.highlightedData != null) {
1102
+ z.highlightedDataSourceRef = b.m(g.highlightedData);
1103
+ }
1104
+ if (g.hasMatchingHint(3)) {
1105
+ z.fillMemberPath = g.getMemberPathFor(3);
1106
+ z.fillScale = this.af();
1107
+ if (g.f(3).logarithmicSuggested) {
1108
+ z.fillScale.isLogarithmic = true;
1109
+ }
1110
+ }
1111
+ break;
1112
+ case 20:
1113
+ case 21:
1114
+ case 22:
1115
+ var aa = l;
1116
+ aa.isTransitionInEnabled = true;
1117
+ aa.xAxisRef = b.i(g);
1118
+ aa.yAxisRef = b.j(g);
1119
+ if (g.hasMatchingHint(11)) {
1120
+ aa.openMemberPath = g.getMemberPathFor(11);
1121
+ }
1122
+ if (g.hasMatchingHint(12)) {
1123
+ aa.highMemberPath = g.getMemberPathFor(12);
1124
+ }
1125
+ if (g.hasMatchingHint(13)) {
1126
+ aa.lowMemberPath = g.getMemberPathFor(13);
1127
+ }
1128
+ if (g.hasMatchingHint(14)) {
1129
+ aa.closeMemberPath = g.getMemberPathFor(14);
1130
+ }
1131
+ if (g.hasMatchingHint(15)) {
1132
+ aa.volumeMemberPath = g.getMemberPathFor(15);
1133
+ }
1134
+ aa.dataSourceRef = b.m(g.data);
1135
+ if (g.highlightedData != null) {
1136
+ aa.highlightedDataSourceRef = b.m(g.highlightedData);
1137
+ }
1138
+ break;
1139
+ case 23: break;
1140
+ case 24: continue;
1141
+ case 25:
1142
+ case 26:
1143
+ case 27:
1144
+ case 28:
1145
+ case 29:
1146
+ case 30:
1147
+ case 31:
1148
+ case 32:
1149
+ case 33: break;
1150
+ case 38:
1151
+ var ab = l;
1152
+ ab.longitudeMemberPath = g.getMemberPathFor(1);
1153
+ ab.latitudeMemberPath = g.getMemberPathFor(2);
1154
+ ab.dataSourceRef = b.m(g.data);
1155
+ if (g.highlightedData != null) {
1156
+ ab.highlightedDataSourceRef = b.m(g.highlightedData);
1157
+ }
1158
+ break;
1159
+ case 40:
1160
+ var ac = l;
1161
+ ac.longitudeMemberPath = g.getMemberPathFor(1);
1162
+ ac.latitudeMemberPath = g.getMemberPathFor(2);
1163
+ ac.dataSourceRef = b.m(g.data);
1164
+ if (g.highlightedData != null) {
1165
+ ac.highlightedDataSourceRef = b.m(g.highlightedData);
1166
+ }
1167
+ break;
1168
+ case 43:
1169
+ var ad = l;
1170
+ ad.longitudeMemberPath = g.getMemberPathFor(1);
1171
+ ad.latitudeMemberPath = g.getMemberPathFor(2);
1172
+ ad.dataSourceRef = b.m(g.data);
1173
+ if (g.highlightedData != null) {
1174
+ ad.highlightedDataSourceRef = b.m(g.highlightedData);
1175
+ }
1176
+ if (g.suggestedSeries == 17) {
1177
+ var ae = l;
1178
+ if (g.hasMatchingHint(5)) {
1179
+ ae.radiusMemberPath = g.getMemberPathFor(5);
1180
+ }
1181
+ if (g.hasMatchingHint(3)) {
1182
+ ae.fillMemberPath = g.getMemberPathFor(3);
1183
+ ae.fillScale = this.af();
1184
+ if (g.f(3).logarithmicSuggested) {
1185
+ ae.fillScale.isLogarithmic = true;
1186
+ }
1187
+ }
1188
+ }
1189
+ break;
1190
+ case 41:
1191
+ case 42: break;
1192
+ case 44:
1193
+ case 39:
1194
+ var af = l;
1195
+ af.shapeMemberPath = g.getMemberPathFor(7);
1196
+ af.dataSourceRef = b.m(g.data);
1197
+ if (g.highlightedData != null) {
1198
+ af.highlightedDataSourceRef = b.m(g.highlightedData);
1199
+ }
1200
+ if (g.hasMatchingHint(3)) {
1201
+ af.fillMemberPath = g.getMemberPathFor(3);
1202
+ af.fillScale = this.af();
1203
+ if (g.f(3).logarithmicSuggested) {
1204
+ af.fillScale.isLogarithmic = true;
1205
+ }
1206
+ }
1207
+ break;
1208
+ }
1209
+ if (k != null) {
1210
+ if (m) {
1211
+ c.add(k);
1212
+ }
1213
+ }
1214
+ else {
1215
+ c.add(l);
1216
+ }
1217
+ }
1218
+ return c.toArray();
1219
+ };
1220
+ DataSeriesToDescriptionAdapter.prototype.af = function () {
1221
+ return ((function () {
1222
+ var $ret = new ValueBrushScaleDescription();
1223
+ $ret.brushes = ["blue", "red"];
1224
+ return $ret;
1225
+ })());
1226
+ };
1227
+ DataSeriesToDescriptionAdapter.prototype.aw = function (a) {
1228
+ var b = EnumUtil.getName(DataSeriesMarker_$type, a.suggestedMarker);
1229
+ if (b == "None" || b == "Smart") {
1230
+ switch (a.suggestedSeries) {
1231
+ case 1:
1232
+ case 3:
1233
+ case 4:
1234
+ case 5:
1235
+ case 7:
1236
+ case 8:
1237
+ case 34:
1238
+ case 9: return "Hidden";
1239
+ }
1240
+ }
1241
+ if (b == "Smart") {
1242
+ b = "Automatic";
1243
+ }
1244
+ return b;
1245
+ };
1246
+ DataSeriesToDescriptionAdapter.prototype.b = function (a, b) {
1247
+ var c = 0;
1248
+ var d = 1;
1249
+ var e = null;
1250
+ var f = "";
1251
+ var g = null;
1252
+ var h = null;
1253
+ var i = false;
1254
+ for (var k = 0; k < a.length; k++) {
1255
+ var j = a[k];
1256
+ if (this.ak(j)) {
1257
+ if (j.suggestedSeries == 3) {
1258
+ i = true;
1259
+ }
1260
+ c = j.suggestedPrimaryAxis;
1261
+ d = j.suggestedSecondaryAxis;
1262
+ switch (c) {
1263
+ case 0:
1264
+ e = j.data;
1265
+ if (j.hasMatchingHint(17)) {
1266
+ h = j.getMemberPathFor(17);
1267
+ }
1268
+ f = j.getMemberPathFor(16);
1269
+ break;
1270
+ case 4:
1271
+ e = j.data;
1272
+ f = j.getMemberPathFor(17);
1273
+ break;
1274
+ case 3:
1275
+ e = j.data;
1276
+ f = j.getMemberPathFor(17);
1277
+ break;
1278
+ case 5:
1279
+ e = j.data;
1280
+ f = j.getMemberPathFor(16);
1281
+ break;
1282
+ case 6:
1283
+ e = j.data;
1284
+ f = j.getMemberPathFor(16);
1285
+ break;
1286
+ }
1287
+ }
1288
+ }
1289
+ var l = this.ad(b, h, c, e, f, g, i);
1290
+ var m = this.ae(b, d, i);
1291
+ return [l, m];
1292
+ };
1293
+ DataSeriesToDescriptionAdapter.prototype.ae = function (a, b, c) {
1294
+ var _this = this;
1295
+ switch (b) {
1296
+ case 1: if (c) {
1297
+ return ((function () {
1298
+ var $ret = new NumericXAxisDescription();
1299
+ $ret.name = _this.at(a, b, false, c);
1300
+ $ret.useEnhancedIntervalManagement = true;
1301
+ return $ret;
1302
+ })());
1303
+ }
1304
+ else {
1305
+ return ((function () {
1306
+ var $ret = new NumericYAxisDescription();
1307
+ $ret.name = _this.at(a, b, false, c);
1308
+ $ret.useEnhancedIntervalManagement = true;
1309
+ return $ret;
1310
+ })());
1311
+ }
1312
+ case 2: if (c) {
1313
+ return ((function () {
1314
+ var $ret = new NumericXAxisDescription();
1315
+ $ret.name = _this.at(a, b, false, c);
1316
+ $ret.useEnhancedIntervalManagement = true;
1317
+ $ret.isLogarithmic = true;
1318
+ return $ret;
1319
+ })());
1320
+ }
1321
+ else {
1322
+ return ((function () {
1323
+ var $ret = new NumericYAxisDescription();
1324
+ $ret.name = _this.at(a, b, false, c);
1325
+ $ret.useEnhancedIntervalManagement = true;
1326
+ $ret.isLogarithmic = true;
1327
+ return $ret;
1328
+ })());
1329
+ }
1330
+ case 7: return ((function () {
1331
+ var $ret = new NumericRadiusAxisDescription();
1332
+ $ret.name = _this.at(a, b, false, c);
1333
+ $ret.useEnhancedIntervalManagement = true;
1334
+ return $ret;
1335
+ })());
1336
+ case 8: return ((function () {
1337
+ var $ret = new NumericRadiusAxisDescription();
1338
+ $ret.name = _this.at(a, b, false, c);
1339
+ $ret.useEnhancedIntervalManagement = true;
1340
+ return $ret;
1341
+ })());
1342
+ }
1343
+ return null;
1344
+ };
1345
+ DataSeriesToDescriptionAdapter.prototype.ad = function (a, b, c, d, e, f, g) {
1346
+ var _this = this;
1347
+ switch (c) {
1348
+ case 0: if (b != null) {
1349
+ if (g) {
1350
+ return ((function () {
1351
+ var $ret = new CategoryYAxisDescription();
1352
+ $ret.name = _this.at(a, c, true, g);
1353
+ $ret.useEnhancedIntervalManagement = true;
1354
+ $ret.enhancedIntervalPreferMoreCategoryLabels = true;
1355
+ $ret.dataSourceRef = a.m(d);
1356
+ $ret.label = e;
1357
+ return $ret;
1358
+ })());
1359
+ }
1360
+ else {
1361
+ return ((function () {
1362
+ var $ret = new OrdinalTimeXAxisDescription();
1363
+ $ret.name = _this.at(a, c, true, g);
1364
+ $ret.useEnhancedIntervalManagement = true;
1365
+ $ret.dataSourceRef = a.m(d);
1366
+ $ret.dateTimeMemberPath = b;
1367
+ return $ret;
1368
+ })());
1369
+ }
1370
+ }
1371
+ else {
1372
+ if (g) {
1373
+ return ((function () {
1374
+ var $ret = new CategoryYAxisDescription();
1375
+ $ret.name = _this.at(a, c, true, g);
1376
+ $ret.useEnhancedIntervalManagement = true;
1377
+ $ret.enhancedIntervalPreferMoreCategoryLabels = true;
1378
+ $ret.dataSourceRef = a.m(d);
1379
+ $ret.label = e;
1380
+ return $ret;
1381
+ })());
1382
+ }
1383
+ else {
1384
+ return ((function () {
1385
+ var $ret = new CategoryXAxisDescription();
1386
+ $ret.name = _this.at(a, c, true, g);
1387
+ $ret.useEnhancedIntervalManagement = true;
1388
+ $ret.enhancedIntervalPreferMoreCategoryLabels = true;
1389
+ $ret.dataSourceRef = a.m(d);
1390
+ $ret.label = e;
1391
+ return $ret;
1392
+ })());
1393
+ }
1394
+ }
1395
+ case 1: return ((function () {
1396
+ var $ret = new NumericXAxisDescription();
1397
+ $ret.name = _this.at(a, c, true, g);
1398
+ $ret.useEnhancedIntervalManagement = true;
1399
+ return $ret;
1400
+ })());
1401
+ case 2: return ((function () {
1402
+ var $ret = new NumericXAxisDescription();
1403
+ $ret.name = _this.at(a, c, true, g);
1404
+ $ret.useEnhancedIntervalManagement = true;
1405
+ $ret.isLogarithmic = true;
1406
+ return $ret;
1407
+ })());
1408
+ case 3: return ((function () {
1409
+ var $ret = new TimeXAxisDescription();
1410
+ $ret.name = _this.at(a, c, true, g);
1411
+ $ret.useEnhancedIntervalManagement = true;
1412
+ $ret.dataSourceRef = a.m(d);
1413
+ $ret.dateTimeMemberPath = e;
1414
+ return $ret;
1415
+ })());
1416
+ case 4: return ((function () {
1417
+ var $ret = new OrdinalTimeXAxisDescription();
1418
+ $ret.name = _this.at(a, c, true, g);
1419
+ $ret.useEnhancedIntervalManagement = true;
1420
+ $ret.dataSourceRef = a.m(d);
1421
+ $ret.dateTimeMemberPath = e;
1422
+ return $ret;
1423
+ })());
1424
+ case 5: return ((function () {
1425
+ var $ret = new CategoryAngleAxisDescription();
1426
+ $ret.name = _this.at(a, c, true, g);
1427
+ $ret.useEnhancedIntervalManagement = true;
1428
+ $ret.dataSourceRef = a.m(d);
1429
+ $ret.label = e;
1430
+ return $ret;
1431
+ })());
1432
+ case 6: return ((function () {
1433
+ var $ret = new ProportionalCategoryAngleAxisDescription();
1434
+ $ret.name = _this.at(a, c, true, g);
1435
+ $ret.useEnhancedIntervalManagement = true;
1436
+ $ret.dataSourceRef = a.m(d);
1437
+ $ret.label = e;
1438
+ $ret.valueMemberPath = f;
1439
+ return $ret;
1440
+ })());
1441
+ }
1442
+ return null;
1443
+ };
1444
+ DataSeriesToDescriptionAdapter.prototype.at = function (a, b, c, d) {
1445
+ return a.h(b, c, d);
1446
+ };
1447
+ DataSeriesToDescriptionAdapter.prototype.au = function (a, b) {
1448
+ return a.k(b);
1449
+ };
1450
+ DataSeriesToDescriptionAdapter.prototype.ak = function (a) {
1451
+ if (this.al(a)) {
1452
+ return false;
1453
+ }
1454
+ return true;
1455
+ };
1456
+ DataSeriesToDescriptionAdapter.prototype.e = function (a) {
1457
+ for (var c = 0; c < a.length; c++) {
1458
+ var b = a[c];
1459
+ if (b.suggestedSeries == 34) {
1460
+ return 1;
1461
+ }
1462
+ if (b.suggestedSeries == 36) {
1463
+ return 3;
1464
+ }
1465
+ if (b.suggestedSeries == 37) {
1466
+ return 4;
1467
+ }
1468
+ if (this.am(b)) {
1469
+ return 2;
1470
+ }
1471
+ }
1472
+ return 0;
1473
+ };
1474
+ DataSeriesToDescriptionAdapter.prototype.am = function (a) {
1475
+ switch (a.suggestedSeries) {
1476
+ case 43:
1477
+ case 41:
1478
+ case 39:
1479
+ case 42:
1480
+ case 44:
1481
+ case 38:
1482
+ case 40: return true;
1483
+ }
1484
+ return false;
1485
+ };
1486
+ DataSeriesToDescriptionAdapter.prototype.getToolbarContent = function (a) {
1487
+ var b = new ToolbarDescription();
1488
+ var c = this.e(a);
1489
+ b.targetRef = "dashboardTile";
1490
+ if (this.ab.refNamespace != null) {
1491
+ b.targetRef = this.ab.refNamespace;
1492
+ }
1493
+ var d = new DataSeriesToDescriptionAdapterResult(this.ab);
1494
+ d.content = b;
1495
+ this.j = d;
1496
+ return d;
1497
+ };
1498
+ DataSeriesToDescriptionAdapter.prototype.getLegendContent = function (a) {
1499
+ var b = this.e(a);
1500
+ switch (b) {
1501
+ case 0:
1502
+ this.h = this.k(a);
1503
+ return this.h;
1504
+ case 1:
1505
+ this.h = this.r(a);
1506
+ return this.h;
1507
+ case 2:
1508
+ this.h = this.k(a);
1509
+ return this.h;
1510
+ }
1511
+ return null;
1512
+ };
1513
+ DataSeriesToDescriptionAdapter.prototype.r = function (a) {
1514
+ var b = ((function () {
1515
+ var $ret = new ItemLegendDescription();
1516
+ $ret.orientation = "Horizontal";
1517
+ return $ret;
1518
+ })());
1519
+ b.name = "legend";
1520
+ var c = new DataSeriesToDescriptionAdapterResult(this.ab);
1521
+ c.content = b;
1522
+ return c;
1523
+ };
1524
+ DataSeriesToDescriptionAdapter.prototype.k = function (a) {
1525
+ var b = ((function () {
1526
+ var $ret = new LegendDescription();
1527
+ $ret.orientation = "Horizontal";
1528
+ return $ret;
1529
+ })());
1530
+ b.name = "legend";
1531
+ var c = new DataSeriesToDescriptionAdapterResult(this.ab);
1532
+ if (this.an(a)) {
1533
+ b = ((function () {
1534
+ var $ret = new ItemLegendDescription();
1535
+ $ret.orientation = "Horizontal";
1536
+ return $ret;
1537
+ })());
1538
+ b.name = "itemLegend";
1539
+ }
1540
+ c.content = b;
1541
+ return c;
1542
+ };
1543
+ DataSeriesToDescriptionAdapter.prototype.an = function (a) {
1544
+ for (var c = 0; c < a.length; c++) {
1545
+ var b = a[c];
1546
+ if (this.al(b)) {
1547
+ continue;
1548
+ }
1549
+ if (b.suggestedSeries != 17) {
1550
+ return false;
1551
+ }
1552
+ }
1553
+ return true;
1554
+ };
1555
+ DataSeriesToDescriptionAdapter.prototype.al = function (a) {
1556
+ switch (a.suggestedSeries) {
1557
+ case 23:
1558
+ case 25:
1559
+ case 26:
1560
+ case 27:
1561
+ case 28:
1562
+ case 29:
1563
+ case 30:
1564
+ case 31:
1565
+ case 32:
1566
+ case 33: return true;
1567
+ }
1568
+ return false;
1569
+ };
1570
+ DataSeriesToDescriptionAdapter.prototype.a = function (a) {
1571
+ switch (this.e(a)) {
1572
+ case 0: break;
1573
+ case 1: break;
1574
+ case 2: break;
1575
+ }
1576
+ return a;
1577
+ };
1578
+ DataSeriesToDescriptionAdapter.$t = markType(DataSeriesToDescriptionAdapter, 'DataSeriesToDescriptionAdapter');
1579
+ return DataSeriesToDescriptionAdapter;
1580
+ }(Base));
1581
+ export { DataSeriesToDescriptionAdapter };