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.
- package/License +7 -7
- package/README.md +8 -8
- package/bundles/igniteui-webcomponents-spreadsheet-chart-adapter.umd.js +170 -186
- package/bundles/igniteui-webcomponents-spreadsheet-chart-adapter.umd.min.js +1 -1
- package/esm2015/lib/SpreadsheetChartAdapterHelpers.js +40 -43
- package/esm2015/lib/SpreadsheetChartAdapter_combined.js +41 -37
- package/esm5/lib/SpreadsheetChartAdapterHelpers.js +48 -51
- package/esm5/lib/SpreadsheetChartAdapter_combined.js +124 -137
- package/fesm2015/igniteui-webcomponents-spreadsheet-chart-adapter.js +79 -78
- package/fesm5/igniteui-webcomponents-spreadsheet-chart-adapter.js +171 -187
- package/package.json +5 -5
|
@@ -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 =
|
|
1283
|
+
let d = a.categoryType == 3;
|
|
1284
|
+
let e = null;
|
|
1284
1285
|
if (c) {
|
|
1285
|
-
|
|
1286
|
+
e = new CategoryXAxisDescription();
|
|
1286
1287
|
}
|
|
1287
1288
|
else {
|
|
1288
|
-
|
|
1289
|
+
e = new CategoryYAxisDescription();
|
|
1289
1290
|
}
|
|
1290
1291
|
if (c) {
|
|
1291
|
-
|
|
1292
|
+
e.name = a.axisGroup == 1 ? "XAxisPrimary" : "XAxisSecondary";
|
|
1292
1293
|
}
|
|
1293
1294
|
else {
|
|
1294
|
-
|
|
1295
|
-
}
|
|
1296
|
-
SpreadsheetChartAdapterHelpers.x(
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
if (
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
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
|
-
|
|
1308
|
+
e.useClusteringMode = true;
|
|
1306
1309
|
if (a.visible) {
|
|
1307
|
-
let
|
|
1308
|
-
let
|
|
1309
|
-
b.b.v(b.a, b.f,
|
|
1310
|
-
let
|
|
1311
|
-
if (typeCast(SpreadsheetChartAdapter_SeriesDataItem.$,
|
|
1312
|
-
|
|
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.$,
|
|
1315
|
-
|
|
1317
|
+
else if (typeCast(SpreadsheetChartAdapter_StackedSeriesDataItem.$, i) !== null) {
|
|
1318
|
+
j = i.CategoryName;
|
|
1316
1319
|
}
|
|
1317
|
-
let
|
|
1320
|
+
let k = 0;
|
|
1318
1321
|
if (a.categoryType == 2) {
|
|
1319
|
-
return
|
|
1322
|
+
return j;
|
|
1320
1323
|
}
|
|
1321
1324
|
else if (a.categoryType == 3) {
|
|
1322
|
-
if (((() => { let
|
|
1323
|
-
return SpreadsheetUtilities.dw(fromOADate(
|
|
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 !=
|
|
1327
|
-
if (((() => { let
|
|
1328
|
-
let
|
|
1329
|
-
if (((() => { let
|
|
1330
|
-
if (false == stringIsNullOrEmpty(
|
|
1331
|
-
return
|
|
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
|
|
1339
|
+
return j;
|
|
1337
1340
|
});
|
|
1338
|
-
|
|
1341
|
+
e.formatLabelRef = g;
|
|
1339
1342
|
}
|
|
1340
1343
|
else {
|
|
1341
|
-
|
|
1344
|
+
e.formatLabelRef = stringEmpty();
|
|
1342
1345
|
}
|
|
1343
1346
|
return ((() => {
|
|
1344
1347
|
let $ret = new AxisInfo();
|
|
1345
1348
|
$ret.b = a;
|
|
1346
|
-
$ret.a =
|
|
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 =
|
|
2653
|
-
|
|
2654
|
-
let
|
|
2655
|
-
|
|
2656
|
-
|
|
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 =
|
|
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(
|
|
2668
|
+
$currRet[$rankInit] = new Array(l);
|
|
2662
2669
|
}
|
|
2663
2670
|
return $ret;
|
|
2664
2671
|
})());
|
|
2665
|
-
for (let
|
|
2666
|
-
let
|
|
2667
|
-
|
|
2668
|
-
|
|
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
|
-
|
|
2677
|
-
}
|
|
2678
|
-
|
|
2679
|
-
for (let
|
|
2680
|
-
let
|
|
2681
|
-
let
|
|
2682
|
-
let
|
|
2683
|
-
for (let
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
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
|
|
2689
|
+
let v = ((() => {
|
|
2689
2690
|
let $ret = new SpreadsheetChartAdapter_StackedSeriesDataItem();
|
|
2690
|
-
$ret.CategoryName = a[
|
|
2691
|
-
$ret.SeriesValues =
|
|
2692
|
-
$ret.SeriesNames =
|
|
2691
|
+
$ret.CategoryName = a[q].toString();
|
|
2692
|
+
$ret.SeriesValues = r;
|
|
2693
|
+
$ret.SeriesNames = s;
|
|
2693
2694
|
return $ret;
|
|
2694
2695
|
})());
|
|
2695
|
-
this.a2.add(
|
|
2696
|
-
|
|
2696
|
+
this.a2.add(v);
|
|
2697
|
+
k++;
|
|
2697
2698
|
}
|
|
2698
2699
|
this.ac.g(this.k, this.a8, "stackedseriesdata", this.a2.toArray());
|
|
2699
2700
|
}
|