@bino-bi/bn-template-engine 1.0.0-alpha.2 → 1.0.0-alpha.4

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 (205) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-1265d8d3.entry.js +1 -0
  3. package/dist/bn-template-engine/p-15516dac.entry.js +1 -0
  4. package/dist/bn-template-engine/p-1c716641.entry.js +1 -0
  5. package/dist/bn-template-engine/p-27cc8dc0.entry.js +1 -0
  6. package/dist/bn-template-engine/p-4426d484.entry.js +1 -0
  7. package/dist/bn-template-engine/p-51f8dc9e.entry.js +1 -0
  8. package/dist/bn-template-engine/p-53d4e690.entry.js +1 -0
  9. package/dist/bn-template-engine/p-5KQYRQLK.js +1 -0
  10. package/dist/bn-template-engine/p-745f4596.entry.js +1 -0
  11. package/dist/bn-template-engine/{p-0f1504f3.entry.js → p-75e97c87.entry.js} +1 -1
  12. package/dist/bn-template-engine/p-7a560278.entry.js +1 -0
  13. package/dist/bn-template-engine/p-7ea7c325.entry.js +1 -0
  14. package/dist/bn-template-engine/p-945cc95d.entry.js +1 -0
  15. package/dist/bn-template-engine/p-BYBpC0EO.js +1 -0
  16. package/dist/bn-template-engine/p-BfXY5dsy.js +1 -0
  17. package/dist/bn-template-engine/p-BgnHJQ9Q.js +1 -0
  18. package/dist/bn-template-engine/{p-DgfL-ffj.js → p-Bhd_WSML.js} +1 -1
  19. package/dist/bn-template-engine/p-Bka-Z6jo.js +1 -0
  20. package/dist/bn-template-engine/p-Bnhh02CF.js +1 -0
  21. package/dist/bn-template-engine/p-C7dQL8CS.js +1 -0
  22. package/dist/bn-template-engine/p-CL1RYuNU.js +1 -0
  23. package/dist/bn-template-engine/p-CYwd_ZNM.js +1 -0
  24. package/dist/bn-template-engine/p-ChlK-T9I.js +1 -0
  25. package/dist/bn-template-engine/p-DHezf8pZ.js +1 -0
  26. package/dist/bn-template-engine/{p-DVMu6dEy.js → p-DlppAFq9.js} +1 -1
  27. package/dist/bn-template-engine/p-DvDDgmcV.js +1 -0
  28. package/dist/bn-template-engine/p-DvvwfRQG.js +1 -0
  29. package/dist/bn-template-engine/{p-DG-1MR_T.js → p-P7pGJBgc.js} +1 -1
  30. package/dist/bn-template-engine/p-b34eaf86.entry.js +1 -0
  31. package/dist/bn-template-engine/p-bdb8b44c.entry.js +1 -0
  32. package/dist/bn-template-engine/p-c44fcb8e.entry.js +1 -0
  33. package/dist/bn-template-engine/p-c7e1a49b.entry.js +1 -0
  34. package/dist/bn-template-engine/p-d9003041.entry.js +1 -0
  35. package/dist/bn-template-engine/p-daa7ffa3.entry.js +1 -0
  36. package/dist/bn-template-engine/p-e084f50a.entry.js +1 -0
  37. package/dist/bn-template-engine/p-eaba6658.entry.js +1 -0
  38. package/dist/bn-template-engine/{p-CvXqez4D.js → p-u8igQLRZ.js} +1 -1
  39. package/dist/cjs/{DataFormatDigits-CbIVfGEH.js → DataFormatDigits-DKcOeLNK.js} +1 -1
  40. package/dist/cjs/{DateStringFactory-CfkXYAMN.js → DateStringFactory-CSKvbS8K.js} +1 -1
  41. package/dist/cjs/{Order-DtpbD8mQ.js → Order-iG11HI4R.js} +36 -5
  42. package/dist/cjs/{SVGVariancesStyleGroup-D-rTWlDo.js → SVGVariancesStyleGroup-K-Tw6lOD.js} +1 -14
  43. package/dist/cjs/bn-asset.cjs.entry.js +5 -4
  44. package/dist/cjs/bn-body_4.cjs.entry.js +15 -13
  45. package/dist/cjs/bn-card.cjs.entry.js +5 -4
  46. package/dist/cjs/{ibcs-chart-structure.cjs.entry.js → bn-chart-structure_5.cjs.entry.js} +1058 -28
  47. package/dist/cjs/bn-chart-time.cjs.entry.js +38 -12
  48. package/dist/cjs/bn-component-style.cjs.entry.js +5 -4
  49. package/dist/cjs/bn-dataset.cjs.entry.js +38 -9
  50. package/dist/cjs/bn-grid.cjs.entry.js +9 -7
  51. package/dist/cjs/bn-image.cjs.entry.js +9 -7
  52. package/dist/cjs/bn-internationalization.cjs.entry.js +5 -4
  53. package/dist/cjs/bn-layout-card.cjs.entry.js +3 -2
  54. package/dist/cjs/bn-layout-page.cjs.entry.js +2 -1
  55. package/dist/cjs/bn-message.cjs.entry.js +5 -4
  56. package/dist/cjs/bn-table.cjs.entry.js +979 -0
  57. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  58. package/dist/cjs/bn-template.cjs.entry.js +3 -2
  59. package/dist/cjs/bn-text.cjs.entry.js +11 -9
  60. package/dist/cjs/bn-tree.cjs.entry.js +9 -7
  61. package/dist/cjs/contentDecoder-JxOldq1e.js +419 -0
  62. package/dist/cjs/{context-protocol-CRPmux5D.js → context-protocol-DRQWrwsA.js} +2 -0
  63. package/dist/cjs/editor-companion.cjs.entry.js +1 -1
  64. package/dist/cjs/emotion-hash.esm-nbbEQ0Dn.js +57 -0
  65. package/dist/cjs/ibcs-chart-time.cjs.entry.js +22 -18
  66. package/dist/cjs/{bn-context_5.cjs.entry.js → ibcs-table.cjs.entry.js} +159 -1259
  67. package/dist/cjs/{StringAdapter-ByCHdlDO.js → ibcsRuleSet-DgUoXOfd.js} +10 -10
  68. package/dist/cjs/index-Dm85hG6t.js +65 -0
  69. package/dist/cjs/loader.cjs.js +1 -1
  70. package/dist/cjs/{scaling-D8sIIKft.js → scaling-9Tz595RQ.js} +7 -7
  71. package/dist/cjs/{withHasError-B8gHkfV2.js → utils-CwHIVbbL.js} +1 -69
  72. package/dist/cjs/{withBodyObserver-C6gLgq_e.js → withBodyObserver-CKpSD8UT.js} +3 -3
  73. package/dist/cjs/{withComponentStatus-_x4LQZ0N.js → withComponentStatus-Bw70BhO0.js} +5 -5
  74. package/dist/cjs/{withComponentStyle-DMtic_9Y.js → withComponentStyle-aIbTCtfj.js} +5 -5
  75. package/dist/cjs/withHasError-D7ue5vAv.js +72 -0
  76. package/dist/cjs/{withStyled-BBtMesx3.js → withStyled-CS1Yp4sv.js} +12 -61
  77. package/dist/cjs/{withTranslation-CWPAIRjh.js → withTranslation-rwgyITqe.js} +5 -5
  78. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +226 -99
  79. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +13 -3
  80. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +94 -11
  81. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +3 -4
  82. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +4 -0
  83. package/dist/collection/components/bn-chart-time/bn-chart-time.js +28 -4
  84. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -3
  85. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -4
  86. package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +4 -0
  87. package/dist/collection/components/bn-dataset/bn-dataset.js +49 -2
  88. package/dist/collection/components/bn-datasource/bn-datasource.js +46 -3
  89. package/dist/collection/components/bn-table/bn-table.js +60 -12
  90. package/dist/collection/components/bn-table/ibcs-table.css +7 -5
  91. package/dist/collection/components/bn-table/ibcs-table.js +22 -1
  92. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +79 -31
  93. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
  94. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
  95. package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
  96. package/dist/collection/stores/componentStyles.js +2 -0
  97. package/dist/collection/utils/constants.js +35 -5
  98. package/dist/collection/utils/contentDecoder.js +28 -0
  99. package/dist/collection/utils/stackColors.js +2 -2
  100. package/dist/collection/utils/validate.js +5 -2
  101. package/dist/components/DataFormatDigits.js +1 -1
  102. package/dist/components/DateStringFactory.js +1 -1
  103. package/dist/components/Order.js +1 -1
  104. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  105. package/dist/components/bn-chart-structure.js +1 -1
  106. package/dist/components/bn-chart-time.js +1 -1
  107. package/dist/components/bn-dataset.js +1 -1
  108. package/dist/components/bn-datasource.js +1 -1
  109. package/dist/components/bn-table.js +1 -1
  110. package/dist/components/bn-title2.js +1 -1
  111. package/dist/components/contentDecoder.js +1 -0
  112. package/dist/components/context-protocol.js +1 -1
  113. package/dist/components/emotion-hash.esm.js +1 -0
  114. package/dist/components/ibcs-chart-structure2.js +1 -1
  115. package/dist/components/ibcs-chart-time2.js +1 -1
  116. package/dist/components/ibcs-table2.js +1 -1
  117. package/dist/components/ibcs-title2.js +1 -1
  118. package/dist/components/ibcsRuleSet.js +1 -1
  119. package/dist/components/validate.js +1 -1
  120. package/dist/components/withStyled.js +1 -1
  121. package/dist/esm/{DataFormatDigits-DYdbRX-1.js → DataFormatDigits-oSZ1hBKE.js} +1 -1
  122. package/dist/esm/{DateStringFactory-DRcbojUT.js → DateStringFactory-CSGz6TDk.js} +1 -1
  123. package/dist/esm/{Order-DdexOqTs.js → Order-Bnhh02CF.js} +36 -6
  124. package/dist/esm/{SVGVariancesStyleGroup-D0Cwprv1.js → SVGVariancesStyleGroup-CqTjrZYg.js} +2 -13
  125. package/dist/esm/bn-asset.entry.js +5 -4
  126. package/dist/esm/bn-body_4.entry.js +11 -9
  127. package/dist/esm/bn-card.entry.js +5 -4
  128. package/dist/esm/{ibcs-chart-structure.entry.js → bn-chart-structure_5.entry.js} +1048 -22
  129. package/dist/esm/bn-chart-time.entry.js +38 -12
  130. package/dist/esm/bn-component-style.entry.js +5 -4
  131. package/dist/esm/bn-dataset.entry.js +35 -6
  132. package/dist/esm/bn-grid.entry.js +9 -7
  133. package/dist/esm/bn-image.entry.js +9 -7
  134. package/dist/esm/bn-internationalization.entry.js +5 -4
  135. package/dist/esm/bn-layout-card.entry.js +3 -2
  136. package/dist/esm/bn-layout-page.entry.js +2 -1
  137. package/dist/esm/bn-message.entry.js +5 -4
  138. package/dist/esm/bn-table.entry.js +977 -0
  139. package/dist/esm/bn-template-engine.js +1 -1
  140. package/dist/esm/bn-template.entry.js +3 -2
  141. package/dist/esm/bn-text.entry.js +11 -9
  142. package/dist/esm/bn-tree.entry.js +9 -7
  143. package/dist/esm/contentDecoder-oMmxz6nJ.js +416 -0
  144. package/dist/esm/{context-protocol-Bz5klD-F.js → context-protocol-BHnQsVsr.js} +2 -0
  145. package/dist/esm/editor-companion.entry.js +1 -1
  146. package/dist/esm/emotion-hash.esm-BYBpC0EO.js +55 -0
  147. package/dist/esm/ibcs-chart-time.entry.js +15 -11
  148. package/dist/esm/{bn-context_5.entry.js → ibcs-table.entry.js} +106 -1202
  149. package/dist/esm/{StringAdapter-CTL-Dvzp.js → ibcsRuleSet-K4ytuA1f.js} +10 -10
  150. package/dist/esm/index-DHezf8pZ.js +65 -0
  151. package/dist/esm/loader.js +1 -1
  152. package/dist/esm/{scaling-C6K8FYSF.js → scaling-Cehc74IE.js} +2 -2
  153. package/dist/esm/{withHasError-B3QX2emi.js → utils-DvvwfRQG.js} +1 -69
  154. package/dist/esm/{withBodyObserver-DczL5ia8.js → withBodyObserver-FQ8NwCIz.js} +1 -1
  155. package/dist/esm/{withComponentStatus-DodoSXe-.js → withComponentStatus-DWjDYtZ7.js} +1 -1
  156. package/dist/esm/{withComponentStyle-BerJY64r.js → withComponentStyle-9uP_hcDq.js} +2 -2
  157. package/dist/esm/withHasError-FyY5mQ_3.js +70 -0
  158. package/dist/esm/{withStyled-DCipbf2O.js → withStyled--qQWquTH.js} +9 -59
  159. package/dist/esm/{withTranslation-mimbJdER.js → withTranslation-BqD0Kp7b.js} +2 -2
  160. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +155 -109
  161. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
  162. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
  163. package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +1 -0
  164. package/dist/types/components/bn-dataset/bn-dataset.d.ts +6 -0
  165. package/dist/types/components/bn-datasource/bn-datasource.d.ts +8 -0
  166. package/dist/types/components/bn-table/bn-table.d.ts +12 -8
  167. package/dist/types/components/bn-table/ibcs-table.d.ts +1 -0
  168. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
  169. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +1 -0
  170. package/dist/types/components.d.ts +118 -34
  171. package/dist/types/stores/componentStyles.d.ts +2 -0
  172. package/dist/types/utils/constants.d.ts +23 -5
  173. package/dist/types/utils/contentDecoder.d.ts +12 -0
  174. package/dist/types/utils/validate.d.ts +1 -0
  175. package/package.json +2 -1
  176. package/dist/bn-template-engine/p--PSoPbDM.js +0 -1
  177. package/dist/bn-template-engine/p-05a82a77.entry.js +0 -1
  178. package/dist/bn-template-engine/p-0ca8dc17.entry.js +0 -1
  179. package/dist/bn-template-engine/p-1d9a3be9.entry.js +0 -1
  180. package/dist/bn-template-engine/p-35638ad0.entry.js +0 -1
  181. package/dist/bn-template-engine/p-37881d05.entry.js +0 -1
  182. package/dist/bn-template-engine/p-3b894997.entry.js +0 -1
  183. package/dist/bn-template-engine/p-50e49732.entry.js +0 -1
  184. package/dist/bn-template-engine/p-60a7fc59.entry.js +0 -1
  185. package/dist/bn-template-engine/p-6c7c0455.entry.js +0 -1
  186. package/dist/bn-template-engine/p-6da93eae.entry.js +0 -1
  187. package/dist/bn-template-engine/p-701e1578.entry.js +0 -1
  188. package/dist/bn-template-engine/p-BSfqOkN_.js +0 -1
  189. package/dist/bn-template-engine/p-CRLgp9-v.js +0 -1
  190. package/dist/bn-template-engine/p-CYjZRKdI.js +0 -1
  191. package/dist/bn-template-engine/p-DRikHQE-.js +0 -1
  192. package/dist/bn-template-engine/p-DVo6aZUE.js +0 -1
  193. package/dist/bn-template-engine/p-DdexOqTs.js +0 -1
  194. package/dist/bn-template-engine/p-DyRaC0MB.js +0 -1
  195. package/dist/bn-template-engine/p-a95ccc16.entry.js +0 -1
  196. package/dist/bn-template-engine/p-b7bec050.entry.js +0 -1
  197. package/dist/bn-template-engine/p-bc59ea5c.entry.js +0 -1
  198. package/dist/bn-template-engine/p-d279b578.entry.js +0 -1
  199. package/dist/bn-template-engine/p-dd9dd407.entry.js +0 -1
  200. package/dist/bn-template-engine/p-e102a490.entry.js +0 -1
  201. package/dist/bn-template-engine/p-f27995c9.entry.js +0 -1
  202. package/dist/bn-template-engine/p-f89e55c6.entry.js +0 -1
  203. package/dist/bn-template-engine/p-tzFCK9qn.js +0 -1
  204. package/dist/cjs/bn-chart-structure.cjs.entry.js +0 -700
  205. package/dist/esm/bn-chart-structure.entry.js +0 -698
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
2
- import { S as Svg, g as getContrastTextColor, a as getStackFill, b as getStackStroke, c as getScenarioPrefix, I as IBCS_LAYER_ORDER, F as FontStyleAdapter, d as SVGStyleGroupAdapter, e as SVGStyleAdapter, f as SVGVariancesStyleGroupAdapter, P as PaddingAdapter } from './SVGVariancesStyleGroup-D0Cwprv1.js';
3
- import { e as CompareUtil, D as DateTime, b as StackMode, c as AxisLabelsMode, C as ChartMode, k as StackBy, d as AdapterUtils, j as OrderAdapter, A as AggregationLevel, O as OrderDirection } from './Order-DdexOqTs.js';
2
+ import { S as Svg, g as getContrastTextColor, a as getScenarioPrefix, I as IBCS_LAYER_ORDER, F as FontStyleAdapter, b as SVGStyleGroupAdapter, c as SVGStyleAdapter, d as SVGVariancesStyleGroupAdapter, P as PaddingAdapter } from './SVGVariancesStyleGroup-CqTjrZYg.js';
3
+ import { g as CompareUtil, D as DateTime, c as StackMode, A as AxisLabelsMode, C as ChartMode, S as StackBy, f as AdapterUtils, l as OrderAdapter, j as AggregationLevel, O as OrderDirection } from './Order-Bnhh02CF.js';
4
4
  import { C as CalculateSize, F as Formatter, V as VarianceScenario } from './formatter-DTMEZ6d8.js';
5
- import { S as SiPrefix, D as DataAnalyzer, b as DataFormatDigitsAdapter } from './DataFormatDigits-DYdbRX-1.js';
5
+ import { S as SiPrefix, D as DataAnalyzer, b as DataFormatDigitsAdapter } from './DataFormatDigits-oSZ1hBKE.js';
6
6
  import { a as alasql } from './alasql.min-CWu4NkIt.js';
7
- import { D as DateDistance, b as DateStringFactory } from './DateStringFactory-DRcbojUT.js';
8
- import { I as IBCSRuleSet, S as StringAdapter } from './StringAdapter-CTL-Dvzp.js';
7
+ import { D as DateDistance, b as DateStringFactory } from './DateStringFactory-CSGz6TDk.js';
8
+ import { I as IBCSRuleSet, S as StringAdapter } from './ibcsRuleSet-K4ytuA1f.js';
9
9
  import './_commonjsHelpers-BFTU3MAI.js';
10
10
 
11
11
  // import { IAdapter } from "../../../../../utils/helper/IAdapter";
@@ -1050,6 +1050,7 @@ class TimeChartStyle {
1050
1050
  this.varianceStyles = varianceStyles;
1051
1051
  this.padding = padding;
1052
1052
  this.pattern = new Map();
1053
+ this.stackColors = ["#000000", "#c0c0c0", "#808080"];
1053
1054
  }
1054
1055
  }
1055
1056
  /** Adapts raw componentStyle JSON into a TimeChartStyle, falling back to defaults for missing properties. */
@@ -1082,6 +1083,9 @@ class TimeChartStylesAdapter {
1082
1083
  if (CompareUtil.isExisting(data.padding)) {
1083
1084
  styles.padding = this.paddingadapter.adapt(data.padding);
1084
1085
  }
1086
+ if (Array.isArray(data.stackColors) && data.stackColors.length > 0) {
1087
+ styles.stackColors = data.stackColors;
1088
+ }
1085
1089
  styles.pattern = new MarkerPattern(styles.fontStyles.size).createPatternMapForStructureBar();
1086
1090
  }
1087
1091
  return styles;
@@ -2030,10 +2034,10 @@ class StackedColumn {
2030
2034
  }
2031
2035
  const xPos = this.position.getColumnCenterPositionX(this.index);
2032
2036
  const columnWidth = this.position.getColumnWidth();
2033
- // Unified IBCS 3-color palette for all stacking modes
2034
- const fillColor = getStackFill(this.segmentIndex);
2037
+ const colors = this.styles.stackColors;
2038
+ const fillColor = colors[this.segmentIndex % colors.length];
2035
2039
  const fillStyle = { color: fillColor };
2036
- const strokeStyle = { color: getStackStroke(this.segmentIndex), width: 0.5 };
2040
+ const strokeStyle = { color: fillColor, width: 0.5 };
2037
2041
  // Draw rectangle
2038
2042
  this.columnGroup
2039
2043
  .rect(columnWidth, Math.max(segmentHeight, 0.5))
@@ -3438,7 +3442,7 @@ class TimeChart {
3438
3442
  if (!this.stackConfig)
3439
3443
  return;
3440
3444
  const stackGroup = svgContainer.group().id("StackedScenarios");
3441
- const isScenarioStack = this.stackConfig.by === StackBy.SCENARIO;
3445
+ const isScenarioStack = this.stackConfig.by === StackBy.SCENARIOS;
3442
3446
  dataModel.forEach((elements, index) => {
3443
3447
  const scenarioKeys = ["scenario1", "scenario2", "scenario3", "scenario4"];
3444
3448
  const segments = [];
@@ -3533,7 +3537,7 @@ class TimeChart {
3533
3537
  drawStackedHeaders(dataModel, svgContainer) {
3534
3538
  if (!this.stackConfig || dataModel.length === 0)
3535
3539
  return;
3536
- const isScenarioStack = this.stackConfig.by === StackBy.SCENARIO;
3540
+ const isScenarioStack = this.stackConfig.by === StackBy.SCENARIOS;
3537
3541
  if (!isScenarioStack)
3538
3542
  return;
3539
3543
  const headerGroup = svgContainer.group().id("StackedHeaders");
@@ -3613,7 +3617,7 @@ class TimeChart {
3613
3617
  if (!this.stackConfig)
3614
3618
  return;
3615
3619
  const areaGroup = svgContainer.group().id("StackedAreaScenarios");
3616
- const isScenarioStack = this.stackConfig.by === StackBy.SCENARIO;
3620
+ const isScenarioStack = this.stackConfig.by === StackBy.SCENARIOS;
3617
3621
  const stackMode = this.stackConfig.mode;
3618
3622
  const scenarioKeys = ["scenario1", "scenario2", "scenario3", "scenario4"];
3619
3623
  // Determine how many layers we have