@bino-bi/bn-template-engine 1.0.0-alpha.5 → 1.0.0-alpha.6

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 (157) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-06946f44.entry.js +1 -0
  3. package/dist/bn-template-engine/p-0fabe296.entry.js +1 -0
  4. package/dist/bn-template-engine/p-1164c0b0.entry.js +1 -0
  5. package/dist/bn-template-engine/p-355abdf0.entry.js +1 -0
  6. package/dist/bn-template-engine/p-79KuA4Ox.js +1 -0
  7. package/dist/bn-template-engine/p-859cc06d.entry.js +1 -0
  8. package/dist/bn-template-engine/p-8acec99e.entry.js +1 -0
  9. package/dist/bn-template-engine/p-8f490c45.entry.js +1 -0
  10. package/dist/bn-template-engine/p-98cf512f.entry.js +1 -0
  11. package/dist/bn-template-engine/p-9a564f8f.entry.js +1 -0
  12. package/dist/bn-template-engine/{p-CL1RYuNU.js → p-B0lsgVuN.js} +1 -1
  13. package/dist/bn-template-engine/p-B7p8beYH.js +1 -0
  14. package/dist/bn-template-engine/p-BDh7GfC5.js +1 -0
  15. package/dist/bn-template-engine/p-BoMtoHJB.js +1 -0
  16. package/dist/bn-template-engine/p-Bs8BqBsb.js +1 -0
  17. package/dist/bn-template-engine/p-CYjZRKdI.js +1 -0
  18. package/dist/bn-template-engine/{p-P7pGJBgc.js → p-DG-1MR_T.js} +1 -1
  19. package/dist/bn-template-engine/p-bdd2b243.entry.js +1 -0
  20. package/dist/bn-template-engine/p-e6b24f15.entry.js +1 -0
  21. package/dist/bn-template-engine/p-f27995c9.entry.js +1 -0
  22. package/dist/bn-template-engine/{p-Bnhh02CF.js → p-sRO-lj7X.js} +1 -1
  23. package/dist/bn-template-engine/p-tzFCK9qn.js +1 -0
  24. package/dist/cjs/{Order-iG11HI4R.js → Order-BGx39pS5.js} +448 -0
  25. package/dist/cjs/{alasql.min-C_nHTuEQ.js → SVGVariancesStyleGroup-BqAdPYtL.js} +8228 -3
  26. package/dist/cjs/bn-asset_16.cjs.entry.js +9018 -0
  27. package/dist/cjs/bn-card.cjs.entry.js +3 -4
  28. package/dist/cjs/bn-chart-time.cjs.entry.js +11 -16
  29. package/dist/cjs/bn-grid.cjs.entry.js +5 -8
  30. package/dist/cjs/bn-image.cjs.entry.js +5 -8
  31. package/dist/cjs/bn-internationalization.cjs.entry.js +3 -4
  32. package/dist/cjs/bn-layout-card.cjs.entry.js +125 -6
  33. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  34. package/dist/cjs/bn-template.cjs.entry.js +2 -3
  35. package/dist/cjs/bn-text.cjs.entry.js +7 -11
  36. package/dist/cjs/bn-tree.cjs.entry.js +5 -8
  37. package/dist/cjs/{formatter-DIJL_crx.js → formatter-4XCS0d2B.js} +8 -2
  38. package/dist/cjs/ibcs-chart-time.cjs.entry.js +37 -42
  39. package/dist/cjs/loader.cjs.js +1 -1
  40. package/dist/cjs/{scaling-9Tz595RQ.js → scaling-BidPsO53.js} +115 -12
  41. package/dist/cjs/{withBodyObserver-CKpSD8UT.js → withBodyObserver-C6gLgq_e.js} +3 -3
  42. package/dist/cjs/{withComponentStatus-Bw70BhO0.js → withComponentStatus-_x4LQZ0N.js} +5 -5
  43. package/dist/cjs/{withComponentStyle-aIbTCtfj.js → withComponentStyle-ClSJfCku.js} +4 -4
  44. package/dist/cjs/{utils-CwHIVbbL.js → withHasError-B8gHkfV2.js} +69 -1
  45. package/dist/cjs/{withStyled-CS1Yp4sv.js → withStyled-9tG024gQ.js} +62 -9
  46. package/dist/collection/components/bn-layout-card/bn-layout-card.css +1 -0
  47. package/dist/collection/components/bn-layout-card/bn-layout-card.js +162 -27
  48. package/dist/collection/components/bn-layout-page/bn-layout-page.css +1 -0
  49. package/dist/collection/components/bn-layout-page/bn-layout-page.js +151 -33
  50. package/dist/collection/utils/parentDimensions.js +38 -6
  51. package/dist/components/bn-layout-card.js +1 -1
  52. package/dist/components/bn-layout-page.js +1 -1
  53. package/dist/components/scaling.js +1 -1
  54. package/dist/esm/{Order-Bnhh02CF.js → Order-sRO-lj7X.js} +448 -1
  55. package/dist/esm/{alasql.min-CWu4NkIt.js → SVGVariancesStyleGroup-DOIT-zvI.js} +8212 -2
  56. package/dist/esm/bn-asset_16.entry.js +9001 -0
  57. package/dist/esm/bn-card.entry.js +4 -5
  58. package/dist/esm/bn-chart-time.entry.js +8 -13
  59. package/dist/esm/bn-grid.entry.js +6 -9
  60. package/dist/esm/bn-image.entry.js +6 -9
  61. package/dist/esm/bn-internationalization.entry.js +4 -5
  62. package/dist/esm/bn-layout-card.entry.js +126 -7
  63. package/dist/esm/bn-template-engine.js +1 -1
  64. package/dist/esm/bn-template.entry.js +2 -3
  65. package/dist/esm/bn-text.entry.js +7 -11
  66. package/dist/esm/bn-tree.entry.js +6 -9
  67. package/dist/esm/{context-protocol-BHnQsVsr.js → context-protocol-2peaD4y8.js} +1 -1
  68. package/dist/esm/editor-companion.entry.js +1 -1
  69. package/dist/esm/{formatter-DTMEZ6d8.js → formatter-BDh7GfC5.js} +6 -2
  70. package/dist/esm/ibcs-chart-time.entry.js +3 -8
  71. package/dist/esm/loader.js +1 -1
  72. package/dist/esm/{scaling-Cehc74IE.js → scaling-BOcjT8M0.js} +112 -10
  73. package/dist/esm/{withBodyObserver-FQ8NwCIz.js → withBodyObserver-DczL5ia8.js} +1 -1
  74. package/dist/esm/{withComponentStatus-DWjDYtZ7.js → withComponentStatus-DodoSXe-.js} +1 -1
  75. package/dist/esm/{withComponentStyle-9uP_hcDq.js → withComponentStyle-D3VWOsto.js} +2 -2
  76. package/dist/esm/{utils-DvvwfRQG.js → withHasError-B3QX2emi.js} +69 -1
  77. package/dist/esm/{withStyled--qQWquTH.js → withStyled-CE3_3taP.js} +57 -5
  78. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +139 -0
  79. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +154 -0
  80. package/dist/types/components.d.ts +168 -0
  81. package/dist/types/utils/parentDimensions.d.ts +6 -1
  82. package/package.json +1 -1
  83. package/dist/bn-template-engine/p-1265d8d3.entry.js +0 -1
  84. package/dist/bn-template-engine/p-15516dac.entry.js +0 -1
  85. package/dist/bn-template-engine/p-1c716641.entry.js +0 -1
  86. package/dist/bn-template-engine/p-1jFf17Vj.js +0 -1
  87. package/dist/bn-template-engine/p-27cc8dc0.entry.js +0 -1
  88. package/dist/bn-template-engine/p-3b4c7425.entry.js +0 -1
  89. package/dist/bn-template-engine/p-4426d484.entry.js +0 -1
  90. package/dist/bn-template-engine/p-51f8dc9e.entry.js +0 -1
  91. package/dist/bn-template-engine/p-53d4e690.entry.js +0 -1
  92. package/dist/bn-template-engine/p-5KQYRQLK.js +0 -1
  93. package/dist/bn-template-engine/p-7337e03d.entry.js +0 -1
  94. package/dist/bn-template-engine/p-75e97c87.entry.js +0 -1
  95. package/dist/bn-template-engine/p-7a560278.entry.js +0 -1
  96. package/dist/bn-template-engine/p-BFTU3MAI.js +0 -1
  97. package/dist/bn-template-engine/p-BYBpC0EO.js +0 -1
  98. package/dist/bn-template-engine/p-BYmPQYxx.js +0 -1
  99. package/dist/bn-template-engine/p-BfXY5dsy.js +0 -1
  100. package/dist/bn-template-engine/p-BgnHJQ9Q.js +0 -1
  101. package/dist/bn-template-engine/p-Bhd_WSML.js +0 -1
  102. package/dist/bn-template-engine/p-Bka-Z6jo.js +0 -1
  103. package/dist/bn-template-engine/p-C7dQL8CS.js +0 -1
  104. package/dist/bn-template-engine/p-CYwd_ZNM.js +0 -1
  105. package/dist/bn-template-engine/p-ChlK-T9I.js +0 -1
  106. package/dist/bn-template-engine/p-DHezf8pZ.js +0 -1
  107. package/dist/bn-template-engine/p-DlppAFq9.js +0 -1
  108. package/dist/bn-template-engine/p-DvDDgmcV.js +0 -1
  109. package/dist/bn-template-engine/p-DvvwfRQG.js +0 -1
  110. package/dist/bn-template-engine/p-abc0067c.entry.js +0 -1
  111. package/dist/bn-template-engine/p-b34eaf86.entry.js +0 -1
  112. package/dist/bn-template-engine/p-bdb8b44c.entry.js +0 -1
  113. package/dist/bn-template-engine/p-c44fcb8e.entry.js +0 -1
  114. package/dist/bn-template-engine/p-c7e1a49b.entry.js +0 -1
  115. package/dist/bn-template-engine/p-d9003041.entry.js +0 -1
  116. package/dist/bn-template-engine/p-daa7ffa3.entry.js +0 -1
  117. package/dist/bn-template-engine/p-e084f50a.entry.js +0 -1
  118. package/dist/bn-template-engine/p-eaba6658.entry.js +0 -1
  119. package/dist/bn-template-engine/p-u8igQLRZ.js +0 -1
  120. package/dist/cjs/DataFormatDigits-DKcOeLNK.js +0 -142
  121. package/dist/cjs/DateStringFactory-CSKvbS8K.js +0 -452
  122. package/dist/cjs/SVGVariancesStyleGroup-K-Tw6lOD.js +0 -7960
  123. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -10
  124. package/dist/cjs/bn-asset.cjs.entry.js +0 -42
  125. package/dist/cjs/bn-body_4.cjs.entry.js +0 -748
  126. package/dist/cjs/bn-chart-structure_5.cjs.entry.js +0 -3948
  127. package/dist/cjs/bn-component-style.cjs.entry.js +0 -44
  128. package/dist/cjs/bn-dataset.cjs.entry.js +0 -306
  129. package/dist/cjs/bn-layout-page.cjs.entry.js +0 -143
  130. package/dist/cjs/bn-message.cjs.entry.js +0 -52
  131. package/dist/cjs/bn-table.cjs.entry.js +0 -981
  132. package/dist/cjs/contentDecoder-JxOldq1e.js +0 -419
  133. package/dist/cjs/emotion-hash.esm-nbbEQ0Dn.js +0 -57
  134. package/dist/cjs/ibcs-table.cjs.entry.js +0 -2276
  135. package/dist/cjs/ibcsRuleSet-DgUoXOfd.js +0 -136
  136. package/dist/cjs/index-Dm85hG6t.js +0 -65
  137. package/dist/cjs/withHasError-D7ue5vAv.js +0 -72
  138. package/dist/cjs/withTranslation-rwgyITqe.js +0 -77
  139. package/dist/esm/DataFormatDigits-oSZ1hBKE.js +0 -137
  140. package/dist/esm/DateStringFactory-CSGz6TDk.js +0 -450
  141. package/dist/esm/SVGVariancesStyleGroup-CqTjrZYg.js +0 -7950
  142. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
  143. package/dist/esm/bn-asset.entry.js +0 -40
  144. package/dist/esm/bn-body_4.entry.js +0 -743
  145. package/dist/esm/bn-chart-structure_5.entry.js +0 -3942
  146. package/dist/esm/bn-component-style.entry.js +0 -42
  147. package/dist/esm/bn-dataset.entry.js +0 -304
  148. package/dist/esm/bn-layout-page.entry.js +0 -141
  149. package/dist/esm/bn-message.entry.js +0 -50
  150. package/dist/esm/bn-table.entry.js +0 -979
  151. package/dist/esm/contentDecoder-oMmxz6nJ.js +0 -416
  152. package/dist/esm/emotion-hash.esm-BYBpC0EO.js +0 -55
  153. package/dist/esm/ibcs-table.entry.js +0 -2274
  154. package/dist/esm/ibcsRuleSet-K4ytuA1f.js +0 -133
  155. package/dist/esm/index-DHezf8pZ.js +0 -65
  156. package/dist/esm/withHasError-FyY5mQ_3.js +0 -70
  157. package/dist/esm/withTranslation-BqD0Kp7b.js +0 -75
@@ -1,14 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-Cjw0q6gP.js');
4
- var SVGVariancesStyleGroup = require('./SVGVariancesStyleGroup-K-Tw6lOD.js');
5
- var Order = require('./Order-iG11HI4R.js');
6
- var formatter = require('./formatter-DIJL_crx.js');
7
- var DataFormatDigits = require('./DataFormatDigits-DKcOeLNK.js');
8
- var alasql_min = require('./alasql.min-C_nHTuEQ.js');
9
- var DateStringFactory = require('./DateStringFactory-CSKvbS8K.js');
10
- var ibcsRuleSet = require('./ibcsRuleSet-DgUoXOfd.js');
11
- require('./_commonjsHelpers-BJu3ubxk.js');
4
+ var SVGVariancesStyleGroup = require('./SVGVariancesStyleGroup-BqAdPYtL.js');
5
+ var Order = require('./Order-BGx39pS5.js');
6
+ var formatter = require('./formatter-4XCS0d2B.js');
12
7
 
13
8
  // import { IAdapter } from "../../../../../utils/helper/IAdapter";
14
9
  // import { CompareUtil } from "../../../../../utils/helper/CompareUtil";
@@ -492,7 +487,7 @@ class Label {
492
487
  this.group = newGroup;
493
488
  return this;
494
489
  }
495
- draw(displayLabel = true, dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new DataFormatDigits.SiPrefix()) {
490
+ draw(displayLabel = true, dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SVGVariancesStyleGroup.SiPrefix()) {
496
491
  if (this.isEmpty()) {
497
492
  return this;
498
493
  }
@@ -1248,7 +1243,7 @@ class Column {
1248
1243
  (_a = this.label) === null || _a === void 0 ? void 0 : _a.updateGroup(newGroup);
1249
1244
  return this;
1250
1245
  }
1251
- draw(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new DataFormatDigits.SiPrefix()) {
1246
+ draw(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SVGVariancesStyleGroup.SiPrefix()) {
1252
1247
  // TODE: JHE: Remove DataFOrmatDigits Type Duplicates
1253
1248
  if (this.isEmpty()) {
1254
1249
  return this;
@@ -1420,7 +1415,7 @@ class Column {
1420
1415
  this.scenarioLabel.setPos(this.dimensions.scenarioLabelXPos, this.dimensions.scenarioLabelYPos).draw(true);
1421
1416
  }
1422
1417
  }
1423
- drawColumnDataLabel(dataFormatDigits, measureScale = new DataFormatDigits.SiPrefix()) {
1418
+ drawColumnDataLabel(dataFormatDigits, measureScale = new SVGVariancesStyleGroup.SiPrefix()) {
1424
1419
  var _a;
1425
1420
  (_a = this.label) === null || _a === void 0 ? void 0 : _a.draw(this.isPrimaryColumn, dataFormatDigits, measureScale);
1426
1421
  }
@@ -1741,7 +1736,7 @@ class LineSeries {
1741
1736
  /**
1742
1737
  * Backward-compatible: draws everything (geometry + labels) in one call.
1743
1738
  */
1744
- draw(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new DataFormatDigits.SiPrefix()) {
1739
+ draw(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SVGVariancesStyleGroup.SiPrefix()) {
1745
1740
  this.drawGeometry();
1746
1741
  this.drawLabels(dataFormatDigits, measureScale);
1747
1742
  return this;
@@ -1762,7 +1757,7 @@ class LineSeries {
1762
1757
  * Phase 2: Draw only labels (value labels + scenario label).
1763
1758
  * Call this after all series geometry is drawn, in priority order.
1764
1759
  */
1765
- drawLabels(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new DataFormatDigits.SiPrefix()) {
1760
+ drawLabels(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SVGVariancesStyleGroup.SiPrefix()) {
1766
1761
  if (this.dataPoints.length === 0) {
1767
1762
  return this;
1768
1763
  }
@@ -2010,7 +2005,7 @@ class StackedColumn {
2010
2005
  this.hasData = true;
2011
2006
  }
2012
2007
  }
2013
- draw(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new DataFormatDigits.SiPrefix()) {
2008
+ draw(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SVGVariancesStyleGroup.SiPrefix()) {
2014
2009
  if (!this.hasData || this.dataPoint.value == null) {
2015
2010
  return;
2016
2011
  }
@@ -2069,7 +2064,7 @@ class StackedColumn {
2069
2064
  /**
2070
2065
  * Draw the total label above the topmost segment.
2071
2066
  */
2072
- drawTotalLabel(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new DataFormatDigits.SiPrefix()) {
2067
+ drawTotalLabel(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SVGVariancesStyleGroup.SiPrefix()) {
2073
2068
  if (this.stackMode === Order.StackMode.RELATIVE) {
2074
2069
  // Don't show total for 100% stacked (always 100%)
2075
2070
  return;
@@ -2237,7 +2232,7 @@ class Line {
2237
2232
  (_a = this.label) === null || _a === void 0 ? void 0 : _a.updateGroup(newGroup);
2238
2233
  return this;
2239
2234
  }
2240
- draw(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new DataFormatDigits.SiPrefix()) {
2235
+ draw(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SVGVariancesStyleGroup.SiPrefix()) {
2241
2236
  // TODE: JHE: Remove DataFOrmatDigits Type Duplicates
2242
2237
  if (this.isEmpty()) {
2243
2238
  return this;
@@ -2291,7 +2286,7 @@ class Line {
2291
2286
  this.scenarioLabel.setPos(this.dimensions.scenarioLabelXPos, this.dimensions.scenarioLabelYPos).draw(true);
2292
2287
  }
2293
2288
  }
2294
- drawLineDataLabel(dataFormatDigits, measureScale = new DataFormatDigits.SiPrefix()) {
2289
+ drawLineDataLabel(dataFormatDigits, measureScale = new SVGVariancesStyleGroup.SiPrefix()) {
2295
2290
  var _a;
2296
2291
  (_a = this.label) === null || _a === void 0 ? void 0 : _a.draw(this.isPrimaryLine, dataFormatDigits, measureScale);
2297
2292
  }
@@ -2513,11 +2508,11 @@ class TimeChart {
2513
2508
  this.state = FactoryState.DIRTY;
2514
2509
  this.i18n = new Map();
2515
2510
  this.leftSideOffsetForHorizontalSync = -1;
2516
- this.dateInterval = DateStringFactory.DateDistance.DAY;
2511
+ this.dateInterval = Order.DateDistance.DAY;
2517
2512
  this.locale = "de";
2518
2513
  this.axisLabelsMode = Order.AxisLabelsMode.SMART;
2519
2514
  this.intervalSpanLimit = 32;
2520
- this.measureScale = new DataFormatDigits.SiPrefix();
2515
+ this.measureScale = new SVGVariancesStyleGroup.SiPrefix();
2521
2516
  this.measureUnit = "";
2522
2517
  this.dataFormatDigits = { percent: 2, decimal: 1 };
2523
2518
  this.showOverlayMedian = false;
@@ -2530,7 +2525,7 @@ class TimeChart {
2530
2525
  this.overflowConfig = null;
2531
2526
  this.lastScenarios = [];
2532
2527
  this.initSQLFunctions();
2533
- this.ruleSet = ruleSet || new ibcsRuleSet.IBCSRuleSet();
2528
+ this.ruleSet = ruleSet || new SVGVariancesStyleGroup.IBCSRuleSet();
2534
2529
  this.i18n = this.createI18n(new Map());
2535
2530
  this.styles = styles;
2536
2531
  this.availableWidth = availableWidth;
@@ -2541,11 +2536,11 @@ class TimeChart {
2541
2536
  this.position = this.createElementPosition(scenarios);
2542
2537
  }
2543
2538
  initSQLFunctions() {
2544
- alasql_min.alasql.fn.transformOperator = function (a) {
2539
+ SVGVariancesStyleGroup.alasql.fn.transformOperator = function (a) {
2545
2540
  return a === "-" ? -1 : 1;
2546
2541
  };
2547
2542
  // @ts-ignore
2548
- alasql_min.alasql.fn.normalizeDate = function (date, normalizationLevel, _locale) {
2543
+ SVGVariancesStyleGroup.alasql.fn.normalizeDate = function (date, normalizationLevel, _locale) {
2549
2544
  if (date === undefined || !date.isValid) {
2550
2545
  return undefined;
2551
2546
  }
@@ -2693,7 +2688,7 @@ class TimeChart {
2693
2688
  this.preparedDataSet.length = 0; // cleans formerly loaded and prepared dataset
2694
2689
  if (filter != null && filter.length > 0) {
2695
2690
  try {
2696
- this.preparedDataSet = alasql_min.alasql(`SELECT * FROM ? WHERE ${filter}`, [data]);
2691
+ this.preparedDataSet = SVGVariancesStyleGroup.alasql(`SELECT * FROM ? WHERE ${filter}`, [data]);
2697
2692
  }
2698
2693
  catch (e) {
2699
2694
  console.error("TimeChart: filter query failed, using unfiltered data", filter, e);
@@ -2992,20 +2987,20 @@ class TimeChart {
2992
2987
  }
2993
2988
  findDateInterval(dateInterval) {
2994
2989
  var _a, _b, _c;
2995
- if (dateInterval !== DateStringFactory.DateDistance.AUTO) {
2990
+ if (dateInterval !== Order.DateDistance.AUTO) {
2996
2991
  return dateInterval;
2997
2992
  }
2998
2993
  const resultMinMax = this.queryMinMaxDates();
2999
- let localDateInterval = DateStringFactory.DateDistance.DAY;
2994
+ let localDateInterval = Order.DateDistance.DAY;
3000
2995
  if (((_a = resultMinMax[0]) === null || _a === void 0 ? void 0 : _a.mindate) != null) {
3001
- localDateInterval = new DateStringFactory.DateStringFactory().calculateDistanceType((_b = resultMinMax[0]) === null || _b === void 0 ? void 0 : _b.mindate, (_c = resultMinMax[0]) === null || _c === void 0 ? void 0 : _c.maxdate, this.intervalSpanLimit);
2996
+ localDateInterval = new Order.DateStringFactory().calculateDistanceType((_b = resultMinMax[0]) === null || _b === void 0 ? void 0 : _b.mindate, (_c = resultMinMax[0]) === null || _c === void 0 ? void 0 : _c.maxdate, this.intervalSpanLimit);
3002
2997
  }
3003
2998
  return localDateInterval;
3004
2999
  }
3005
3000
  queryMinMaxDates() {
3006
3001
  var _a, _b, _c, _d;
3007
3002
  //let result: any[] = [];
3008
- const result = alasql_min.alasql(`SELECT MAX(${"date"}) as maxdate, MIN(${"date"}) as mindate FROM ?`, [this.preparedDataSet]);
3003
+ const result = SVGVariancesStyleGroup.alasql(`SELECT MAX(${"date"}) as maxdate, MIN(${"date"}) as mindate FROM ?`, [this.preparedDataSet]);
3009
3004
  if (((_a = result[0]) === null || _a === void 0 ? void 0 : _a.mindate) != null) {
3010
3005
  result[0].mindate = Order.DateTime.fromMillis((_b = result[0]) === null || _b === void 0 ? void 0 : _b.mindate);
3011
3006
  }
@@ -3034,7 +3029,7 @@ class TimeChart {
3034
3029
  "pl4",
3035
3030
  ];
3036
3031
  const dateSelect = `normalizeDate([date], '${dateInterval}' , '${this.locale}') as calcdate`;
3037
- const result = alasql_min.alasql(`SELECT ${"p.calcdate"} ${select},
3032
+ const result = SVGVariancesStyleGroup.alasql(`SELECT ${"p.calcdate"} ${select},
3038
3033
  ${scenarios
3039
3034
  .map((scenario) => {
3040
3035
  return `SUM(${scenario} * transformOperator(operation)) as ${scenario}, COUNT(ISNULL(${scenario})) as ${scenario}_cnt`;
@@ -3178,7 +3173,7 @@ class TimeChart {
3178
3173
  return this.variancesDataModel && this.variancesDataModel.length > 0;
3179
3174
  }
3180
3175
  createDateFactory() {
3181
- const factory = new DateStringFactory.DateStringFactory();
3176
+ const factory = new Order.DateStringFactory();
3182
3177
  return factory;
3183
3178
  }
3184
3179
  drawAxisAndLabels(dataModel, svgContainer) {
@@ -3199,7 +3194,7 @@ class TimeChart {
3199
3194
  let datelabel = dateStringFactory.getDateString(elements.date, this.dateInterval);
3200
3195
  if (this.axisLabelsMode === Order.AxisLabelsMode.SMART) {
3201
3196
  datelabel = dateStringFactory.getSmartDateString(elements.date, this.dateInterval);
3202
- if (index === 0 && this.dateInterval !== DateStringFactory.DateDistance.YEAR) {
3197
+ if (index === 0 && this.dateInterval !== Order.DateDistance.YEAR) {
3203
3198
  datelabel = dateStringFactory.getShortDateString(elements.date, this.dateInterval);
3204
3199
  }
3205
3200
  }
@@ -3342,7 +3337,7 @@ class TimeChart {
3342
3337
  if (this.lineFullWidth && this.availableWidth > 0) {
3343
3338
  if (this.axisLabelsMode === Order.AxisLabelsMode.SMART) {
3344
3339
  datelabel = dateStringFactory.getSmartDateString(elements.date, this.dateInterval);
3345
- if (index === 0 && this.dateInterval !== DateStringFactory.DateDistance.YEAR) {
3340
+ if (index === 0 && this.dateInterval !== Order.DateDistance.YEAR) {
3346
3341
  datelabel = dateStringFactory.getShortDateString(elements.date, this.dateInterval);
3347
3342
  }
3348
3343
  }
@@ -3731,7 +3726,7 @@ class TimeChart {
3731
3726
  const from = Order.DateTime.min(...result.map(function (e) {
3732
3727
  return e.calcdate;
3733
3728
  }));
3734
- const dateRange = new DateStringFactory.DateStringFactory().datesBetween(from, to, dateInterval, this.intervalSpanLimit);
3729
+ const dateRange = new Order.DateStringFactory().datesBetween(from, to, dateInterval, this.intervalSpanLimit);
3735
3730
  const dateRangeEntries = new Map();
3736
3731
  dateRange.forEach((element, idx) => {
3737
3732
  dateRangeEntries.set(element.toISO(), {
@@ -3856,18 +3851,18 @@ class TimeChartComponentConfig {
3856
3851
  this.pixelPerPercentage = 50;
3857
3852
  /** Maximum data points to display; 0 means unlimited. */
3858
3853
  this.limit = 0;
3859
- this.sortOrder = new Order.OrderAdapter(new ibcsRuleSet.StringAdapter()).default();
3854
+ this.sortOrder = new Order.OrderAdapter(new SVGVariancesStyleGroup.StringAdapter()).default();
3860
3855
  this.level = Order.AggregationLevel.CATEGORY;
3861
3856
  /** Pixel offset from left edge for horizontal alignment across multiple charts. -1 disables sync. */
3862
3857
  this.leftSideOffsetForHorizontalSync = -1;
3863
3858
  /** Date granularity (year, quarter, month, etc.). AUTO auto-detects from data. */
3864
- this.dateInterval = DateStringFactory.DateDistance.AUTO;
3859
+ this.dateInterval = Order.DateDistance.AUTO;
3865
3860
  /** Controls how axis labels are rendered; SMART suppresses overlapping labels. */
3866
3861
  this.axisLabelsMode = Order.AxisLabelsMode.SMART;
3867
3862
  /** Maximum number of date intervals before the chart truncates or scrolls. */
3868
3863
  this.intervalSpanLimit = 28;
3869
3864
  this.filter = "";
3870
- this.measureScale = new DataFormatDigits.SiPrefix();
3865
+ this.measureScale = new SVGVariancesStyleGroup.SiPrefix();
3871
3866
  this.measureUnit = "";
3872
3867
  this.showMeasureScale = true;
3873
3868
  this.dataFormatDigits = { decimal: 1, percent: 2 };
@@ -3938,7 +3933,7 @@ class TimeChartComponentConfigAdapter {
3938
3933
  config.filter = data.filter;
3939
3934
  }
3940
3935
  if (Order.CompareUtil.isExisting(data.measureScale)) {
3941
- config.measureScale = DataFormatDigits.DataAnalyzer.calculateMeasureScale(this.dataSet, config.scenarios, data.measureScale);
3936
+ config.measureScale = SVGVariancesStyleGroup.DataAnalyzer.calculateMeasureScale(this.dataSet, config.scenarios, data.measureScale);
3942
3937
  }
3943
3938
  if (Order.CompareUtil.isString(data.measureUnit)) {
3944
3939
  config.measureUnit = data.measureUnit;
@@ -3994,7 +3989,7 @@ const IbcsChartTime = class {
3994
3989
  direction: Order.OrderDirection.ASC,
3995
3990
  };
3996
3991
  this.level = Order.AggregationLevel.CATEGORY;
3997
- this.dateInterval = DateStringFactory.DateDistance.AUTO;
3992
+ this.dateInterval = Order.DateDistance.AUTO;
3998
3993
  this.intervalSpanLimit = 28;
3999
3994
  this.axisLabelsMode = Order.AxisLabelsMode.SMART;
4000
3995
  this.filter = "";
@@ -4027,7 +4022,7 @@ const IbcsChartTime = class {
4027
4022
  const config = this.prepareConfig();
4028
4023
  const styles = this.prepareStyle();
4029
4024
  const availableWidth = this.containerWidth || 0;
4030
- this.chart = new TimeChart(new ibcsRuleSet.IBCSRuleSet(), config, styles, availableWidth);
4025
+ this.chart = new TimeChart(new SVGVariancesStyleGroup.IBCSRuleSet(), config, styles, availableWidth);
4031
4026
  this.chart.setI18n(this.i18n);
4032
4027
  this.autoFitScaling(config, styles);
4033
4028
  this.chart.setAvailableHeight(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.height) || 0);
@@ -4064,13 +4059,13 @@ const IbcsChartTime = class {
4064
4059
  const availableWidth = this.containerWidth || 0;
4065
4060
  if (!targetHeight || targetHeight <= 0) {
4066
4061
  config.pixelPerUnit = 1; // No parent info — use fallback
4067
- this.chart = new TimeChart(new ibcsRuleSet.IBCSRuleSet(), config, styles, availableWidth);
4062
+ this.chart = new TimeChart(new SVGVariancesStyleGroup.IBCSRuleSet(), config, styles, availableWidth);
4068
4063
  this.chart.setI18n(this.i18n);
4069
4064
  return;
4070
4065
  }
4071
4066
  // First pass with pixelPerUnit=1 to measure the real SVG height
4072
4067
  config.pixelPerUnit = 1;
4073
- this.chart = new TimeChart(new ibcsRuleSet.IBCSRuleSet(), config, styles, availableWidth);
4068
+ this.chart = new TimeChart(new SVGVariancesStyleGroup.IBCSRuleSet(), config, styles, availableWidth);
4074
4069
  this.chart.setI18n(this.i18n);
4075
4070
  this.chart.toString();
4076
4071
  const svgHeight = this.chart.getAllocatedCanvasHeight();
@@ -4080,7 +4075,7 @@ const IbcsChartTime = class {
4080
4075
  // Scale so the chart fits in ~90% of the available height
4081
4076
  config.pixelPerUnit = (targetHeight * 0.9) / svgHeight;
4082
4077
  // Second pass with the corrected scaling
4083
- this.chart = new TimeChart(new ibcsRuleSet.IBCSRuleSet(), config, styles, availableWidth);
4078
+ this.chart = new TimeChart(new SVGVariancesStyleGroup.IBCSRuleSet(), config, styles, availableWidth);
4084
4079
  this.chart.setI18n(this.i18n);
4085
4080
  }
4086
4081
  async componentWillRender() {
@@ -4104,7 +4099,7 @@ const IbcsChartTime = class {
4104
4099
  //}
4105
4100
  }
4106
4101
  prepareConfig() {
4107
- return new TimeChartComponentConfigAdapter(new TimeChartDataRowAdapter(), new Order.OrderAdapter(new ibcsRuleSet.StringAdapter()), new ibcsRuleSet.StringAdapter(), new DataFormatDigits.DataFormatDigitsAdapter(), this.data).adapt({
4102
+ return new TimeChartComponentConfigAdapter(new TimeChartDataRowAdapter(), new Order.OrderAdapter(new SVGVariancesStyleGroup.StringAdapter()), new SVGVariancesStyleGroup.StringAdapter(), new SVGVariancesStyleGroup.DataFormatDigitsAdapter(), this.data).adapt({
4108
4103
  data: this.data,
4109
4104
  scenarios: this.scenarios,
4110
4105
  variances: this.variances,
@@ -6,7 +6,7 @@ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
6
6
  const defineCustomElements = async (win, options) => {
7
7
  if (typeof window === 'undefined') return undefined;
8
8
  await appGlobals.globalScripts();
9
- return index.bootstrapLazy(JSON.parse("[[\"bn-layout-page.cjs\",[[257,\"bn-layout-page\",{\"styles\":[1],\"messageText\":[1,\"message-text\"],\"messageImage\":[1,\"message-image\"],\"titleBusinessUnit\":[1,\"title-business-unit\"],\"titleScenarios\":[1,\"title-scenarios\"],\"titleVariances\":[1,\"title-variances\"],\"titleOrder\":[1,\"title-order\"],\"titleOrderDirection\":[1,\"title-order-direction\"],\"titleMeasures\":[1,\"title-measures\"],\"titleDateStart\":[1,\"title-date-start\"],\"titleDateEnd\":[1,\"title-date-end\"],\"titleDateFormat\":[1,\"title-date-format\"],\"titleDateLink\":[1,\"title-date-link\"],\"titleNamespace\":[1,\"title-namespace\"],\"pageFormat\":[1,\"page-format\"],\"pageOrientation\":[1,\"page-orientation\"],\"pageNumber\":[1,\"page-number\"],\"footerText\":[1,\"footer-text\"],\"footerDisplayPageNumber\":[4,\"footer-display-page-number\"],\"pageLayout\":[1,\"page-layout\"],\"pageCustomTemplate\":[1,\"page-custom-template\"],\"pageGridGap\":[1,\"page-grid-gap\"],\"pageFitToContent\":[4,\"page-fit-to-content\"],\"getNumberOfSlot\":[64]}]]],[\"bn-layout-card.cjs\",[[257,\"bn-layout-card\",{\"styles\":[1],\"titleImage\":[1,\"title-image\"],\"titleBusinessUnit\":[1,\"title-business-unit\"],\"titleScenarios\":[1,\"title-scenarios\"],\"titleVariances\":[1,\"title-variances\"],\"titleOrder\":[1,\"title-order\"],\"titleOrderDirection\":[1,\"title-order-direction\"],\"titleMeasures\":[1,\"title-measures\"],\"titleDateStart\":[1,\"title-date-start\"],\"titleDateEnd\":[1,\"title-date-end\"],\"titleDateFormat\":[1,\"title-date-format\"],\"titleDateLink\":[1,\"title-date-link\"],\"titleNamespace\":[1,\"title-namespace\"],\"footerText\":[1,\"footer-text\"],\"cardLayout\":[1,\"card-layout\"],\"cardCustomTemplate\":[1,\"card-custom-template\"],\"cardGridGap\":[1,\"card-grid-gap\"],\"cardFitToContent\":[4,\"card-fit-to-content\"],\"cardShowBorder\":[4,\"card-show-border\"],\"getNumberOfSlot\":[64]}]]],[\"bn-chart-time.cjs\",[[1,\"bn-chart-time\",{\"chartTitle\":[1,\"chart-title\"],\"filter\":[1],\"scenarios\":[1],\"variances\":[1],\"syncSpaceLeft\":[2,\"sync-space-left\"],\"limit\":[2],\"unitScaling\":[8,\"unit-scaling\"],\"percentageScaling\":[8,\"percentage-scaling\"],\"level\":[1],\"order\":[1],\"orderDirection\":[1,\"order-direction\"],\"dateInterval\":[1,\"date-interval\"],\"chartMode\":[1,\"chart-mode\"],\"maxBars\":[2,\"max-bars\"],\"stack\":[1],\"scale\":[1],\"intervalSpanLimit\":[2,\"interval-span-limit\"],\"axisLabelsMode\":[1,\"axis-labels-mode\"],\"lineFullWidth\":[1,\"line-full-width\"],\"showCategories\":[1,\"show-categories\"],\"measureScale\":[1,\"measure-scale\"],\"showMeasureScale\":[1,\"show-measure-scale\"],\"showOverlayAvg\":[1,\"show-overlay-avg\"],\"showOverlayMedian\":[1,\"show-overlay-median\"],\"measureUnit\":[1,\"measure-unit\"],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"syncSpaceLeft\":[{\"validateLeftSync\":0}],\"limit\":[{\"validateLimit\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"level\":[{\"validateLevel\":0}],\"order\":[{\"validateOrderList\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"dateInterval\":[{\"validateDateInterval\":0}],\"chartMode\":[{\"validateChartMode\":0}],\"maxBars\":[{\"validateMaxBars\":0}],\"stack\":[{\"validateStack\":0}],\"scale\":[{\"validateScaling\":0}],\"axisLabelsMode\":[{\"validateAxisLabelsMode\":0}],\"lineFullWidth\":[{\"validateLineFullWidth\":0}],\"showCategories\":[{\"validateShowCategories\":0}],\"measureScale\":[{\"validateMeasureScale\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"showOverlayAvg\":[{\"validateShowOverlayAvg\":0}],\"showOverlayMedian\":[{\"validateShowOverlayMedian\":0}]}]]],[\"bn-table.cjs\",[[1,\"bn-table\",{\"scale\":[1],\"tableTitle\":[1,\"table-title\"],\"filter\":[1],\"measureUnit\":[1,\"measure-unit\"],\"scenarios\":[1],\"variances\":[1],\"barColumns\":[1,\"bar-columns\"],\"barColumnWidth\":[1,\"bar-column-width\"],\"unitScaling\":[8,\"unit-scaling\"],\"percentageScaling\":[8,\"percentage-scaling\"],\"dataFormat\":[1,\"data-format\"],\"grouped\":[1],\"showMeasureScale\":[1,\"show-measure-scale\"],\"showGroupTitle\":[1,\"show-group-title\"],\"type\":[1],\"limit\":[2],\"thereof\":[1],\"partof\":[1],\"order\":[1],\"orderDirection\":[1,\"order-direction\"],\"measureType\":[1,\"measure-type\"],\"measureScale\":[1,\"measure-scale\"],\"dataFormatDigitsDecimal\":[2,\"data-format-digits-decimal\"],\"dataFormatDigitsPercent\":[2,\"data-format-digits-percent\"],\"categoryWidth\":[1,\"category-width\"],\"columnthereof\":[1],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scale\":[{\"validateScaling\":0}],\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"barColumns\":[{\"validateBarColumns\":0}],\"barColumnWidth\":[{\"validateBarColumnWidth\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"dataFormat\":[{\"validateDataFormat\":0}],\"grouped\":[{\"validateGrouped\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"showGroupTitle\":[{\"validateShowGroupTitle\":0}],\"type\":[{\"validateType\":0}],\"limit\":[{\"validateLimit\":0}],\"thereof\":[{\"validateThereOf\":0}],\"partof\":[{\"validatePartOf\":0}],\"order\":[{\"validateOrderList\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"measureType\":[{\"validateMeasureType\":0}],\"measureScale\":[{\"validateMeasureScale\":0}],\"dataFormatDigitsDecimal\":[{\"validateDataFormatDigitsDecimal\":0}],\"dataFormatDigitsPercent\":[{\"validateDateFormatDigitsPercent\":0}],\"categoryWidth\":[{\"validateCategoryWidth\":0}],\"columnthereof\":[{\"validateColumnThereOf\":0}]}]]],[\"bn-asset.cjs\",[[1,\"bn-asset\",{\"name\":[1]}]]],[\"bn-component-style.cjs\",[[0,\"bn-component-style\",{\"name\":[1]}]]],[\"bn-dataset.cjs\",[[0,\"bn-dataset\",{\"name\":[1],\"datasources\":[1],\"static\":[4],\"raw\":[4]},null,{\"name\":[{\"nameUpdated\":0}]}]]],[\"bn-grid.cjs\",[[257,\"bn-grid\",{\"chartTitle\":[1,\"chart-title\"],\"rowHeaders\":[1,\"row-headers\"],\"columnHeaders\":[1,\"column-headers\"],\"showRowHeaders\":[1,\"show-row-headers\"],\"showColumnHeaders\":[1,\"show-column-headers\"],\"showBorders\":[1,\"show-borders\"],\"rowHeaderWidth\":[1,\"row-header-width\"],\"cellGap\":[1,\"cell-gap\"],\"gridConfig\":[32]},null,{\"rowHeaders\":[{\"validateRowHeaders\":0}],\"columnHeaders\":[{\"validateColumnHeaders\":0}],\"showRowHeaders\":[{\"validateShowRowHeaders\":0}],\"showColumnHeaders\":[{\"validateShowColumnHeaders\":0}],\"showBorders\":[{\"validateShowBorders\":0}]}]]],[\"bn-image.cjs\",[[1,\"bn-image\",{\"source\":[1]}]]],[\"bn-internationalization.cjs\",[[0,\"bn-internationalization\",{\"code\":[1],\"namespace\":[1]}]]],[\"bn-template.cjs\",[[257,\"bn-template\",{\"templateId\":[1,\"template-id\"]}]]],[\"bn-text.cjs\",[[1,\"bn-text\",{\"value\":[1],\"scale\":[1],\"data\":[32]},null,{\"value\":[{\"validateValue\":0}],\"scale\":[{\"validateScaling\":0}]}]]],[\"bn-tree.cjs\",[[257,\"bn-tree\",{\"edges\":[1],\"direction\":[1],\"levelSpacing\":[2,\"level-spacing\"],\"nodeSpacing\":[2,\"node-spacing\"],\"edgeStyle\":[1,\"edge-style\"],\"showOperators\":[1,\"show-operators\"],\"treeConfig\":[32],\"layout\":[32],\"nodeRects\":[32],\"svgWidth\":[32],\"svgHeight\":[32]},null,{\"edges\":[{\"validateEdgesProp\":0}],\"direction\":[{\"validateDirection\":0}],\"levelSpacing\":[{\"validateLevelSpacing\":0}],\"nodeSpacing\":[{\"validateNodeSpacing\":0}],\"edgeStyle\":[{\"validateEdgeStyle\":0}],\"showOperators\":[{\"validateShowOperators\":0}]}]]],[\"editor-companion.cjs\",[[0,\"editor-companion\",{\"internationalizationKeys\":[64],\"getDistinctFromDataSource\":[64],\"getDistinctFromDataset\":[64]}]]],[\"bn-card.cjs\",[[257,\"bn-card\"]]],[\"bn-message.cjs\",[[1,\"bn-message\",{\"text\":[1025],\"image\":[1]}]]],[\"ibcs-chart-time.cjs\",[[1,\"ibcs-chart-time\",{\"data\":[16],\"chartTitle\":[1,\"chart-title\"],\"scenarios\":[16],\"variances\":[16],\"hideAxisLabels\":[4,\"hide-axis-labels\"],\"pixelPerUnit\":[2,\"pixel-per-unit\"],\"pixelPerPercentage\":[2,\"pixel-per-percentage\"],\"limit\":[2],\"leftSideOffsetForHorizontalSync\":[2,\"left-side-offset-for-horizontal-sync\"],\"styles\":[1040],\"i18n\":[1040],\"order\":[16],\"level\":[1],\"dateInterval\":[1,\"date-interval\"],\"intervalSpanLimit\":[2,\"interval-span-limit\"],\"axisLabelsMode\":[1,\"axis-labels-mode\"],\"filter\":[1],\"measureScale\":[1,\"measure-scale\"],\"measureUnit\":[1,\"measure-unit\"],\"showMeasureScale\":[4,\"show-measure-scale\"],\"showOverlayMedian\":[4,\"show-overlay-median\"],\"showOverlayAvg\":[4,\"show-overlay-avg\"],\"chartMode\":[1,\"chart-mode\"],\"maxBars\":[2,\"max-bars\"],\"stackConfig\":[16],\"lineFullWidth\":[4,\"line-full-width\"],\"containerWidth\":[2,\"container-width\"],\"dataFormatDigits\":[16],\"parentDimensions\":[16]}]]],[\"ibcs-table.cjs\",[[1,\"ibcs-table\",{\"data\":[16],\"tableTitle\":[1,\"table-title\"],\"scenarios\":[16],\"scenariosDataFormat\":[1,\"scenarios-data-format\"],\"grouped\":[4],\"limit\":[2],\"showGroupTitle\":[4,\"show-group-title\"],\"thereof\":[16],\"partof\":[16],\"order\":[16],\"categorythereof\":[16],\"type\":[1],\"categoryWidth\":[1,\"category-width\"],\"dataFormatDigits\":[16],\"i18n\":[1040],\"i18nMode\":[1,\"i18n-mode\"],\"measureScale\":[1,\"measure-scale\"],\"measureUnit\":[1,\"measure-unit\"],\"showMeasureScale\":[4,\"show-measure-scale\"],\"measureType\":[1,\"measure-type\"],\"filter\":[1],\"barColumns\":[16],\"barColumnMaxWidth\":[2,\"bar-column-max-width\"],\"unitScaling\":[2,\"unit-scaling\"],\"percentageScaling\":[2,\"percentage-scaling\"],\"scaleFactor\":[2,\"scale-factor\"]}]]],[\"bn-chart-structure_5.cjs\",[[1,\"bn-chart-structure\",{\"chartTitle\":[1,\"chart-title\"],\"filter\":[1],\"scenarios\":[1],\"variances\":[1],\"unitScaling\":[8,\"unit-scaling\"],\"percentageScaling\":[8,\"percentage-scaling\"],\"level\":[1],\"order\":[1],\"orderDirection\":[1,\"order-direction\"],\"limit\":[2],\"showCategories\":[1,\"show-categories\"],\"measureScale\":[1,\"measure-scale\"],\"showMeasureScale\":[1,\"show-measure-scale\"],\"measureUnit\":[1,\"measure-unit\"],\"stack\":[1],\"scale\":[1],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"level\":[{\"validateLevel\":0}],\"order\":[{\"validateOrderList\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"limit\":[{\"validateLimit\":0}],\"showCategories\":[{\"validateShowCategories\":0}],\"measureScale\":[{\"validateMeasureScale\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"stack\":[{\"validateStack\":0}],\"scale\":[{\"validateScaling\":0}]}],[257,\"bn-context\",{\"locale\":[1]},null,{\"locale\":[{\"setLocale\":0}]}],[0,\"bn-datasource\",{\"name\":[1],\"raw\":[4]}],[257,\"bn-page\",{\"format\":[1],\"orientation\":[1]},null,{\"format\":[{\"validateFormat\":0}],\"orientation\":[{\"validateOrientation\":0}]}],[1,\"ibcs-chart-structure\",{\"data\":[16],\"chartTitle\":[1,\"chart-title\"],\"scenarios\":[16],\"variances\":[16],\"hideCategories\":[4,\"hide-categories\"],\"pixelPerUnit\":[2,\"pixel-per-unit\"],\"pixelPerPercentage\":[2,\"pixel-per-percentage\"],\"limit\":[2],\"styles\":[1040],\"i18n\":[1040],\"order\":[16],\"level\":[1],\"filter\":[1],\"measureScale\":[1,\"measure-scale\"],\"measureUnit\":[1,\"measure-unit\"],\"showMeasureScale\":[4,\"show-measure-scale\"],\"dataFormatDigits\":[16],\"stackConfig\":[16],\"parentDimensions\":[16]}]]],[\"bn-body_4.cjs\",[[1,\"bn-title\",{\"businessUnit\":[1,\"business-unit\"],\"scenarios\":[1],\"variances\":[1],\"order\":[1],\"orderDirection\":[1,\"order-direction\"],\"measures\":[1],\"dateStart\":[1,\"date-start\"],\"dateEnd\":[1,\"date-end\"],\"dateFormat\":[1,\"date-format\"],\"dateLink\":[1,\"date-link\"]},null,{\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"order\":[{\"validateOrder\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"measures\":[{\"validateMeasures\":0}],\"dateStart\":[{\"validateDateStart\":0}],\"dateEnd\":[{\"validateDateEnd\":0}],\"dateFormat\":[{\"validateDateFormat\":0}],\"dateLink\":[{\"validateDateLink\":0}]}],[257,\"bn-body\"],[1,\"bn-footer\",{\"pageNumber\":[1026,\"page-number\"],\"text\":[1025],\"code\":[1025],\"displayPageNumber\":[4,\"display-page-number\"]}],[1,\"ibcs-title\",{\"businessUnit\":[1537,\"business-unit\"],\"scenarios\":[16],\"measures\":[16],\"timeperiod\":[16],\"intervalSpanLimit\":[2,\"interval-span-limit\"],\"order\":[16],\"i18n\":[1040],\"i18nMode\":[1,\"i18n-mode\"],\"setBusinessUnit\":[64],\"setProps\":[64]}]]]]"), options);
9
+ return index.bootstrapLazy(JSON.parse("[[\"bn-layout-card.cjs\",[[257,\"bn-layout-card\",{\"styles\":[1],\"titleImage\":[1,\"title-image\"],\"titleBusinessUnit\":[1,\"title-business-unit\"],\"titleScenarios\":[1,\"title-scenarios\"],\"titleVariances\":[1,\"title-variances\"],\"titleOrder\":[1,\"title-order\"],\"titleOrderDirection\":[1,\"title-order-direction\"],\"titleMeasures\":[1,\"title-measures\"],\"titleDateStart\":[1,\"title-date-start\"],\"titleDateEnd\":[1,\"title-date-end\"],\"titleDateFormat\":[1,\"title-date-format\"],\"titleDateLink\":[1,\"title-date-link\"],\"titleNamespace\":[1,\"title-namespace\"],\"footerText\":[1,\"footer-text\"],\"cardLayout\":[1,\"card-layout\"],\"cardCustomTemplate\":[1,\"card-custom-template\"],\"cardGridGap\":[1,\"card-grid-gap\"],\"cardFitToContent\":[4,\"card-fit-to-content\"],\"cardShowBorder\":[4,\"card-show-border\"],\"getNumberOfSlot\":[64]}]]],[\"bn-chart-time.cjs\",[[1,\"bn-chart-time\",{\"chartTitle\":[1,\"chart-title\"],\"filter\":[1],\"scenarios\":[1],\"variances\":[1],\"syncSpaceLeft\":[2,\"sync-space-left\"],\"limit\":[2],\"unitScaling\":[8,\"unit-scaling\"],\"percentageScaling\":[8,\"percentage-scaling\"],\"level\":[1],\"order\":[1],\"orderDirection\":[1,\"order-direction\"],\"dateInterval\":[1,\"date-interval\"],\"chartMode\":[1,\"chart-mode\"],\"maxBars\":[2,\"max-bars\"],\"stack\":[1],\"scale\":[1],\"intervalSpanLimit\":[2,\"interval-span-limit\"],\"axisLabelsMode\":[1,\"axis-labels-mode\"],\"lineFullWidth\":[1,\"line-full-width\"],\"showCategories\":[1,\"show-categories\"],\"measureScale\":[1,\"measure-scale\"],\"showMeasureScale\":[1,\"show-measure-scale\"],\"showOverlayAvg\":[1,\"show-overlay-avg\"],\"showOverlayMedian\":[1,\"show-overlay-median\"],\"measureUnit\":[1,\"measure-unit\"],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"syncSpaceLeft\":[{\"validateLeftSync\":0}],\"limit\":[{\"validateLimit\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"level\":[{\"validateLevel\":0}],\"order\":[{\"validateOrderList\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"dateInterval\":[{\"validateDateInterval\":0}],\"chartMode\":[{\"validateChartMode\":0}],\"maxBars\":[{\"validateMaxBars\":0}],\"stack\":[{\"validateStack\":0}],\"scale\":[{\"validateScaling\":0}],\"axisLabelsMode\":[{\"validateAxisLabelsMode\":0}],\"lineFullWidth\":[{\"validateLineFullWidth\":0}],\"showCategories\":[{\"validateShowCategories\":0}],\"measureScale\":[{\"validateMeasureScale\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"showOverlayAvg\":[{\"validateShowOverlayAvg\":0}],\"showOverlayMedian\":[{\"validateShowOverlayMedian\":0}]}]]],[\"bn-grid.cjs\",[[257,\"bn-grid\",{\"chartTitle\":[1,\"chart-title\"],\"rowHeaders\":[1,\"row-headers\"],\"columnHeaders\":[1,\"column-headers\"],\"showRowHeaders\":[1,\"show-row-headers\"],\"showColumnHeaders\":[1,\"show-column-headers\"],\"showBorders\":[1,\"show-borders\"],\"rowHeaderWidth\":[1,\"row-header-width\"],\"cellGap\":[1,\"cell-gap\"],\"gridConfig\":[32]},null,{\"rowHeaders\":[{\"validateRowHeaders\":0}],\"columnHeaders\":[{\"validateColumnHeaders\":0}],\"showRowHeaders\":[{\"validateShowRowHeaders\":0}],\"showColumnHeaders\":[{\"validateShowColumnHeaders\":0}],\"showBorders\":[{\"validateShowBorders\":0}]}]]],[\"bn-image.cjs\",[[1,\"bn-image\",{\"source\":[1]}]]],[\"bn-internationalization.cjs\",[[0,\"bn-internationalization\",{\"code\":[1],\"namespace\":[1]}]]],[\"bn-template.cjs\",[[257,\"bn-template\",{\"templateId\":[1,\"template-id\"]}]]],[\"bn-text.cjs\",[[1,\"bn-text\",{\"value\":[1],\"scale\":[1],\"data\":[32]},null,{\"value\":[{\"validateValue\":0}],\"scale\":[{\"validateScaling\":0}]}]]],[\"bn-tree.cjs\",[[257,\"bn-tree\",{\"edges\":[1],\"direction\":[1],\"levelSpacing\":[2,\"level-spacing\"],\"nodeSpacing\":[2,\"node-spacing\"],\"edgeStyle\":[1,\"edge-style\"],\"showOperators\":[1,\"show-operators\"],\"treeConfig\":[32],\"layout\":[32],\"nodeRects\":[32],\"svgWidth\":[32],\"svgHeight\":[32]},null,{\"edges\":[{\"validateEdgesProp\":0}],\"direction\":[{\"validateDirection\":0}],\"levelSpacing\":[{\"validateLevelSpacing\":0}],\"nodeSpacing\":[{\"validateNodeSpacing\":0}],\"edgeStyle\":[{\"validateEdgeStyle\":0}],\"showOperators\":[{\"validateShowOperators\":0}]}]]],[\"editor-companion.cjs\",[[0,\"editor-companion\",{\"internationalizationKeys\":[64],\"getDistinctFromDataSource\":[64],\"getDistinctFromDataset\":[64]}]]],[\"bn-card.cjs\",[[257,\"bn-card\"]]],[\"ibcs-chart-time.cjs\",[[1,\"ibcs-chart-time\",{\"data\":[16],\"chartTitle\":[1,\"chart-title\"],\"scenarios\":[16],\"variances\":[16],\"hideAxisLabels\":[4,\"hide-axis-labels\"],\"pixelPerUnit\":[2,\"pixel-per-unit\"],\"pixelPerPercentage\":[2,\"pixel-per-percentage\"],\"limit\":[2],\"leftSideOffsetForHorizontalSync\":[2,\"left-side-offset-for-horizontal-sync\"],\"styles\":[1040],\"i18n\":[1040],\"order\":[16],\"level\":[1],\"dateInterval\":[1,\"date-interval\"],\"intervalSpanLimit\":[2,\"interval-span-limit\"],\"axisLabelsMode\":[1,\"axis-labels-mode\"],\"filter\":[1],\"measureScale\":[1,\"measure-scale\"],\"measureUnit\":[1,\"measure-unit\"],\"showMeasureScale\":[4,\"show-measure-scale\"],\"showOverlayMedian\":[4,\"show-overlay-median\"],\"showOverlayAvg\":[4,\"show-overlay-avg\"],\"chartMode\":[1,\"chart-mode\"],\"maxBars\":[2,\"max-bars\"],\"stackConfig\":[16],\"lineFullWidth\":[4,\"line-full-width\"],\"containerWidth\":[2,\"container-width\"],\"dataFormatDigits\":[16],\"parentDimensions\":[16]}]]],[\"bn-asset_16.cjs\",[[257,\"bn-layout-page\",{\"styles\":[1],\"messageText\":[1,\"message-text\"],\"messageImage\":[1,\"message-image\"],\"titleBusinessUnit\":[1,\"title-business-unit\"],\"titleScenarios\":[1,\"title-scenarios\"],\"titleVariances\":[1,\"title-variances\"],\"titleOrder\":[1,\"title-order\"],\"titleOrderDirection\":[1,\"title-order-direction\"],\"titleMeasures\":[1,\"title-measures\"],\"titleDateStart\":[1,\"title-date-start\"],\"titleDateEnd\":[1,\"title-date-end\"],\"titleDateFormat\":[1,\"title-date-format\"],\"titleDateLink\":[1,\"title-date-link\"],\"titleNamespace\":[1,\"title-namespace\"],\"pageFormat\":[1,\"page-format\"],\"pageOrientation\":[1,\"page-orientation\"],\"pageNumber\":[1,\"page-number\"],\"footerText\":[1,\"footer-text\"],\"footerDisplayPageNumber\":[4,\"footer-display-page-number\"],\"pageLayout\":[1,\"page-layout\"],\"pageCustomTemplate\":[1,\"page-custom-template\"],\"pageGridGap\":[1,\"page-grid-gap\"],\"pageFitToContent\":[4,\"page-fit-to-content\"],\"getNumberOfSlot\":[64]}],[1,\"bn-chart-structure\",{\"chartTitle\":[1,\"chart-title\"],\"filter\":[1],\"scenarios\":[1],\"variances\":[1],\"unitScaling\":[8,\"unit-scaling\"],\"percentageScaling\":[8,\"percentage-scaling\"],\"level\":[1],\"order\":[1],\"orderDirection\":[1,\"order-direction\"],\"limit\":[2],\"showCategories\":[1,\"show-categories\"],\"measureScale\":[1,\"measure-scale\"],\"showMeasureScale\":[1,\"show-measure-scale\"],\"measureUnit\":[1,\"measure-unit\"],\"stack\":[1],\"scale\":[1],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"level\":[{\"validateLevel\":0}],\"order\":[{\"validateOrderList\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"limit\":[{\"validateLimit\":0}],\"showCategories\":[{\"validateShowCategories\":0}],\"measureScale\":[{\"validateMeasureScale\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"stack\":[{\"validateStack\":0}],\"scale\":[{\"validateScaling\":0}]}],[1,\"bn-table\",{\"scale\":[1],\"tableTitle\":[1,\"table-title\"],\"filter\":[1],\"measureUnit\":[1,\"measure-unit\"],\"scenarios\":[1],\"variances\":[1],\"barColumns\":[1,\"bar-columns\"],\"barColumnWidth\":[1,\"bar-column-width\"],\"unitScaling\":[8,\"unit-scaling\"],\"percentageScaling\":[8,\"percentage-scaling\"],\"dataFormat\":[1,\"data-format\"],\"grouped\":[1],\"showMeasureScale\":[1,\"show-measure-scale\"],\"showGroupTitle\":[1,\"show-group-title\"],\"type\":[1],\"limit\":[2],\"thereof\":[1],\"partof\":[1],\"order\":[1],\"orderDirection\":[1,\"order-direction\"],\"measureType\":[1,\"measure-type\"],\"measureScale\":[1,\"measure-scale\"],\"dataFormatDigitsDecimal\":[2,\"data-format-digits-decimal\"],\"dataFormatDigitsPercent\":[2,\"data-format-digits-percent\"],\"categoryWidth\":[1,\"category-width\"],\"columnthereof\":[1],\"data\":[32],\"datasetMeta\":[32],\"appliedScaleFactor\":[32]},null,{\"scale\":[{\"validateScaling\":0}],\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"barColumns\":[{\"validateBarColumns\":0}],\"barColumnWidth\":[{\"validateBarColumnWidth\":0}],\"unitScaling\":[{\"validateUnitScaling\":0}],\"percentageScaling\":[{\"validatePercentageScaling\":0}],\"dataFormat\":[{\"validateDataFormat\":0}],\"grouped\":[{\"validateGrouped\":0}],\"showMeasureScale\":[{\"validateShowMeasureScale\":0}],\"showGroupTitle\":[{\"validateShowGroupTitle\":0}],\"type\":[{\"validateType\":0}],\"limit\":[{\"validateLimit\":0}],\"thereof\":[{\"validateThereOf\":0}],\"partof\":[{\"validatePartOf\":0}],\"order\":[{\"validateOrderList\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"measureType\":[{\"validateMeasureType\":0}],\"measureScale\":[{\"validateMeasureScale\":0}],\"dataFormatDigitsDecimal\":[{\"validateDataFormatDigitsDecimal\":0}],\"dataFormatDigitsPercent\":[{\"validateDateFormatDigitsPercent\":0}],\"categoryWidth\":[{\"validateCategoryWidth\":0}],\"columnthereof\":[{\"validateColumnThereOf\":0}]}],[1,\"bn-asset\",{\"name\":[1]}],[0,\"bn-component-style\",{\"name\":[1]}],[257,\"bn-context\",{\"locale\":[1]},null,{\"locale\":[{\"setLocale\":0}]}],[0,\"bn-dataset\",{\"name\":[1],\"datasources\":[1],\"static\":[4],\"raw\":[4]},null,{\"name\":[{\"nameUpdated\":0}]}],[0,\"bn-datasource\",{\"name\":[1],\"raw\":[4]}],[1,\"bn-message\",{\"text\":[1025],\"image\":[1]}],[257,\"bn-page\",{\"format\":[1],\"orientation\":[1]},null,{\"format\":[{\"validateFormat\":0}],\"orientation\":[{\"validateOrientation\":0}]}],[1,\"ibcs-chart-structure\",{\"data\":[16],\"chartTitle\":[1,\"chart-title\"],\"scenarios\":[16],\"variances\":[16],\"hideCategories\":[4,\"hide-categories\"],\"pixelPerUnit\":[2,\"pixel-per-unit\"],\"pixelPerPercentage\":[2,\"pixel-per-percentage\"],\"limit\":[2],\"styles\":[1040],\"i18n\":[1040],\"order\":[16],\"level\":[1],\"filter\":[1],\"measureScale\":[1,\"measure-scale\"],\"measureUnit\":[1,\"measure-unit\"],\"showMeasureScale\":[4,\"show-measure-scale\"],\"dataFormatDigits\":[16],\"stackConfig\":[16],\"parentDimensions\":[16]}],[1,\"ibcs-table\",{\"data\":[16],\"tableTitle\":[1,\"table-title\"],\"scenarios\":[16],\"scenariosDataFormat\":[1,\"scenarios-data-format\"],\"grouped\":[4],\"limit\":[2],\"showGroupTitle\":[4,\"show-group-title\"],\"thereof\":[16],\"partof\":[16],\"order\":[16],\"categorythereof\":[16],\"type\":[1],\"categoryWidth\":[1,\"category-width\"],\"dataFormatDigits\":[16],\"i18n\":[1040],\"i18nMode\":[1,\"i18n-mode\"],\"measureScale\":[1,\"measure-scale\"],\"measureUnit\":[1,\"measure-unit\"],\"showMeasureScale\":[4,\"show-measure-scale\"],\"measureType\":[1,\"measure-type\"],\"filter\":[1],\"barColumns\":[16],\"barColumnMaxWidth\":[2,\"bar-column-max-width\"],\"unitScaling\":[2,\"unit-scaling\"],\"percentageScaling\":[2,\"percentage-scaling\"],\"scaleFactor\":[2,\"scale-factor\"]}],[1,\"bn-title\",{\"businessUnit\":[1,\"business-unit\"],\"scenarios\":[1],\"variances\":[1],\"order\":[1],\"orderDirection\":[1,\"order-direction\"],\"measures\":[1],\"dateStart\":[1,\"date-start\"],\"dateEnd\":[1,\"date-end\"],\"dateFormat\":[1,\"date-format\"],\"dateLink\":[1,\"date-link\"]},null,{\"scenarios\":[{\"validateScenario\":0}],\"variances\":[{\"validateVariances\":0}],\"order\":[{\"validateOrder\":0}],\"orderDirection\":[{\"validateOrderDirection\":0}],\"measures\":[{\"validateMeasures\":0}],\"dateStart\":[{\"validateDateStart\":0}],\"dateEnd\":[{\"validateDateEnd\":0}],\"dateFormat\":[{\"validateDateFormat\":0}],\"dateLink\":[{\"validateDateLink\":0}]}],[257,\"bn-body\"],[1,\"bn-footer\",{\"pageNumber\":[1026,\"page-number\"],\"text\":[1025],\"code\":[1025],\"displayPageNumber\":[4,\"display-page-number\"]}],[1,\"ibcs-title\",{\"businessUnit\":[1537,\"business-unit\"],\"scenarios\":[16],\"measures\":[16],\"timeperiod\":[16],\"intervalSpanLimit\":[2,\"interval-span-limit\"],\"order\":[16],\"i18n\":[1040],\"i18nMode\":[1,\"i18n-mode\"],\"setBusinessUnit\":[64],\"setProps\":[64]}]]]]"), options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var contextProtocol = require('./context-protocol-DRQWrwsA.js');
4
- var utils = require('./utils-CwHIVbbL.js');
4
+ var withHasError = require('./withHasError-B8gHkfV2.js');
5
5
  var index = require('./index-Cjw0q6gP.js');
6
6
 
7
7
  /**
@@ -122,16 +122,16 @@ component, onUpdate, onMetaUpdate) => {
122
122
  }
123
123
  });
124
124
  }
125
- utils.runIfExisits(connectedCallback, component);
125
+ withHasError.runIfExisits(connectedCallback, component);
126
126
  };
127
127
  const disconnectedCallback = component["disconnectedCallback"];
128
128
  component["disconnectedCallback"] = () => {
129
129
  observer.disconnect();
130
- utils.runIfExisits(subscriptionSet);
131
- utils.runIfExisits(subscriptionSource);
132
- utils.runIfExisits(subscriptionMeta);
130
+ withHasError.runIfExisits(subscriptionSet);
131
+ withHasError.runIfExisits(subscriptionSource);
132
+ withHasError.runIfExisits(subscriptionMeta);
133
133
  contextProtocol.clearStoresCache(index.getElement(component));
134
- utils.runIfExisits(disconnectedCallback, component);
134
+ withHasError.runIfExisits(disconnectedCallback, component);
135
135
  };
136
136
  return (names) => {
137
137
  datasets = names;
@@ -143,16 +143,91 @@ component, onUpdate, onMetaUpdate) => {
143
143
  };
144
144
  };
145
145
 
146
+ /**
147
+ * Mixin that provides i18n translation support to a Stencil component.
148
+ *
149
+ * Returns an object with a `t(key, data?)` function for looking up translated strings.
150
+ *
151
+ * **Key resolution shortcuts:**
152
+ * - A key starting with `.` (e.g. `.label`) is expanded to `<component-tag>.label`,
153
+ * allowing components to reference their own translations concisely.
154
+ * - If the key is not found in the component's namespace, the `_system` namespace
155
+ * is used as a fallback.
156
+ *
157
+ * **Mustache-style interpolation:** `{{variable}}` placeholders in translation
158
+ * templates are replaced with values from the optional `data` object.
159
+ *
160
+ * The mixin observes the `namespace` attribute on the host element and re-renders
161
+ * the component when the locale store updates for the active namespace.
162
+ *
163
+ * @param component - The Stencil component instance
164
+ * @returns Object containing the `t` translation function
165
+ */
166
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
167
+ const withTranslation = (component) => {
168
+ let subscription;
169
+ let namespace = undefined;
170
+ let stores;
171
+ const observer = new MutationObserver((mutations) => {
172
+ mutations.forEach((mutation) => {
173
+ if (mutation.attributeName === "namespace") {
174
+ namespace = index.getElement(component).getAttribute("namespace");
175
+ index.forceUpdate(component);
176
+ }
177
+ });
178
+ });
179
+ const connectedCallback = component["connectedCallback"];
180
+ component["connectedCallback"] = () => {
181
+ const element = index.getElement(component);
182
+ stores = contextProtocol.getStores(element);
183
+ observer.observe(element, { attributes: true, attributeFilter: ["namespace"] });
184
+ namespace = index.getElement(component).getAttribute("namespace");
185
+ subscription = stores.internationalization.on("set", (key, _value) => {
186
+ if (key === namespace) {
187
+ index.forceUpdate(component);
188
+ }
189
+ });
190
+ withHasError.runIfExisits(connectedCallback, component);
191
+ };
192
+ const disconnectedCallback = component["disconnectedCallback"];
193
+ component["disconnectedCallback"] = () => {
194
+ observer.disconnect();
195
+ withHasError.runIfExisits(subscription);
196
+ contextProtocol.clearStoresCache(index.getElement(component));
197
+ withHasError.runIfExisits(disconnectedCallback, component);
198
+ };
199
+ const t = (key, data) => {
200
+ var _a, _b;
201
+ if (key.startsWith(".")) {
202
+ key = index.getElement(component).localName + key;
203
+ }
204
+ const locales = stores.internationalization.state;
205
+ const locale = stores.context.state.locale;
206
+ let currentNamespace = namespace;
207
+ if (((_b = (_a = locales[currentNamespace]) === null || _a === void 0 ? void 0 : _a[locale]) === null || _b === void 0 ? void 0 : _b[key]) == null) {
208
+ currentNamespace = "_system";
209
+ }
210
+ const tpl = locales[currentNamespace][locale][key];
211
+ return tpl.replace(/{{([\s\S]+?)}}/g, (_, k) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data[k.trim()]) !== null && _a !== void 0 ? _a : ""; });
212
+ };
213
+ return { t };
214
+ };
215
+
146
216
  /**
147
217
  * Returns the available dimensions for a component.
148
218
  *
149
- * Width: parent content-box width (excluding padding).
219
+ * Width: visual parent's content-box width (excluding padding).
150
220
  * Height: walks up the DOM to find the nearest ancestor with a constrained
151
221
  * height (overflow !== 'visible' or explicit max-height). Falls back to
152
222
  * the viewport height when every ancestor auto-grows with its content.
223
+ *
224
+ * When the component is slotted into a shadow DOM (e.g. inside
225
+ * bn-layout-page or bn-layout-card), the light DOM parentElement is NOT the
226
+ * visual container. We cross the light→shadow boundary via assignedSlot to
227
+ * find the actual slot wrapper that determines layout.
153
228
  */
154
229
  function getParentDimensions(element) {
155
- const parent = element.parentElement;
230
+ const parent = findLayoutParent(element);
156
231
  if (!parent) {
157
232
  return { width: 0, height: 0 };
158
233
  }
@@ -161,13 +236,40 @@ function getParentDimensions(element) {
161
236
  const height = findConstrainedHeight(element);
162
237
  return { width: Math.max(0, width), height: Math.max(0, height) };
163
238
  }
239
+ /**
240
+ * Returns the visual layout parent of an element, crossing the
241
+ * light→shadow DOM boundary when the element's parent is slotted.
242
+ *
243
+ * For a slotted element, the light DOM parentElement is NOT where
244
+ * the element renders visually. The actual container is the shadow
245
+ * DOM element that wraps the <slot>. We reach it via assignedSlot.
246
+ */
247
+ function findLayoutParent(element) {
248
+ var _a;
249
+ const lightParent = element.parentElement;
250
+ if ((_a = lightParent === null || lightParent === void 0 ? void 0 : lightParent.assignedSlot) === null || _a === void 0 ? void 0 : _a.parentElement) {
251
+ return lightParent.assignedSlot.parentElement;
252
+ }
253
+ return lightParent;
254
+ }
255
+ /**
256
+ * Returns the visual parent, crossing shadow DOM boundaries via assignedSlot.
257
+ */
258
+ function getVisualParent(element) {
259
+ var _a;
260
+ if ((_a = element.assignedSlot) === null || _a === void 0 ? void 0 : _a.parentElement) {
261
+ return element.assignedSlot.parentElement;
262
+ }
263
+ return element.parentElement;
264
+ }
164
265
  /**
165
266
  * Walks up the ancestor chain to find a height that is actually constrained
166
- * (not just "whatever my content needs"). Returns viewport height as a
167
- * last resort.
267
+ * (not just "whatever my content needs"). Crosses shadow DOM boundaries
268
+ * via assignedSlot when encountering slotted elements. Returns viewport
269
+ * height as a last resort.
168
270
  */
169
271
  function findConstrainedHeight(element) {
170
- let current = element.parentElement;
272
+ let current = findLayoutParent(element);
171
273
  while (current) {
172
274
  const style = getComputedStyle(current);
173
275
  const overflow = style.overflowY;
@@ -182,7 +284,7 @@ function findConstrainedHeight(element) {
182
284
  return Math.min(mh, current.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom));
183
285
  }
184
286
  }
185
- current = current.parentElement;
287
+ current = getVisualParent(current);
186
288
  }
187
289
  // No constrained ancestor found — use viewport
188
290
  return typeof window !== "undefined" ? window.innerHeight : 0;
@@ -209,3 +311,4 @@ function parseScaling(scale) {
209
311
  exports.getParentDimensions = getParentDimensions;
210
312
  exports.parseScaling = parseScaling;
211
313
  exports.withDataset = withDataset;
314
+ exports.withTranslation = withTranslation;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-Cjw0q6gP.js');
4
- var utils = require('./utils-CwHIVbbL.js');
4
+ var withHasError = require('./withHasError-B8gHkfV2.js');
5
5
 
6
6
  /**
7
7
  * Mixin that observes changes to a component's text content.
@@ -27,12 +27,12 @@ const withBodyObserver = (component, onUpdate) => {
27
27
  const element = index.getElement(component);
28
28
  observer.observe(element, { childList: true, subtree: true, characterData: true });
29
29
  onUpdate(element.textContent);
30
- utils.runIfExisits(connectedCallback, component);
30
+ withHasError.runIfExisits(connectedCallback, component);
31
31
  };
32
32
  const disconnectedCallback = component["disconnectedCallback"];
33
33
  component["disconnectedCallback"] = () => {
34
34
  observer.disconnect();
35
- utils.runIfExisits(disconnectedCallback, component);
35
+ withHasError.runIfExisits(disconnectedCallback, component);
36
36
  };
37
37
  };
38
38
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var utils = require('./utils-CwHIVbbL.js');
3
+ var withHasError = require('./withHasError-B8gHkfV2.js');
4
4
 
5
5
  /** Lifecycle state of a tracked component instance. */
6
6
  var ComponentStatus;
@@ -88,21 +88,21 @@ var ComponentRegister;
88
88
  */
89
89
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
90
90
  const withComponentStatus = (component) => {
91
- const uuid = utils.generateUUID();
91
+ const uuid = withHasError.generateUUID();
92
92
  const connectedCallback = component["connectedCallback"];
93
93
  component["connectedCallback"] = () => {
94
94
  ComponentRegister.updateStatus(uuid, ComponentStatus.RUNNING);
95
- utils.runIfExisits(connectedCallback, component);
95
+ withHasError.runIfExisits(connectedCallback, component);
96
96
  };
97
97
  const componentWillRender = component["componentWillRender"];
98
98
  component["componentWillRender"] = () => {
99
99
  ComponentRegister.updateStatus(uuid, ComponentStatus.RUNNING);
100
- utils.runIfExisits(componentWillRender, component);
100
+ withHasError.runIfExisits(componentWillRender, component);
101
101
  };
102
102
  const componentDidRender = component["componentDidRender"];
103
103
  component["componentDidRender"] = () => {
104
104
  ComponentRegister.updateStatus(uuid, ComponentStatus.SUCCESSFUL);
105
- utils.runIfExisits(componentDidRender, component);
105
+ withHasError.runIfExisits(componentDidRender, component);
106
106
  };
107
107
  };
108
108