igniteui-webcomponents-spreadsheet-chart-adapter 4.3.0 → 4.3.2

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.
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import { IgcSpreadsheetModule, RendererContainer, SpreadsheetDialogUtilities, SpreadsheetUtilities, SpreadsheetChartAdapterBase, SpreadsheetChartElementInfo } from 'igniteui-webcomponents-spreadsheet';
9
- import { Localization, Base, markType, List$1, typeCast, Enumerable, stringContains, stringEmpty, trimEnd, StringBuilder, stringFormat1, truncate, fromEnum, stringRemove, CategoryXAxisDescription, CategoryYAxisDescription, stringFormat, tryParseNumber, fromOADate, stringIsNullOrEmpty, CategoryAngleAxisDescription, NumericRadiusAxisDescription, NumericXAxisDescription, NumericYAxisDescription, Number_$type, String_$type, EnumUtil, nullableEquals, StraightNumericAxisBaseDescription, AxisDescription, ValueType, isNaN_, ArgumentException, isInfinity, markStruct, runOn, ComponentRenderer, IDisposable_$type, NotSupportedException, Dictionary$2, HashSet$1, Convert, DataChartCategoryCoreDescriptionModule, DataChartCategoryDescriptionModule, DataChartVerticalCategoryDescriptionModule, DataChartDescription, SeriesDescription, HorizontalAnchoredCategorySeriesDescription, DoughnutChartDescriptionMetadata, DoughnutChartDescription, RingSeriesDescription, LegendDescriptionModule, ItemLegendDescriptionModule, LegendDescription, ItemLegendDescription, PieChartDescriptionModule, PieChartDescription, DataChartFinancialDescriptionModule, LineSeriesDescription, ColumnSeriesDescription, FinancialPriceSeriesDescription, typeGetValue, SeriesViewerDescription, MarkerSeriesDescription, StackedFragmentSeriesDescription, BubbleSeriesDescription, StackedSeriesBaseDescription, TrendLineType_$type, AnchoredCategorySeriesDescription, ScatterBaseDescription, PolarBaseDescription, Stacked100AreaSeriesDescription, StackedAreaSeriesDescription, AreaSeriesDescription, Stacked100LineSeriesDescription, StackedLineSeriesDescription, BarSeriesDescription, Stacked100BarSeriesDescription, StackedBarSeriesDescription, Stacked100ColumnSeriesDescription, StackedColumnSeriesDescription, HorizontalStackedSeriesBaseDescription, VerticalStackedSeriesBaseDescription, VerticalAnchoredCategorySeriesDescription, RingSeriesBaseDescriptionMetadata, RingSeriesDescriptionMetadata, HierarchicalRingSeriesDescriptionMetadata, DataChartRadialCoreDescriptionModule, DataChartRadialDescriptionModule, RadialAreaSeriesDescription, RadialLineSeriesDescription, DataChartScatterDescriptionModule, ScatterSplineSeriesDescription, ScatterLineSeriesDescription, ScatterSeriesDescription, DataChartStackedDescriptionModule, log10, markEnum } from 'igniteui-webcomponents-core';
9
+ import { Localization, Base, markType, List$1, typeCast, Enumerable, stringContains, stringEmpty, trimEnd, StringBuilder, stringFormat1, truncate, fromEnum, stringRemove, CategoryXAxisDescription, CategoryYAxisDescription, stringFormat, tryParseNumber, fromOADate, stringIsNullOrEmpty, CategoryAngleAxisDescription, NumericRadiusAxisDescription, NumericXAxisDescription, NumericYAxisDescription, Number_$type, String_$type, EnumUtil, nullableEquals, StraightNumericAxisBaseDescription, AxisDescription, ValueType, isNaN_, ArgumentException, isInfinity, markStruct, runOn, ComponentRenderer, IDisposable_$type, NotSupportedException, Dictionary$2, HashSet$1, Array_$type, Convert, DataChartCategoryCoreDescriptionModule, DataChartCategoryDescriptionModule, DataChartVerticalCategoryDescriptionModule, DataChartDescription, SeriesDescription, HorizontalAnchoredCategorySeriesDescription, DoughnutChartDescriptionMetadata, DoughnutChartDescription, RingSeriesDescription, LegendDescriptionModule, ItemLegendDescriptionModule, LegendDescription, ItemLegendDescription, PieChartDescriptionModule, PieChartDescription, DataChartFinancialDescriptionModule, LineSeriesDescription, ColumnSeriesDescription, FinancialPriceSeriesDescription, typeGetValue, SeriesViewerDescription, MarkerSeriesDescription, StackedFragmentSeriesDescription, BubbleSeriesDescription, StackedSeriesBaseDescription, TrendLineType_$type, AnchoredCategorySeriesDescription, ScatterBaseDescription, PolarBaseDescription, Stacked100AreaSeriesDescription, StackedAreaSeriesDescription, AreaSeriesDescription, Stacked100LineSeriesDescription, StackedLineSeriesDescription, BarSeriesDescription, Stacked100BarSeriesDescription, StackedBarSeriesDescription, Stacked100ColumnSeriesDescription, StackedColumnSeriesDescription, HorizontalStackedSeriesBaseDescription, VerticalStackedSeriesBaseDescription, VerticalAnchoredCategorySeriesDescription, RingSeriesBaseDescriptionMetadata, RingSeriesDescriptionMetadata, HierarchicalRingSeriesDescriptionMetadata, DataChartRadialCoreDescriptionModule, DataChartRadialDescriptionModule, RadialAreaSeriesDescription, RadialLineSeriesDescription, DataChartScatterDescriptionModule, ScatterSplineSeriesDescription, ScatterLineSeriesDescription, ScatterSeriesDescription, DataChartStackedDescriptionModule, log10, markEnum } from 'igniteui-webcomponents-core';
10
10
  import { IgcDataChartCoreModule, IgcPieChartModule, IgcLineSeriesModule, IgcAreaSeriesModule, IgcColumnSeriesModule, IgcBarSeriesModule, IgcSplineSeriesModule, IgcSplineAreaSeriesModule, IgcStepLineSeriesModule, IgcStepAreaSeriesModule, IgcPointSeriesModule, IgcWaterfallSeriesModule, IgcCrosshairLayerModule, IgcCalloutLayerModule, IgcItemToolTipLayerModule, IgcCategoryToolTipLayerModule, IgcCategoryHighlightLayerModule, IgcCategoryItemHighlightLayerModule, IgcFinalValueLayerModule, IgcNumberAbbreviatorModule, IgcDataChartInteractivityModule, IgcDataChartCategoryTrendLineModule, IgcDataChartAnnotationModule, IgcDoughnutChartModule, IgcCategoryXAxisModule, IgcNumericYAxisModule, IgcCategoryDateTimeXAxisModule, IgcTimeXAxisModule, IgcOrdinalTimeXAxisModule, IgcNumericRadiusAxisModule, IgcNumericAngleAxisModule, IgcCategoryAngleAxisModule, IgcCategoryYAxisModule, IgcNumericXAxisModule, IgcRadialColumnSeriesModule, IgcRadialPieSeriesModule, IgcRadialLineSeriesModule, IgcRadialAreaSeriesModule, IgcPolarLineSeriesModule, IgcPolarSplineSeriesModule, IgcPolarAreaSeriesModule, IgcPolarSplineAreaSeriesModule, IgcPolarScatterSeriesModule, IgcRangeAreaSeriesModule, IgcRangeColumnSeriesModule, IgcPercentChangeYAxisModule, IgcFinancialPriceSeriesModule, IgcIndicatorsModule, IgcOverlaysModule, IgcZoomSliderModule, IgcFinancialLegendModule, IgcLegendModule, IgcItemLegendModule, IgcScatterSeriesModule, IgcScatterLineSeriesModule, IgcScatterSplineSeriesModule, IgcBubbleSeriesModule, IgcStackedAreaSeriesModule, IgcStackedBarSeriesModule, IgcStackedColumnSeriesModule, IgcStackedLineSeriesModule, IgcStacked100AreaSeriesModule, IgcStacked100BarSeriesModule, IgcStacked100ColumnSeriesModule, IgcStacked100LineSeriesModule, IgcStackedFragmentSeriesModule, IgcAreaFragmentModule, IgcRingSeriesModule, IgcColumnFragmentModule, IgcLineFragmentModule, IgcSplineFragmentModule, IgcSplineAreaFragmentModule, IgcBarFragmentModule, NumericAxisBase, Axis, AxisLabelsLocation_$type, PriceDisplayType_$type, MarkerType_$type } from 'igniteui-webcomponents-charts';
11
11
  import { Workbook, ChartSolidFill, ChartGradientFill, WorkbookColorInfo, ChartType_$type, SeriesType_$type, ChartEmptyFill, Series } from 'igniteui-webcomponents-excel';
12
12
 
@@ -1280,70 +1280,73 @@ let SpreadsheetChartAdapterHelpers = /*@__PURE__*/ (() => {
1280
1280
  }
1281
1281
  static g(a, b) {
1282
1282
  let c = SpreadsheetChartAdapterHelpers.m(a, b);
1283
- let d = null;
1283
+ let d = a.categoryType == 3;
1284
+ let e = null;
1284
1285
  if (c) {
1285
- d = new CategoryXAxisDescription();
1286
+ e = new CategoryXAxisDescription();
1286
1287
  }
1287
1288
  else {
1288
- d = new CategoryYAxisDescription();
1289
+ e = new CategoryYAxisDescription();
1289
1290
  }
1290
1291
  if (c) {
1291
- d.name = a.axisGroup == 1 ? "XAxisPrimary" : "XAxisSecondary";
1292
+ e.name = a.axisGroup == 1 ? "XAxisPrimary" : "XAxisSecondary";
1292
1293
  }
1293
1294
  else {
1294
- d.name = a.axisGroup == 1 ? "YAxisPrimary" : "YAxisSecondary";
1295
- }
1296
- SpreadsheetChartAdapterHelpers.x(d, a, b);
1297
- d.label = "Row";
1298
- d.dataSourceRef = stringFormat("groupedseriesdata{0}", "0");
1299
- if (c) {
1300
- d.interval = a.tickLabelSpacing;
1301
- }
1302
- else {
1303
- d.interval = a.tickLabelSpacing;
1295
+ e.name = a.axisGroup == 1 ? "YAxisPrimary" : "YAxisSecondary";
1296
+ }
1297
+ SpreadsheetChartAdapterHelpers.x(e, a, b);
1298
+ e.label = "Row";
1299
+ e.dataSourceRef = stringFormat("groupedseriesdata{0}", "0");
1300
+ if (!d) {
1301
+ if (c) {
1302
+ e.interval = a.tickLabelSpacing;
1303
+ }
1304
+ else {
1305
+ e.interval = a.tickLabelSpacing;
1306
+ }
1304
1307
  }
1305
- d.useClusteringMode = true;
1308
+ e.useClusteringMode = true;
1306
1309
  if (a.visible) {
1307
- let e = a._y();
1308
- let f = "formatlabelcategoryaxis_" + d.name;
1309
- b.b.v(b.a, b.f, f, (g, h) => {
1310
- let i = stringEmpty();
1311
- if (typeCast(SpreadsheetChartAdapter_SeriesDataItem.$, h) !== null) {
1312
- i = h.Row;
1310
+ let f = a._y();
1311
+ let g = "formatlabelcategoryaxis_" + e.name;
1312
+ b.b.v(b.a, b.f, g, (h, i) => {
1313
+ let j = stringEmpty();
1314
+ if (typeCast(SpreadsheetChartAdapter_SeriesDataItem.$, i) !== null) {
1315
+ j = i.Row;
1313
1316
  }
1314
- else if (typeCast(SpreadsheetChartAdapter_StackedSeriesDataItem.$, h) !== null) {
1315
- i = h.CategoryName;
1317
+ else if (typeCast(SpreadsheetChartAdapter_StackedSeriesDataItem.$, i) !== null) {
1318
+ j = i.CategoryName;
1316
1319
  }
1317
- let j = 0;
1320
+ let k = 0;
1318
1321
  if (a.categoryType == 2) {
1319
- return i;
1322
+ return j;
1320
1323
  }
1321
1324
  else if (a.categoryType == 3) {
1322
- if (((() => { let k = tryParseNumber(i, j); j = k.p1; return k.ret; })())) {
1323
- return SpreadsheetUtilities.dw(fromOADate(j), b.c.worksheet);
1325
+ if (((() => { let l = tryParseNumber(j, k); k = l.p1; return l.ret; })())) {
1326
+ return SpreadsheetUtilities.dw(fromOADate(k), b.c.worksheet);
1324
1327
  }
1325
1328
  }
1326
- else if (null != e) {
1327
- if (((() => { let k = tryParseNumber(i, j); j = k.p1; return k.ret; })())) {
1328
- let k = stringEmpty();
1329
- if (((() => { let l = e.v(j, a.tickLabels.numberFormat, k); k = l.p2; return l.ret; })())) {
1330
- if (false == stringIsNullOrEmpty(k)) {
1331
- return k;
1329
+ else if (null != f) {
1330
+ if (((() => { let l = tryParseNumber(j, k); k = l.p1; return l.ret; })())) {
1331
+ let l = stringEmpty();
1332
+ if (((() => { let m = f.v(k, a.tickLabels.numberFormat, l); l = m.p2; return m.ret; })())) {
1333
+ if (false == stringIsNullOrEmpty(l)) {
1334
+ return l;
1332
1335
  }
1333
1336
  }
1334
1337
  }
1335
1338
  }
1336
- return i;
1339
+ return j;
1337
1340
  });
1338
- d.formatLabelRef = f;
1341
+ e.formatLabelRef = g;
1339
1342
  }
1340
1343
  else {
1341
- d.formatLabelRef = stringEmpty();
1344
+ e.formatLabelRef = stringEmpty();
1342
1345
  }
1343
1346
  return ((() => {
1344
1347
  let $ret = new AxisInfo();
1345
1348
  $ret.b = a;
1346
- $ret.a = d;
1349
+ $ret.a = e;
1347
1350
  $ret.g = a.axisGroup == 1;
1348
1351
  $ret.h = a.axisGroup == 2;
1349
1352
  $ret.j = c;
@@ -1618,9 +1621,6 @@ let SpreadsheetChartAdapterHelpers = /*@__PURE__*/ (() => {
1618
1621
  }
1619
1622
  a.majorStrokeThickness = SpreadsheetChartAdapterHelpers.n(b.majorGridLines.widthInPoints, c.c.worksheet.workbook, false);
1620
1623
  }
1621
- else {
1622
- a.majorStroke = "rgba(0, 0, 0, 0)";
1623
- }
1624
1624
  if (null != b.minorGridLines) {
1625
1625
  let k = SpreadsheetChartAdapterHelpers.r(b.minorGridLines.fill, b.workbook);
1626
1626
  if (false == stringIsNullOrEmpty(k)) {
@@ -1628,9 +1628,6 @@ let SpreadsheetChartAdapterHelpers = /*@__PURE__*/ (() => {
1628
1628
  }
1629
1629
  a.minorStrokeThickness = SpreadsheetChartAdapterHelpers.n(b.minorGridLines.widthInPoints, c.c.worksheet.workbook, false);
1630
1630
  }
1631
- else {
1632
- a.minorStroke = "rgba(0, 0, 0, 0)";
1633
- }
1634
1631
  a.labelVisibility = (false == b.visible) ? "Collapsed" : "Visible";
1635
1632
  if (b.reversePlotOrder) {
1636
1633
  a.isInverted = true;
@@ -2649,51 +2646,55 @@ let SpreadsheetChartAdapter_SpreadsheetChartElementInfoPrivate = /*@__PURE__*/ (
2649
2646
  let c = this.bq(this.a4._inner[0].a, b, a);
2650
2647
  b = c.p1;
2651
2648
  a = c.p2;
2652
- let d = a.length;
2653
- let e = b.length;
2654
- let f = 0;
2655
- let g = this.a4.count;
2656
- let h = ((() => {
2649
+ let d = new List$1(Array_$type, 0);
2650
+ d.add(b);
2651
+ for (let e = 1; e < this.a4.count; e++) {
2652
+ let f;
2653
+ let g;
2654
+ let h = this.bq(this.a4._inner[e].a, g, f);
2655
+ g = h.p1;
2656
+ f = h.p2;
2657
+ d.add(g);
2658
+ }
2659
+ let i = a.length;
2660
+ let j = b.length;
2661
+ let k = 0;
2662
+ let l = this.a4.count;
2663
+ let m = ((() => {
2657
2664
  let $firstRank;
2658
- let $ret = new Array($firstRank = d);
2665
+ let $ret = new Array($firstRank = i);
2659
2666
  let $currRet = $ret;
2660
2667
  for (let $rankInit = 0; $rankInit < $firstRank; $rankInit++) {
2661
- $currRet[$rankInit] = new Array(g);
2668
+ $currRet[$rankInit] = new Array(l);
2662
2669
  }
2663
2670
  return $ret;
2664
2671
  })());
2665
- for (let i = 0; i < d; i++) {
2666
- let j = 0;
2667
- for (let k of fromEnum(this.a4)) {
2668
- let l;
2669
- let m;
2670
- let n = this.bq(k.a, m, l);
2671
- m = n.p1;
2672
- l = n.p2;
2673
- h[f][j] = Convert.toDouble3(m[f]);
2674
- j++;
2672
+ for (let n = 0; n < i; n++) {
2673
+ for (let o = 0; o < d.count; o++) {
2674
+ let p = d._inner[o];
2675
+ m[k][o] = Convert.toDouble3(p[k]);
2675
2676
  }
2676
- f++;
2677
- }
2678
- f = 0;
2679
- for (let o = 0; o < d; o++) {
2680
- let p = new Array(g);
2681
- let q = new Array(g);
2682
- let r = 0;
2683
- for (let s of fromEnum(this.a4)) {
2684
- p[r] = Convert.toDouble3(h[f][r]);
2685
- q[r] = s.c;
2686
- r++;
2677
+ k++;
2678
+ }
2679
+ k = 0;
2680
+ for (let q = 0; q < i; q++) {
2681
+ let r = new Array(l);
2682
+ let s = new Array(l);
2683
+ let t = 0;
2684
+ for (let u of fromEnum(this.a4)) {
2685
+ r[t] = Convert.toDouble3(m[k][t]);
2686
+ s[t] = u.c;
2687
+ t++;
2687
2688
  }
2688
- let t = ((() => {
2689
+ let v = ((() => {
2689
2690
  let $ret = new SpreadsheetChartAdapter_StackedSeriesDataItem();
2690
- $ret.CategoryName = a[o].toString();
2691
- $ret.SeriesValues = p;
2692
- $ret.SeriesNames = q;
2691
+ $ret.CategoryName = a[q].toString();
2692
+ $ret.SeriesValues = r;
2693
+ $ret.SeriesNames = s;
2693
2694
  return $ret;
2694
2695
  })());
2695
- this.a2.add(t);
2696
- f++;
2696
+ this.a2.add(v);
2697
+ k++;
2697
2698
  }
2698
2699
  this.ac.g(this.k, this.a8, "stackedseriesdata", this.a2.toArray());
2699
2700
  }