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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-1265d8d3.entry.js +1 -0
  3. package/dist/bn-template-engine/p-15516dac.entry.js +1 -0
  4. package/dist/bn-template-engine/p-1c716641.entry.js +1 -0
  5. package/dist/bn-template-engine/p-27cc8dc0.entry.js +1 -0
  6. package/dist/bn-template-engine/p-3b4c7425.entry.js +1 -0
  7. package/dist/bn-template-engine/p-4426d484.entry.js +1 -0
  8. package/dist/bn-template-engine/p-51f8dc9e.entry.js +1 -0
  9. package/dist/bn-template-engine/p-53d4e690.entry.js +1 -0
  10. package/dist/bn-template-engine/p-5KQYRQLK.js +1 -0
  11. package/dist/bn-template-engine/p-7337e03d.entry.js +1 -0
  12. package/dist/bn-template-engine/{p-0f1504f3.entry.js → p-75e97c87.entry.js} +1 -1
  13. package/dist/bn-template-engine/p-7a560278.entry.js +1 -0
  14. package/dist/bn-template-engine/p-BYBpC0EO.js +1 -0
  15. package/dist/bn-template-engine/p-BfXY5dsy.js +1 -0
  16. package/dist/bn-template-engine/p-BgnHJQ9Q.js +1 -0
  17. package/dist/bn-template-engine/{p-B4ySv9KQ.js → p-Bhd_WSML.js} +1 -1
  18. package/dist/bn-template-engine/p-Bka-Z6jo.js +1 -0
  19. package/dist/bn-template-engine/p-Bnhh02CF.js +1 -0
  20. package/dist/bn-template-engine/p-C7dQL8CS.js +1 -0
  21. package/dist/bn-template-engine/p-CL1RYuNU.js +1 -0
  22. package/dist/bn-template-engine/p-CYwd_ZNM.js +1 -0
  23. package/dist/bn-template-engine/p-ChlK-T9I.js +1 -0
  24. package/dist/bn-template-engine/p-DHezf8pZ.js +1 -0
  25. package/dist/bn-template-engine/{p-DVMu6dEy.js → p-DlppAFq9.js} +1 -1
  26. package/dist/bn-template-engine/p-DvDDgmcV.js +1 -0
  27. package/dist/bn-template-engine/p-DvvwfRQG.js +1 -0
  28. package/dist/bn-template-engine/{p-DG-1MR_T.js → p-P7pGJBgc.js} +1 -1
  29. package/dist/bn-template-engine/p-abc0067c.entry.js +1 -0
  30. package/dist/bn-template-engine/p-b34eaf86.entry.js +1 -0
  31. package/dist/bn-template-engine/p-bdb8b44c.entry.js +1 -0
  32. package/dist/bn-template-engine/p-c44fcb8e.entry.js +1 -0
  33. package/dist/bn-template-engine/p-c7e1a49b.entry.js +1 -0
  34. package/dist/bn-template-engine/p-d9003041.entry.js +1 -0
  35. package/dist/bn-template-engine/p-daa7ffa3.entry.js +1 -0
  36. package/dist/bn-template-engine/p-e084f50a.entry.js +1 -0
  37. package/dist/bn-template-engine/p-eaba6658.entry.js +1 -0
  38. package/dist/bn-template-engine/{p-C0yAPzJz.js → p-u8igQLRZ.js} +1 -1
  39. package/dist/cjs/{DataFormatDigits-DAmZzqbD.js → DataFormatDigits-DKcOeLNK.js} +1 -1
  40. package/dist/cjs/{DateStringFactory-CcluhpGI.js → DateStringFactory-CSKvbS8K.js} +1 -1
  41. package/dist/cjs/{Order-BKoDS21t.js → Order-iG11HI4R.js} +8 -5
  42. package/dist/cjs/{SVGVariancesStyleGroup-DYYAU-81.js → SVGVariancesStyleGroup-K-Tw6lOD.js} +1 -14
  43. package/dist/cjs/bn-asset.cjs.entry.js +5 -4
  44. package/dist/cjs/bn-body_4.cjs.entry.js +15 -13
  45. package/dist/cjs/bn-card.cjs.entry.js +5 -4
  46. package/dist/cjs/{ibcs-chart-structure.cjs.entry.js → bn-chart-structure_5.cjs.entry.js} +1074 -30
  47. package/dist/cjs/bn-chart-time.cjs.entry.js +38 -12
  48. package/dist/cjs/bn-component-style.cjs.entry.js +5 -4
  49. package/dist/cjs/bn-dataset.cjs.entry.js +38 -9
  50. package/dist/cjs/bn-grid.cjs.entry.js +9 -7
  51. package/dist/cjs/bn-image.cjs.entry.js +9 -7
  52. package/dist/cjs/bn-internationalization.cjs.entry.js +5 -4
  53. package/dist/cjs/bn-layout-card.cjs.entry.js +3 -2
  54. package/dist/cjs/bn-layout-page.cjs.entry.js +2 -1
  55. package/dist/cjs/bn-message.cjs.entry.js +5 -4
  56. package/dist/cjs/bn-table.cjs.entry.js +981 -0
  57. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  58. package/dist/cjs/bn-template.cjs.entry.js +3 -2
  59. package/dist/cjs/bn-text.cjs.entry.js +11 -9
  60. package/dist/cjs/bn-tree.cjs.entry.js +9 -7
  61. package/dist/cjs/contentDecoder-JxOldq1e.js +419 -0
  62. package/dist/cjs/{context-protocol-CRPmux5D.js → context-protocol-DRQWrwsA.js} +2 -0
  63. package/dist/cjs/editor-companion.cjs.entry.js +1 -1
  64. package/dist/cjs/emotion-hash.esm-nbbEQ0Dn.js +57 -0
  65. package/dist/cjs/ibcs-chart-time.cjs.entry.js +22 -18
  66. package/dist/cjs/{bn-context_5.cjs.entry.js → ibcs-table.cjs.entry.js} +122 -1293
  67. package/dist/cjs/{StringAdapter-Bneo8T4k.js → ibcsRuleSet-DgUoXOfd.js} +10 -10
  68. package/dist/cjs/index-Dm85hG6t.js +65 -0
  69. package/dist/cjs/loader.cjs.js +1 -1
  70. package/dist/cjs/{scaling-D8sIIKft.js → scaling-9Tz595RQ.js} +7 -7
  71. package/dist/cjs/{withHasError-B8gHkfV2.js → utils-CwHIVbbL.js} +1 -69
  72. package/dist/cjs/{withBodyObserver-C6gLgq_e.js → withBodyObserver-CKpSD8UT.js} +3 -3
  73. package/dist/cjs/{withComponentStatus-_x4LQZ0N.js → withComponentStatus-Bw70BhO0.js} +5 -5
  74. package/dist/cjs/{withComponentStyle-DMtic_9Y.js → withComponentStyle-aIbTCtfj.js} +5 -5
  75. package/dist/cjs/withHasError-D7ue5vAv.js +72 -0
  76. package/dist/cjs/{withStyled-CW30Bh6c.js → withStyled-CS1Yp4sv.js} +8 -61
  77. package/dist/cjs/{withTranslation-CWPAIRjh.js → withTranslation-rwgyITqe.js} +5 -5
  78. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +226 -99
  79. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +13 -3
  80. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +94 -11
  81. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
  82. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +8 -6
  83. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +4 -0
  84. package/dist/collection/components/bn-chart-time/bn-chart-time.js +28 -4
  85. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -3
  86. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -4
  87. package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +4 -0
  88. package/dist/collection/components/bn-dataset/bn-dataset.js +49 -2
  89. package/dist/collection/components/bn-datasource/bn-datasource.js +46 -3
  90. package/dist/collection/components/bn-table/bn-table.js +20 -21
  91. package/dist/collection/components/bn-table/ibcs-table.js +2 -2
  92. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +58 -41
  93. package/dist/collection/stores/componentStyles.js +2 -0
  94. package/dist/collection/utils/constants.js +8 -5
  95. package/dist/collection/utils/contentDecoder.js +28 -0
  96. package/dist/collection/utils/stackColors.js +2 -2
  97. package/dist/collection/utils/validate.js +1 -1
  98. package/dist/components/DataFormatDigits.js +1 -1
  99. package/dist/components/Order.js +1 -1
  100. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  101. package/dist/components/bn-chart-structure.js +1 -1
  102. package/dist/components/bn-chart-time.js +1 -1
  103. package/dist/components/bn-dataset.js +1 -1
  104. package/dist/components/bn-datasource.js +1 -1
  105. package/dist/components/bn-table.js +1 -1
  106. package/dist/components/contentDecoder.js +1 -0
  107. package/dist/components/context-protocol.js +1 -1
  108. package/dist/components/emotion-hash.esm.js +1 -0
  109. package/dist/components/ibcs-chart-structure2.js +1 -1
  110. package/dist/components/ibcs-chart-time2.js +1 -1
  111. package/dist/components/ibcs-table2.js +1 -1
  112. package/dist/components/ibcs-title2.js +1 -1
  113. package/dist/components/ibcsRuleSet.js +1 -1
  114. package/dist/components/validate.js +1 -1
  115. package/dist/components/withStyled.js +1 -1
  116. package/dist/esm/{DataFormatDigits--qIbKvXa.js → DataFormatDigits-oSZ1hBKE.js} +1 -1
  117. package/dist/esm/{DateStringFactory-XWdUjsn8.js → DateStringFactory-CSGz6TDk.js} +1 -1
  118. package/dist/esm/{Order-sqjrku2z.js → Order-Bnhh02CF.js} +9 -6
  119. package/dist/esm/{SVGVariancesStyleGroup-ibg3sLjM.js → SVGVariancesStyleGroup-CqTjrZYg.js} +2 -13
  120. package/dist/esm/bn-asset.entry.js +5 -4
  121. package/dist/esm/bn-body_4.entry.js +11 -9
  122. package/dist/esm/bn-card.entry.js +5 -4
  123. package/dist/esm/{ibcs-chart-structure.entry.js → bn-chart-structure_5.entry.js} +1064 -24
  124. package/dist/esm/bn-chart-time.entry.js +38 -12
  125. package/dist/esm/bn-component-style.entry.js +5 -4
  126. package/dist/esm/bn-dataset.entry.js +35 -6
  127. package/dist/esm/bn-grid.entry.js +9 -7
  128. package/dist/esm/bn-image.entry.js +9 -7
  129. package/dist/esm/bn-internationalization.entry.js +5 -4
  130. package/dist/esm/bn-layout-card.entry.js +3 -2
  131. package/dist/esm/bn-layout-page.entry.js +2 -1
  132. package/dist/esm/bn-message.entry.js +5 -4
  133. package/dist/esm/bn-table.entry.js +979 -0
  134. package/dist/esm/bn-template-engine.js +1 -1
  135. package/dist/esm/bn-template.entry.js +3 -2
  136. package/dist/esm/bn-text.entry.js +11 -9
  137. package/dist/esm/bn-tree.entry.js +9 -7
  138. package/dist/esm/contentDecoder-oMmxz6nJ.js +416 -0
  139. package/dist/esm/{context-protocol-Bz5klD-F.js → context-protocol-BHnQsVsr.js} +2 -0
  140. package/dist/esm/editor-companion.entry.js +1 -1
  141. package/dist/esm/emotion-hash.esm-BYBpC0EO.js +55 -0
  142. package/dist/esm/ibcs-chart-time.entry.js +15 -11
  143. package/dist/esm/{bn-context_5.entry.js → ibcs-table.entry.js} +69 -1236
  144. package/dist/esm/{StringAdapter-BCLJpQQ8.js → ibcsRuleSet-K4ytuA1f.js} +10 -10
  145. package/dist/esm/index-DHezf8pZ.js +65 -0
  146. package/dist/esm/loader.js +1 -1
  147. package/dist/esm/{scaling-C6K8FYSF.js → scaling-Cehc74IE.js} +2 -2
  148. package/dist/esm/{withHasError-B3QX2emi.js → utils-DvvwfRQG.js} +1 -69
  149. package/dist/esm/{withBodyObserver-DczL5ia8.js → withBodyObserver-FQ8NwCIz.js} +1 -1
  150. package/dist/esm/{withComponentStatus-DodoSXe-.js → withComponentStatus-DWjDYtZ7.js} +1 -1
  151. package/dist/esm/{withComponentStyle-BerJY64r.js → withComponentStyle-9uP_hcDq.js} +2 -2
  152. package/dist/esm/withHasError-FyY5mQ_3.js +70 -0
  153. package/dist/esm/{withStyled-D1fAWJ3g.js → withStyled--qQWquTH.js} +6 -59
  154. package/dist/esm/{withTranslation-mimbJdER.js → withTranslation-BqD0Kp7b.js} +2 -2
  155. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +155 -109
  156. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
  157. package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +2 -0
  158. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
  159. package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +1 -0
  160. package/dist/types/components/bn-dataset/bn-dataset.d.ts +6 -0
  161. package/dist/types/components/bn-datasource/bn-datasource.d.ts +8 -0
  162. package/dist/types/components/bn-table/bn-table.d.ts +10 -8
  163. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +0 -2
  164. package/dist/types/components.d.ts +102 -38
  165. package/dist/types/stores/componentStyles.d.ts +2 -0
  166. package/dist/types/utils/constants.d.ts +8 -5
  167. package/dist/types/utils/contentDecoder.d.ts +12 -0
  168. package/package.json +2 -1
  169. package/dist/bn-template-engine/p-05a82a77.entry.js +0 -1
  170. package/dist/bn-template-engine/p-1970906d.entry.js +0 -1
  171. package/dist/bn-template-engine/p-1dbd339c.entry.js +0 -1
  172. package/dist/bn-template-engine/p-2e68cf09.entry.js +0 -1
  173. package/dist/bn-template-engine/p-31cc6a2d.entry.js +0 -1
  174. package/dist/bn-template-engine/p-37881d05.entry.js +0 -1
  175. package/dist/bn-template-engine/p-3b894997.entry.js +0 -1
  176. package/dist/bn-template-engine/p-50e49732.entry.js +0 -1
  177. package/dist/bn-template-engine/p-6c7c0455.entry.js +0 -1
  178. package/dist/bn-template-engine/p-6da93eae.entry.js +0 -1
  179. package/dist/bn-template-engine/p-701e1578.entry.js +0 -1
  180. package/dist/bn-template-engine/p-8tsCnxIz.js +0 -1
  181. package/dist/bn-template-engine/p-997b2fe4.entry.js +0 -1
  182. package/dist/bn-template-engine/p-BL8gyUwE.js +0 -1
  183. package/dist/bn-template-engine/p-BSfqOkN_.js +0 -1
  184. package/dist/bn-template-engine/p-CRLgp9-v.js +0 -1
  185. package/dist/bn-template-engine/p-CYjZRKdI.js +0 -1
  186. package/dist/bn-template-engine/p-DRikHQE-.js +0 -1
  187. package/dist/bn-template-engine/p-DtdQCMzj.js +0 -1
  188. package/dist/bn-template-engine/p-a90f1cbe.entry.js +0 -1
  189. package/dist/bn-template-engine/p-b7bec050.entry.js +0 -1
  190. package/dist/bn-template-engine/p-d7f0cbaf.entry.js +0 -1
  191. package/dist/bn-template-engine/p-dfb61aa5.entry.js +0 -1
  192. package/dist/bn-template-engine/p-ece17f84.entry.js +0 -1
  193. package/dist/bn-template-engine/p-f27995c9.entry.js +0 -1
  194. package/dist/bn-template-engine/p-fd427179.entry.js +0 -1
  195. package/dist/bn-template-engine/p-sqjrku2z.js +0 -1
  196. package/dist/bn-template-engine/p-tzFCK9qn.js +0 -1
  197. package/dist/cjs/bn-chart-structure.cjs.entry.js +0 -700
  198. package/dist/esm/bn-chart-structure.entry.js +0 -698
@@ -1,700 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-Cjw0q6gP.js');
4
- var withStyled = require('./withStyled-CW30Bh6c.js');
5
- var scaling = require('./scaling-D8sIIKft.js');
6
- var withComponentStatus = require('./withComponentStatus-_x4LQZ0N.js');
7
- var withTranslation = require('./withTranslation-CWPAIRjh.js');
8
- var contextProtocol = require('./context-protocol-CRPmux5D.js');
9
- var withComponentStyle = require('./withComponentStyle-DMtic_9Y.js');
10
- var withHasError = require('./withHasError-B8gHkfV2.js');
11
- var Order = require('./Order-BKoDS21t.js');
12
- require('./DateStringFactory-CcluhpGI.js');
13
-
14
- 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}`;
15
-
16
- const Chart = class {
17
- validateScenario(newValue) {
18
- const invalidScenarios = withStyled.validateScenarioList(newValue);
19
- const errId = "ERR_scenarios";
20
- if (invalidScenarios.length > 0) {
21
- this.errors.addOrReplace({
22
- id: errId,
23
- type: "warning",
24
- message: "scenarios: invalid value(s) '" + JSON.stringify(invalidScenarios) + "' are not supported.",
25
- });
26
- }
27
- else {
28
- this.errors.remove(errId);
29
- }
30
- }
31
- validateVariances(newValue) {
32
- const errIdVar = "ERR_variances";
33
- const invalidVariances = withStyled.validateVariancesList(newValue);
34
- if (invalidVariances.length > 0) {
35
- this.errors.addOrReplace({
36
- id: errIdVar,
37
- type: "warning",
38
- message: "variances: invalid value(s) '" + JSON.stringify(invalidVariances) + "' are not supported.",
39
- });
40
- }
41
- else {
42
- this.errors.remove(errIdVar);
43
- }
44
- }
45
- validateUnitScaling(newValue) {
46
- const errId = "ERR_unitScaling";
47
- if (!withStyled.isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
48
- this.errors.addOrReplace({
49
- id: errId,
50
- type: "warning",
51
- message: "unitScaling: invalid value(s) '" + newValue + "' are not supported.",
52
- });
53
- }
54
- else {
55
- this.errors.remove(errId);
56
- }
57
- }
58
- validatePercentageScaling(newValue) {
59
- const errId = "ERR_percentageScaling";
60
- if (!withStyled.isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
61
- this.errors.addOrReplace({
62
- id: errId,
63
- type: "warning",
64
- message: "percentageScaling: invalid value(s) '" + newValue + "' are not supported.",
65
- });
66
- }
67
- else {
68
- this.errors.remove(errId);
69
- }
70
- }
71
- validateLevel(newValue) {
72
- const errId = "ERR_level";
73
- if (!withStyled.isValidLevel(newValue)) {
74
- this.errors.addOrReplace({
75
- id: errId,
76
- type: "warning",
77
- message: "level: invalid value(s) '" + newValue + "' are not supported.",
78
- });
79
- }
80
- else {
81
- this.errors.remove(errId);
82
- }
83
- }
84
- validateOrderList(newValue) {
85
- const invalidElements = withStyled.validateOrderList(newValue);
86
- const errId = "ERR_order";
87
- if (invalidElements.length > 0) {
88
- this.errors.addOrReplace({
89
- id: errId,
90
- type: "warning",
91
- message: "order: invalid value(s) '" + JSON.stringify(invalidElements) + "' are not supported.",
92
- });
93
- }
94
- else {
95
- this.errors.remove(errId);
96
- }
97
- }
98
- validateOrderDirection(newValue) {
99
- const errId = "ERR_orderDirection";
100
- if (!withStyled.isValidDirection(newValue)) {
101
- this.errors.addOrReplace({
102
- id: errId,
103
- type: "warning",
104
- message: "orderDirection: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
105
- });
106
- }
107
- else {
108
- this.errors.remove(errId);
109
- }
110
- }
111
- validateLimit(newValue) {
112
- const errId = "ERR_limit";
113
- if (!withStyled.isValidInteger(newValue)) {
114
- this.errors.addOrReplace({
115
- id: errId,
116
- type: "warning",
117
- message: "limit: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
118
- });
119
- }
120
- else {
121
- this.errors.remove(errId);
122
- }
123
- }
124
- validateShowCategories(newValue) {
125
- const errId = "ERR_showCategories";
126
- if (!withStyled.isValidBoolean(newValue)) {
127
- this.errors.addOrReplace({
128
- id: errId,
129
- type: "warning",
130
- message: "showCategories: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
131
- });
132
- }
133
- else {
134
- this.errors.remove(errId);
135
- }
136
- }
137
- validateMeasureScale(newValue) {
138
- const errId = "ERR_measureScale";
139
- if (!withStyled.isValidMeasureScale(newValue)) {
140
- this.errors.addOrReplace({
141
- id: errId,
142
- type: "warning",
143
- message: "measureScale: invalid value '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' is not supported.",
144
- });
145
- }
146
- else {
147
- this.errors.remove(errId);
148
- }
149
- }
150
- validateShowMeasureScale(newValue) {
151
- const errId = "ERR_grouped";
152
- if (!withStyled.isValidBoolean(newValue)) {
153
- this.errors.addOrReplace({
154
- id: errId,
155
- type: "warning",
156
- message: "showMeasureScale: invalid value(s) '" + (newValue === null || newValue === void 0 ? void 0 : newValue.toString()) + "' are not supported.",
157
- });
158
- }
159
- else {
160
- this.errors.remove(errId);
161
- }
162
- }
163
- validateStack(newValue) {
164
- const errId = "ERR_stack";
165
- const errors = withStyled.validateStackConfig(newValue);
166
- if (errors.length > 0) {
167
- this.errors.addOrReplace({
168
- id: errId,
169
- type: "warning",
170
- message: errors.join("; "),
171
- });
172
- }
173
- else {
174
- this.errors.remove(errId);
175
- }
176
- }
177
- validateScaling(newValue) {
178
- if (newValue == null || newValue === "" || newValue === "none" || newValue === "auto") {
179
- this.errors.remove("ERR_scale");
180
- return;
181
- }
182
- const num = Number(newValue);
183
- if (isNaN(num) || num <= 0) {
184
- this.errors.addOrReplace({
185
- id: "ERR_scale",
186
- type: "warning",
187
- message: `Invalid scale value: "${newValue}". Use "none", "auto", or a positive number.`,
188
- });
189
- }
190
- else {
191
- this.errors.remove("ERR_scale");
192
- }
193
- }
194
- constructor(hostRef) {
195
- index.registerInstance(this, hostRef);
196
- this.data = [];
197
- this.datasetMeta = null;
198
- this.appliedScaleFactor = 1;
199
- /**
200
- * Custom chart title
201
- */
202
- this.chartTitle = "";
203
- /**
204
- * AlaSQL WHERE clause fragment injected into the data query to filter
205
- * rows before rendering (e.g. `"rowGroup = 'Revenue'"`).
206
- */
207
- this.filter = "";
208
- /** set translaton mode.
209
- * <br /><br />
210
- * values:<br />
211
- * ``` all // none // meta ```
212
- */
213
- /**
214
- * Set the maximum number of bars for each
215
- * group. The value 0 means *no limit*
216
- * <br /><br />
217
- * rows wich where cut by the limit are cumulated as REST
218
- *
219
- */
220
- this.limit = 0;
221
- this.showCategories = "true";
222
- /**
223
- * Sets the SiPrefix of the Mesaurements and converts the
224
- * original value.
225
- * <br /><br />
226
- * values: <br />
227
- * ```_ // k // M // G // T // P // E // Z // Y // m // μ // n // p // P // f // a // z // y // GREATEST // LEAST```
228
- * <br /><br />
229
- * SiPrefix overview:
230
- * ``` "Y": 1E+24,```<br />
231
- * ``` "Z": 1E+21,```<br />
232
- * ``` "E": 1E+18,```<br />
233
- * ``` "P": 1E+15,```<br />
234
- * ``` "T": 1E+12,```<br />
235
- * ``` "G": 1000000000,```<br />
236
- * ``` "M": 1000000,```<br />
237
- * ``` "k": 1000,```<br />
238
- * <br />
239
- * ``` "m": 0.001,```<br />
240
- * ``` "μ": 0.000001,```<br />
241
- * ``` "n": 0.000000001,```<br />
242
- * ``` "p": 0.000000000001,```<br />
243
- * ``` "f": 0.000000000000001,```<br />
244
- * ``` "a": 0.000000000000000001,```<br />
245
- * ``` "z": 0.000000000000000000001,```<br />
246
- * ``` "y": 0.000000000000000000000001,```<br />
247
- * <br /><br />
248
- * Special modes:
249
- * ```GREATEST``` seaches for the bigest (farest to zero) Value in the dataset and sets this value to SiPrefix<br />
250
- * ```LEAST``` searches for smallest (closest to zero) Value in the dataset and sets this value to SiPrefix<br />
251
- *<br /><br />
252
- * ```_``` is the value for no SiPrefix the value is displayed as in the dataset stored.
253
- *
254
- *
255
- */
256
- this.measureScale = "greatest";
257
- /**
258
- * Toggles display of measure units in table header
259
- * <br /><br />
260
- * values: <br />
261
- * ```true // false```
262
- */
263
- this.showMeasureScale = "false";
264
- /**
265
- * measureUnit displayed in table.
266
- */
267
- this.measureUnit = "";
268
- /**
269
- * Stacking configuration for the chart as a JSON string.
270
- *
271
- * When set, bars are drawn stacked (additive layers) instead of side-by-side.
272
- *
273
- * @default '' (empty — no stacking)
274
- * @example stack='{"by":"scenario"}'
275
- */
276
- this.stack = "";
277
- this.scenariosArray = [""];
278
- this.pixelPerUnitGroupMap = new Map();
279
- this._autoScaleGuard = false;
280
- withStyled.withStyled(this);
281
- withComponentStatus.withComponentStatus(this);
282
- scaling.withDataset(this, (_name, data) => {
283
- this.data = (data || []);
284
- }, (_name, meta) => {
285
- this.datasetMeta = meta;
286
- });
287
- this.chartTemplate = this.chartTemplate.bind(this);
288
- this.errors = withHasError.withHasError(this);
289
- this.componentStyle = withComponentStyle.withComponentStyle(this);
290
- this.t = withTranslation.withTranslation(this).t;
291
- }
292
- componentWillLoad() {
293
- this.validateScenario(this.scenarios);
294
- this.validateVariances(this.variances);
295
- this.validateUnitScaling(this.unitScaling);
296
- //this.validateSelectedStyle(this.selectedStyle);
297
- this.validateLevel(this.level);
298
- this.validateOrderDirection(this.orderDirection);
299
- this.validateOrderList(this.order);
300
- this.validateShowCategories(this.showCategories);
301
- this.validateMeasureScale(this.measureScale);
302
- this.validateShowMeasureScale(this.showMeasureScale);
303
- this.validateStack(this.stack);
304
- this.validateScaling(this.scale);
305
- }
306
- componentDidRender() {
307
- var _a, _b;
308
- const { mode } = scaling.parseScaling(this.scale);
309
- if (mode !== "auto" && mode !== "empty") {
310
- this._autoScaleGuard = false;
311
- // Keep existing width-based overflow warning for non-auto modes
312
- const parent = scaling.getParentDimensions(this.element);
313
- const errId = "WARN_overflow";
314
- if (parent.width > 0 && this.element.scrollWidth > parent.width + 1) {
315
- this.errors.addOrReplace({
316
- id: errId,
317
- type: "warning",
318
- message: "Chart exceeds available space and will be cut off. Check unit-scaling value.",
319
- });
320
- }
321
- else {
322
- this.errors.remove(errId);
323
- }
324
- return;
325
- }
326
- if (this._autoScaleGuard) {
327
- this._autoScaleGuard = false;
328
- return;
329
- }
330
- const host = this.element;
331
- const { height: parentHeight } = scaling.getParentDimensions(host);
332
- if (parentHeight <= 0)
333
- return;
334
- // Measure at base (unscaled) font size to get true content height
335
- const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
336
- host.style.setProperty("--bn-font-size", `${baseFontSize}px`);
337
- // Reading scrollHeight forces a synchronous reflow at base size
338
- const div = (_a = host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".container");
339
- const unscaledHeight = (_b = div === null || div === void 0 ? void 0 : div.scrollHeight) !== null && _b !== void 0 ? _b : host.scrollHeight;
340
- if (unscaledHeight <= parentHeight + 1) {
341
- this.errors.remove("AUTO_scale");
342
- if (this.appliedScaleFactor !== 1) {
343
- this._autoScaleGuard = true;
344
- this.appliedScaleFactor = 1;
345
- }
346
- return;
347
- }
348
- const computedFactor = (parentHeight - 1) / unscaledHeight;
349
- host.style.setProperty("--bn-font-size", `${baseFontSize * computedFactor}px`);
350
- if (mode === "empty") {
351
- this.errors.addOrReplace({
352
- id: "AUTO_scale",
353
- type: "warning",
354
- message: `Auto-scaled chart by factor ${computedFactor.toFixed(3)}`,
355
- });
356
- }
357
- else {
358
- this.errors.remove("AUTO_scale");
359
- }
360
- if (Math.abs(computedFactor - this.appliedScaleFactor) > 0.001) {
361
- this._autoScaleGuard = true;
362
- this.appliedScaleFactor = computedFactor;
363
- }
364
- }
365
- prepareDimension() {
366
- const parent = scaling.getParentDimensions(this.element);
367
- this.canvasWidthSegmented = parent.width / this.scenariosArray.length;
368
- return { width: this.canvasWidthSegmented, height: parent.height };
369
- }
370
- prepareScenarios() {
371
- var _a, _b, _c, _d;
372
- const isAuto = ((_a = this.scenarios) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
373
- if (withStyled.isBlankInput(this.scenarios) || isAuto) {
374
- if (((_c = (_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.availableScenarios) === null || _c === void 0 ? void 0 : _c.length) > 0) {
375
- if (!isAuto) {
376
- this.errors.addOrReplace({
377
- id: "AUTO_scenarios",
378
- type: "warning",
379
- message: `scenarios: not set, auto-detected: ${this.datasetMeta.availableScenarios.join(",")}`,
380
- });
381
- }
382
- else {
383
- this.errors.remove("AUTO_scenarios");
384
- }
385
- return this.datasetMeta.availableScenarios;
386
- }
387
- return [];
388
- }
389
- this.errors.remove("AUTO_scenarios");
390
- return (_d = this.scenarios) === null || _d === void 0 ? void 0 : _d.split(",").map((entry) => entry.trim());
391
- }
392
- prepareVariances() {
393
- var _a;
394
- if (withStyled.isBlankInput(this.variances)) {
395
- return [];
396
- }
397
- return (_a = this.variances) === null || _a === void 0 ? void 0 : _a.split(",").map((entry) => entry.trim());
398
- }
399
- prepareHideCategories(idx) {
400
- return idx >= 1 || this.showCategories !== "true";
401
- }
402
- prepareI18n() {
403
- const i18nMetaLabelsLocal = [];
404
- const i18nMetaLabelsGlobal = contextProtocol.globalLabelKeys;
405
- const i18nMapLocal = new Map(i18nMetaLabelsLocal.map((key) => [key, this.t(".".concat(key))]));
406
- const i18nMapGlobal = new Map(i18nMetaLabelsGlobal.map((key) => [key, this.t("global.".concat(key))]));
407
- return new Map([...i18nMapGlobal.entries(), ...i18nMapLocal.entries()]);
408
- }
409
- preparePixelPerUnit() {
410
- var _a;
411
- if (this.pixelPerUnitGroupMap.has(this.unitScaling)) {
412
- this.errors.remove("AUTO_unitScaling");
413
- return this.pixelPerUnitGroupMap.get(this.unitScaling);
414
- }
415
- // Explicit 'auto' → auto-calculate silently
416
- if (((_a = this.unitScaling) === null || _a === void 0 ? void 0 : _a.toString().trim().toLowerCase()) === "auto") {
417
- this.errors.remove("AUTO_unitScaling");
418
- return 0;
419
- }
420
- const numeric = Number(this.unitScaling);
421
- if (!isNaN(numeric) && numeric > 0) {
422
- this.errors.remove("AUTO_unitScaling");
423
- return numeric;
424
- }
425
- // Not set / invalid → auto-calculate with warning
426
- this.errors.addOrReplace({
427
- id: "AUTO_unitScaling",
428
- type: "warning",
429
- message: `unit-scaling: not set, auto-calculated to fit available space.`,
430
- });
431
- return 0;
432
- }
433
- preparePixelPerPercentage() {
434
- if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
435
- return this.pixelPerUnitGroupMap.get(this.percentageScaling);
436
- }
437
- return Number(this.percentageScaling) * 100;
438
- }
439
- prepareLevel() {
440
- var _a, _b, _c;
441
- const isAuto = ((_a = this.level) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
442
- if (withStyled.isBlankInput(this.level) || isAuto) {
443
- if ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedLevel) {
444
- if (!isAuto) {
445
- this.errors.addOrReplace({
446
- id: "AUTO_level",
447
- type: "warning",
448
- message: `level: not set, auto-detected: ${this.datasetMeta.suggestedLevel}`,
449
- });
450
- }
451
- else {
452
- this.errors.remove("AUTO_level");
453
- }
454
- return Order.AggregationLevel[this.datasetMeta.suggestedLevel.toUpperCase()];
455
- }
456
- return undefined;
457
- }
458
- this.errors.remove("AUTO_level");
459
- return Order.AggregationLevel[(_c = this.level) === null || _c === void 0 ? void 0 : _c.toUpperCase()];
460
- }
461
- prepareOrder() {
462
- var _a, _b, _c;
463
- const isAuto = ((_a = this.order) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
464
- let orderStr;
465
- if (withStyled.isBlankInput(this.order) || isAuto) {
466
- if ((_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.suggestedOrder) {
467
- if (!isAuto) {
468
- this.errors.addOrReplace({
469
- id: "AUTO_order",
470
- type: "warning",
471
- message: `order: not set, auto-detected: ${this.datasetMeta.suggestedOrder}`,
472
- });
473
- }
474
- else {
475
- this.errors.remove("AUTO_order");
476
- }
477
- orderStr = this.datasetMeta.suggestedOrder;
478
- }
479
- else {
480
- orderStr = this.order;
481
- }
482
- }
483
- else {
484
- this.errors.remove("AUTO_order");
485
- orderStr = this.order;
486
- }
487
- const tableOrder = {
488
- hierarchy: orderStr === null || orderStr === void 0 ? void 0 : orderStr.split(",").map((entry) => Order.OrderColumn[entry === null || entry === void 0 ? void 0 : entry.toUpperCase()]),
489
- direction: Order.OrderDirection[(_c = this.orderDirection) === null || _c === void 0 ? void 0 : _c.toUpperCase()],
490
- };
491
- return tableOrder;
492
- }
493
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
494
- prepareStyle() {
495
- const effectiveFactor = this.getEffectiveScaleFactor();
496
- return this.componentStyle(($) => {
497
- const baseFontSize = $["global"]["fontSizePx"];
498
- const scaledFontSize = baseFontSize * effectiveFactor;
499
- return {
500
- scaleFactors: {
501
- scenarioOffset: $["bn-chart-structure"]["scaleFactors"]["scenarioOffset"],
502
- scenarioLabelToBar: $["bn-chart-structure"]["scaleFactors"]["scenarioLabelToBar"],
503
- labelToBar: $["bn-chart-structure"]["scaleFactors"]["labelToBar"],
504
- labelToAxis: $["bn-chart-structure"]["scaleFactors"]["labelToAxis"],
505
- needleWidth: $["bn-chart-structure"]["scaleFactors"]["needleWidth"],
506
- needleHeadWidth: $["bn-chart-structure"]["scaleFactors"]["needleHeadWidth"],
507
- barWidth: $["bn-chart-structure"]["scaleFactors"]["barWidth"],
508
- varianceAxisLineWidth: $["bn-chart-structure"]["scaleFactors"]["varianceAxisLineWidth"],
509
- axisLineWidth: $["bn-chart-structure"]["scaleFactors"]["axisLineWidth"],
510
- auxiliaryLineWidth: $["bn-chart-structure"]["scaleFactors"]["auxiliaryLineWidth"],
511
- scenarioLineWidth: $["bn-chart-structure"]["scaleFactors"]["scenarioLineWidth"],
512
- markerWidth: $["bn-chart-structure"]["scaleFactors"]["markerWidth"],
513
- markerOffset: $["bn-chart-structure"]["scaleFactors"]["markerOffset"],
514
- categoryWidth: $["bn-chart-structure"]["scaleFactors"]["categoryWidth"],
515
- axisTickLength: $["bn-chart-structure"]["scaleFactors"]["axisTickLength"],
516
- },
517
- fontStyles: {
518
- font: `${scaledFontSize}px ${$["global"]["fontFamily"]}`,
519
- size: scaledFontSize,
520
- color: $["global"]["fontColor"],
521
- background: $["global"]["fontBackgroundColor"],
522
- leading: 1.8,
523
- },
524
- axisStyles: $["bn-chart-structure"]["axisStyles"],
525
- barStyles: $["bn-chart-structure"]["barStyles"],
526
- varianceStyles: $["bn-chart-structure"]["varianceStyles"],
527
- padding: $["bn-chart-structure"]["padding"],
528
- pattern: null,
529
- };
530
- });
531
- }
532
- prepareChartTitle(idx) {
533
- if (idx >= 1) {
534
- return "";
535
- }
536
- return this.chartTitle;
537
- }
538
- prepareStackConfig() {
539
- if (withStyled.isBlankInput(this.stack)) {
540
- return null;
541
- }
542
- try {
543
- const parsed = JSON.parse(this.stack);
544
- return {
545
- by: parsed.by,
546
- mode: parsed.mode || Order.StackMode.ABSOLUTE,
547
- order: parsed.order || Order.StackOrder.DATASET,
548
- };
549
- }
550
- catch (_a) {
551
- return null;
552
- }
553
- }
554
- prepareFilter() {
555
- if (this.filter.length === 0) {
556
- return "";
557
- }
558
- return this.filter;
559
- }
560
- prepareLimit() {
561
- return Math.floor(Number(this.limit) || 0);
562
- }
563
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
564
- getDataStructure() {
565
- const dataSetStructure = {
566
- IStructureChartDataRow: {
567
- operation: { type: "string", isOptional: false, description: "" },
568
- rowGroup: { type: "string", isOptional: false, description: "" },
569
- rowGroupIndex: { type: "number", isOptional: false, description: "" },
570
- category: { type: "string", isOptional: false, description: "" },
571
- categoryIndex: { type: "number", isOptional: false, description: "" },
572
- subCategory: { type: "string", isOptional: false, description: "" },
573
- subCategoryIndex: { type: "number", isOptional: false, description: "" },
574
- columnGroup: { type: "string", isOptional: false, description: "" },
575
- columnGroupIndex: { type: "number", isOptional: false, description: "" },
576
- columnSubGroup: { type: "string", isOptional: false, description: "" },
577
- columnSubGroupIndex: { type: "number", isOptional: false, description: "" },
578
- ac1: { type: "number", isOptional: false, description: "" },
579
- ac2: { type: "number", isOptional: false, description: "" },
580
- ac3: { type: "number", isOptional: false, description: "" },
581
- ac4: { type: "number", isOptional: false, description: "" },
582
- pp1: { type: "number", isOptional: false, description: "" },
583
- pp2: { type: "number", isOptional: false, description: "" },
584
- pp3: { type: "number", isOptional: false, description: "" },
585
- pp4: { type: "number", isOptional: false, description: "" },
586
- fc1: { type: "number", isOptional: false, description: "" },
587
- fc2: { type: "number", isOptional: false, description: "" },
588
- fc3: { type: "number", isOptional: false, description: "" },
589
- fc4: { type: "number", isOptional: false, description: "" },
590
- pl1: { type: "number", isOptional: false, description: "" },
591
- pl2: { type: "number", isOptional: false, description: "" },
592
- pl3: { type: "number", isOptional: false, description: "" },
593
- pl4: { type: "number", isOptional: false, description: "" },
594
- },
595
- };
596
- return dataSetStructure;
597
- }
598
- prepareMeasureScale() {
599
- if (withStyled.isBlankInput(this.measureScale)) {
600
- return "GREATEST";
601
- }
602
- if (["_", "k", "M", "G", "T", "P", "E", "Z", "Y", "m", "μ", "n", "p", "P", "f", "a", "z", "y"].includes(this.measureScale.trim())) {
603
- return this.measureScale.trim();
604
- }
605
- if (this.measureScale.trim().toUpperCase() === "LEAST") {
606
- return this.measureScale.trim();
607
- }
608
- return "GREATEST";
609
- }
610
- prepareShowMeasureScale(idx) {
611
- return idx === 0 && this.showMeasureScale === "true";
612
- }
613
- prepareMeasureUnit() {
614
- if (this.measureUnit === "" || this.measureUnit == null) {
615
- return "";
616
- }
617
- return this.measureUnit;
618
- }
619
- chartTemplate(localScenarioString, idx) {
620
- const effectiveFactor = this.getEffectiveScaleFactor();
621
- const ppu = this.preparePixelPerUnit();
622
- const ppp = this.preparePixelPerPercentage();
623
- return (index.h("ibcs-chart-structure", { data: this.data, chartTitle: this.prepareChartTitle(idx), scenarios: this.prepareScenarios(), variances: [localScenarioString], hideCategories: this.prepareHideCategories(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), styles: this.prepareStyle(), i18n: this.prepareI18n(), order: this.prepareOrder(), level: this.prepareLevel(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(idx), stackConfig: this.prepareStackConfig(), parentDimensions: this.prepareDimension() }));
624
- }
625
- getEffectiveScaleFactor() {
626
- const { mode, factor } = scaling.parseScaling(this.scale);
627
- if (mode === "factor")
628
- return factor;
629
- if (mode === "auto" || mode === "empty")
630
- return this.appliedScaleFactor;
631
- return 1;
632
- }
633
- getFontStyles() {
634
- const effectiveFactor = this.getEffectiveScaleFactor();
635
- return this.componentStyle(($) => {
636
- var _a, _b, _c, _d;
637
- const baseFontSize = ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333;
638
- return {
639
- "--bn-font-family": ((_b = $["global"]) === null || _b === void 0 ? void 0 : _b["fontFamily"]) || "'Noto Sans', sans-serif",
640
- "--bn-font-size": `${baseFontSize * effectiveFactor}px`,
641
- "--bn-font-color": ((_c = $["global"]) === null || _c === void 0 ? void 0 : _c["fontColor"]) || "#000000",
642
- "--bn-font-background": ((_d = $["global"]) === null || _d === void 0 ? void 0 : _d["fontBackgroundColor"]) || "#ffffff",
643
- };
644
- });
645
- }
646
- render() {
647
- let scenariosArray = [""];
648
- const variancesArray = this.prepareVariances();
649
- if (variancesArray.length > 0) {
650
- scenariosArray = [...scenariosArray, ...variancesArray];
651
- }
652
- const fontStyles = this.getFontStyles();
653
- return (index.h(index.Host, { key: 'c8ad939fbe92ab4a01af1e5ce17e097dbb5eab56', style: fontStyles }, index.h("div", { key: 'd786c49dd808c2dd9093ede7100e16ac52f50689', class: "container" }, scenariosArray.map(this.chartTemplate))));
654
- }
655
- get element() { return index.getElement(this); }
656
- static get watchers() { return {
657
- "scenarios": [{
658
- "validateScenario": 0
659
- }],
660
- "variances": [{
661
- "validateVariances": 0
662
- }],
663
- "unitScaling": [{
664
- "validateUnitScaling": 0
665
- }],
666
- "percentageScaling": [{
667
- "validatePercentageScaling": 0
668
- }],
669
- "level": [{
670
- "validateLevel": 0
671
- }],
672
- "order": [{
673
- "validateOrderList": 0
674
- }],
675
- "orderDirection": [{
676
- "validateOrderDirection": 0
677
- }],
678
- "limit": [{
679
- "validateLimit": 0
680
- }],
681
- "showCategories": [{
682
- "validateShowCategories": 0
683
- }],
684
- "measureScale": [{
685
- "validateMeasureScale": 0
686
- }],
687
- "showMeasureScale": [{
688
- "validateShowMeasureScale": 0
689
- }],
690
- "stack": [{
691
- "validateStack": 0
692
- }],
693
- "scale": [{
694
- "validateScaling": 0
695
- }]
696
- }; }
697
- };
698
- Chart.style = bnChartStructureCss();
699
-
700
- exports.bn_chart_structure = Chart;