@bino-bi/bn-template-engine 1.0.0-alpha.17 → 1.0.0-alpha.18

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 (186) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-0107f0cc.entry.js +1 -0
  3. package/dist/bn-template-engine/p-209351c9.entry.js +1 -0
  4. package/dist/bn-template-engine/p-22d0fb7a.entry.js +1 -0
  5. package/dist/bn-template-engine/p-2e6dc267.entry.js +1 -0
  6. package/dist/bn-template-engine/p-485d23d7.entry.js +1 -0
  7. package/dist/bn-template-engine/p-5651417d.entry.js +1 -0
  8. package/dist/bn-template-engine/p-5bfdc1e5.entry.js +1 -0
  9. package/dist/bn-template-engine/p-6b75762d.entry.js +1 -0
  10. package/dist/bn-template-engine/{p-1a1fd8eb.entry.js → p-7bdc0e28.entry.js} +1 -1
  11. package/dist/bn-template-engine/p-9879c9b2.entry.js +1 -0
  12. package/dist/bn-template-engine/p-BWKdb9ym.js +1 -0
  13. package/dist/bn-template-engine/{p-CIXlJoMr.js → p-BZV1b5VH.js} +1 -1
  14. package/dist/bn-template-engine/p-Bdfxd_Ke.js +1 -0
  15. package/dist/bn-template-engine/p-BqhIhYr1.js +1 -0
  16. package/dist/bn-template-engine/p-C0Pwqx-O.js +1 -0
  17. package/dist/bn-template-engine/{p-44L8rZSd.js → p-CBqUr7I8.js} +1 -1
  18. package/dist/bn-template-engine/{p-COXiPUfj.js → p-CPzF3Q2m.js} +1 -1
  19. package/dist/bn-template-engine/{p-DHibUOw5.js → p-CiudZRQr.js} +1 -1
  20. package/dist/bn-template-engine/{p-B2KOyHRY.js → p-Dg9OcXAO.js} +1 -1
  21. package/dist/bn-template-engine/p-DsTzlzxQ.js +1 -0
  22. package/dist/bn-template-engine/p-X6CxL6W-.js +1 -0
  23. package/dist/bn-template-engine/p-a130cb43.entry.js +1 -0
  24. package/dist/bn-template-engine/p-aakBGfzL.js +1 -0
  25. package/dist/bn-template-engine/p-dc745c32.entry.js +1 -0
  26. package/dist/bn-template-engine/p-e96da91f.entry.js +1 -0
  27. package/dist/bn-template-engine/{p-d3fc17ee.entry.js → p-f3d1fa06.entry.js} +1 -1
  28. package/dist/bn-template-engine/p-fcb43f2c.entry.js +1 -0
  29. package/dist/bn-template-engine/p-rdqTC0_5.js +1 -0
  30. package/dist/cjs/{AxisConfig-B_GMRfX_.js → AxisConfig-VnVelfSV.js} +1 -1
  31. package/dist/cjs/LabelCollisionManager-nfD5P__k.js +412 -0
  32. package/dist/cjs/NumericScale-BAyYXpKL.js +107 -0
  33. package/dist/cjs/Order-DobBozQC.js +87 -0
  34. package/dist/cjs/{LabelCollisionManager-8HGn9W0V.js → SVGStyle-BQOmGWLX.js} +2 -409
  35. package/dist/cjs/SVGVariancesStyleGroup-DCGfHrqh.js +50 -0
  36. package/dist/cjs/{VarianceMeasure-DEOzP-XZ.js → VarianceMeasure-NY9yhiNV.js} +1 -1
  37. package/dist/cjs/{XYChartDataRow-CDl1Ofnv.js → XYChartDataRow-B7OKrAcC.js} +7 -111
  38. package/dist/cjs/bn-asset_21.cjs.entry.js +221 -263
  39. package/dist/cjs/bn-chart-bubble.cjs.entry.js +8 -7
  40. package/dist/cjs/bn-chart-bullet.cjs.entry.js +785 -0
  41. package/dist/cjs/bn-chart-scatter.cjs.entry.js +8 -7
  42. package/dist/cjs/bn-grid.cjs.entry.js +5 -4
  43. package/dist/cjs/bn-image.cjs.entry.js +5 -4
  44. package/dist/cjs/bn-internationalization.cjs.entry.js +2 -2
  45. package/dist/cjs/bn-ruleset.cjs.entry.js +2 -2
  46. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  47. package/dist/cjs/bn-template.cjs.entry.js +1 -1
  48. package/dist/cjs/bn-text.cjs.entry.js +6 -5
  49. package/dist/cjs/bn-tree.cjs.entry.js +4 -3
  50. package/dist/cjs/{context-protocol-CIuyJKkK.js → context-protocol-BDrMkhc4.js} +66 -0
  51. package/dist/cjs/editor-companion.cjs.entry.js +2 -2
  52. package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +20 -18
  53. package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +673 -0
  54. package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +19 -17
  55. package/dist/cjs/{layoutObserver-CJWRV_y6.js → layoutObserver-p0wXIWFg.js} +2 -2
  56. package/dist/cjs/loader.cjs.js +1 -1
  57. package/dist/cjs/{scaling-B4UPXivZ.js → scaling-BmqxcNOf.js} +1 -1
  58. package/dist/cjs/{withScalingGroup-D832DQKp.js → withScalingGroup-BmcRlWBs.js} +1 -1
  59. package/dist/cjs/{withStyled-COxuhL-N.js → withStyled-CRiC9fzc.js} +5 -86
  60. package/dist/collection/collection-manifest.json +2 -0
  61. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.css +10 -0
  62. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +1014 -0
  63. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.css +9 -0
  64. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.js +538 -0
  65. package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +440 -0
  66. package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +132 -0
  67. package/dist/collection/components/bn-chart-bullet/utils/model/BulletConfig.js +89 -0
  68. package/dist/collection/components/bn-chart-bullet/utils/model/index.js +2 -0
  69. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +1 -1
  70. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +1 -1
  71. package/dist/collection/components/bn-chart-time/bn-chart-time.js +1 -1
  72. package/dist/collection/components/bn-component-style/bn-component-style.js +1 -1
  73. package/dist/collection/components/bn-context/bn-context.js +1 -1
  74. package/dist/collection/components/bn-dataset/bn-dataset.js +1 -1
  75. package/dist/collection/components/bn-datasource/bn-datasource.js +1 -1
  76. package/dist/collection/components/bn-footer/bn-footer.js +1 -1
  77. package/dist/collection/components/bn-grid/bn-grid.js +1 -1
  78. package/dist/collection/components/bn-image/bn-image.js +1 -1
  79. package/dist/collection/components/bn-internationalization/bn-internationalization.js +1 -1
  80. package/dist/collection/components/bn-layout-card/bn-layout-card.js +1 -1
  81. package/dist/collection/components/bn-layout-page/bn-layout-page.js +1 -1
  82. package/dist/collection/components/bn-message/bn-message.js +1 -1
  83. package/dist/collection/components/bn-page/bn-page.js +1 -1
  84. package/dist/collection/components/bn-ruleset/bn-ruleset.js +1 -1
  85. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +1 -1
  86. package/dist/collection/components/bn-table/bn-table.js +1 -1
  87. package/dist/collection/components/bn-template/bn-template.js +1 -1
  88. package/dist/collection/components/bn-text/bn-text.js +1 -1
  89. package/dist/collection/components/bn-title/bn-title.js +1 -1
  90. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -1
  91. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  92. package/dist/collection/stores/componentStyles.js +38 -0
  93. package/dist/collection/stores/internationalization.js +28 -0
  94. package/dist/components/NumericScale.js +1 -0
  95. package/dist/components/Order.js +1 -1
  96. package/dist/components/XYChartDataRow.js +1 -1
  97. package/dist/components/bn-chart-bullet.d.ts +11 -0
  98. package/dist/components/bn-chart-bullet.js +1 -0
  99. package/dist/components/bn-chart-scatter.js +1 -1
  100. package/dist/components/bn-chart-structure.js +1 -1
  101. package/dist/components/bn-chart-time.js +1 -1
  102. package/dist/components/bn-component-style.js +1 -1
  103. package/dist/components/bn-context.js +1 -1
  104. package/dist/components/bn-dataset.js +1 -1
  105. package/dist/components/bn-datasource.js +1 -1
  106. package/dist/components/bn-footer2.js +1 -1
  107. package/dist/components/bn-grid.js +1 -1
  108. package/dist/components/bn-image.js +1 -1
  109. package/dist/components/bn-internationalization.js +1 -1
  110. package/dist/components/bn-layout-card.js +1 -1
  111. package/dist/components/bn-layout-page.js +1 -1
  112. package/dist/components/bn-message2.js +1 -1
  113. package/dist/components/bn-page2.js +1 -1
  114. package/dist/components/bn-ruleset.js +1 -1
  115. package/dist/components/bn-scaling-group.js +1 -1
  116. package/dist/components/bn-table.js +1 -1
  117. package/dist/components/bn-template.js +1 -1
  118. package/dist/components/bn-text.js +1 -1
  119. package/dist/components/bn-title2.js +1 -1
  120. package/dist/components/context-protocol.js +1 -1
  121. package/dist/components/editor-companion.js +1 -1
  122. package/dist/components/ibcs-chart-bubble2.js +1 -1
  123. package/dist/components/ibcs-chart-bullet.d.ts +11 -0
  124. package/dist/components/ibcs-chart-bullet.js +1 -0
  125. package/dist/components/ibcs-chart-bullet2.js +1 -0
  126. package/dist/components/ibcs-chart-scatter2.js +1 -1
  127. package/dist/components/ibcs-chart-structure2.js +1 -1
  128. package/dist/components/ibcs-chart-time2.js +1 -1
  129. package/dist/components/ibcs-table2.js +1 -1
  130. package/dist/components/ibcs-title2.js +1 -1
  131. package/dist/components/main.js +1 -0
  132. package/dist/components/stackColors.js +1 -1
  133. package/dist/esm/{AxisConfig-BwUQrme0.js → AxisConfig-C_zWCKlL.js} +1 -1
  134. package/dist/esm/LabelCollisionManager-8swVQHKA.js +404 -0
  135. package/dist/esm/NumericScale-DsTzlzxQ.js +105 -0
  136. package/dist/esm/Order-BPeWfygb.js +83 -0
  137. package/dist/esm/{LabelCollisionManager-DZP5Vl8T.js → SVGStyle-BxEDw9zh.js} +3 -403
  138. package/dist/esm/SVGVariancesStyleGroup-DRQYvSDD.js +48 -0
  139. package/dist/esm/{VarianceMeasure-Cxshx01h.js → VarianceMeasure-DnwNKspZ.js} +1 -1
  140. package/dist/esm/{XYChartDataRow-FF_VxRnF.js → XYChartDataRow-DeV4r-Wm.js} +5 -108
  141. package/dist/esm/bn-asset_21.entry.js +25 -67
  142. package/dist/esm/bn-chart-bubble.entry.js +8 -7
  143. package/dist/esm/bn-chart-bullet.entry.js +783 -0
  144. package/dist/esm/bn-chart-scatter.entry.js +8 -7
  145. package/dist/esm/bn-grid.entry.js +5 -4
  146. package/dist/esm/bn-image.entry.js +5 -4
  147. package/dist/esm/bn-internationalization.entry.js +2 -2
  148. package/dist/esm/bn-ruleset.entry.js +2 -2
  149. package/dist/esm/bn-template-engine.js +1 -1
  150. package/dist/esm/bn-template.entry.js +1 -1
  151. package/dist/esm/bn-text.entry.js +6 -5
  152. package/dist/esm/bn-tree.entry.js +4 -3
  153. package/dist/esm/{context-protocol-BNHTlllP.js → context-protocol-1Yj1uKvh.js} +66 -0
  154. package/dist/esm/editor-companion.entry.js +2 -2
  155. package/dist/esm/ibcs-chart-bubble.entry.js +6 -4
  156. package/dist/esm/ibcs-chart-bullet.entry.js +671 -0
  157. package/dist/esm/ibcs-chart-scatter.entry.js +6 -4
  158. package/dist/esm/{layoutObserver-D5FY_lQa.js → layoutObserver-DCbmpGrz.js} +2 -2
  159. package/dist/esm/loader.js +1 -1
  160. package/dist/esm/{scaling-B7Pa0d_s.js → scaling-B_k50v9z.js} +1 -1
  161. package/dist/esm/{withScalingGroup-DBheBsP4.js → withScalingGroup-Br70pAv9.js} +1 -1
  162. package/dist/esm/{withStyled-DTvj2nar.js → withStyled-Br2DGTPs.js} +4 -83
  163. package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +172 -0
  164. package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +52 -0
  165. package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +91 -0
  166. package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +70 -0
  167. package/dist/types/components/bn-chart-bullet/utils/model/BulletConfig.d.ts +43 -0
  168. package/dist/types/components/bn-chart-bullet/utils/model/index.d.ts +2 -0
  169. package/dist/types/components.d.ts +399 -4
  170. package/dist/types/stores/componentStyles.d.ts +20 -0
  171. package/package.json +1 -1
  172. package/dist/bn-template-engine/p-172499ac.entry.js +0 -1
  173. package/dist/bn-template-engine/p-19e65c04.entry.js +0 -1
  174. package/dist/bn-template-engine/p-2849c367.entry.js +0 -1
  175. package/dist/bn-template-engine/p-5dd11fcc.entry.js +0 -1
  176. package/dist/bn-template-engine/p-63f891d9.entry.js +0 -1
  177. package/dist/bn-template-engine/p-72f63181.entry.js +0 -1
  178. package/dist/bn-template-engine/p-836ad6f3.entry.js +0 -1
  179. package/dist/bn-template-engine/p-BnOTt2YD.js +0 -1
  180. package/dist/bn-template-engine/p-CDPTCKVx.js +0 -1
  181. package/dist/bn-template-engine/p-CPZIJpxn.js +0 -1
  182. package/dist/bn-template-engine/p-a50da0f0.entry.js +0 -1
  183. package/dist/bn-template-engine/p-a9a34fb2.entry.js +0 -1
  184. package/dist/bn-template-engine/p-b0369558.entry.js +0 -1
  185. package/dist/bn-template-engine/p-f8c46905.entry.js +0 -1
  186. package/dist/bn-template-engine/p-lIy3SJs2.js +0 -1
@@ -2,15 +2,18 @@
2
2
 
3
3
  var index = require('./index-CDKG4xmO.js');
4
4
  var withHasError = require('./withHasError-Cl2gTQzA.js');
5
- var contextProtocol = require('./context-protocol-CIuyJKkK.js');
5
+ var contextProtocol = require('./context-protocol-BDrMkhc4.js');
6
6
  var withBodyObserver = require('./withBodyObserver-BKUE_ypL.js');
7
- var withStyled = require('./withStyled-COxuhL-N.js');
8
- var scaling = require('./scaling-B4UPXivZ.js');
9
- var withScalingGroup = require('./withScalingGroup-D832DQKp.js');
10
- var layoutObserver = require('./layoutObserver-CJWRV_y6.js');
11
- var VarianceMeasure = require('./VarianceMeasure-DEOzP-XZ.js');
12
- var LabelCollisionManager = require('./LabelCollisionManager-8HGn9W0V.js');
7
+ var withStyled = require('./withStyled-CRiC9fzc.js');
8
+ var scaling = require('./scaling-BmqxcNOf.js');
9
+ var withScalingGroup = require('./withScalingGroup-BmcRlWBs.js');
10
+ var layoutObserver = require('./layoutObserver-p0wXIWFg.js');
11
+ var VarianceMeasure = require('./VarianceMeasure-NY9yhiNV.js');
12
+ var Order = require('./Order-DobBozQC.js');
13
+ var SVGStyle = require('./SVGStyle-BQOmGWLX.js');
13
14
  var sanitizeHtml = require('./sanitizeHtml-LuZr1IMd.js');
15
+ var LabelCollisionManager = require('./LabelCollisionManager-nfD5P__k.js');
16
+ var SVGVariancesStyleGroup = require('./SVGVariancesStyleGroup-DCGfHrqh.js');
14
17
 
15
18
  const bnAssetCss = () => `:host{display:none}`;
16
19
 
@@ -714,8 +717,8 @@ const Chart$1 = class Chart {
714
717
  orderStr = effectiveOrder;
715
718
  }
716
719
  const tableOrder = {
717
- hierarchy: orderStr === null || orderStr === void 0 ? void 0 : orderStr.split(",").map((entry) => withStyled.OrderColumn[entry === null || entry === void 0 ? void 0 : entry.toUpperCase()]),
718
- direction: withStyled.OrderDirection[effectiveDirection === null || effectiveDirection === void 0 ? void 0 : effectiveDirection.toUpperCase()],
720
+ hierarchy: orderStr === null || orderStr === void 0 ? void 0 : orderStr.split(",").map((entry) => Order.OrderColumn[entry === null || entry === void 0 ? void 0 : entry.toUpperCase()]),
721
+ direction: Order.OrderDirection[effectiveDirection === null || effectiveDirection === void 0 ? void 0 : effectiveDirection.toUpperCase()],
719
722
  };
720
723
  return tableOrder;
721
724
  }
@@ -903,7 +906,7 @@ const Chart$1 = class Chart {
903
906
  scenariosArray = [...scenariosArray, ...variancesArray];
904
907
  }
905
908
  const fontStyles = this.getFontStyles();
906
- return (index.h(index.Host, { key: '47c720a82d86db4bbae43818b1ff8a32e6f38bf8', style: fontStyles }, index.h("div", { key: '82ece19acfee49d6bdbd74f18126a178ef0667c9', class: "container" }, scenariosArray.map(this.chartTemplate))));
909
+ return (index.h(index.Host, { key: 'dd704d2ab46ee7a34213eab0188671e3df4ca592', style: fontStyles }, index.h("div", { key: '71c53b1dbd77e68a46e63fdf252cd11efb6a79a6', class: "container" }, scenariosArray.map(this.chartTemplate))));
907
910
  }
908
911
  get element() { return index.getElement(this); }
909
912
  static get watchers() { return {
@@ -1744,8 +1747,8 @@ const Chart = class {
1744
1747
  }
1745
1748
  }
1746
1749
  const tableOrder = {
1747
- hierarchy: [withStyled.OrderColumn[entryValue === null || entryValue === void 0 ? void 0 : entryValue.toUpperCase()]],
1748
- direction: withStyled.OrderDirection[effectiveDirection === null || effectiveDirection === void 0 ? void 0 : effectiveDirection.toUpperCase()],
1750
+ hierarchy: [Order.OrderColumn[entryValue === null || entryValue === void 0 ? void 0 : entryValue.toUpperCase()]],
1751
+ direction: Order.OrderDirection[effectiveDirection === null || effectiveDirection === void 0 ? void 0 : effectiveDirection.toUpperCase()],
1749
1752
  };
1750
1753
  return tableOrder;
1751
1754
  }
@@ -1793,7 +1796,7 @@ const Chart = class {
1793
1796
  if (this.syncSpaceLeft > -1) {
1794
1797
  return this.syncSpaceLeft;
1795
1798
  }
1796
- const leftSideOffset = LabelCollisionManager.Formatter.getMaxWidthOfArrayItems([...this.prepareVariances(), ...this.prepareScenarios(), this.chartTitle], preparedI18n, preparedStyle);
1799
+ const leftSideOffset = SVGStyle.Formatter.getMaxWidthOfArrayItems([...this.prepareVariances(), ...this.prepareScenarios(), this.chartTitle], preparedI18n, preparedStyle);
1797
1800
  //if(leftSideOffset < this.syncSpaceLeft) {
1798
1801
  // return this.syncSpaceLeft;
1799
1802
  //}
@@ -1994,7 +1997,7 @@ const Chart = class {
1994
1997
  scenariosArray = [...scenariosArray, ...variancesArray];
1995
1998
  }
1996
1999
  const fontStyles = this.getFontStyles();
1997
- return (index.h(index.Host, { key: '24ae704ef08048b28578c9616b07d84d0ac7b13c', style: fontStyles }, index.h("div", { key: '79c4a900b6689993d8283e4e05f9a91069491b1c', class: "container" }, scenariosArray.map(this.chartTemplate))));
2000
+ return (index.h(index.Host, { key: 'df8b91008f6f0d178bd3df91eb99a338f1734f27', style: fontStyles }, index.h("div", { key: '094f47f7f698b8cd87096066ae608b67c1258d71', class: "container" }, scenariosArray.map(this.chartTemplate))));
1998
2001
  }
1999
2002
  get element() { return index.getElement(this); }
2000
2003
  static get watchers() { return {
@@ -2093,7 +2096,7 @@ const ComponentStyle = class {
2093
2096
  });
2094
2097
  }
2095
2098
  render() {
2096
- return index.h(index.Host, { key: 'b920e4a086d748a1d9ec921e6bf92fa26a7e6c7d' });
2099
+ return index.h(index.Host, { key: '9138ba4914f990823213f637bdc65274669bfe86' });
2097
2100
  }
2098
2101
  get element() { return index.getElement(this); }
2099
2102
  };
@@ -2149,7 +2152,7 @@ const Context = class {
2149
2152
  componentWillUpdate() { }
2150
2153
  componentDidUpdate() { }
2151
2154
  render() {
2152
- return (index.h(index.Host, { key: '951ae1073a4b43e9b5382e17c6afb0faab120a01' }, index.h("slot", { key: '4337496bfb68b431c90855b81d05f3f469e7f259' })));
2155
+ return (index.h(index.Host, { key: 'f4f3a64c06e0cd8fa4863007ba25cacc74194e45' }, index.h("slot", { key: 'ee5dd7d7065107f657f1d92cdf91eedbd94f8f81' })));
2153
2156
  }
2154
2157
  get element() { return index.getElement(this); }
2155
2158
  static get watchers() { return {
@@ -3041,7 +3044,7 @@ const Dataset = class {
3041
3044
  }
3042
3045
  }
3043
3046
  render() {
3044
- return index.h(index.Host, { key: '483ee52a7ad5547dd8f3cf8117963bad39222f82' });
3047
+ return index.h(index.Host, { key: 'bfa62b924abb8097cd9bad75eb71ab38caf02267' });
3045
3048
  }
3046
3049
  get element() { return index.getElement(this); }
3047
3050
  static get watchers() { return {
@@ -3217,7 +3220,7 @@ const Datasource = class {
3217
3220
  }
3218
3221
  }
3219
3222
  render() {
3220
- return index.h(index.Host, { key: 'f78ba1b36a4fccb5016a08845e838814ccc8bb6c' });
3223
+ return index.h(index.Host, { key: '4beaa62937dea949255669bfd5008a2928e460fc' });
3221
3224
  }
3222
3225
  get element() { return index.getElement(this); }
3223
3226
  static get watchers() { return {
@@ -3274,7 +3277,7 @@ const Footer$1 = class Footer {
3274
3277
  return `./assets/${imgUrl}.png`;
3275
3278
  }
3276
3279
  render() {
3277
- return (index.h(index.Host, { key: '07c01136b8130b2fc121eb5f4f6a9d999b863e76', id: this.displayPageNumber || this.text || this.code ? "container-page-footer" : "container", style: this.getFontStyles() }, index.h("div", { key: '2277a4f74c64e2ddb2e2248f3e92c79fa9134368', id: "footer-text" }, this.text != null ? index.h("span", { class: "note" }, this.text) : ""), index.h("div", { key: '88676f2510a345fe376302c30f9e8a5679cacbbc', id: "code" }, this.code != null ? index.h("img", { class: "image", src: index.getAssetPath(`${this.prepareAssetUrl(this.code)}`) }) : ""), index.h("div", { key: '76cf057f846ce92d7d20a213c3fcf08a41250a07', id: "page-number" }, this.displayPageNumber ? index.h("span", { class: "page" }, this.pageNumber) : "")));
3280
+ return (index.h(index.Host, { key: '666fa787056f32825c15427f2a6c15b971fbc25e', id: this.displayPageNumber || this.text || this.code ? "container-page-footer" : "container", style: this.getFontStyles() }, index.h("div", { key: '691752d51748c4e1eb7ec25d380c00ddf0095c83', id: "footer-text" }, this.text != null ? index.h("span", { class: "note" }, this.text) : ""), index.h("div", { key: '561a81e063e110ef6386fb0056a05f1b6a0e0f44', id: "code" }, this.code != null ? index.h("img", { class: "image", src: index.getAssetPath(`${this.prepareAssetUrl(this.code)}`) }) : ""), index.h("div", { key: '963658fcff1a6dd07b448f85e8d170000422e3cc', id: "page-number" }, this.displayPageNumber ? index.h("span", { class: "page" }, this.pageNumber) : "")));
3278
3281
  }
3279
3282
  static get assetsDirs() { return ["assets"]; }
3280
3283
  get element() { return index.getElement(this); }
@@ -3560,7 +3563,7 @@ const LayoutCard = class {
3560
3563
  var _a, _b, _c, _d, _e;
3561
3564
  const style = this.getLayoutStyle();
3562
3565
  const arrOfSlots = this.extractSlotNames(style["grid-template-areas"]);
3563
- return (index.h("bn-card", { key: 'fd78ac2ccd6742b6be6e726f90aa64ede009cc6f', styles: this.styles, "selected-style": this.selectedStyle, class: this.setCardClass() }, index.h("div", { key: '7089fae2d8cb7f4cc193ded4ab371af706971476', class: "cardtitle" }, index.h("bn-title", { key: 'ddafc110dfc6c41995c88e671401c92d6a281beb', namespace: this.titleNamespace, ruleset: (_a = this.resolveInherited("ruleset", this.ruleset)) !== null && _a !== void 0 ? _a : this.ruleset, "business-unit": this.titleBusinessUnit, scenarios: (_b = this.resolveInherited("titleScenarios", this.titleScenarios)) !== null && _b !== void 0 ? _b : this.titleScenarios, variances: (_c = this.resolveInherited("titleVariances", this.titleVariances)) !== null && _c !== void 0 ? _c : this.titleVariances, order: (_d = this.resolveInherited("titleOrder", this.titleOrder)) !== null && _d !== void 0 ? _d : this.titleOrder, "order-direction": (_e = this.resolveInherited("titleOrderDirection", this.titleOrderDirection)) !== null && _e !== void 0 ? _e : this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), this.titleImage != null && this.titleImage !== "" ? (index.h("img", { class: "image", src: this.prepareTitleImage(this.titleImage) })) : ("")), index.h("bn-body", { key: '472abe3e7640d7735d0b15b88ec0c3036d1862a1' }, index.h("div", { key: 'e9e1970e093f3f9a00707a5b8bf5e6624b53974a', style: style, "data-bn-fit-content": this.cardFitToContent ? String(this.getRowCount(this.cardLayout)) : null }, this.getSlots(arrOfSlots))), index.h("bn-footer", { key: '2562532b8916d6316c019d93e2eab6e27fdca031', text: this.footerText, "page-number": 0, "display-page-number": "false" })));
3566
+ return (index.h("bn-card", { key: '463870e184f942e7f9cefa3624884c888c301bab', styles: this.styles, "selected-style": this.selectedStyle, class: this.setCardClass() }, index.h("div", { key: '97488f38c561c22d774836f2081e44f852084280', class: "cardtitle" }, index.h("bn-title", { key: '8f5f8bb49aa5f24c4e683822e6f263ac69ed3284', namespace: this.titleNamespace, ruleset: (_a = this.resolveInherited("ruleset", this.ruleset)) !== null && _a !== void 0 ? _a : this.ruleset, "business-unit": this.titleBusinessUnit, scenarios: (_b = this.resolveInherited("titleScenarios", this.titleScenarios)) !== null && _b !== void 0 ? _b : this.titleScenarios, variances: (_c = this.resolveInherited("titleVariances", this.titleVariances)) !== null && _c !== void 0 ? _c : this.titleVariances, order: (_d = this.resolveInherited("titleOrder", this.titleOrder)) !== null && _d !== void 0 ? _d : this.titleOrder, "order-direction": (_e = this.resolveInherited("titleOrderDirection", this.titleOrderDirection)) !== null && _e !== void 0 ? _e : this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), this.titleImage != null && this.titleImage !== "" ? (index.h("img", { class: "image", src: this.prepareTitleImage(this.titleImage) })) : ("")), index.h("bn-body", { key: '1976084cef975f9aa6c857dc690d5ac4b180a88e' }, index.h("div", { key: '5c4290635821b1896135f35fcf3e045d504803bb', style: style, "data-bn-fit-content": this.cardFitToContent ? String(this.getRowCount(this.cardLayout)) : null }, this.getSlots(arrOfSlots))), index.h("bn-footer", { key: '7338dd8bfdc3a43cfc6f8ad7b99f007d44496fc8', text: this.footerText, "page-number": 0, "display-page-number": "false" })));
3564
3567
  }
3565
3568
  get element() { return index.getElement(this); }
3566
3569
  };
@@ -3818,7 +3821,7 @@ const LayoutPage = class {
3818
3821
  render() {
3819
3822
  const style = this.getLayoutStyle();
3820
3823
  const arrOfSlots = this.extractSlotNames(style["grid-template-areas"]);
3821
- return (index.h("bn-page", { key: 'c07ff4c3b0d39b1afa36b6bdd015ee4c88c22404', styles: this.styles, "selected-style": this.selectedStyle, format: this.pageFormat, orientation: this.pageOrientation }, index.h("bn-message", { key: 'e65c9d9f97f1ce63ebcf5c255b7b1c9457fb72c4', text: this.messageText, image: this.messageImage }), index.h("bn-title", { key: 'c69cf9dce72afe3f23c5642d80287926e443e7e1', namespace: this.titleNamespace, ruleset: this.ruleset, "business-unit": this.titleBusinessUnit, scenarios: this.titleScenarios, variances: this.titleVariances, order: this.titleOrder, "order-direction": this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), index.h("bn-body", { key: 'c5ef984f19253a42464e81eb5c70037f3b1ed111' }, index.h("div", { key: '5a54ccdc4d8e221f45cee1a4e43cf0b388818ce3', style: style, "data-bn-fit-content": this.pageFitToContent ? String(this.getRowCount(this.pageLayout)) : null }, this.getSlots(arrOfSlots))), index.h("bn-footer", { key: '41ad417476586a1f40aa838d96d08a8336d04a93', text: this.footerText, "page-number": this.pageNumber, "display-page-number": this.footerDisplayPageNumber })));
3824
+ return (index.h("bn-page", { key: 'd38690fd46d6ed0319cee6be00a9af439425f4f2', styles: this.styles, "selected-style": this.selectedStyle, format: this.pageFormat, orientation: this.pageOrientation }, index.h("bn-message", { key: '860994ef08afa528be6a609cf24459ecfcfd42ae', text: this.messageText, image: this.messageImage }), index.h("bn-title", { key: '10ede4a5387ca6d1182d4204934d9ec0851dd380', namespace: this.titleNamespace, ruleset: this.ruleset, "business-unit": this.titleBusinessUnit, scenarios: this.titleScenarios, variances: this.titleVariances, order: this.titleOrder, "order-direction": this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), index.h("bn-body", { key: '6de8a070c887717ed6d46edcbe240661763bb2e6' }, index.h("div", { key: 'd25c50b3b5122ff193c75ca93af36b8a1debb0e9', style: style, "data-bn-fit-content": this.pageFitToContent ? String(this.getRowCount(this.pageLayout)) : null }, this.getSlots(arrOfSlots))), index.h("bn-footer", { key: '725a98e64a36859b546011b5339303f455bb0744', text: this.footerText, "page-number": this.pageNumber, "display-page-number": this.footerDisplayPageNumber })));
3822
3825
  }
3823
3826
  get element() { return index.getElement(this); }
3824
3827
  };
@@ -3859,7 +3862,7 @@ const Footer = class {
3859
3862
  return assetsState[value] || value;
3860
3863
  }
3861
3864
  render() {
3862
- return (index.h(index.Host, { key: '83f39ae717c41c0861dc593bf732a81a82635ac1', id: this.text || this.image ? "container-page-message" : "container", style: this.getFontStyles() }, index.h("div", { key: 'bd76f6bb557d9312092f116ab0aaaa950e505acf', id: "message-text" }, this.text != null && this.text !== "" ? index.h("span", { class: "note", innerHTML: sanitizeHtml.sanitizeHtml(this.text) }) : ""), index.h("div", { key: 'de1e14e4115f76a00b64994e7b6dbec7c75b4ea5', id: "page-image" }, this.image != null && this.image !== "" ? index.h("img", { class: "image", src: this.prepareAssetUrl(this.image) }) : "")));
3865
+ return (index.h(index.Host, { key: '2865cf0252e528ecb1cb1c60694ea129e53d92e5', id: this.text || this.image ? "container-page-message" : "container", style: this.getFontStyles() }, index.h("div", { key: 'df47160da185163b2e5eaeb845321734614ef107', id: "message-text" }, this.text != null && this.text !== "" ? index.h("span", { class: "note", innerHTML: sanitizeHtml.sanitizeHtml(this.text) }) : ""), index.h("div", { key: '59c2eb3ac2e439d4f6f5fdd4d68b42a220c2122f', id: "page-image" }, this.image != null && this.image !== "" ? index.h("img", { class: "image", src: this.prepareAssetUrl(this.image) }) : "")));
3863
3866
  }
3864
3867
  static get assetsDirs() { return ["assets"]; }
3865
3868
  get element() { return index.getElement(this); }
@@ -3904,7 +3907,7 @@ const Page = class {
3904
3907
  }
3905
3908
  }
3906
3909
  render() {
3907
- return (index.h(index.Host, { key: '7623fe9a67534d467f10d7ad25afb201e895110f', format: this.format, orientation: this.orientation, style: this.prepareStyle() }, index.h("slot", { key: '8a2e3cce4449d2ce5ce898aff45ca8b4b903ab6c' })));
3910
+ return (index.h(index.Host, { key: '8ca8dd9381a7d4cd5dc3e85b7f1de1fdfbc07d54', format: this.format, orientation: this.orientation, style: this.prepareStyle() }, index.h("slot", { key: '2fffa1f8dd81286f63dea8be433559a9569b94de' })));
3908
3911
  }
3909
3912
  prepareStyle() {
3910
3913
  const pageStyle = {
@@ -3984,7 +3987,7 @@ const ScalingGroup = class {
3984
3987
  this.stores.scalingGroups.set(trimmedName, this.value);
3985
3988
  }
3986
3989
  render() {
3987
- return index.h(index.Host, { key: 'fe1325e81399fceb3ec75c1289d3479f88045baa' });
3990
+ return index.h(index.Host, { key: '954d0817ee263278c7922e10b9a0da3d85e6bbd8' });
3988
3991
  }
3989
3992
  get element() { return index.getElement(this); }
3990
3993
  static get watchers() { return {
@@ -4988,8 +4991,8 @@ const Table$1 = class Table {
4988
4991
  orderStr = this.datasetMeta.suggestedOrder;
4989
4992
  }
4990
4993
  const tableOrder = {
4991
- hierarchy: orderStr.split(",").map((entry) => withStyled.OrderColumn[entry === null || entry === void 0 ? void 0 : entry.toUpperCase()]),
4992
- direction: withStyled.OrderDirection[effectiveDirection === null || effectiveDirection === void 0 ? void 0 : effectiveDirection.toUpperCase()],
4994
+ hierarchy: orderStr.split(",").map((entry) => Order.OrderColumn[entry === null || entry === void 0 ? void 0 : entry.toUpperCase()]),
4995
+ direction: Order.OrderDirection[effectiveDirection === null || effectiveDirection === void 0 ? void 0 : effectiveDirection.toUpperCase()],
4993
4996
  };
4994
4997
  return tableOrder;
4995
4998
  }
@@ -5300,7 +5303,7 @@ const Table$1 = class Table {
5300
5303
  render() {
5301
5304
  const fontStyles = this.getFontStyles();
5302
5305
  const effectiveFactor = this.getEffectiveScaleFactor();
5303
- return (index.h(index.Host, { key: 'c17878caebdbc1921880dfb1f784f553b9522108', style: fontStyles }, index.h("div", { key: '58babcce2a4fc3892609e86b8c7ce3b44286311f' }, index.h("ibcs-table", { key: '27cc8a7bef5b641943311af29d819dc7e10089cf', tableName: this.datasetName, dataVersion: this.dataVersion, sumTitle: this.prepareSumTitle(), scenarios: this.prepareScenarios(), scenariosDataFormat: this.prepareDataFormat(), grouped: this.prepareGrouped(), limit: this.prepareLimit(), showGroupTitle: this.prepareShowGroupTitle(), thereof: this.prepareThereOf(), partof: this.preparePartOf(), order: this.prepareOrder(), categorythereof: this.prepareColumnThereOf(), attributeColumns: this.prepareAttributes(), type: this.prepareTableType(), categoryWidth: this.prepareCategoryWidth(), dataFormatDigits: this.prepareDataFormatDigits(), i18n: this.prepareI18n(), i18nMode: this.prepareI18nMode(), measureScale: this.prepareMeasureScale(), measureType: this.prepareMeasureType(), measureUnit: this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(), filter: this.prepareFilter(), barColumns: this.prepareBarColumns(), interval: this.prepareInterval(), barColumnMaxWidth: this.prepareBarColumnWidth(), unitScaling: this.prepareUnitScaling(), percentageScaling: this.preparePercentageScaling(), scaleFactor: effectiveFactor, ruleSetConfig: this.ruleSetConfig() }))));
5306
+ return (index.h(index.Host, { key: '8138a13b9320b33d97ee055103e9351478aac54d', style: fontStyles }, index.h("div", { key: '64ba0570aeab268cd163ecf6e1377d80d2578763' }, index.h("ibcs-table", { key: '1d827bc2009398c06fe302da6a32bb3a80ef04f4', tableName: this.datasetName, dataVersion: this.dataVersion, sumTitle: this.prepareSumTitle(), scenarios: this.prepareScenarios(), scenariosDataFormat: this.prepareDataFormat(), grouped: this.prepareGrouped(), limit: this.prepareLimit(), showGroupTitle: this.prepareShowGroupTitle(), thereof: this.prepareThereOf(), partof: this.preparePartOf(), order: this.prepareOrder(), categorythereof: this.prepareColumnThereOf(), attributeColumns: this.prepareAttributes(), type: this.prepareTableType(), categoryWidth: this.prepareCategoryWidth(), dataFormatDigits: this.prepareDataFormatDigits(), i18n: this.prepareI18n(), i18nMode: this.prepareI18nMode(), measureScale: this.prepareMeasureScale(), measureType: this.prepareMeasureType(), measureUnit: this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(), filter: this.prepareFilter(), barColumns: this.prepareBarColumns(), interval: this.prepareInterval(), barColumnMaxWidth: this.prepareBarColumnWidth(), unitScaling: this.prepareUnitScaling(), percentageScaling: this.preparePercentageScaling(), scaleFactor: effectiveFactor, ruleSetConfig: this.ruleSetConfig() }))));
5304
5307
  }
5305
5308
  get element() { return index.getElement(this); }
5306
5309
  static get watchers() { return {
@@ -5602,7 +5605,7 @@ const Title$1 = class Title {
5602
5605
  }
5603
5606
  return {
5604
5607
  hierarchy: this.order.split(",").map((entry) => entry.trim()),
5605
- direction: withStyled.OrderDirection[(_a = this.orderDirection) === null || _a === void 0 ? void 0 : _a.toUpperCase()],
5608
+ direction: Order.OrderDirection[(_a = this.orderDirection) === null || _a === void 0 ? void 0 : _a.toUpperCase()],
5606
5609
  };
5607
5610
  }
5608
5611
  prepareTitleTimePeriod() {
@@ -5659,7 +5662,7 @@ const Title$1 = class Title {
5659
5662
  }
5660
5663
  render() {
5661
5664
  const fontStyles = this.getFontStyles();
5662
- return (index.h(index.Host, { key: '4f64c957500d566f6ff3d3abe88e77d956f997de', style: fontStyles }, index.h("ibcs-title", { key: 'ee6c785ae9f0d9a703a4a05c063ff02f1595da64', businessUnit: this.prepareBusinessUnit(), scenarios: this.prepareScenarios(), measures: this.prepareMeasures(), timeperiod: this.prepareTitleTimePeriod(), order: this.prepareTitleOrder(), i18n: this.prepareI18n(), "i18n-mode": this.prepareI18nMode(), ruleSetConfig: this.ruleSetConfig() })));
5665
+ return (index.h(index.Host, { key: 'de097e2e8afe7fcf3268487b45b380e42448feab', style: fontStyles }, index.h("ibcs-title", { key: 'af0cb1c88c434e92d3fea1a71bf4d0687158353f', businessUnit: this.prepareBusinessUnit(), scenarios: this.prepareScenarios(), measures: this.prepareMeasures(), timeperiod: this.prepareTitleTimePeriod(), order: this.prepareTitleOrder(), i18n: this.prepareI18n(), "i18n-mode": this.prepareI18nMode(), ruleSetConfig: this.ruleSetConfig() })));
5663
5666
  }
5664
5667
  get element() { return index.getElement(this); }
5665
5668
  static get watchers() { return {
@@ -6018,7 +6021,7 @@ let MarkerPattern$1 = class MarkerPattern {
6018
6021
  */
6019
6022
  let CustomPattern$1 = class CustomPattern {
6020
6023
  constructor(styles) {
6021
- this.container = new LabelCollisionManager.Svg();
6024
+ this.container = new SVGStyle.Svg();
6022
6025
  this.pattern = this.createFCPattern(this.container.group(), styles);
6023
6026
  this.styles = styles;
6024
6027
  const backgroundFactor = 1;
@@ -6176,7 +6179,7 @@ DataAnalyzer.unitsLeast = ["m", "my", "n", "p", "P", "f", "a", "z", "y"];
6176
6179
 
6177
6180
  class StringAdapter {
6178
6181
  adapt(data) {
6179
- return withStyled.AdapterUtils.adaptDefaultString(data);
6182
+ return Order.AdapterUtils.adaptDefaultString(data);
6180
6183
  }
6181
6184
  default() {
6182
6185
  return "";
@@ -6204,7 +6207,7 @@ class StructureChartComponentConfig {
6204
6207
  this.pixelPerPercentage = 50;
6205
6208
  /** Maximum data points to display; 0 means unlimited. */
6206
6209
  this.limit = 0;
6207
- this.sortOrder = new withStyled.OrderAdapter(new StringAdapter()).default();
6210
+ this.sortOrder = new Order.OrderAdapter(new StringAdapter()).default();
6208
6211
  this.level = VarianceMeasure.AggregationLevel.CATEGORY;
6209
6212
  this.filter = "";
6210
6213
  /** SI prefix for measure scaling (e.g. "k" for thousands, "M" for millions). */
@@ -6231,11 +6234,11 @@ class StructureChartComponentConfigAdapter {
6231
6234
  this.fromExpr = fromExpr;
6232
6235
  }
6233
6236
  adapt(data) {
6234
- const dataSet = withStyled.AdapterUtils.adaptArray(data.data, this.dataRowAdapter);
6235
- const scenarios = withStyled.AdapterUtils.adaptArray(data.scenarios, this.stringAdapter);
6237
+ const dataSet = Order.AdapterUtils.adaptArray(data.data, this.dataRowAdapter);
6238
+ const scenarios = Order.AdapterUtils.adaptArray(data.scenarios, this.stringAdapter);
6236
6239
  const config = new StructureChartComponentConfig(dataSet, scenarios);
6237
6240
  if (VarianceMeasure.CompareUtil.isArray(data.variances)) {
6238
- config.variances = withStyled.AdapterUtils.adaptArray(data.variances, this.stringAdapter);
6241
+ config.variances = Order.AdapterUtils.adaptArray(data.variances, this.stringAdapter);
6239
6242
  }
6240
6243
  if (VarianceMeasure.CompareUtil.isString(data.title)) {
6241
6244
  config.title = data.title;
@@ -6801,7 +6804,7 @@ class Label {
6801
6804
  scale = measureScale.value;
6802
6805
  type = "decimal";
6803
6806
  }
6804
- valueStr = LabelCollisionManager.Formatter.number(Number(value), type, digits, digitsMin, scale);
6807
+ valueStr = SVGStyle.Formatter.number(Number(value), type, digits, digitsMin, scale);
6805
6808
  if (Number(this.value) < 0) {
6806
6809
  labelAnchor = "end";
6807
6810
  }
@@ -7706,7 +7709,7 @@ class StructureChart {
7706
7709
  this.rowCount = 0;
7707
7710
  this.db = db;
7708
7711
  this.tableName = tableName;
7709
- this.ruleSet = ruleSet || new LabelCollisionManager.IBCSRuleSet();
7712
+ this.ruleSet = ruleSet || new SVGStyle.IBCSRuleSet();
7710
7713
  this.i18n = this.createI18n(new Map());
7711
7714
  this.styles = styles;
7712
7715
  this.setConfig(config);
@@ -7728,7 +7731,7 @@ class StructureChart {
7728
7731
  this.styles = newStyle;
7729
7732
  }
7730
7733
  setRuleSet(ruleSet) {
7731
- this.ruleSet = ruleSet || new LabelCollisionManager.IBCSRuleSet();
7734
+ this.ruleSet = ruleSet || new SVGStyle.IBCSRuleSet();
7732
7735
  }
7733
7736
  setConfig(config) {
7734
7737
  var _a;
@@ -7746,7 +7749,7 @@ class StructureChart {
7746
7749
  this.populateDimensionStackSegments(scenarios, config.stackConfig, config.level);
7747
7750
  }
7748
7751
  this.variancesDataModel = this.populateVarianceModel(config.variances, this.dataModel);
7749
- this.title = config.title || LabelCollisionManager.Formatter.translateScenarioLabel((_a = config === null || config === void 0 ? void 0 : config.variances) === null || _a === void 0 ? void 0 : _a.toString(), this.i18n);
7752
+ this.title = config.title || SVGStyle.Formatter.translateScenarioLabel((_a = config === null || config === void 0 ? void 0 : config.variances) === null || _a === void 0 ? void 0 : _a.toString(), this.i18n);
7750
7753
  this.smallestDataPointValue = this.findSmallestDataPointValue(this.dataModel);
7751
7754
  this.smallestVarianceDataPointValue = this.findSmallestDataPointValue(this.variancesDataModel);
7752
7755
  this.highestDataPointValue = this.findHighestDataPointValue(this.dataModel);
@@ -7889,7 +7892,7 @@ class StructureChart {
7889
7892
  return "<svg></svg>";
7890
7893
  }
7891
7894
  toString() {
7892
- const container = new LabelCollisionManager.Svg();
7895
+ const container = new SVGStyle.Svg();
7893
7896
  this.draw(container);
7894
7897
  container.id("drawCanvas");
7895
7898
  container.width(this.getAllocatedCanvasWidth());
@@ -7920,7 +7923,7 @@ class StructureChart {
7920
7923
  }
7921
7924
  calculateTitleLength(minWidth) {
7922
7925
  const tmpTitle = "_______"; // default width if this.title is sorther
7923
- const width = LabelCollisionManager.CalculateSize(this.title.length > tmpTitle.length ? this.title : tmpTitle, {
7926
+ const width = SVGStyle.CalculateSize(this.title.length > tmpTitle.length ? this.title : tmpTitle, {
7924
7927
  font: this.styles.fontStyles.font,
7925
7928
  fontSize: this.styles.fontStyles.size + "px",
7926
7929
  }).width;
@@ -7933,12 +7936,12 @@ class StructureChart {
7933
7936
  if (this.measureScale.value === 1 && this.measureUnit === "") {
7934
7937
  return " ";
7935
7938
  }
7936
- return LabelCollisionManager.Formatter.translateScenarioLabel("in", this.i18n) + " " + this.measureScale.prefix + this.measureUnit;
7939
+ return SVGStyle.Formatter.translateScenarioLabel("in", this.i18n) + " " + this.measureScale.prefix + this.measureUnit;
7937
7940
  }
7938
7941
  setAxisScenario(scenarios) {
7939
7942
  let result = Scenario$1.AC1;
7940
7943
  if (scenarios != null && scenarios.length > 0) {
7941
- const axis = new LabelCollisionManager.VarianceScenario(scenarios.toString());
7944
+ const axis = new SVGStyle.VarianceScenario(scenarios.toString());
7942
7945
  if (axis.isValid) {
7943
7946
  result = axis.delta;
7944
7947
  }
@@ -7983,7 +7986,7 @@ class StructureChart {
7983
7986
  detectNaNCells(scenarios, res) {
7984
7987
  res.forEach((row) => {
7985
7988
  scenarios.forEach((scenario) => {
7986
- const varianceScenario = new LabelCollisionManager.VarianceScenario(scenario);
7989
+ const varianceScenario = new SVGStyle.VarianceScenario(scenario);
7987
7990
  if (varianceScenario.isValid === true) {
7988
7991
  if (row[varianceScenario.base + "_cnt"] === 0 || row[varianceScenario.delta + "_cnt"] === 0) {
7989
7992
  row[scenario] = Number.NaN;
@@ -8052,28 +8055,28 @@ class StructureChart {
8052
8055
  return orderStr;
8053
8056
  }
8054
8057
  createSelectString(level, sortOrder) {
8055
- if (level === VarianceMeasure.AggregationLevel.CATEGORY && sortOrder.hierarchy.includes(withStyled.OrderColumn.CATEGORYINDEX)) {
8056
- return `${withStyled.OrderColumn.CATEGORYINDEX}, ${VarianceMeasure.AggregationLevel.CATEGORY} as category`;
8058
+ if (level === VarianceMeasure.AggregationLevel.CATEGORY && sortOrder.hierarchy.includes(Order.OrderColumn.CATEGORYINDEX)) {
8059
+ return `${Order.OrderColumn.CATEGORYINDEX}, ${VarianceMeasure.AggregationLevel.CATEGORY} as category`;
8057
8060
  }
8058
- else if (level === VarianceMeasure.AggregationLevel.ROWGROUP && sortOrder.hierarchy.includes(withStyled.OrderColumn.ROWGROUPINDEX)) {
8059
- return `${withStyled.OrderColumn.ROWGROUPINDEX}, ${VarianceMeasure.AggregationLevel.ROWGROUP} as category`;
8061
+ else if (level === VarianceMeasure.AggregationLevel.ROWGROUP && sortOrder.hierarchy.includes(Order.OrderColumn.ROWGROUPINDEX)) {
8062
+ return `${Order.OrderColumn.ROWGROUPINDEX}, ${VarianceMeasure.AggregationLevel.ROWGROUP} as category`;
8060
8063
  }
8061
- else if (level === VarianceMeasure.AggregationLevel.SUBCATEGORY && sortOrder.hierarchy.includes(withStyled.OrderColumn.SUBCATEGORYINDEX)) {
8062
- return `${withStyled.OrderColumn.SUBCATEGORYINDEX}, ${VarianceMeasure.AggregationLevel.SUBCATEGORY} as category`;
8064
+ else if (level === VarianceMeasure.AggregationLevel.SUBCATEGORY && sortOrder.hierarchy.includes(Order.OrderColumn.SUBCATEGORYINDEX)) {
8065
+ return `${Order.OrderColumn.SUBCATEGORYINDEX}, ${VarianceMeasure.AggregationLevel.SUBCATEGORY} as category`;
8063
8066
  }
8064
8067
  else {
8065
8068
  return `${level.toString()} as category`;
8066
8069
  }
8067
8070
  }
8068
8071
  createGroupByStr(level, sortOrder) {
8069
- if (level === VarianceMeasure.AggregationLevel.CATEGORY && sortOrder.hierarchy.includes(withStyled.OrderColumn.CATEGORYINDEX)) {
8070
- return `${withStyled.OrderColumn.CATEGORYINDEX}, ${VarianceMeasure.AggregationLevel.CATEGORY}`;
8072
+ if (level === VarianceMeasure.AggregationLevel.CATEGORY && sortOrder.hierarchy.includes(Order.OrderColumn.CATEGORYINDEX)) {
8073
+ return `${Order.OrderColumn.CATEGORYINDEX}, ${VarianceMeasure.AggregationLevel.CATEGORY}`;
8071
8074
  }
8072
- else if (level === VarianceMeasure.AggregationLevel.ROWGROUP && sortOrder.hierarchy.includes(withStyled.OrderColumn.ROWGROUPINDEX)) {
8073
- return `${withStyled.OrderColumn.ROWGROUPINDEX}, ${VarianceMeasure.AggregationLevel.ROWGROUP}`;
8075
+ else if (level === VarianceMeasure.AggregationLevel.ROWGROUP && sortOrder.hierarchy.includes(Order.OrderColumn.ROWGROUPINDEX)) {
8076
+ return `${Order.OrderColumn.ROWGROUPINDEX}, ${VarianceMeasure.AggregationLevel.ROWGROUP}`;
8074
8077
  }
8075
- else if (level === VarianceMeasure.AggregationLevel.SUBCATEGORY && sortOrder.hierarchy.includes(withStyled.OrderColumn.SUBCATEGORYINDEX)) {
8076
- return `${withStyled.OrderColumn.SUBCATEGORYINDEX}, ${VarianceMeasure.AggregationLevel.SUBCATEGORY}`;
8078
+ else if (level === VarianceMeasure.AggregationLevel.SUBCATEGORY && sortOrder.hierarchy.includes(Order.OrderColumn.SUBCATEGORYINDEX)) {
8079
+ return `${Order.OrderColumn.SUBCATEGORYINDEX}, ${VarianceMeasure.AggregationLevel.SUBCATEGORY}`;
8077
8080
  }
8078
8081
  else {
8079
8082
  return `${level.toString()}`;
@@ -8085,7 +8088,7 @@ class StructureChart {
8085
8088
  }
8086
8089
  let longestLength = 0;
8087
8090
  for (const entry of this.dataModel) {
8088
- const columnLength = LabelCollisionManager.CalculateSize(entry.category, {
8091
+ const columnLength = SVGStyle.CalculateSize(entry.category, {
8089
8092
  font: this.styles.fontStyles.font,
8090
8093
  fontSize: this.styles.fontStyles.size + "px",
8091
8094
  });
@@ -8175,7 +8178,7 @@ class StructureChart {
8175
8178
  firstRow = dataModel[0];
8176
8179
  }
8177
8180
  for (const varianceScenario in variancesConfig) {
8178
- const scenarios = new LabelCollisionManager.VarianceScenario(variancesConfig[varianceScenario]);
8181
+ const scenarios = new SVGStyle.VarianceScenario(variancesConfig[varianceScenario]);
8179
8182
  if (scenarios.isValid) {
8180
8183
  const scenariomap = this.mapScenarios(scenarios, firstRow);
8181
8184
  const directon = scenarios.direction;
@@ -8228,7 +8231,7 @@ class StructureChart {
8228
8231
  return varianceMap;
8229
8232
  }
8230
8233
  calculateTextBoxWidth(value) {
8231
- return LabelCollisionManager.CalculateSize(LabelCollisionManager.Formatter.number(value, "decimal", 1, 0), {
8234
+ return SVGStyle.CalculateSize(SVGStyle.Formatter.number(value, "decimal", 1, 0), {
8232
8235
  font: this.styles.fontStyles.font,
8233
8236
  fontSize: this.styles.fontStyles.size + "px",
8234
8237
  }).width;
@@ -8236,16 +8239,16 @@ class StructureChart {
8236
8239
  calculatePercentageTextBoxWidth(value) {
8237
8240
  let signWidth = 0;
8238
8241
  if (value >= 0) {
8239
- signWidth += LabelCollisionManager.CalculateSize("+", {
8242
+ signWidth += SVGStyle.CalculateSize("+", {
8240
8243
  font: this.styles.fontStyles.font,
8241
8244
  fontSize: this.styles.fontStyles.size + "px",
8242
8245
  }).width;
8243
8246
  }
8244
- signWidth += LabelCollisionManager.CalculateSize(" %", {
8247
+ signWidth += SVGStyle.CalculateSize(" %", {
8245
8248
  font: this.styles.fontStyles.font,
8246
8249
  fontSize: this.styles.fontStyles.size + "px",
8247
8250
  }).width;
8248
- const labelWidth = LabelCollisionManager.CalculateSize(LabelCollisionManager.Formatter.number(value, "decimal", 1, 1), {
8251
+ const labelWidth = SVGStyle.CalculateSize(SVGStyle.Formatter.number(value, "decimal", 1, 1), {
8249
8252
  font: this.styles.fontStyles.font,
8250
8253
  fontSize: this.styles.fontStyles.size + "px",
8251
8254
  }).width + signWidth;
@@ -8751,51 +8754,6 @@ class DataFormatDigitsAdapter {
8751
8754
  }
8752
8755
  }
8753
8756
 
8754
- class SVGVariancesStyleGroup {
8755
- constructor(pos, neg, neu) {
8756
- this.pos = pos;
8757
- this.neg = neg;
8758
- this.neu = neu;
8759
- this.needleHeadColour = "#000000";
8760
- }
8761
- getSVGStyle(scenario) {
8762
- if (scenario === "pos") {
8763
- return this.pos;
8764
- }
8765
- if (scenario === "neg") {
8766
- return this.neg;
8767
- }
8768
- if (scenario === "neu") {
8769
- return this.neu;
8770
- }
8771
- return this.neu;
8772
- }
8773
- }
8774
- class SVGVariancesStyleGroupAdapter {
8775
- constructor(svgStyleAdapter) {
8776
- this.svgStyleAdapter = svgStyleAdapter;
8777
- }
8778
- adapt(data) {
8779
- const styleGroup = new SVGVariancesStyleGroup(this.svgStyleAdapter.defaultPos(), this.svgStyleAdapter.defaultNeg(), this.svgStyleAdapter.defaultNeu());
8780
- if (VarianceMeasure.CompareUtil.isExisting(data.pos)) {
8781
- styleGroup.pos = this.svgStyleAdapter.adapt(data.pos);
8782
- }
8783
- if (VarianceMeasure.CompareUtil.isExisting(data.neg)) {
8784
- styleGroup.neg = this.svgStyleAdapter.adapt(data.neg);
8785
- }
8786
- if (VarianceMeasure.CompareUtil.isExisting(data.pp)) {
8787
- styleGroup.neu = this.svgStyleAdapter.adapt(data.neu);
8788
- }
8789
- if (VarianceMeasure.CompareUtil.isString(data.needleHeadColour)) {
8790
- styleGroup.needleHeadColour = data.needleHeadColour;
8791
- }
8792
- return styleGroup;
8793
- }
8794
- default() {
8795
- return new SVGVariancesStyleGroup(this.svgStyleAdapter.defaultPos(), this.svgStyleAdapter.defaultNeg(), this.svgStyleAdapter.defaultNeu());
8796
- }
8797
- }
8798
-
8799
8757
  const bnChartStructureCss = () => `:host{display:inline-block;position:relative;overflow:hidden}.container{display:flex;flex-direction:row}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}.categories{text-align:right;font-size:var(--bn-font-size, 1em);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.label-bg{fill:var(--bn-font-background, white);opacity:0.7}.label-text{text-align:right;font-size:var(--bn-font-size, 1em);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.axis-title{text-align:center;font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}.axis-ac{stroke:black;stroke-width:0.1em}.axis-pp{stroke:grey;stroke-width:0.1em}.axis-fc{stroke:black;stroke-dasharray:2;stroke-width:0.1em}.axis-pl{stroke:white;stroke-width:0.1em;outline-offset:0em;outline:0.1em solid black}canvas{image-rendering:-moz-crisp-edges;image-rendering:-webkit-crisp-edges;image-rendering:pixelated;image-rendering:crisp-edges}.measure{font-weight:bold}span{display:inline-block}.hidePatternContainer{height:0;width:0}div{float:left}.warning{font-size:0.8em;font-style:italic}.footer{margin:0.2em;font-size:0.6em}.footer-hide{margin:0.2em;font-size:0.6em;opacity:0}`;
8800
8758
 
8801
8759
  const IbcsChartStructure = class {
@@ -8815,7 +8773,7 @@ const IbcsChartStructure = class {
8815
8773
  this.i18n = new Map(); // I18nMode;
8816
8774
  this.order = {
8817
8775
  hierarchy: [],
8818
- direction: withStyled.OrderDirection.ASC,
8776
+ direction: Order.OrderDirection.ASC,
8819
8777
  };
8820
8778
  this.level = VarianceMeasure.AggregationLevel.CATEGORY;
8821
8779
  this.filter = "";
@@ -8847,7 +8805,7 @@ const IbcsChartStructure = class {
8847
8805
  const db = this.getDb();
8848
8806
  const config = this.prepareConfig();
8849
8807
  const styles = this.prepareStyle();
8850
- this.chart = new StructureChart(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig), db, this.tableName, config, styles);
8808
+ this.chart = new StructureChart(new SVGStyle.IBCSRuleSet(this.ruleSetConfig), db, this.tableName, config, styles);
8851
8809
  this.chart.setI18n(this.i18n);
8852
8810
  this.autoFitScaling(config, styles);
8853
8811
  this.chart.setAvailableWidth(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.width) || 0);
@@ -8863,7 +8821,7 @@ const IbcsChartStructure = class {
8863
8821
  const styles = this.prepareStyle();
8864
8822
  this.chart.setI18n(this.i18n);
8865
8823
  this.chart.setStyles(styles);
8866
- this.chart.setRuleSet(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig));
8824
+ this.chart.setRuleSet(new SVGStyle.IBCSRuleSet(this.ruleSetConfig));
8867
8825
  this.chart.setConfig(config);
8868
8826
  this.autoFitScaling(config, styles);
8869
8827
  this.chart.setAvailableWidth(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.width) || 0);
@@ -8891,7 +8849,7 @@ const IbcsChartStructure = class {
8891
8849
  config.pixelPerUnit = 1;
8892
8850
  if (autoPercent)
8893
8851
  config.pixelPerPercentage = 50;
8894
- this.chart = new StructureChart(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig), db, this.tableName, config, styles);
8852
+ this.chart = new StructureChart(new SVGStyle.IBCSRuleSet(this.ruleSetConfig), db, this.tableName, config, styles);
8895
8853
  this.chart.setI18n(this.i18n);
8896
8854
  return;
8897
8855
  }
@@ -8900,7 +8858,7 @@ const IbcsChartStructure = class {
8900
8858
  config.pixelPerUnit = 1;
8901
8859
  if (autoPercent)
8902
8860
  config.pixelPerPercentage = 1;
8903
- this.chart = new StructureChart(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig), db, this.tableName, config, styles);
8861
+ this.chart = new StructureChart(new SVGStyle.IBCSRuleSet(this.ruleSetConfig), db, this.tableName, config, styles);
8904
8862
  this.chart.setI18n(this.i18n);
8905
8863
  this.chart.toString();
8906
8864
  const svgWidth = this.chart.getAllocatedCanvasWidth();
@@ -8925,7 +8883,7 @@ const IbcsChartStructure = class {
8925
8883
  config.pixelPerPercentage = (targetWidth * 0.9) / svgWidth;
8926
8884
  }
8927
8885
  // Second pass with the corrected scaling
8928
- this.chart = new StructureChart(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig), db, this.tableName, config, styles);
8886
+ this.chart = new StructureChart(new SVGStyle.IBCSRuleSet(this.ruleSetConfig), db, this.tableName, config, styles);
8929
8887
  this.chart.setI18n(this.i18n);
8930
8888
  }
8931
8889
  async componentWillRender() {
@@ -8951,7 +8909,7 @@ const IbcsChartStructure = class {
8951
8909
  prepareConfig() {
8952
8910
  const db = this.getDb();
8953
8911
  const fromExpr = this.tableName ? contextProtocol.buildFromExpr(this.tableName, this.filter) : "";
8954
- return new StructureChartComponentConfigAdapter(new StructureChartDataRowAdapter(), new withStyled.OrderAdapter(new StringAdapter()), new StringAdapter(), new DataFormatDigitsAdapter(), db, fromExpr).adapt({
8912
+ return new StructureChartComponentConfigAdapter(new StructureChartDataRowAdapter(), new Order.OrderAdapter(new StringAdapter()), new StringAdapter(), new DataFormatDigitsAdapter(), db, fromExpr).adapt({
8955
8913
  scenarios: this.scenarios,
8956
8914
  variances: this.variances,
8957
8915
  title: this.chartTitle,
@@ -8970,7 +8928,7 @@ const IbcsChartStructure = class {
8970
8928
  });
8971
8929
  }
8972
8930
  prepareStyle() {
8973
- return new StructureChartStylesAdapter(new ScaleFactorsStructureChartAdapter(), new LabelCollisionManager.FontStyleAdapter(), new LabelCollisionManager.SVGStyleGroupAdapter(new LabelCollisionManager.SVGStyleAdapter()), new SVGVariancesStyleGroupAdapter(new LabelCollisionManager.SVGStyleAdapter()), new LabelCollisionManager.PaddingAdapter()).adapt(this.styles);
8931
+ return new StructureChartStylesAdapter(new ScaleFactorsStructureChartAdapter(), new SVGStyle.FontStyleAdapter(), new SVGStyle.SVGStyleGroupAdapter(new SVGStyle.SVGStyleAdapter()), new SVGVariancesStyleGroup.SVGVariancesStyleGroupAdapter(new SVGStyle.SVGStyleAdapter()), new SVGStyle.PaddingAdapter()).adapt(this.styles);
8974
8932
  }
8975
8933
  get element() { return index.getElement(this); }
8976
8934
  };
@@ -9117,7 +9075,7 @@ class ElementPositions {
9117
9075
  }
9118
9076
  caluculateDataLabelHeight() {
9119
9077
  const testlable = "123456789";
9120
- const height = LabelCollisionManager.CalculateSize(testlable, {
9078
+ const height = SVGStyle.CalculateSize(testlable, {
9121
9079
  font: this.fontStlye.font,
9122
9080
  fontSize: this.fontStlye.size + "px",
9123
9081
  }).height;
@@ -9362,7 +9320,7 @@ class MarkerPattern {
9362
9320
  */
9363
9321
  class CustomPattern {
9364
9322
  constructor(styles) {
9365
- this.container = new LabelCollisionManager.Svg();
9323
+ this.container = new SVGStyle.Svg();
9366
9324
  this.pattern = this.createFCPattern(this.container.group(), styles);
9367
9325
  this.styles = styles;
9368
9326
  const backgroundFactor = 1;
@@ -11130,7 +11088,7 @@ class TimeChart {
11130
11088
  this.lastScenarios = [];
11131
11089
  this.db = db;
11132
11090
  this.tableName = tableName;
11133
- this.ruleSet = ruleSet || new LabelCollisionManager.IBCSRuleSet();
11091
+ this.ruleSet = ruleSet || new SVGStyle.IBCSRuleSet();
11134
11092
  this.i18n = this.createI18n(new Map());
11135
11093
  this.styles = styles;
11136
11094
  this.availableWidth = availableWidth;
@@ -11144,7 +11102,7 @@ class TimeChart {
11144
11102
  this.styles = newStyle;
11145
11103
  }
11146
11104
  setRuleSet(ruleSet) {
11147
- this.ruleSet = ruleSet || new LabelCollisionManager.IBCSRuleSet();
11105
+ this.ruleSet = ruleSet || new SVGStyle.IBCSRuleSet();
11148
11106
  }
11149
11107
  setAvailableWidth(w) {
11150
11108
  this.availableWidth = w;
@@ -11219,7 +11177,7 @@ class TimeChart {
11219
11177
  this.dateInterval = this.findDateInterval(config.dateInterval);
11220
11178
  this.dataModel = this.populateModel(scenarios, this.dateInterval, config.level, config.sortOrder);
11221
11179
  this.variancesDataModel = this.populateVarianceModel(config.variances, this.dataModel);
11222
- this.title = config.title || LabelCollisionManager.Formatter.translateScenarioLabel((_a = config === null || config === void 0 ? void 0 : config.variances) === null || _a === void 0 ? void 0 : _a.toString(), this.i18n);
11180
+ this.title = config.title || SVGStyle.Formatter.translateScenarioLabel((_a = config === null || config === void 0 ? void 0 : config.variances) === null || _a === void 0 ? void 0 : _a.toString(), this.i18n);
11223
11181
  this.smallestDataPointValue = this.findSmallestDataPointValue(this.dataModel);
11224
11182
  this.smallestVarianceDataPointValue = this.findSmallestDataPointValue(this.variancesDataModel);
11225
11183
  this.highestDataPointValue = this.findHighestDataPointValue(this.dataModel);
@@ -11242,7 +11200,7 @@ class TimeChart {
11242
11200
  if (this.measureScale.value === 1 && this.measureUnit === "") {
11243
11201
  return " ";
11244
11202
  }
11245
- return LabelCollisionManager.Formatter.translateScenarioLabel("in", this.i18n) + " " + this.measureScale.prefix + this.measureUnit;
11203
+ return SVGStyle.Formatter.translateScenarioLabel("in", this.i18n) + " " + this.measureScale.prefix + this.measureUnit;
11246
11204
  }
11247
11205
  /** Returns a new array; the input keeps the `scenarios` prop order (the config is reused across rebuilds). */
11248
11206
  sortScenariosbyVisualisationRules(scenarios) {
@@ -11333,7 +11291,7 @@ class TimeChart {
11333
11291
  return Math.max(analyticalHeight, bboxHeight);
11334
11292
  }
11335
11293
  toString() {
11336
- const container = new LabelCollisionManager.Svg();
11294
+ const container = new SVGStyle.Svg();
11337
11295
  this.draw(container);
11338
11296
  container.id("drawCanvas");
11339
11297
  container.width(this.getAllocatedCanvasWidth());
@@ -11448,9 +11406,9 @@ class TimeChart {
11448
11406
  var _a;
11449
11407
  let maxLabelLengthLeft;
11450
11408
  // only need scenarios written on the leftside of bar/ marker
11451
- const scenarioLabelLeft = LabelCollisionManager.CalculateSize(scenarios
11409
+ const scenarioLabelLeft = SVGStyle.CalculateSize(scenarios
11452
11410
  .filter((_value, index) => index === 1 || index === 2)
11453
- .map((scenario) => LabelCollisionManager.Formatter.translateScenarioLabel(scenario, this.i18n))
11411
+ .map((scenario) => SVGStyle.Formatter.translateScenarioLabel(scenario, this.i18n))
11454
11412
  .reduce((a, b) => (a.length < b.length ? b : a), ""), {
11455
11413
  font: this.styles.fontStyles.font,
11456
11414
  fontSize: this.styles.fontStyles.size + "px",
@@ -11530,7 +11488,7 @@ class TimeChart {
11530
11488
  if (tmpTitle.length < this.title.length) {
11531
11489
  tmpTitle = this.title;
11532
11490
  }
11533
- const width = LabelCollisionManager.CalculateSize(tmpTitle, {
11491
+ const width = SVGStyle.CalculateSize(tmpTitle, {
11534
11492
  font: this.styles.fontStyles.font,
11535
11493
  fontSize: this.styles.fontStyles.size + "px",
11536
11494
  }).width;
@@ -11542,7 +11500,7 @@ class TimeChart {
11542
11500
  setAxisScenario(scenarios) {
11543
11501
  let result = Scenario.AC1;
11544
11502
  if (scenarios != null && scenarios.length > 0) {
11545
- const axis = new LabelCollisionManager.VarianceScenario(scenarios.toString());
11503
+ const axis = new SVGStyle.VarianceScenario(scenarios.toString());
11546
11504
  if (axis.isValid) {
11547
11505
  result = axis.delta;
11548
11506
  }
@@ -11568,7 +11526,7 @@ class TimeChart {
11568
11526
  detectNaNCells(scenarios, res) {
11569
11527
  res.forEach((row) => {
11570
11528
  scenarios.forEach((scenario) => {
11571
- const varianceScenario = new LabelCollisionManager.VarianceScenario(scenario);
11529
+ const varianceScenario = new SVGStyle.VarianceScenario(scenario);
11572
11530
  if (varianceScenario.isValid === true) {
11573
11531
  if (row[varianceScenario.base + "_cnt"] === 0 || row[varianceScenario.delta + "_cnt"] === 0) {
11574
11532
  row[scenario] = Number.NaN;
@@ -11742,7 +11700,7 @@ class TimeChart {
11742
11700
  firstRow = dataModel[0];
11743
11701
  }
11744
11702
  for (const varianceScenario in variancesConfig) {
11745
- const scenarios = new LabelCollisionManager.VarianceScenario(variancesConfig[varianceScenario]);
11703
+ const scenarios = new SVGStyle.VarianceScenario(variancesConfig[varianceScenario]);
11746
11704
  if (scenarios.isValid) {
11747
11705
  const scenariomap = this.mapScenarios(scenarios, firstRow);
11748
11706
  const directon = scenarios.direction;
@@ -12511,7 +12469,7 @@ class TimeChartComponentConfig {
12511
12469
  this.pixelPerPercentage = 50;
12512
12470
  /** Maximum data points to display; 0 means unlimited. */
12513
12471
  this.limit = 0;
12514
- this.sortOrder = new withStyled.OrderAdapter(new StringAdapter()).default();
12472
+ this.sortOrder = new Order.OrderAdapter(new StringAdapter()).default();
12515
12473
  this.level = VarianceMeasure.AggregationLevel.CATEGORY;
12516
12474
  /** Pixel offset from left edge for horizontal alignment across multiple charts. -1 disables sync. */
12517
12475
  this.leftSideOffsetForHorizontalSync = -1;
@@ -12551,11 +12509,11 @@ class TimeChartComponentConfigAdapter {
12551
12509
  this.fromExpr = fromExpr;
12552
12510
  }
12553
12511
  adapt(data) {
12554
- const dataSet = withStyled.AdapterUtils.adaptArray(data.data, this.dataRowAdapter);
12555
- const scenarios = withStyled.AdapterUtils.adaptArray(data.scenarios, this.stringAdapter);
12512
+ const dataSet = Order.AdapterUtils.adaptArray(data.data, this.dataRowAdapter);
12513
+ const scenarios = Order.AdapterUtils.adaptArray(data.scenarios, this.stringAdapter);
12556
12514
  const config = new TimeChartComponentConfig(dataSet, scenarios);
12557
12515
  if (VarianceMeasure.CompareUtil.isArray(data.variances)) {
12558
- config.variances = withStyled.AdapterUtils.adaptArray(data.variances, this.stringAdapter);
12516
+ config.variances = Order.AdapterUtils.adaptArray(data.variances, this.stringAdapter);
12559
12517
  }
12560
12518
  if (VarianceMeasure.CompareUtil.isString(data.title)) {
12561
12519
  config.title = data.title;
@@ -12649,7 +12607,7 @@ const IbcsChartTime = class {
12649
12607
  this.i18n = new Map(); // I18nMode;
12650
12608
  this.order = {
12651
12609
  hierarchy: [],
12652
- direction: withStyled.OrderDirection.ASC,
12610
+ direction: Order.OrderDirection.ASC,
12653
12611
  };
12654
12612
  this.level = VarianceMeasure.AggregationLevel.CATEGORY;
12655
12613
  this.dateInterval = withStyled.DateDistance.AUTO;
@@ -12690,7 +12648,7 @@ const IbcsChartTime = class {
12690
12648
  const config = this.prepareConfig();
12691
12649
  const styles = this.prepareStyle();
12692
12650
  const availableWidth = this.containerWidth || 0;
12693
- this.chart = new TimeChart(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
12651
+ this.chart = new TimeChart(new SVGStyle.IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
12694
12652
  this.chart.setI18n(this.i18n);
12695
12653
  this.autoFitScaling(config, styles);
12696
12654
  this.chart.setAvailableHeight(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.height) || 0);
@@ -12707,7 +12665,7 @@ const IbcsChartTime = class {
12707
12665
  this.chart.setI18n(this.i18n);
12708
12666
  this.chart.setStyles(styles);
12709
12667
  this.chart.setAvailableWidth(this.containerWidth || 0);
12710
- this.chart.setRuleSet(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig));
12668
+ this.chart.setRuleSet(new SVGStyle.IBCSRuleSet(this.ruleSetConfig));
12711
12669
  this.chart.setConfig(config);
12712
12670
  this.autoFitScaling(config, styles);
12713
12671
  this.chart.setAvailableHeight(((_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.height) || 0);
@@ -12734,7 +12692,7 @@ const IbcsChartTime = class {
12734
12692
  config.pixelPerUnit = 1;
12735
12693
  if (autoPercent)
12736
12694
  config.pixelPerPercentage = 50;
12737
- this.chart = new TimeChart(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
12695
+ this.chart = new TimeChart(new SVGStyle.IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
12738
12696
  this.chart.setI18n(this.i18n);
12739
12697
  return;
12740
12698
  }
@@ -12743,7 +12701,7 @@ const IbcsChartTime = class {
12743
12701
  config.pixelPerUnit = 1;
12744
12702
  if (autoPercent)
12745
12703
  config.pixelPerPercentage = 1;
12746
- this.chart = new TimeChart(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
12704
+ this.chart = new TimeChart(new SVGStyle.IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
12747
12705
  this.chart.setI18n(this.i18n);
12748
12706
  this.chart.toString();
12749
12707
  const svgHeight = this.chart.getAllocatedCanvasHeight();
@@ -12757,7 +12715,7 @@ const IbcsChartTime = class {
12757
12715
  if (autoPercent)
12758
12716
  config.pixelPerPercentage = ratio;
12759
12717
  // Second pass with the corrected scaling
12760
- this.chart = new TimeChart(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
12718
+ this.chart = new TimeChart(new SVGStyle.IBCSRuleSet(this.ruleSetConfig), this.getDb(), this.tableName, config, styles, availableWidth);
12761
12719
  this.chart.setI18n(this.i18n);
12762
12720
  }
12763
12721
  async componentWillRender() {
@@ -12783,7 +12741,7 @@ const IbcsChartTime = class {
12783
12741
  prepareConfig() {
12784
12742
  const db = this.getDb();
12785
12743
  const fromExpr = this.tableName ? contextProtocol.buildFromExpr(this.tableName, this.filter) : "";
12786
- return new TimeChartComponentConfigAdapter(new TimeChartDataRowAdapter(), new withStyled.OrderAdapter(new StringAdapter()), new StringAdapter(), new DataFormatDigitsAdapter(), db, fromExpr).adapt({
12744
+ return new TimeChartComponentConfigAdapter(new TimeChartDataRowAdapter(), new Order.OrderAdapter(new StringAdapter()), new StringAdapter(), new DataFormatDigitsAdapter(), db, fromExpr).adapt({
12787
12745
  scenarios: this.scenarios,
12788
12746
  variances: this.variances,
12789
12747
  title: this.chartTitle,
@@ -12811,7 +12769,7 @@ const IbcsChartTime = class {
12811
12769
  });
12812
12770
  }
12813
12771
  prepareStyle() {
12814
- return new TimeChartStylesAdapter(new ScaleFactorsTimeChartAdapter(), new LabelCollisionManager.FontStyleAdapter(), new LabelCollisionManager.SVGStyleGroupAdapter(new LabelCollisionManager.SVGStyleAdapter()), new SVGVariancesStyleGroupAdapter(new LabelCollisionManager.SVGStyleAdapter()), new LabelCollisionManager.PaddingAdapter()).adapt(this.styles);
12772
+ return new TimeChartStylesAdapter(new ScaleFactorsTimeChartAdapter(), new SVGStyle.FontStyleAdapter(), new SVGStyle.SVGStyleGroupAdapter(new SVGStyle.SVGStyleAdapter()), new SVGVariancesStyleGroup.SVGVariancesStyleGroupAdapter(new SVGStyle.SVGStyleAdapter()), new SVGStyle.PaddingAdapter()).adapt(this.styles);
12815
12773
  }
12816
12774
  get element() { return index.getElement(this); }
12817
12775
  };
@@ -12873,7 +12831,7 @@ class Cell {
12873
12831
  digitsMin = dataFormatDigits.decimal;
12874
12832
  scale = dataFormatDigits.decimal;
12875
12833
  }
12876
- return LabelCollisionManager.Formatter.number(Number(cellValue), this.type, digitsMin, scale);
12834
+ return SVGStyle.Formatter.number(Number(cellValue), this.type, digitsMin, scale);
12877
12835
  }
12878
12836
  drawPrefix() {
12879
12837
  if (this.prefix == null) {
@@ -13335,20 +13293,20 @@ const WaterfallBar = (props) => {
13335
13293
  */
13336
13294
  class QueryGroups {
13337
13295
  constructor(config) {
13338
- this.groups = [LabelCollisionManager.QueryColumnNames.CATEGORY, LabelCollisionManager.QueryColumnNames.CATEGORYINDEX];
13296
+ this.groups = [SVGStyle.QueryColumnNames.CATEGORY, SVGStyle.QueryColumnNames.CATEGORYINDEX];
13339
13297
  if (TableType$2.OPT === config.type || TableType$2.OPTNOTOTAL === config.type) {
13340
- this.groups.unshift(LabelCollisionManager.QueryColumnNames.OPERATION);
13298
+ this.groups.unshift(SVGStyle.QueryColumnNames.OPERATION);
13341
13299
  }
13342
13300
  if (config.grouped) {
13343
- this.groups.push(LabelCollisionManager.QueryColumnNames.ROWGROUP);
13344
- this.groups.push(LabelCollisionManager.QueryColumnNames.ROWGROUPINDEX);
13301
+ this.groups.push(SVGStyle.QueryColumnNames.ROWGROUP);
13302
+ this.groups.push(SVGStyle.QueryColumnNames.ROWGROUPINDEX);
13345
13303
  }
13346
13304
  }
13347
13305
  toString() {
13348
13306
  return this.groups.map((s) => `${s}`).toString();
13349
13307
  }
13350
13308
  noCategory() {
13351
- return this.groups.filter((element) => element !== LabelCollisionManager.QueryColumnNames.CATEGORY);
13309
+ return this.groups.filter((element) => element !== SVGStyle.QueryColumnNames.CATEGORY);
13352
13310
  }
13353
13311
  toArray() {
13354
13312
  return this.groups;
@@ -13403,7 +13361,7 @@ class DataQuery {
13403
13361
  const relativeScenarios = this.getRelativeScenarios();
13404
13362
  const attributesSQL = this.config.attributes.map((attribute) => this.translateAttributeSQL(attribute)).toString();
13405
13363
  const groups = new QueryGroups(this.config);
13406
- const groupsAggregated = this.config.grouped ? [LabelCollisionManager.QueryColumnNames.ROWGROUP, LabelCollisionManager.QueryColumnNames.ROWGROUPINDEX] : [];
13364
+ const groupsAggregated = this.config.grouped ? [SVGStyle.QueryColumnNames.ROWGROUP, SVGStyle.QueryColumnNames.ROWGROUPINDEX] : [];
13407
13365
  let order = ["", ""];
13408
13366
  if (this.config.sortOrder.hierarchy.length > 0) {
13409
13367
  order = this.createOrderString(this.config.sortOrder);
@@ -13413,7 +13371,7 @@ class DataQuery {
13413
13371
  // Bsp: 0: Object { totalrowcnt: 7, rowgroup: "Umsatz" }
13414
13372
  let meta;
13415
13373
  try {
13416
- meta = db.exec(`SELECT COUNT(DISTINCT ${LabelCollisionManager.QueryColumnNames.CATEGORY}) as ${LabelCollisionManager.QueryColumnNames.TOTALROWCOUNT} ${groupsAggregated.length > 0 ? "," + groupsAggregated : ""}
13374
+ meta = db.exec(`SELECT COUNT(DISTINCT ${SVGStyle.QueryColumnNames.CATEGORY}) as ${SVGStyle.QueryColumnNames.TOTALROWCOUNT} ${groupsAggregated.length > 0 ? "," + groupsAggregated : ""}
13417
13375
  FROM ${fromExpr} ${groupsAggregated.length > 0 ? "GROUP BY " + groupsAggregated : ""}
13418
13376
  ORDER BY ${order[0]}`);
13419
13377
  }
@@ -13422,7 +13380,7 @@ class DataQuery {
13422
13380
  return [];
13423
13381
  }
13424
13382
  if (meta.length === 0 ||
13425
- (meta.length === 1 && ((_a = meta[0][LabelCollisionManager.QueryColumnNames.TOTALROWCOUNT]) !== null && _a !== void 0 ? _a : 0) === 0 && groupsAggregated.length === 0)) {
13383
+ (meta.length === 1 && ((_a = meta[0][SVGStyle.QueryColumnNames.TOTALROWCOUNT]) !== null && _a !== void 0 ? _a : 0) === 0 && groupsAggregated.length === 0)) {
13426
13384
  return [];
13427
13385
  }
13428
13386
  // Creates DataSelection for LIST
@@ -13430,7 +13388,7 @@ class DataQuery {
13430
13388
  // the following variables are 'helper sections' which are used to constuct dynamicly the sql statement depending of the given config
13431
13389
  // is grouping active?
13432
13390
  const queryWhereSection = rowGroupEntry.rowGroup && rowGroupEntry.rowGroup.length > 0
13433
- ? `WHERE ${LabelCollisionManager.QueryColumnNames.ROWGROUP} = '${rowGroupEntry.rowGroup}'`
13391
+ ? `WHERE ${SVGStyle.QueryColumnNames.ROWGROUP} = '${rowGroupEntry.rowGroup}'`
13434
13392
  : ``;
13435
13393
  // is limit active?
13436
13394
  let queryLimitSection = "";
@@ -13474,7 +13432,7 @@ class DataQuery {
13474
13432
  res.forEach((group) => {
13475
13433
  group.map((row) => {
13476
13434
  scenarios.forEach((scenario) => {
13477
- const varianceScenario = new LabelCollisionManager.VarianceScenario(scenario);
13435
+ const varianceScenario = new SVGStyle.VarianceScenario(scenario);
13478
13436
  if (varianceScenario.isValid === true) {
13479
13437
  if (row[varianceScenario.base + "_cnt"] === 0 || row[varianceScenario.delta + "_cnt"] === 0) {
13480
13438
  row[scenario] = Number.NaN;
@@ -13511,14 +13469,14 @@ class DataQuery {
13511
13469
  rowGroupSumResultRows.push(...db.exec(query));
13512
13470
  });
13513
13471
  const rowGroupSumResultMap = new Map();
13514
- rowGroupSumResultRows.forEach((row) => rowGroupSumResultMap.set(row[LabelCollisionManager.QueryColumnNames.ROWGROUP], row));
13472
+ rowGroupSumResultRows.forEach((row) => rowGroupSumResultMap.set(row[SVGStyle.QueryColumnNames.ROWGROUP], row));
13515
13473
  resDrill = this.reduceResDrillByCategoryGroups(resDrill, scenarioNames);
13516
13474
  resDrill.forEach(function (drillItem) {
13517
13475
  scenarioNames.forEach((key) => {
13518
13476
  try {
13519
13477
  drillItem[key] =
13520
13478
  drillItem[key] /
13521
- rowGroupSumResultMap.get(drillItem[LabelCollisionManager.QueryColumnNames.ROWGROUP])[key];
13479
+ rowGroupSumResultMap.get(drillItem[SVGStyle.QueryColumnNames.ROWGROUP])[key];
13522
13480
  }
13523
13481
  catch (err) {
13524
13482
  console.error("DataQuery: partOf drill row calculation failed", key, err);
@@ -13539,19 +13497,19 @@ class DataQuery {
13539
13497
  const restScenarios = this.exctractScenarioNames(scenarios)
13540
13498
  .map((name) => `SUM(${name}) as ${name}`)
13541
13499
  .join(", ");
13542
- querys.push(`SELECT ${LabelCollisionManager.QueryColumnNames.ROWNR}, 1 as ${LabelCollisionManager.QueryColumnNames.ROWGROUPINDEX} , 'ENTRY' as ${LabelCollisionManager.QueryColumnNames.TYPE}, 'NO_GROUP' as ${LabelCollisionManager.QueryColumnNames.ROWGROUP}, 'REST' as ${LabelCollisionManager.QueryColumnNames.CATEGORY} ${restScenarios.length > 0 ? ", " + restScenarios : ""} FROM` +
13543
- ` (SELECT ROWNUM() AS ${LabelCollisionManager.QueryColumnNames.ROWNR}, ${querys.length} as ${LabelCollisionManager.QueryColumnNames.ROWGROUPINDEX} , 'ENTRY' as ${LabelCollisionManager.QueryColumnNames.TYPE}, '${rowGroupEntry.rowGroup || "NO_GROUP"}' as ${LabelCollisionManager.QueryColumnNames.ROWGROUP}, ${groups} ${scenarios.length > 0 ? ",".concat(scenarios) : ""} FROM ${this.fromExpr} ${queryWhereSection} GROUP BY ${groups} ORDER BY ${order[0]})` +
13500
+ querys.push(`SELECT ${SVGStyle.QueryColumnNames.ROWNR}, 1 as ${SVGStyle.QueryColumnNames.ROWGROUPINDEX} , 'ENTRY' as ${SVGStyle.QueryColumnNames.TYPE}, 'NO_GROUP' as ${SVGStyle.QueryColumnNames.ROWGROUP}, 'REST' as ${SVGStyle.QueryColumnNames.CATEGORY} ${restScenarios.length > 0 ? ", " + restScenarios : ""} FROM` +
13501
+ ` (SELECT ROWNUM() AS ${SVGStyle.QueryColumnNames.ROWNR}, ${querys.length} as ${SVGStyle.QueryColumnNames.ROWGROUPINDEX} , 'ENTRY' as ${SVGStyle.QueryColumnNames.TYPE}, '${rowGroupEntry.rowGroup || "NO_GROUP"}' as ${SVGStyle.QueryColumnNames.ROWGROUP}, ${groups} ${scenarios.length > 0 ? ",".concat(scenarios) : ""} FROM ${this.fromExpr} ${queryWhereSection} GROUP BY ${groups} ORDER BY ${order[0]})` +
13544
13502
  ` t WHERE t.rowNr > ${this.config.limit}`);
13545
13503
  }
13546
13504
  }
13547
13505
  /** Generates the main data rows for a single row group, applying GROUP BY, ORDER, and LIMIT. */
13548
13506
  createDataRow(querys, rowGroupEntry, groups, scenarios, attributes, queryWhereSection, order, queryLimitSection) {
13549
13507
  // Generates DataRows
13550
- querys.push(`SELECT ROWNUM() AS ${LabelCollisionManager.QueryColumnNames.ROWNR},
13551
- ${querys.length} as ${LabelCollisionManager.QueryColumnNames.ROWGROUPINDEX},
13552
- 'ENTRY' as ${LabelCollisionManager.QueryColumnNames.TYPE},
13553
- '${rowGroupEntry.rowGroup || "NO_GROUP"}' as ${LabelCollisionManager.QueryColumnNames.ROWGROUP},
13554
- '${LabelCollisionManager.QueryColumnNames.CATEGORYINDEX}',
13508
+ querys.push(`SELECT ROWNUM() AS ${SVGStyle.QueryColumnNames.ROWNR},
13509
+ ${querys.length} as ${SVGStyle.QueryColumnNames.ROWGROUPINDEX},
13510
+ 'ENTRY' as ${SVGStyle.QueryColumnNames.TYPE},
13511
+ '${rowGroupEntry.rowGroup || "NO_GROUP"}' as ${SVGStyle.QueryColumnNames.ROWGROUP},
13512
+ '${SVGStyle.QueryColumnNames.CATEGORYINDEX}',
13555
13513
  ${groups} ${scenarios.length > 0 ? ",".concat(scenarios) : ""} ${attributes.length > 0 ? ",".concat(attributes) : ""}
13556
13514
  FROM ${this.fromExpr} ${queryWhereSection}
13557
13515
  GROUP BY ${groups}
@@ -13562,12 +13520,12 @@ class DataQuery {
13562
13520
  // Generates GroupHeader Row
13563
13521
  if (true === this.config.grouped) {
13564
13522
  const groupTitle = this.config.showGroupTitle
13565
- ? `,'${rowGroupEntry.rowGroup}' as ${LabelCollisionManager.QueryColumnNames.CATEGORY}`
13523
+ ? `,'${rowGroupEntry.rowGroup}' as ${SVGStyle.QueryColumnNames.CATEGORY}`
13566
13524
  : "";
13567
- querys.push(`SELECT ROWNUM() AS ${LabelCollisionManager.QueryColumnNames.ROWNR},
13568
- ${querys.length} as ${LabelCollisionManager.QueryColumnNames.ROWGROUPINDEX},
13569
- 'GROUPHEAD' as ${LabelCollisionManager.QueryColumnNames.TYPE},
13570
- '${rowGroupEntry.rowGroup}' as ${LabelCollisionManager.QueryColumnNames.ROWGROUP} ${groupTitle}
13525
+ querys.push(`SELECT ROWNUM() AS ${SVGStyle.QueryColumnNames.ROWNR},
13526
+ ${querys.length} as ${SVGStyle.QueryColumnNames.ROWGROUPINDEX},
13527
+ 'GROUPHEAD' as ${SVGStyle.QueryColumnNames.TYPE},
13528
+ '${rowGroupEntry.rowGroup}' as ${SVGStyle.QueryColumnNames.ROWGROUP} ${groupTitle}
13571
13529
  FROM ${this.fromExpr}
13572
13530
  GROUP BY '1'`);
13573
13531
  }
@@ -13580,21 +13538,21 @@ class DataQuery {
13580
13538
  TableType$2.SUMNOTOTAL === this.config.type ||
13581
13539
  TableType$2.OPT === this.config.type ||
13582
13540
  TableType$2.OPTNOTOTAL === this.config.type)) {
13583
- querys.push(`SELECT ${querys.length} as ${LabelCollisionManager.QueryColumnNames.ROWGROUPINDEX},
13584
- '=' as ${LabelCollisionManager.QueryColumnNames.OPERATION},
13585
- '${rowGroupEntry.rowGroup}' as ${LabelCollisionManager.QueryColumnNames.ROWGROUP},
13586
- ROWNUM() AS ${LabelCollisionManager.QueryColumnNames.ROWNR},
13587
- 'GROUP_SUM' as ${LabelCollisionManager.QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
13541
+ querys.push(`SELECT ${querys.length} as ${SVGStyle.QueryColumnNames.ROWGROUPINDEX},
13542
+ '=' as ${SVGStyle.QueryColumnNames.OPERATION},
13543
+ '${rowGroupEntry.rowGroup}' as ${SVGStyle.QueryColumnNames.ROWGROUP},
13544
+ ROWNUM() AS ${SVGStyle.QueryColumnNames.ROWNR},
13545
+ 'GROUP_SUM' as ${SVGStyle.QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
13588
13546
  FROM ${this.fromExpr}
13589
- WHERE ${LabelCollisionManager.QueryColumnNames.ROWGROUP} = '${rowGroupEntry.rowGroup}'
13547
+ WHERE ${SVGStyle.QueryColumnNames.ROWGROUP} = '${rowGroupEntry.rowGroup}'
13590
13548
  ORDER BY ${order[0]} `);
13591
- groupSumQuery.push(`SELECT ${querys.length} as ${LabelCollisionManager.QueryColumnNames.ROWGROUPINDEX},
13592
- '=' as ${LabelCollisionManager.QueryColumnNames.OPERATION},
13593
- '${rowGroupEntry.rowGroup}' as ${LabelCollisionManager.QueryColumnNames.ROWGROUP},
13594
- ROWNUM() AS ${LabelCollisionManager.QueryColumnNames.ROWNR},
13595
- 'GROUP_SUM' as ${LabelCollisionManager.QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
13549
+ groupSumQuery.push(`SELECT ${querys.length} as ${SVGStyle.QueryColumnNames.ROWGROUPINDEX},
13550
+ '=' as ${SVGStyle.QueryColumnNames.OPERATION},
13551
+ '${rowGroupEntry.rowGroup}' as ${SVGStyle.QueryColumnNames.ROWGROUP},
13552
+ ROWNUM() AS ${SVGStyle.QueryColumnNames.ROWNR},
13553
+ 'GROUP_SUM' as ${SVGStyle.QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
13596
13554
  FROM ${this.fromExpr}
13597
- WHERE ${LabelCollisionManager.QueryColumnNames.ROWGROUP} = '${rowGroupEntry.rowGroup}'
13555
+ WHERE ${SVGStyle.QueryColumnNames.ROWGROUP} = '${rowGroupEntry.rowGroup}'
13598
13556
  ORDER BY ${order[0]} `);
13599
13557
  }
13600
13558
  }
@@ -13611,16 +13569,16 @@ class DataQuery {
13611
13569
  // "❖ SUM_TOTAL", which no longer matches the key and stays untranslated.
13612
13570
  const prefixSymbol = this.hasPartOf && this.config.grouped === false && label !== "SUM_TOTAL";
13613
13571
  const title = prefixSymbol ? `${this.i18n.get("SUM_TOTAL") || "SUM_TOTAL"} ${label}` : label;
13614
- querys.push(`SELECT ${querys.length} as ${LabelCollisionManager.QueryColumnNames.ROWGROUPINDEX},
13615
- '${title}' as ${LabelCollisionManager.QueryColumnNames.ROWGROUP},
13616
- '=' as ${LabelCollisionManager.QueryColumnNames.OPERATION},
13617
- 'SUM' as ${LabelCollisionManager.QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
13572
+ querys.push(`SELECT ${querys.length} as ${SVGStyle.QueryColumnNames.ROWGROUPINDEX},
13573
+ '${title}' as ${SVGStyle.QueryColumnNames.ROWGROUP},
13574
+ '=' as ${SVGStyle.QueryColumnNames.OPERATION},
13575
+ 'SUM' as ${SVGStyle.QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
13618
13576
  FROM ${this.fromExpr} `);
13619
13577
  }
13620
- sumGroupQueries.push(`SELECT ${querys.length} as ${LabelCollisionManager.QueryColumnNames.ROWGROUPINDEX},
13621
- 'SUM_TOTAL' as ${LabelCollisionManager.QueryColumnNames.ROWGROUP},
13622
- '=' as ${LabelCollisionManager.QueryColumnNames.OPERATION},
13623
- 'SUM' as ${LabelCollisionManager.QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
13578
+ sumGroupQueries.push(`SELECT ${querys.length} as ${SVGStyle.QueryColumnNames.ROWGROUPINDEX},
13579
+ 'SUM_TOTAL' as ${SVGStyle.QueryColumnNames.ROWGROUP},
13580
+ '=' as ${SVGStyle.QueryColumnNames.OPERATION},
13581
+ 'SUM' as ${SVGStyle.QueryColumnNames.TYPE} ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
13624
13582
  FROM ${this.fromExpr} `);
13625
13583
  }
13626
13584
  /**
@@ -13670,8 +13628,8 @@ class DataQuery {
13670
13628
  else {
13671
13629
  numberOfElement.set(`${drillItem.category}_${drillItem.rowGroup}`, 1);
13672
13630
  }
13673
- drillItem[LabelCollisionManager.QueryColumnNames.ROWNR] = numberOfElement.get(`${drillItem.category}_${drillItem.rowGroup}`);
13674
- resSegment.splice(index + drillItem[LabelCollisionManager.QueryColumnNames.ROWNR], 0, drillItem);
13631
+ drillItem[SVGStyle.QueryColumnNames.ROWNR] = numberOfElement.get(`${drillItem.category}_${drillItem.rowGroup}`);
13632
+ resSegment.splice(index + drillItem[SVGStyle.QueryColumnNames.ROWNR], 0, drillItem);
13675
13633
  }
13676
13634
  });
13677
13635
  });
@@ -13690,13 +13648,13 @@ class DataQuery {
13690
13648
  else {
13691
13649
  numberOfElement.set(`${drillItem.category}`, 1);
13692
13650
  }
13693
- if (drillItem[LabelCollisionManager.QueryColumnNames.ROWNR] === 1) {
13651
+ if (drillItem[SVGStyle.QueryColumnNames.ROWNR] === 1) {
13694
13652
  drillItem.subCategory = `${drillItem.subCategory} (${drillItem.rowGroup})`;
13695
13653
  }
13696
13654
  else if (duplicateSubCategoriesList.includes(drillItem.subCategory)) {
13697
13655
  drillItem.subCategory = `${drillItem.subCategory} (${drillItem.rowGroup})`;
13698
13656
  }
13699
- resSegment.splice(index + drillItem[LabelCollisionManager.QueryColumnNames.ROWNR], 0, drillItem);
13657
+ resSegment.splice(index + drillItem[SVGStyle.QueryColumnNames.ROWNR], 0, drillItem);
13700
13658
  }
13701
13659
  });
13702
13660
  });
@@ -13723,29 +13681,29 @@ class DataQuery {
13723
13681
  let fromString = "1 <> 1 OR ( "; // helper for strin concat 1<>1 OR ... OR ...
13724
13682
  if (!(null == element.category || 0 === element.category.length || !element.category.trim())) {
13725
13683
  // if not empty
13726
- fromString += ` ${LabelCollisionManager.QueryColumnNames.CATEGORY} = '${element.category}'`;
13684
+ fromString += ` ${SVGStyle.QueryColumnNames.CATEGORY} = '${element.category}'`;
13727
13685
  isFirst = false;
13728
13686
  }
13729
13687
  if (!(null == element.rowGroup || 0 === element.rowGroup.length || !element.rowGroup.trim())) {
13730
13688
  // if not empty
13731
- fromString += ` ${isFirst ? "" : "AND"} ${LabelCollisionManager.QueryColumnNames.ROWGROUP} = '${element.rowGroup}'`;
13689
+ fromString += ` ${isFirst ? "" : "AND"} ${SVGStyle.QueryColumnNames.ROWGROUP} = '${element.rowGroup}'`;
13732
13690
  isFirst = false;
13733
13691
  }
13734
13692
  if (!(null == element.subCategory || 0 === element.subCategory.length || !element.subCategory.trim())) {
13735
13693
  // if not empty
13736
- fromString += ` ${isFirst ? "" : "AND"} ${LabelCollisionManager.QueryColumnNames.SUBCATEGORY} = '${element.subCategory}'`;
13694
+ fromString += ` ${isFirst ? "" : "AND"} ${SVGStyle.QueryColumnNames.SUBCATEGORY} = '${element.subCategory}'`;
13737
13695
  }
13738
13696
  fromString += `)`;
13739
- drillQueries.push(`SELECT ROWNUM() AS ${LabelCollisionManager.QueryColumnNames.ROWNR},
13697
+ drillQueries.push(`SELECT ROWNUM() AS ${SVGStyle.QueryColumnNames.ROWNR},
13740
13698
  null as operation,
13741
- 'DRILLELEMENT' as ${LabelCollisionManager.QueryColumnNames.TYPE},
13742
- ${LabelCollisionManager.QueryColumnNames.CATEGORY},
13743
- ${LabelCollisionManager.QueryColumnNames.SUBCATEGORY},
13744
- ${LabelCollisionManager.QueryColumnNames.ROWGROUP} as ${LabelCollisionManager.QueryColumnNames.ROWGROUP},
13699
+ 'DRILLELEMENT' as ${SVGStyle.QueryColumnNames.TYPE},
13700
+ ${SVGStyle.QueryColumnNames.CATEGORY},
13701
+ ${SVGStyle.QueryColumnNames.SUBCATEGORY},
13702
+ ${SVGStyle.QueryColumnNames.ROWGROUP} as ${SVGStyle.QueryColumnNames.ROWGROUP},
13745
13703
  ${scenarios} ${attributes.length > 0 ? ",".concat(attributes) : ""}
13746
13704
  FROM ${this.fromExpr}
13747
13705
  WHERE ${fromString}
13748
- GROUP BY ${LabelCollisionManager.QueryColumnNames.ROWGROUP}, ${LabelCollisionManager.QueryColumnNames.CATEGORY}, ${LabelCollisionManager.QueryColumnNames.SUBCATEGORY}
13706
+ GROUP BY ${SVGStyle.QueryColumnNames.ROWGROUP}, ${SVGStyle.QueryColumnNames.CATEGORY}, ${SVGStyle.QueryColumnNames.SUBCATEGORY}
13749
13707
  ORDER BY ${order[1]}`);
13750
13708
  });
13751
13709
  const db = this.db;
@@ -13761,7 +13719,7 @@ class DataQuery {
13761
13719
  calculateRelativeVariances(res, relativeScenarios) {
13762
13720
  res.forEach((group) => {
13763
13721
  group.forEach((row) => {
13764
- if (row[LabelCollisionManager.QueryColumnNames.TYPE] !== "GROUPHEAD") {
13722
+ if (row[SVGStyle.QueryColumnNames.TYPE] !== "GROUPHEAD") {
13765
13723
  relativeScenarios.forEach((value, key) => {
13766
13724
  row[key] = row[key] / row[value];
13767
13725
  });
@@ -13791,7 +13749,7 @@ class DataQuery {
13791
13749
  });
13792
13750
  res.forEach((group) => {
13793
13751
  group.forEach((row) => {
13794
- if (row[LabelCollisionManager.QueryColumnNames.TYPE] !== "GROUPHEAD") {
13752
+ if (row[SVGStyle.QueryColumnNames.TYPE] !== "GROUPHEAD") {
13795
13753
  scenarioRestMap.forEach((values, key) => {
13796
13754
  let minuent = 0;
13797
13755
  values.forEach((value) => {
@@ -13869,7 +13827,7 @@ class DataQuery {
13869
13827
  // mirrors detectNaNCells + calculateRelativeVariances for a single bucket row
13870
13828
  const finalizeBucketRow = (row) => {
13871
13829
  this.config.scenarios.forEach((scenario) => {
13872
- const varianceScenario = new LabelCollisionManager.VarianceScenario(scenario);
13830
+ const varianceScenario = new SVGStyle.VarianceScenario(scenario);
13873
13831
  if (varianceScenario.isValid === true) {
13874
13832
  if (row[varianceScenario.base + "_cnt"] === 0 || row[varianceScenario.delta + "_cnt"] === 0) {
13875
13833
  row[scenario] = Number.NaN;
@@ -13954,9 +13912,9 @@ class DataQuery {
13954
13912
  }
13955
13913
  }
13956
13914
  const groupTotalRowsRaw = isSumTypeGrouped || (hasPartOfActive && this.config.grouped)
13957
- ? exec(`SELECT ${LabelCollisionManager.QueryColumnNames.ROWGROUP}, __interval ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
13915
+ ? exec(`SELECT ${SVGStyle.QueryColumnNames.ROWGROUP}, __interval ${scenariosSUMQuery.length > 0 ? ",".concat(scenariosSUMQuery) : ""}
13958
13916
  FROM ${bucketSource}
13959
- GROUP BY ${LabelCollisionManager.QueryColumnNames.ROWGROUP}, __interval`)
13917
+ GROUP BY ${SVGStyle.QueryColumnNames.ROWGROUP}, __interval`)
13960
13918
  : [];
13961
13919
  const groupTotalsByKey = new Map();
13962
13920
  groupTotalRowsRaw.forEach((row) => groupTotalsByKey.set(`${row.rowGroup}${separator}${coerceBucketKey(row.__interval)}`, row));
@@ -13997,10 +13955,10 @@ class DataQuery {
13997
13955
  if (this.config.thereOf != null && this.config.thereOf.length > 0) {
13998
13956
  const drillRows = [];
13999
13957
  this.config.thereOf.forEach((element) => {
14000
- drillRows.push(...exec(`SELECT ${LabelCollisionManager.QueryColumnNames.ROWGROUP}, ${LabelCollisionManager.QueryColumnNames.CATEGORY}, ${LabelCollisionManager.QueryColumnNames.SUBCATEGORY}, __interval ${scenarios.length > 0 ? ",".concat(scenarios) : ""}
13958
+ drillRows.push(...exec(`SELECT ${SVGStyle.QueryColumnNames.ROWGROUP}, ${SVGStyle.QueryColumnNames.CATEGORY}, ${SVGStyle.QueryColumnNames.SUBCATEGORY}, __interval ${scenarios.length > 0 ? ",".concat(scenarios) : ""}
14001
13959
  FROM ${bucketSource}
14002
13960
  WHERE ${this.createThereOfWhereClause(element)}
14003
- GROUP BY ${LabelCollisionManager.QueryColumnNames.ROWGROUP}, ${LabelCollisionManager.QueryColumnNames.CATEGORY}, ${LabelCollisionManager.QueryColumnNames.SUBCATEGORY}, __interval`));
13961
+ GROUP BY ${SVGStyle.QueryColumnNames.ROWGROUP}, ${SVGStyle.QueryColumnNames.CATEGORY}, ${SVGStyle.QueryColumnNames.SUBCATEGORY}, __interval`));
14004
13962
  });
14005
13963
  for (const drillRow of drillRows) {
14006
13964
  const bucketKey = coerceBucketKey(drillRow.__interval);
@@ -14022,19 +13980,19 @@ class DataQuery {
14022
13980
  if (hasPartOfActive) {
14023
13981
  let partWhere = "1 <> 1 ";
14024
13982
  (_c = this.config.partOf) === null || _c === void 0 ? void 0 : _c.forEach((element) => {
14025
- partWhere += `OR (${LabelCollisionManager.QueryColumnNames.CATEGORY} = '${element.category}'`;
13983
+ partWhere += `OR (${SVGStyle.QueryColumnNames.CATEGORY} = '${element.category}'`;
14026
13984
  if (!(null == element.rowGroup || 0 === element.rowGroup.length || !element.rowGroup.trim())) {
14027
- partWhere += `and ${LabelCollisionManager.QueryColumnNames.ROWGROUP} = '${element.rowGroup}'`;
13985
+ partWhere += `and ${SVGStyle.QueryColumnNames.ROWGROUP} = '${element.rowGroup}'`;
14028
13986
  }
14029
13987
  partWhere += `)`;
14030
13988
  });
14031
13989
  const groupName = this.config.grouped
14032
- ? `${LabelCollisionManager.QueryColumnNames.ROWGROUP}`
14033
- : `'SUM_TOTAL' as ${LabelCollisionManager.QueryColumnNames.ROWGROUP}`;
14034
- const partRowsRaw = exec(`SELECT ${LabelCollisionManager.QueryColumnNames.CATEGORY}, ${groupName}, __interval ${scenarios.length > 0 ? ",".concat(scenarios) : ""}
13990
+ ? `${SVGStyle.QueryColumnNames.ROWGROUP}`
13991
+ : `'SUM_TOTAL' as ${SVGStyle.QueryColumnNames.ROWGROUP}`;
13992
+ const partRowsRaw = exec(`SELECT ${SVGStyle.QueryColumnNames.CATEGORY}, ${groupName}, __interval ${scenarios.length > 0 ? ",".concat(scenarios) : ""}
14035
13993
  FROM ${bucketSource}
14036
13994
  WHERE ${partWhere}
14037
- GROUP BY ${LabelCollisionManager.QueryColumnNames.ROWGROUP}, ${LabelCollisionManager.QueryColumnNames.CATEGORY}, __interval`);
13995
+ GROUP BY ${SVGStyle.QueryColumnNames.ROWGROUP}, ${SVGStyle.QueryColumnNames.CATEGORY}, __interval`);
14038
13996
  // merge rows sharing (rowGroup, category, bucket) — mirrors reduceResDrillByCategoryGroups
14039
13997
  const partByKey = new Map();
14040
13998
  for (const partRow of partRowsRaw) {
@@ -14073,15 +14031,15 @@ class DataQuery {
14073
14031
  let isFirst = true;
14074
14032
  let whereClause = "1 <> 1 OR ( ";
14075
14033
  if (!(null == element.category || 0 === element.category.length || !element.category.trim())) {
14076
- whereClause += ` ${LabelCollisionManager.QueryColumnNames.CATEGORY} = '${element.category}'`;
14034
+ whereClause += ` ${SVGStyle.QueryColumnNames.CATEGORY} = '${element.category}'`;
14077
14035
  isFirst = false;
14078
14036
  }
14079
14037
  if (!(null == element.rowGroup || 0 === element.rowGroup.length || !element.rowGroup.trim())) {
14080
- whereClause += ` ${isFirst ? "" : "AND"} ${LabelCollisionManager.QueryColumnNames.ROWGROUP} = '${element.rowGroup}'`;
14038
+ whereClause += ` ${isFirst ? "" : "AND"} ${SVGStyle.QueryColumnNames.ROWGROUP} = '${element.rowGroup}'`;
14081
14039
  isFirst = false;
14082
14040
  }
14083
14041
  if (!(null == element.subCategory || 0 === element.subCategory.length || !element.subCategory.trim())) {
14084
- whereClause += ` ${isFirst ? "" : "AND"} ${LabelCollisionManager.QueryColumnNames.SUBCATEGORY} = '${element.subCategory}'`;
14042
+ whereClause += ` ${isFirst ? "" : "AND"} ${SVGStyle.QueryColumnNames.SUBCATEGORY} = '${element.subCategory}'`;
14085
14043
  }
14086
14044
  return whereClause + `)`;
14087
14045
  }
@@ -14110,7 +14068,7 @@ class DataQuery {
14110
14068
  * - A companion `_cnt` column (COUNT of non-null values) is emitted for NaN detection.
14111
14069
  */
14112
14070
  translateScenarioSQL(scenario, isSumRow, type) {
14113
- const scenarios = new LabelCollisionManager.VarianceScenario(scenario);
14071
+ const scenarios = new SVGStyle.VarianceScenario(scenario);
14114
14072
  if (TableType$2.OPT === type || TableType$2.OPTNOTOTAL === type) {
14115
14073
  if (scenarios.isValid) {
14116
14074
  if (scenarios.type === "dr") {
@@ -14187,7 +14145,7 @@ class DataQuery {
14187
14145
  }
14188
14146
  /** Returns a key/value pair mapping a relative variance column to its denominator, or null for non-relative scenarios. */
14189
14147
  createRelativeScenario(scenario) {
14190
- const scenarios = new LabelCollisionManager.VarianceScenario(scenario);
14148
+ const scenarios = new SVGStyle.VarianceScenario(scenario);
14191
14149
  if (scenarios.isValid && scenarios.type === "dr") {
14192
14150
  return { key: `${scenario}`, value: `dr_${scenarios.delta}` };
14193
14151
  }
@@ -14219,30 +14177,30 @@ class DataQuery {
14219
14177
  var _a;
14220
14178
  const drillQueries = [];
14221
14179
  let fromString = "1 <> 1 "; // helper for strin concat 1<>1 OR ... OR ...
14222
- let groupName = ` ${LabelCollisionManager.QueryColumnNames.ROWGROUP}`;
14180
+ let groupName = ` ${SVGStyle.QueryColumnNames.ROWGROUP}`;
14223
14181
  let rowNum = "ROWNUM()";
14224
14182
  (_a = this.config.partOf) === null || _a === void 0 ? void 0 : _a.forEach((element) => {
14225
- fromString += `OR (${LabelCollisionManager.QueryColumnNames.CATEGORY} = '${element.category}'`;
14183
+ fromString += `OR (${SVGStyle.QueryColumnNames.CATEGORY} = '${element.category}'`;
14226
14184
  if (!(null == element.rowGroup || 0 === element.rowGroup.length || !element.rowGroup.trim())) {
14227
14185
  // if not empty
14228
- fromString += `and ${LabelCollisionManager.QueryColumnNames.ROWGROUP} = '${element.rowGroup}'`;
14186
+ fromString += `and ${SVGStyle.QueryColumnNames.ROWGROUP} = '${element.rowGroup}'`;
14229
14187
  }
14230
14188
  if (this.config.grouped === false) {
14231
- groupName = ` 'SUM_TOTAL' as ${LabelCollisionManager.QueryColumnNames.ROWGROUP} `;
14189
+ groupName = ` 'SUM_TOTAL' as ${SVGStyle.QueryColumnNames.ROWGROUP} `;
14232
14190
  rowNum = "1";
14233
14191
  }
14234
14192
  fromString += `)`;
14235
14193
  });
14236
14194
  // let dimensionGroups = `${QueryColumnNames.CATEGORY}, ${QueryColumnNames.SUBCATEGORY}, ${QueryColumnNames.ROWGROUP}`;
14237
14195
  // invertet Sort directon because the later used insertion which results into expected order direction
14238
- drillQueries.push(`SELECT ${rowNum} AS ${LabelCollisionManager.QueryColumnNames.ROWNR},
14239
- 'PARTELEMENT' as ${LabelCollisionManager.QueryColumnNames.TYPE},
14240
- ${LabelCollisionManager.QueryColumnNames.CATEGORY},
14196
+ drillQueries.push(`SELECT ${rowNum} AS ${SVGStyle.QueryColumnNames.ROWNR},
14197
+ 'PARTELEMENT' as ${SVGStyle.QueryColumnNames.TYPE},
14198
+ ${SVGStyle.QueryColumnNames.CATEGORY},
14241
14199
  ${groupName},
14242
14200
  ${scenarios}
14243
14201
  FROM ${this.fromExpr}
14244
14202
  WHERE ${fromString}
14245
- GROUP BY ${LabelCollisionManager.QueryColumnNames.ROWGROUP}, ${LabelCollisionManager.QueryColumnNames.CATEGORY}, ${LabelCollisionManager.QueryColumnNames.TYPE}
14203
+ GROUP BY ${SVGStyle.QueryColumnNames.ROWGROUP}, ${SVGStyle.QueryColumnNames.CATEGORY}, ${SVGStyle.QueryColumnNames.TYPE}
14246
14204
  ORDER BY ${order[1]}`);
14247
14205
  return drillQueries;
14248
14206
  }
@@ -14457,7 +14415,7 @@ class WaterfallResult {
14457
14415
  function hasGroupingStructure(queryData) {
14458
14416
  for (const groupData of queryData) {
14459
14417
  for (const row of groupData) {
14460
- const type = row[LabelCollisionManager.QueryColumnNames.TYPE];
14418
+ const type = row[SVGStyle.QueryColumnNames.TYPE];
14461
14419
  if (type === TableRowType.SUM ||
14462
14420
  type === TableRowType.GROUPSUM ||
14463
14421
  type === TableRowType.DRILLELEMENT ||
@@ -14486,7 +14444,7 @@ function signedValue(row, column, tableType) {
14486
14444
  return null;
14487
14445
  }
14488
14446
  const isOpt = tableType === TableType$2.OPT || tableType === TableType$2.OPTNOTOTAL;
14489
- if (isOpt && row[LabelCollisionManager.QueryColumnNames.TYPE] === TableRowType.ENTRY && row[LabelCollisionManager.QueryColumnNames.OPERATION] === "-") {
14447
+ if (isOpt && row[SVGStyle.QueryColumnNames.TYPE] === TableRowType.ENTRY && row[SVGStyle.QueryColumnNames.OPERATION] === "-") {
14490
14448
  return -value;
14491
14449
  }
14492
14450
  return value;
@@ -14521,7 +14479,7 @@ function computeWaterfall(queryData, columns, tableType) {
14521
14479
  };
14522
14480
  for (const groupData of queryData) {
14523
14481
  for (const row of groupData) {
14524
- const type = row[LabelCollisionManager.QueryColumnNames.TYPE];
14482
+ const type = row[SVGStyle.QueryColumnNames.TYPE];
14525
14483
  if (type === TableRowType.GROUPHEAD) {
14526
14484
  lastParent = undefined;
14527
14485
  continue;
@@ -14635,7 +14593,7 @@ class TableDataSetFactory {
14635
14593
  const attribute = this.attributesByAlias.get(scenario.name);
14636
14594
  headerRow.createElement(attribute
14637
14595
  ? i18n.get(attribute.label) || attribute.label
14638
- : LabelCollisionManager.Formatter.translateScenarioLabel(scenario.name, i18n), scenario.type, this.createColumnType(scenario), null, this.setHeaderPrefix(scenario, i18n, measureScale, measureUnit, showMeasureScale), null, null, null, null);
14596
+ : SVGStyle.Formatter.translateScenarioLabel(scenario.name, i18n), scenario.type, this.createColumnType(scenario), null, this.setHeaderPrefix(scenario, i18n, measureScale, measureUnit, showMeasureScale), null, null, null, null);
14639
14597
  separatorRow.createElement(null, scenario.type, this.createColumnType(scenario), null, null, null, null, null, null);
14640
14598
  }
14641
14599
  header.push(headerRow);
@@ -14672,11 +14630,11 @@ class TableDataSetFactory {
14672
14630
  let prefix = "";
14673
14631
  if (scenario.name === "category" && showMeasureScale) {
14674
14632
  if (measureScale.prefix.length !== 0 || measureUnit.length !== 0) {
14675
- prefix = LabelCollisionManager.Formatter.translateScenarioLabel("in", i18n) + " " + measureScale.prefix + measureUnit;
14633
+ prefix = SVGStyle.Formatter.translateScenarioLabel("in", i18n) + " " + measureScale.prefix + measureUnit;
14676
14634
  }
14677
14635
  }
14678
14636
  if (scenario.order) {
14679
- prefix += LabelCollisionManager.Formatter.translateScenarioLabel("ORDER_" + scenario.order, i18n);
14637
+ prefix += SVGStyle.Formatter.translateScenarioLabel("ORDER_" + scenario.order, i18n);
14680
14638
  }
14681
14639
  return prefix;
14682
14640
  }
@@ -14689,24 +14647,24 @@ class TableDataSetFactory {
14689
14647
  normalizeHeader(type, scenarios, attributes) {
14690
14648
  let header = [
14691
14649
  {
14692
- name: LabelCollisionManager.QueryColumnNames.CATEGORY,
14693
- group: LabelCollisionManager.QueryColumnNames.CATEGORY,
14694
- type: LabelCollisionManager.QueryColumnNames.CATEGORY,
14650
+ name: SVGStyle.QueryColumnNames.CATEGORY,
14651
+ group: SVGStyle.QueryColumnNames.CATEGORY,
14652
+ type: SVGStyle.QueryColumnNames.CATEGORY,
14695
14653
  order: undefined,
14696
14654
  },
14697
14655
  ];
14698
14656
  if (TableType$2.OPT === type || TableType$2.OPTNOTOTAL === type) {
14699
14657
  header = [
14700
14658
  {
14701
- name: LabelCollisionManager.QueryColumnNames.OPERATION,
14702
- group: LabelCollisionManager.QueryColumnNames.OPERATION,
14703
- type: LabelCollisionManager.QueryColumnNames.OPERATION,
14659
+ name: SVGStyle.QueryColumnNames.OPERATION,
14660
+ group: SVGStyle.QueryColumnNames.OPERATION,
14661
+ type: SVGStyle.QueryColumnNames.OPERATION,
14704
14662
  order: undefined,
14705
14663
  },
14706
14664
  {
14707
- name: LabelCollisionManager.QueryColumnNames.CATEGORY,
14708
- group: LabelCollisionManager.QueryColumnNames.CATEGORY,
14709
- type: LabelCollisionManager.QueryColumnNames.CATEGORY,
14665
+ name: SVGStyle.QueryColumnNames.CATEGORY,
14666
+ group: SVGStyle.QueryColumnNames.CATEGORY,
14667
+ type: SVGStyle.QueryColumnNames.CATEGORY,
14710
14668
  order: undefined,
14711
14669
  },
14712
14670
  ];
@@ -14859,10 +14817,10 @@ class TableDataSetFactory {
14859
14817
  for (const rawDataRow of groupData) {
14860
14818
  iRowIndex += 1;
14861
14819
  // create next table row
14862
- const groupName = rawDataRow[LabelCollisionManager.QueryColumnNames.ROWGROUP];
14863
- const subCategory = rawDataRow[LabelCollisionManager.QueryColumnNames.SUBCATEGORY];
14864
- const type = rawDataRow[LabelCollisionManager.QueryColumnNames.TYPE];
14865
- const isSecondElement = rawDataRow[LabelCollisionManager.QueryColumnNames.ROWNR] >= 2;
14820
+ const groupName = rawDataRow[SVGStyle.QueryColumnNames.ROWGROUP];
14821
+ const subCategory = rawDataRow[SVGStyle.QueryColumnNames.SUBCATEGORY];
14822
+ const type = rawDataRow[SVGStyle.QueryColumnNames.TYPE];
14823
+ const isSecondElement = rawDataRow[SVGStyle.QueryColumnNames.ROWNR] >= 2;
14866
14824
  const detailsRow = this.createDetailRow(type, iRowIndex, iGroupIndex, groupData.length);
14867
14825
  for (const scenario of this.normalizedHeader) {
14868
14826
  const value = this.getRawDataRowElement(rawDataRow, scenario);
@@ -14997,7 +14955,7 @@ class TableDataSetFactory {
14997
14955
  if (this.attributesByAlias.has(scenario)) {
14998
14956
  return "attribute";
14999
14957
  }
15000
- const scenarios = new LabelCollisionManager.VarianceScenario(scenario);
14958
+ const scenarios = new SVGStyle.VarianceScenario(scenario);
15001
14959
  let prefix = "pos";
15002
14960
  if (value < 0) {
15003
14961
  prefix = "neg";
@@ -15016,7 +14974,7 @@ class TableDataSetFactory {
15016
14974
  return attribute.isNumeric ? "decimal" : "";
15017
14975
  }
15018
14976
  let unitType;
15019
- const scenarios = new LabelCollisionManager.VarianceScenario(scenario);
14977
+ const scenarios = new SVGStyle.VarianceScenario(scenario);
15020
14978
  if (scenariosUnitType === VarianceMeasure.DataFormat.PERCENT) {
15021
14979
  unitType = "percent";
15022
14980
  if (scenarios.isValid && scenarios.type === "d") {
@@ -15098,7 +15056,7 @@ class Table {
15098
15056
  this.headerRows = [];
15099
15057
  this.bodyRows = [];
15100
15058
  this.intervalBuckets = [];
15101
- this.ruleSet = ruleSet || new LabelCollisionManager.IBCSRuleSet();
15059
+ this.ruleSet = ruleSet || new SVGStyle.IBCSRuleSet();
15102
15060
  this.db = db;
15103
15061
  this.dataSetFactory = new TableDataSetFactory();
15104
15062
  this.config = this.initConfig(config);
@@ -15328,7 +15286,7 @@ class TableComponentConfig {
15328
15286
  this.partOf = [];
15329
15287
  /** Custom columns computed from dataset fields via aggregate expressions (see bn-table `attributes` prop). */
15330
15288
  this.attributes = [];
15331
- this.sortOrder = new withStyled.OrderAdapter(new StringAdapter()).default();
15289
+ this.sortOrder = new Order.OrderAdapter(new StringAdapter()).default();
15332
15290
  /** Table aggregation mode: LIST (flat), SUM (with totals), OPT (with optional totals), etc. */
15333
15291
  this.type = TableType$2.LIST;
15334
15292
  /** Maximum rows to display; 0 means unlimited. */
@@ -15372,7 +15330,7 @@ class TableComponentConfigAdapter {
15372
15330
  config.title = data.title;
15373
15331
  }
15374
15332
  if (VarianceMeasure.CompareUtil.isArray(data.scenarios)) {
15375
- config.scenarios = withStyled.AdapterUtils.adaptArray(data.scenarios, this.stringAdapter);
15333
+ config.scenarios = Order.AdapterUtils.adaptArray(data.scenarios, this.stringAdapter);
15376
15334
  }
15377
15335
  if (VarianceMeasure.CompareUtil.isExisting(data.scenariosUnitType)) {
15378
15336
  config.scenariosUnitType = data.scenariosUnitType;
@@ -15387,13 +15345,13 @@ class TableComponentConfigAdapter {
15387
15345
  config.showMeasureScale = data.showMeasureScale;
15388
15346
  }
15389
15347
  if (VarianceMeasure.CompareUtil.isArray(data.thereOf)) {
15390
- config.thereOf = withStyled.AdapterUtils.adaptArray(data.thereOf, this.tableDrillGroupAdapter);
15348
+ config.thereOf = Order.AdapterUtils.adaptArray(data.thereOf, this.tableDrillGroupAdapter);
15391
15349
  }
15392
15350
  if (VarianceMeasure.CompareUtil.isExisting(data.categoryThereOf)) {
15393
15351
  config.categoryThereOf = data.categoryThereOf;
15394
15352
  }
15395
15353
  if (VarianceMeasure.CompareUtil.isArray(data.partOf)) {
15396
- config.partOf = withStyled.AdapterUtils.adaptArray(data.partOf, this.tableDrillGroupAdapter);
15354
+ config.partOf = Order.AdapterUtils.adaptArray(data.partOf, this.tableDrillGroupAdapter);
15397
15355
  }
15398
15356
  if (VarianceMeasure.CompareUtil.isArray(data.attributes)) {
15399
15357
  config.attributes = data.attributes;
@@ -15556,7 +15514,7 @@ const IbcsTable = class {
15556
15514
  const db = this.stores.db.db;
15557
15515
  const config = this.prepareConfig(db);
15558
15516
  this.componentDataFormatDigits = new DataFormatDigitsAdapter().adapt(this.dataFormatDigits);
15559
- this.table = new Table(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig), db, this.tableName, config);
15517
+ this.table = new Table(new SVGStyle.IBCSRuleSet(this.ruleSetConfig), db, this.tableName, config);
15560
15518
  this.table.setI18n(this.i18n);
15561
15519
  this.barChartStyles = this.prepareBarChartStyles();
15562
15520
  }
@@ -15567,7 +15525,7 @@ const IbcsTable = class {
15567
15525
  ? `(SELECT * FROM \`${this.tableName}\` WHERE ${this.filter}) AS __src`
15568
15526
  : `\`${this.tableName}\``
15569
15527
  : "";
15570
- const config = new TableComponentConfigAdapter(new TableDrillGroupAdapter(), new StringAdapter(), new withStyled.OrderAdapter(new StringAdapter()), db, fromExpr).adapt({
15528
+ const config = new TableComponentConfigAdapter(new TableDrillGroupAdapter(), new StringAdapter(), new Order.OrderAdapter(new StringAdapter()), db, fromExpr).adapt({
15571
15529
  title: this.sumTitle,
15572
15530
  scenarios: this.scenarios,
15573
15531
  scenariosUnitType: this.scenariosDataFormat,
@@ -15801,7 +15759,7 @@ class TitleDataSetFactory {
15801
15759
  }
15802
15760
  }
15803
15761
  }
15804
- return "".concat(" ", LabelCollisionManager.Formatter.translateScenarioLabel(scenario, i18n), orderString);
15762
+ return "".concat(" ", SVGStyle.Formatter.translateScenarioLabel(scenario, i18n), orderString);
15805
15763
  })
15806
15764
  .toString();
15807
15765
  return formatedTime + formatedScenarios;
@@ -15838,10 +15796,10 @@ class TitleConifgAdapter {
15838
15796
  config.businessunit = data.businessunit;
15839
15797
  }
15840
15798
  if (VarianceMeasure.CompareUtil.isArray(data.measures)) {
15841
- config.measures = withStyled.AdapterUtils.adaptArray(data.measures, this.measureEntryAdapter);
15799
+ config.measures = Order.AdapterUtils.adaptArray(data.measures, this.measureEntryAdapter);
15842
15800
  }
15843
15801
  if (VarianceMeasure.CompareUtil.isArray(data.scenarios)) {
15844
- config.scenarios = withStyled.AdapterUtils.adaptArray(data.scenarios, this.stringAdapter);
15802
+ config.scenarios = Order.AdapterUtils.adaptArray(data.scenarios, this.stringAdapter);
15845
15803
  }
15846
15804
  if (VarianceMeasure.CompareUtil.isExisting(data.timeperiod)) {
15847
15805
  config.timeperiod = this.timePeriodAdapter.adapt(data.timeperiod);
@@ -15875,13 +15833,13 @@ class Title {
15875
15833
  this.dimension = "";
15876
15834
  this.config = new TitleConfig();
15877
15835
  this.state = FactoryState.DIRTY;
15878
- this.ruleSet = ruleSet || new LabelCollisionManager.IBCSRuleSet();
15836
+ this.ruleSet = ruleSet || new SVGStyle.IBCSRuleSet();
15879
15837
  this.dataSetFactory = new TitleDataSetFactory();
15880
15838
  this.state = FactoryState.DIRTY;
15881
15839
  this.setI18n(new Map());
15882
15840
  }
15883
15841
  setRuleSet(ruleSet) {
15884
- this.ruleSet = ruleSet || new LabelCollisionManager.IBCSRuleSet();
15842
+ this.ruleSet = ruleSet || new SVGStyle.IBCSRuleSet();
15885
15843
  }
15886
15844
  /**
15887
15845
  * Set Localisation Map
@@ -16021,11 +15979,11 @@ const IbcsTitle = class {
16021
15979
  this.intervalSpanLimit = 28;
16022
15980
  this.order = {
16023
15981
  hierarchy: [],
16024
- direction: withStyled.OrderDirection.ASC,
15982
+ direction: Order.OrderDirection.ASC,
16025
15983
  };
16026
15984
  this.i18n = new Map(); // I18nMode;
16027
15985
  this.i18nMode = VarianceMeasure.I18nMode.ALL;
16028
- this.title = new Title(new LabelCollisionManager.IBCSRuleSet());
15986
+ this.title = new Title(new SVGStyle.IBCSRuleSet());
16029
15987
  }
16030
15988
  // so
16031
15989
  async setBusinessUnit(businessUnit) {
@@ -16039,18 +15997,18 @@ const IbcsTitle = class {
16039
15997
  });
16040
15998
  }
16041
15999
  render() {
16042
- return (index.h("div", { key: '48c386989821f8893046247277c018f08fefa557' }, index.h("div", { key: '21561f606551d3413ce6f1b3157eb0f1d2f532a3', innerHTML: sanitizeHtml.sanitizeHtml(this.title.unit) }), index.h("div", { key: '8882fa69e8baf3d7004370c2c8ea055d9f7e188e' }, this.title.measures.map((measure, index$1) => (index.h("span", null, this.isFirstElement(index$1) ? this.title.i18n.get("SEPERATOR_WS") : "", index.h("span", { class: "measure" }, measure.name), " ", measure.unit ? this.title.i18n.get("in") : "", " ", measure.unit)))), index.h("div", { key: '75a24b0f8fb46ae2fee2dbd1c54bf82d90320d3d' }, this.title.dimension)));
16000
+ return (index.h("div", { key: '7a95748a4576c654c9066efb2bfd7531238d2ed0' }, index.h("div", { key: '6a34ba1043660dc75b57cd029f6438d1178c34e4', innerHTML: sanitizeHtml.sanitizeHtml(this.title.unit) }), index.h("div", { key: '6ec241e7cd6ac8a2061aab1b822973e77e2fb7cd' }, this.title.measures.map((measure, index$1) => (index.h("span", null, this.isFirstElement(index$1) ? this.title.i18n.get("SEPERATOR_WS") : "", index.h("span", { class: "measure" }, measure.name), " ", measure.unit ? this.title.i18n.get("in") : "", " ", measure.unit)))), index.h("div", { key: 'd6bc97cd78ec8734d4d42b2537cf61dfcac28ae4' }, this.title.dimension)));
16043
16001
  }
16044
16002
  componentWillLoad() {
16045
16003
  const config = this.prepareConfig();
16046
- this.title = new Title(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig));
16004
+ this.title = new Title(new SVGStyle.IBCSRuleSet(this.ruleSetConfig));
16047
16005
  this.title.setI18n(this.i18n);
16048
16006
  this.title.setConfig(config);
16049
16007
  }
16050
16008
  componentWillUpdate() {
16051
16009
  const config = this.prepareConfig();
16052
16010
  this.title.setI18n(this.i18n);
16053
- this.title.setRuleSet(new LabelCollisionManager.IBCSRuleSet(this.ruleSetConfig));
16011
+ this.title.setRuleSet(new SVGStyle.IBCSRuleSet(this.ruleSetConfig));
16054
16012
  this.title.setConfig(config);
16055
16013
  }
16056
16014
  componentWillRender() {
@@ -16060,7 +16018,7 @@ const IbcsTitle = class {
16060
16018
  return index !== 0;
16061
16019
  }
16062
16020
  prepareConfig() {
16063
- return new TitleConifgAdapter(new MeasureEntryAdapter(), new TimePeriodAdapter(), new withStyled.OrderAdapter(new StringAdapter()), new StringAdapter()).adapt({
16021
+ return new TitleConifgAdapter(new MeasureEntryAdapter(), new TimePeriodAdapter(), new Order.OrderAdapter(new StringAdapter()), new StringAdapter()).adapt({
16064
16022
  businessunit: this.businessUnit,
16065
16023
  measures: this.measures,
16066
16024
  scenarios: this.scenarios,