@bino-bi/bn-template-engine 1.0.0-alpha.3 → 1.0.0-alpha.5
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/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/p-1265d8d3.entry.js +1 -0
- package/dist/bn-template-engine/p-15516dac.entry.js +1 -0
- package/dist/bn-template-engine/p-1c716641.entry.js +1 -0
- package/dist/bn-template-engine/p-27cc8dc0.entry.js +1 -0
- package/dist/bn-template-engine/p-3b4c7425.entry.js +1 -0
- package/dist/bn-template-engine/p-4426d484.entry.js +1 -0
- package/dist/bn-template-engine/p-51f8dc9e.entry.js +1 -0
- package/dist/bn-template-engine/p-53d4e690.entry.js +1 -0
- package/dist/bn-template-engine/p-5KQYRQLK.js +1 -0
- package/dist/bn-template-engine/p-7337e03d.entry.js +1 -0
- package/dist/bn-template-engine/{p-0f1504f3.entry.js → p-75e97c87.entry.js} +1 -1
- package/dist/bn-template-engine/p-7a560278.entry.js +1 -0
- package/dist/bn-template-engine/p-BYBpC0EO.js +1 -0
- package/dist/bn-template-engine/p-BfXY5dsy.js +1 -0
- package/dist/bn-template-engine/p-BgnHJQ9Q.js +1 -0
- package/dist/bn-template-engine/{p-B4ySv9KQ.js → p-Bhd_WSML.js} +1 -1
- package/dist/bn-template-engine/p-Bka-Z6jo.js +1 -0
- package/dist/bn-template-engine/p-Bnhh02CF.js +1 -0
- package/dist/bn-template-engine/p-C7dQL8CS.js +1 -0
- package/dist/bn-template-engine/p-CL1RYuNU.js +1 -0
- package/dist/bn-template-engine/p-CYwd_ZNM.js +1 -0
- package/dist/bn-template-engine/p-ChlK-T9I.js +1 -0
- package/dist/bn-template-engine/p-DHezf8pZ.js +1 -0
- package/dist/bn-template-engine/{p-DVMu6dEy.js → p-DlppAFq9.js} +1 -1
- package/dist/bn-template-engine/p-DvDDgmcV.js +1 -0
- package/dist/bn-template-engine/p-DvvwfRQG.js +1 -0
- package/dist/bn-template-engine/{p-DG-1MR_T.js → p-P7pGJBgc.js} +1 -1
- package/dist/bn-template-engine/p-abc0067c.entry.js +1 -0
- package/dist/bn-template-engine/p-b34eaf86.entry.js +1 -0
- package/dist/bn-template-engine/p-bdb8b44c.entry.js +1 -0
- package/dist/bn-template-engine/p-c44fcb8e.entry.js +1 -0
- package/dist/bn-template-engine/p-c7e1a49b.entry.js +1 -0
- package/dist/bn-template-engine/p-d9003041.entry.js +1 -0
- package/dist/bn-template-engine/p-daa7ffa3.entry.js +1 -0
- package/dist/bn-template-engine/p-e084f50a.entry.js +1 -0
- package/dist/bn-template-engine/p-eaba6658.entry.js +1 -0
- package/dist/bn-template-engine/{p-C0yAPzJz.js → p-u8igQLRZ.js} +1 -1
- package/dist/cjs/{DataFormatDigits-DAmZzqbD.js → DataFormatDigits-DKcOeLNK.js} +1 -1
- package/dist/cjs/{DateStringFactory-CcluhpGI.js → DateStringFactory-CSKvbS8K.js} +1 -1
- package/dist/cjs/{Order-BKoDS21t.js → Order-iG11HI4R.js} +8 -5
- package/dist/cjs/{SVGVariancesStyleGroup-DYYAU-81.js → SVGVariancesStyleGroup-K-Tw6lOD.js} +1 -14
- package/dist/cjs/bn-asset.cjs.entry.js +5 -4
- package/dist/cjs/bn-body_4.cjs.entry.js +15 -13
- package/dist/cjs/bn-card.cjs.entry.js +5 -4
- package/dist/cjs/{ibcs-chart-structure.cjs.entry.js → bn-chart-structure_5.cjs.entry.js} +1074 -30
- package/dist/cjs/bn-chart-time.cjs.entry.js +38 -12
- package/dist/cjs/bn-component-style.cjs.entry.js +5 -4
- package/dist/cjs/bn-dataset.cjs.entry.js +38 -9
- package/dist/cjs/bn-grid.cjs.entry.js +9 -7
- package/dist/cjs/bn-image.cjs.entry.js +9 -7
- package/dist/cjs/bn-internationalization.cjs.entry.js +5 -4
- package/dist/cjs/bn-layout-card.cjs.entry.js +3 -2
- package/dist/cjs/bn-layout-page.cjs.entry.js +2 -1
- package/dist/cjs/bn-message.cjs.entry.js +5 -4
- package/dist/cjs/bn-table.cjs.entry.js +981 -0
- package/dist/cjs/bn-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-template.cjs.entry.js +3 -2
- package/dist/cjs/bn-text.cjs.entry.js +11 -9
- package/dist/cjs/bn-tree.cjs.entry.js +9 -7
- package/dist/cjs/contentDecoder-JxOldq1e.js +419 -0
- package/dist/cjs/{context-protocol-CRPmux5D.js → context-protocol-DRQWrwsA.js} +2 -0
- package/dist/cjs/editor-companion.cjs.entry.js +1 -1
- package/dist/cjs/emotion-hash.esm-nbbEQ0Dn.js +57 -0
- package/dist/cjs/ibcs-chart-time.cjs.entry.js +22 -18
- package/dist/cjs/{bn-context_5.cjs.entry.js → ibcs-table.cjs.entry.js} +122 -1293
- package/dist/cjs/{StringAdapter-Bneo8T4k.js → ibcsRuleSet-DgUoXOfd.js} +10 -10
- package/dist/cjs/index-Dm85hG6t.js +65 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{scaling-D8sIIKft.js → scaling-9Tz595RQ.js} +7 -7
- package/dist/cjs/{withHasError-B8gHkfV2.js → utils-CwHIVbbL.js} +1 -69
- package/dist/cjs/{withBodyObserver-C6gLgq_e.js → withBodyObserver-CKpSD8UT.js} +3 -3
- package/dist/cjs/{withComponentStatus-_x4LQZ0N.js → withComponentStatus-Bw70BhO0.js} +5 -5
- package/dist/cjs/{withComponentStyle-DMtic_9Y.js → withComponentStyle-aIbTCtfj.js} +5 -5
- package/dist/cjs/withHasError-D7ue5vAv.js +72 -0
- package/dist/cjs/{withStyled-CW30Bh6c.js → withStyled-CS1Yp4sv.js} +8 -61
- package/dist/cjs/{withTranslation-CWPAIRjh.js → withTranslation-rwgyITqe.js} +5 -5
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +226 -99
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +13 -3
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +94 -11
- package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +8 -6
- package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +4 -0
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +28 -4
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -3
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -4
- package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +4 -0
- package/dist/collection/components/bn-dataset/bn-dataset.js +49 -2
- package/dist/collection/components/bn-datasource/bn-datasource.js +46 -3
- package/dist/collection/components/bn-table/bn-table.js +20 -21
- package/dist/collection/components/bn-table/ibcs-table.js +2 -2
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +58 -41
- package/dist/collection/stores/componentStyles.js +2 -0
- package/dist/collection/utils/constants.js +8 -5
- package/dist/collection/utils/contentDecoder.js +28 -0
- package/dist/collection/utils/stackColors.js +2 -2
- package/dist/collection/utils/validate.js +1 -1
- package/dist/components/DataFormatDigits.js +1 -1
- package/dist/components/Order.js +1 -1
- package/dist/components/SVGVariancesStyleGroup.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-dataset.js +1 -1
- package/dist/components/bn-datasource.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/contentDecoder.js +1 -0
- package/dist/components/context-protocol.js +1 -1
- package/dist/components/emotion-hash.esm.js +1 -0
- package/dist/components/ibcs-chart-structure2.js +1 -1
- package/dist/components/ibcs-chart-time2.js +1 -1
- package/dist/components/ibcs-table2.js +1 -1
- package/dist/components/ibcs-title2.js +1 -1
- package/dist/components/ibcsRuleSet.js +1 -1
- package/dist/components/validate.js +1 -1
- package/dist/components/withStyled.js +1 -1
- package/dist/esm/{DataFormatDigits--qIbKvXa.js → DataFormatDigits-oSZ1hBKE.js} +1 -1
- package/dist/esm/{DateStringFactory-XWdUjsn8.js → DateStringFactory-CSGz6TDk.js} +1 -1
- package/dist/esm/{Order-sqjrku2z.js → Order-Bnhh02CF.js} +9 -6
- package/dist/esm/{SVGVariancesStyleGroup-ibg3sLjM.js → SVGVariancesStyleGroup-CqTjrZYg.js} +2 -13
- package/dist/esm/bn-asset.entry.js +5 -4
- package/dist/esm/bn-body_4.entry.js +11 -9
- package/dist/esm/bn-card.entry.js +5 -4
- package/dist/esm/{ibcs-chart-structure.entry.js → bn-chart-structure_5.entry.js} +1064 -24
- package/dist/esm/bn-chart-time.entry.js +38 -12
- package/dist/esm/bn-component-style.entry.js +5 -4
- package/dist/esm/bn-dataset.entry.js +35 -6
- package/dist/esm/bn-grid.entry.js +9 -7
- package/dist/esm/bn-image.entry.js +9 -7
- package/dist/esm/bn-internationalization.entry.js +5 -4
- package/dist/esm/bn-layout-card.entry.js +3 -2
- package/dist/esm/bn-layout-page.entry.js +2 -1
- package/dist/esm/bn-message.entry.js +5 -4
- package/dist/esm/bn-table.entry.js +979 -0
- package/dist/esm/bn-template-engine.js +1 -1
- package/dist/esm/bn-template.entry.js +3 -2
- package/dist/esm/bn-text.entry.js +11 -9
- package/dist/esm/bn-tree.entry.js +9 -7
- package/dist/esm/contentDecoder-oMmxz6nJ.js +416 -0
- package/dist/esm/{context-protocol-Bz5klD-F.js → context-protocol-BHnQsVsr.js} +2 -0
- package/dist/esm/editor-companion.entry.js +1 -1
- package/dist/esm/emotion-hash.esm-BYBpC0EO.js +55 -0
- package/dist/esm/ibcs-chart-time.entry.js +15 -11
- package/dist/esm/{bn-context_5.entry.js → ibcs-table.entry.js} +69 -1236
- package/dist/esm/{StringAdapter-BCLJpQQ8.js → ibcsRuleSet-K4ytuA1f.js} +10 -10
- package/dist/esm/index-DHezf8pZ.js +65 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{scaling-C6K8FYSF.js → scaling-Cehc74IE.js} +2 -2
- package/dist/esm/{withHasError-B3QX2emi.js → utils-DvvwfRQG.js} +1 -69
- package/dist/esm/{withBodyObserver-DczL5ia8.js → withBodyObserver-FQ8NwCIz.js} +1 -1
- package/dist/esm/{withComponentStatus-DodoSXe-.js → withComponentStatus-DWjDYtZ7.js} +1 -1
- package/dist/esm/{withComponentStyle-BerJY64r.js → withComponentStyle-9uP_hcDq.js} +2 -2
- package/dist/esm/withHasError-FyY5mQ_3.js +70 -0
- package/dist/esm/{withStyled-D1fAWJ3g.js → withStyled--qQWquTH.js} +6 -59
- package/dist/esm/{withTranslation-mimbJdER.js → withTranslation-BqD0Kp7b.js} +2 -2
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +155 -109
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +2 -0
- package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
- package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +1 -0
- package/dist/types/components/bn-dataset/bn-dataset.d.ts +6 -0
- package/dist/types/components/bn-datasource/bn-datasource.d.ts +8 -0
- package/dist/types/components/bn-table/bn-table.d.ts +10 -8
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +0 -2
- package/dist/types/components.d.ts +102 -38
- package/dist/types/stores/componentStyles.d.ts +2 -0
- package/dist/types/utils/constants.d.ts +8 -5
- package/dist/types/utils/contentDecoder.d.ts +12 -0
- package/package.json +2 -1
- package/dist/bn-template-engine/p-05a82a77.entry.js +0 -1
- package/dist/bn-template-engine/p-1970906d.entry.js +0 -1
- package/dist/bn-template-engine/p-1dbd339c.entry.js +0 -1
- package/dist/bn-template-engine/p-2e68cf09.entry.js +0 -1
- package/dist/bn-template-engine/p-31cc6a2d.entry.js +0 -1
- package/dist/bn-template-engine/p-37881d05.entry.js +0 -1
- package/dist/bn-template-engine/p-3b894997.entry.js +0 -1
- package/dist/bn-template-engine/p-50e49732.entry.js +0 -1
- package/dist/bn-template-engine/p-6c7c0455.entry.js +0 -1
- package/dist/bn-template-engine/p-6da93eae.entry.js +0 -1
- package/dist/bn-template-engine/p-701e1578.entry.js +0 -1
- package/dist/bn-template-engine/p-8tsCnxIz.js +0 -1
- package/dist/bn-template-engine/p-997b2fe4.entry.js +0 -1
- package/dist/bn-template-engine/p-BL8gyUwE.js +0 -1
- package/dist/bn-template-engine/p-BSfqOkN_.js +0 -1
- package/dist/bn-template-engine/p-CRLgp9-v.js +0 -1
- package/dist/bn-template-engine/p-CYjZRKdI.js +0 -1
- package/dist/bn-template-engine/p-DRikHQE-.js +0 -1
- package/dist/bn-template-engine/p-DtdQCMzj.js +0 -1
- package/dist/bn-template-engine/p-a90f1cbe.entry.js +0 -1
- package/dist/bn-template-engine/p-b7bec050.entry.js +0 -1
- package/dist/bn-template-engine/p-d7f0cbaf.entry.js +0 -1
- package/dist/bn-template-engine/p-dfb61aa5.entry.js +0 -1
- package/dist/bn-template-engine/p-ece17f84.entry.js +0 -1
- package/dist/bn-template-engine/p-f27995c9.entry.js +0 -1
- package/dist/bn-template-engine/p-fd427179.entry.js +0 -1
- package/dist/bn-template-engine/p-sqjrku2z.js +0 -1
- package/dist/bn-template-engine/p-tzFCK9qn.js +0 -1
- package/dist/cjs/bn-chart-structure.cjs.entry.js +0 -700
- package/dist/esm/bn-chart-structure.entry.js +0 -698
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-Cjw0q6gP.js');
|
|
4
|
-
var SVGVariancesStyleGroup = require('./SVGVariancesStyleGroup-
|
|
5
|
-
var Order = require('./Order-
|
|
4
|
+
var SVGVariancesStyleGroup = require('./SVGVariancesStyleGroup-K-Tw6lOD.js');
|
|
5
|
+
var Order = require('./Order-iG11HI4R.js');
|
|
6
6
|
var formatter = require('./formatter-DIJL_crx.js');
|
|
7
|
-
var DataFormatDigits = require('./DataFormatDigits-
|
|
7
|
+
var DataFormatDigits = require('./DataFormatDigits-DKcOeLNK.js');
|
|
8
8
|
var alasql_min = require('./alasql.min-C_nHTuEQ.js');
|
|
9
|
-
var DateStringFactory = require('./DateStringFactory-
|
|
10
|
-
var
|
|
9
|
+
var DateStringFactory = require('./DateStringFactory-CSKvbS8K.js');
|
|
10
|
+
var ibcsRuleSet = require('./ibcsRuleSet-DgUoXOfd.js');
|
|
11
11
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
12
12
|
|
|
13
13
|
// import { IAdapter } from "../../../../../utils/helper/IAdapter";
|
|
@@ -1052,6 +1052,7 @@ class TimeChartStyle {
|
|
|
1052
1052
|
this.varianceStyles = varianceStyles;
|
|
1053
1053
|
this.padding = padding;
|
|
1054
1054
|
this.pattern = new Map();
|
|
1055
|
+
this.stackColors = ["#000000", "#c0c0c0", "#808080"];
|
|
1055
1056
|
}
|
|
1056
1057
|
}
|
|
1057
1058
|
/** Adapts raw componentStyle JSON into a TimeChartStyle, falling back to defaults for missing properties. */
|
|
@@ -1084,6 +1085,9 @@ class TimeChartStylesAdapter {
|
|
|
1084
1085
|
if (Order.CompareUtil.isExisting(data.padding)) {
|
|
1085
1086
|
styles.padding = this.paddingadapter.adapt(data.padding);
|
|
1086
1087
|
}
|
|
1088
|
+
if (Array.isArray(data.stackColors) && data.stackColors.length > 0) {
|
|
1089
|
+
styles.stackColors = data.stackColors;
|
|
1090
|
+
}
|
|
1087
1091
|
styles.pattern = new MarkerPattern(styles.fontStyles.size).createPatternMapForStructureBar();
|
|
1088
1092
|
}
|
|
1089
1093
|
return styles;
|
|
@@ -2032,10 +2036,10 @@ class StackedColumn {
|
|
|
2032
2036
|
}
|
|
2033
2037
|
const xPos = this.position.getColumnCenterPositionX(this.index);
|
|
2034
2038
|
const columnWidth = this.position.getColumnWidth();
|
|
2035
|
-
|
|
2036
|
-
const fillColor =
|
|
2039
|
+
const colors = this.styles.stackColors;
|
|
2040
|
+
const fillColor = colors[this.segmentIndex % colors.length];
|
|
2037
2041
|
const fillStyle = { color: fillColor };
|
|
2038
|
-
const strokeStyle = { color:
|
|
2042
|
+
const strokeStyle = { color: fillColor, width: 0.5 };
|
|
2039
2043
|
// Draw rectangle
|
|
2040
2044
|
this.columnGroup
|
|
2041
2045
|
.rect(columnWidth, Math.max(segmentHeight, 0.5))
|
|
@@ -2526,7 +2530,7 @@ class TimeChart {
|
|
|
2526
2530
|
this.overflowConfig = null;
|
|
2527
2531
|
this.lastScenarios = [];
|
|
2528
2532
|
this.initSQLFunctions();
|
|
2529
|
-
this.ruleSet = ruleSet || new
|
|
2533
|
+
this.ruleSet = ruleSet || new ibcsRuleSet.IBCSRuleSet();
|
|
2530
2534
|
this.i18n = this.createI18n(new Map());
|
|
2531
2535
|
this.styles = styles;
|
|
2532
2536
|
this.availableWidth = availableWidth;
|
|
@@ -3440,7 +3444,7 @@ class TimeChart {
|
|
|
3440
3444
|
if (!this.stackConfig)
|
|
3441
3445
|
return;
|
|
3442
3446
|
const stackGroup = svgContainer.group().id("StackedScenarios");
|
|
3443
|
-
const isScenarioStack = this.stackConfig.by === Order.StackBy.
|
|
3447
|
+
const isScenarioStack = this.stackConfig.by === Order.StackBy.SCENARIOS;
|
|
3444
3448
|
dataModel.forEach((elements, index) => {
|
|
3445
3449
|
const scenarioKeys = ["scenario1", "scenario2", "scenario3", "scenario4"];
|
|
3446
3450
|
const segments = [];
|
|
@@ -3535,7 +3539,7 @@ class TimeChart {
|
|
|
3535
3539
|
drawStackedHeaders(dataModel, svgContainer) {
|
|
3536
3540
|
if (!this.stackConfig || dataModel.length === 0)
|
|
3537
3541
|
return;
|
|
3538
|
-
const isScenarioStack = this.stackConfig.by === Order.StackBy.
|
|
3542
|
+
const isScenarioStack = this.stackConfig.by === Order.StackBy.SCENARIOS;
|
|
3539
3543
|
if (!isScenarioStack)
|
|
3540
3544
|
return;
|
|
3541
3545
|
const headerGroup = svgContainer.group().id("StackedHeaders");
|
|
@@ -3615,7 +3619,7 @@ class TimeChart {
|
|
|
3615
3619
|
if (!this.stackConfig)
|
|
3616
3620
|
return;
|
|
3617
3621
|
const areaGroup = svgContainer.group().id("StackedAreaScenarios");
|
|
3618
|
-
const isScenarioStack = this.stackConfig.by === Order.StackBy.
|
|
3622
|
+
const isScenarioStack = this.stackConfig.by === Order.StackBy.SCENARIOS;
|
|
3619
3623
|
const stackMode = this.stackConfig.mode;
|
|
3620
3624
|
const scenarioKeys = ["scenario1", "scenario2", "scenario3", "scenario4"];
|
|
3621
3625
|
// Determine how many layers we have
|
|
@@ -3852,7 +3856,7 @@ class TimeChartComponentConfig {
|
|
|
3852
3856
|
this.pixelPerPercentage = 50;
|
|
3853
3857
|
/** Maximum data points to display; 0 means unlimited. */
|
|
3854
3858
|
this.limit = 0;
|
|
3855
|
-
this.sortOrder = new Order.OrderAdapter(new
|
|
3859
|
+
this.sortOrder = new Order.OrderAdapter(new ibcsRuleSet.StringAdapter()).default();
|
|
3856
3860
|
this.level = Order.AggregationLevel.CATEGORY;
|
|
3857
3861
|
/** Pixel offset from left edge for horizontal alignment across multiple charts. -1 disables sync. */
|
|
3858
3862
|
this.leftSideOffsetForHorizontalSync = -1;
|
|
@@ -4023,7 +4027,7 @@ const IbcsChartTime = class {
|
|
|
4023
4027
|
const config = this.prepareConfig();
|
|
4024
4028
|
const styles = this.prepareStyle();
|
|
4025
4029
|
const availableWidth = this.containerWidth || 0;
|
|
4026
|
-
this.chart = new TimeChart(new
|
|
4030
|
+
this.chart = new TimeChart(new ibcsRuleSet.IBCSRuleSet(), config, styles, availableWidth);
|
|
4027
4031
|
this.chart.setI18n(this.i18n);
|
|
4028
4032
|
this.autoFitScaling(config, styles);
|
|
4029
4033
|
this.chart.setAvailableHeight(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.height) || 0);
|
|
@@ -4060,13 +4064,13 @@ const IbcsChartTime = class {
|
|
|
4060
4064
|
const availableWidth = this.containerWidth || 0;
|
|
4061
4065
|
if (!targetHeight || targetHeight <= 0) {
|
|
4062
4066
|
config.pixelPerUnit = 1; // No parent info — use fallback
|
|
4063
|
-
this.chart = new TimeChart(new
|
|
4067
|
+
this.chart = new TimeChart(new ibcsRuleSet.IBCSRuleSet(), config, styles, availableWidth);
|
|
4064
4068
|
this.chart.setI18n(this.i18n);
|
|
4065
4069
|
return;
|
|
4066
4070
|
}
|
|
4067
4071
|
// First pass with pixelPerUnit=1 to measure the real SVG height
|
|
4068
4072
|
config.pixelPerUnit = 1;
|
|
4069
|
-
this.chart = new TimeChart(new
|
|
4073
|
+
this.chart = new TimeChart(new ibcsRuleSet.IBCSRuleSet(), config, styles, availableWidth);
|
|
4070
4074
|
this.chart.setI18n(this.i18n);
|
|
4071
4075
|
this.chart.toString();
|
|
4072
4076
|
const svgHeight = this.chart.getAllocatedCanvasHeight();
|
|
@@ -4076,7 +4080,7 @@ const IbcsChartTime = class {
|
|
|
4076
4080
|
// Scale so the chart fits in ~90% of the available height
|
|
4077
4081
|
config.pixelPerUnit = (targetHeight * 0.9) / svgHeight;
|
|
4078
4082
|
// Second pass with the corrected scaling
|
|
4079
|
-
this.chart = new TimeChart(new
|
|
4083
|
+
this.chart = new TimeChart(new ibcsRuleSet.IBCSRuleSet(), config, styles, availableWidth);
|
|
4080
4084
|
this.chart.setI18n(this.i18n);
|
|
4081
4085
|
}
|
|
4082
4086
|
async componentWillRender() {
|
|
@@ -4100,7 +4104,7 @@ const IbcsChartTime = class {
|
|
|
4100
4104
|
//}
|
|
4101
4105
|
}
|
|
4102
4106
|
prepareConfig() {
|
|
4103
|
-
return new TimeChartComponentConfigAdapter(new TimeChartDataRowAdapter(), new Order.OrderAdapter(new
|
|
4107
|
+
return new TimeChartComponentConfigAdapter(new TimeChartDataRowAdapter(), new Order.OrderAdapter(new ibcsRuleSet.StringAdapter()), new ibcsRuleSet.StringAdapter(), new DataFormatDigits.DataFormatDigitsAdapter(), this.data).adapt({
|
|
4104
4108
|
data: this.data,
|
|
4105
4109
|
scenarios: this.scenarios,
|
|
4106
4110
|
variances: this.variances,
|