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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-1265d8d3.entry.js +1 -0
  3. package/dist/bn-template-engine/p-15516dac.entry.js +1 -0
  4. package/dist/bn-template-engine/p-1c716641.entry.js +1 -0
  5. package/dist/bn-template-engine/p-27cc8dc0.entry.js +1 -0
  6. package/dist/bn-template-engine/p-4426d484.entry.js +1 -0
  7. package/dist/bn-template-engine/p-51f8dc9e.entry.js +1 -0
  8. package/dist/bn-template-engine/p-53d4e690.entry.js +1 -0
  9. package/dist/bn-template-engine/p-5KQYRQLK.js +1 -0
  10. package/dist/bn-template-engine/p-745f4596.entry.js +1 -0
  11. package/dist/bn-template-engine/{p-0f1504f3.entry.js → p-75e97c87.entry.js} +1 -1
  12. package/dist/bn-template-engine/p-7a560278.entry.js +1 -0
  13. package/dist/bn-template-engine/p-7ea7c325.entry.js +1 -0
  14. package/dist/bn-template-engine/p-945cc95d.entry.js +1 -0
  15. package/dist/bn-template-engine/p-BYBpC0EO.js +1 -0
  16. package/dist/bn-template-engine/p-BfXY5dsy.js +1 -0
  17. package/dist/bn-template-engine/p-BgnHJQ9Q.js +1 -0
  18. package/dist/bn-template-engine/{p-DgfL-ffj.js → p-Bhd_WSML.js} +1 -1
  19. package/dist/bn-template-engine/p-Bka-Z6jo.js +1 -0
  20. package/dist/bn-template-engine/p-Bnhh02CF.js +1 -0
  21. package/dist/bn-template-engine/p-C7dQL8CS.js +1 -0
  22. package/dist/bn-template-engine/p-CL1RYuNU.js +1 -0
  23. package/dist/bn-template-engine/p-CYwd_ZNM.js +1 -0
  24. package/dist/bn-template-engine/p-ChlK-T9I.js +1 -0
  25. package/dist/bn-template-engine/p-DHezf8pZ.js +1 -0
  26. package/dist/bn-template-engine/{p-DVMu6dEy.js → p-DlppAFq9.js} +1 -1
  27. package/dist/bn-template-engine/p-DvDDgmcV.js +1 -0
  28. package/dist/bn-template-engine/p-DvvwfRQG.js +1 -0
  29. package/dist/bn-template-engine/{p-DG-1MR_T.js → p-P7pGJBgc.js} +1 -1
  30. package/dist/bn-template-engine/p-b34eaf86.entry.js +1 -0
  31. package/dist/bn-template-engine/p-bdb8b44c.entry.js +1 -0
  32. package/dist/bn-template-engine/p-c44fcb8e.entry.js +1 -0
  33. package/dist/bn-template-engine/p-c7e1a49b.entry.js +1 -0
  34. package/dist/bn-template-engine/p-d9003041.entry.js +1 -0
  35. package/dist/bn-template-engine/p-daa7ffa3.entry.js +1 -0
  36. package/dist/bn-template-engine/p-e084f50a.entry.js +1 -0
  37. package/dist/bn-template-engine/p-eaba6658.entry.js +1 -0
  38. package/dist/bn-template-engine/{p-CvXqez4D.js → p-u8igQLRZ.js} +1 -1
  39. package/dist/cjs/{DataFormatDigits-CbIVfGEH.js → DataFormatDigits-DKcOeLNK.js} +1 -1
  40. package/dist/cjs/{DateStringFactory-CfkXYAMN.js → DateStringFactory-CSKvbS8K.js} +1 -1
  41. package/dist/cjs/{Order-DtpbD8mQ.js → Order-iG11HI4R.js} +36 -5
  42. package/dist/cjs/{SVGVariancesStyleGroup-D-rTWlDo.js → SVGVariancesStyleGroup-K-Tw6lOD.js} +1 -14
  43. package/dist/cjs/bn-asset.cjs.entry.js +5 -4
  44. package/dist/cjs/bn-body_4.cjs.entry.js +15 -13
  45. package/dist/cjs/bn-card.cjs.entry.js +5 -4
  46. package/dist/cjs/{ibcs-chart-structure.cjs.entry.js → bn-chart-structure_5.cjs.entry.js} +1058 -28
  47. package/dist/cjs/bn-chart-time.cjs.entry.js +38 -12
  48. package/dist/cjs/bn-component-style.cjs.entry.js +5 -4
  49. package/dist/cjs/bn-dataset.cjs.entry.js +38 -9
  50. package/dist/cjs/bn-grid.cjs.entry.js +9 -7
  51. package/dist/cjs/bn-image.cjs.entry.js +9 -7
  52. package/dist/cjs/bn-internationalization.cjs.entry.js +5 -4
  53. package/dist/cjs/bn-layout-card.cjs.entry.js +3 -2
  54. package/dist/cjs/bn-layout-page.cjs.entry.js +2 -1
  55. package/dist/cjs/bn-message.cjs.entry.js +5 -4
  56. package/dist/cjs/bn-table.cjs.entry.js +979 -0
  57. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  58. package/dist/cjs/bn-template.cjs.entry.js +3 -2
  59. package/dist/cjs/bn-text.cjs.entry.js +11 -9
  60. package/dist/cjs/bn-tree.cjs.entry.js +9 -7
  61. package/dist/cjs/contentDecoder-JxOldq1e.js +419 -0
  62. package/dist/cjs/{context-protocol-CRPmux5D.js → context-protocol-DRQWrwsA.js} +2 -0
  63. package/dist/cjs/editor-companion.cjs.entry.js +1 -1
  64. package/dist/cjs/emotion-hash.esm-nbbEQ0Dn.js +57 -0
  65. package/dist/cjs/ibcs-chart-time.cjs.entry.js +22 -18
  66. package/dist/cjs/{bn-context_5.cjs.entry.js → ibcs-table.cjs.entry.js} +159 -1259
  67. package/dist/cjs/{StringAdapter-ByCHdlDO.js → ibcsRuleSet-DgUoXOfd.js} +10 -10
  68. package/dist/cjs/index-Dm85hG6t.js +65 -0
  69. package/dist/cjs/loader.cjs.js +1 -1
  70. package/dist/cjs/{scaling-D8sIIKft.js → scaling-9Tz595RQ.js} +7 -7
  71. package/dist/cjs/{withHasError-B8gHkfV2.js → utils-CwHIVbbL.js} +1 -69
  72. package/dist/cjs/{withBodyObserver-C6gLgq_e.js → withBodyObserver-CKpSD8UT.js} +3 -3
  73. package/dist/cjs/{withComponentStatus-_x4LQZ0N.js → withComponentStatus-Bw70BhO0.js} +5 -5
  74. package/dist/cjs/{withComponentStyle-DMtic_9Y.js → withComponentStyle-aIbTCtfj.js} +5 -5
  75. package/dist/cjs/withHasError-D7ue5vAv.js +72 -0
  76. package/dist/cjs/{withStyled-BBtMesx3.js → withStyled-CS1Yp4sv.js} +12 -61
  77. package/dist/cjs/{withTranslation-CWPAIRjh.js → withTranslation-rwgyITqe.js} +5 -5
  78. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +226 -99
  79. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +13 -3
  80. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +94 -11
  81. package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +3 -4
  82. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +4 -0
  83. package/dist/collection/components/bn-chart-time/bn-chart-time.js +28 -4
  84. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -3
  85. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -4
  86. package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +4 -0
  87. package/dist/collection/components/bn-dataset/bn-dataset.js +49 -2
  88. package/dist/collection/components/bn-datasource/bn-datasource.js +46 -3
  89. package/dist/collection/components/bn-table/bn-table.js +60 -12
  90. package/dist/collection/components/bn-table/ibcs-table.css +7 -5
  91. package/dist/collection/components/bn-table/ibcs-table.js +22 -1
  92. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +79 -31
  93. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
  94. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
  95. package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
  96. package/dist/collection/stores/componentStyles.js +2 -0
  97. package/dist/collection/utils/constants.js +35 -5
  98. package/dist/collection/utils/contentDecoder.js +28 -0
  99. package/dist/collection/utils/stackColors.js +2 -2
  100. package/dist/collection/utils/validate.js +5 -2
  101. package/dist/components/DataFormatDigits.js +1 -1
  102. package/dist/components/DateStringFactory.js +1 -1
  103. package/dist/components/Order.js +1 -1
  104. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  105. package/dist/components/bn-chart-structure.js +1 -1
  106. package/dist/components/bn-chart-time.js +1 -1
  107. package/dist/components/bn-dataset.js +1 -1
  108. package/dist/components/bn-datasource.js +1 -1
  109. package/dist/components/bn-table.js +1 -1
  110. package/dist/components/bn-title2.js +1 -1
  111. package/dist/components/contentDecoder.js +1 -0
  112. package/dist/components/context-protocol.js +1 -1
  113. package/dist/components/emotion-hash.esm.js +1 -0
  114. package/dist/components/ibcs-chart-structure2.js +1 -1
  115. package/dist/components/ibcs-chart-time2.js +1 -1
  116. package/dist/components/ibcs-table2.js +1 -1
  117. package/dist/components/ibcs-title2.js +1 -1
  118. package/dist/components/ibcsRuleSet.js +1 -1
  119. package/dist/components/validate.js +1 -1
  120. package/dist/components/withStyled.js +1 -1
  121. package/dist/esm/{DataFormatDigits-DYdbRX-1.js → DataFormatDigits-oSZ1hBKE.js} +1 -1
  122. package/dist/esm/{DateStringFactory-DRcbojUT.js → DateStringFactory-CSGz6TDk.js} +1 -1
  123. package/dist/esm/{Order-DdexOqTs.js → Order-Bnhh02CF.js} +36 -6
  124. package/dist/esm/{SVGVariancesStyleGroup-D0Cwprv1.js → SVGVariancesStyleGroup-CqTjrZYg.js} +2 -13
  125. package/dist/esm/bn-asset.entry.js +5 -4
  126. package/dist/esm/bn-body_4.entry.js +11 -9
  127. package/dist/esm/bn-card.entry.js +5 -4
  128. package/dist/esm/{ibcs-chart-structure.entry.js → bn-chart-structure_5.entry.js} +1048 -22
  129. package/dist/esm/bn-chart-time.entry.js +38 -12
  130. package/dist/esm/bn-component-style.entry.js +5 -4
  131. package/dist/esm/bn-dataset.entry.js +35 -6
  132. package/dist/esm/bn-grid.entry.js +9 -7
  133. package/dist/esm/bn-image.entry.js +9 -7
  134. package/dist/esm/bn-internationalization.entry.js +5 -4
  135. package/dist/esm/bn-layout-card.entry.js +3 -2
  136. package/dist/esm/bn-layout-page.entry.js +2 -1
  137. package/dist/esm/bn-message.entry.js +5 -4
  138. package/dist/esm/bn-table.entry.js +977 -0
  139. package/dist/esm/bn-template-engine.js +1 -1
  140. package/dist/esm/bn-template.entry.js +3 -2
  141. package/dist/esm/bn-text.entry.js +11 -9
  142. package/dist/esm/bn-tree.entry.js +9 -7
  143. package/dist/esm/contentDecoder-oMmxz6nJ.js +416 -0
  144. package/dist/esm/{context-protocol-Bz5klD-F.js → context-protocol-BHnQsVsr.js} +2 -0
  145. package/dist/esm/editor-companion.entry.js +1 -1
  146. package/dist/esm/emotion-hash.esm-BYBpC0EO.js +55 -0
  147. package/dist/esm/ibcs-chart-time.entry.js +15 -11
  148. package/dist/esm/{bn-context_5.entry.js → ibcs-table.entry.js} +106 -1202
  149. package/dist/esm/{StringAdapter-CTL-Dvzp.js → ibcsRuleSet-K4ytuA1f.js} +10 -10
  150. package/dist/esm/index-DHezf8pZ.js +65 -0
  151. package/dist/esm/loader.js +1 -1
  152. package/dist/esm/{scaling-C6K8FYSF.js → scaling-Cehc74IE.js} +2 -2
  153. package/dist/esm/{withHasError-B3QX2emi.js → utils-DvvwfRQG.js} +1 -69
  154. package/dist/esm/{withBodyObserver-DczL5ia8.js → withBodyObserver-FQ8NwCIz.js} +1 -1
  155. package/dist/esm/{withComponentStatus-DodoSXe-.js → withComponentStatus-DWjDYtZ7.js} +1 -1
  156. package/dist/esm/{withComponentStyle-BerJY64r.js → withComponentStyle-9uP_hcDq.js} +2 -2
  157. package/dist/esm/withHasError-FyY5mQ_3.js +70 -0
  158. package/dist/esm/{withStyled-DCipbf2O.js → withStyled--qQWquTH.js} +9 -59
  159. package/dist/esm/{withTranslation-mimbJdER.js → withTranslation-BqD0Kp7b.js} +2 -2
  160. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +155 -109
  161. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
  162. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
  163. package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +1 -0
  164. package/dist/types/components/bn-dataset/bn-dataset.d.ts +6 -0
  165. package/dist/types/components/bn-datasource/bn-datasource.d.ts +8 -0
  166. package/dist/types/components/bn-table/bn-table.d.ts +12 -8
  167. package/dist/types/components/bn-table/ibcs-table.d.ts +1 -0
  168. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
  169. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +1 -0
  170. package/dist/types/components.d.ts +118 -34
  171. package/dist/types/stores/componentStyles.d.ts +2 -0
  172. package/dist/types/utils/constants.d.ts +23 -5
  173. package/dist/types/utils/contentDecoder.d.ts +12 -0
  174. package/dist/types/utils/validate.d.ts +1 -0
  175. package/package.json +2 -1
  176. package/dist/bn-template-engine/p--PSoPbDM.js +0 -1
  177. package/dist/bn-template-engine/p-05a82a77.entry.js +0 -1
  178. package/dist/bn-template-engine/p-0ca8dc17.entry.js +0 -1
  179. package/dist/bn-template-engine/p-1d9a3be9.entry.js +0 -1
  180. package/dist/bn-template-engine/p-35638ad0.entry.js +0 -1
  181. package/dist/bn-template-engine/p-37881d05.entry.js +0 -1
  182. package/dist/bn-template-engine/p-3b894997.entry.js +0 -1
  183. package/dist/bn-template-engine/p-50e49732.entry.js +0 -1
  184. package/dist/bn-template-engine/p-60a7fc59.entry.js +0 -1
  185. package/dist/bn-template-engine/p-6c7c0455.entry.js +0 -1
  186. package/dist/bn-template-engine/p-6da93eae.entry.js +0 -1
  187. package/dist/bn-template-engine/p-701e1578.entry.js +0 -1
  188. package/dist/bn-template-engine/p-BSfqOkN_.js +0 -1
  189. package/dist/bn-template-engine/p-CRLgp9-v.js +0 -1
  190. package/dist/bn-template-engine/p-CYjZRKdI.js +0 -1
  191. package/dist/bn-template-engine/p-DRikHQE-.js +0 -1
  192. package/dist/bn-template-engine/p-DVo6aZUE.js +0 -1
  193. package/dist/bn-template-engine/p-DdexOqTs.js +0 -1
  194. package/dist/bn-template-engine/p-DyRaC0MB.js +0 -1
  195. package/dist/bn-template-engine/p-a95ccc16.entry.js +0 -1
  196. package/dist/bn-template-engine/p-b7bec050.entry.js +0 -1
  197. package/dist/bn-template-engine/p-bc59ea5c.entry.js +0 -1
  198. package/dist/bn-template-engine/p-d279b578.entry.js +0 -1
  199. package/dist/bn-template-engine/p-dd9dd407.entry.js +0 -1
  200. package/dist/bn-template-engine/p-e102a490.entry.js +0 -1
  201. package/dist/bn-template-engine/p-f27995c9.entry.js +0 -1
  202. package/dist/bn-template-engine/p-f89e55c6.entry.js +0 -1
  203. package/dist/bn-template-engine/p-tzFCK9qn.js +0 -1
  204. package/dist/cjs/bn-chart-structure.cjs.entry.js +0 -700
  205. package/dist/esm/bn-chart-structure.entry.js +0 -698
@@ -1,14 +1,16 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
2
- import { v as validateScenarioList, a as validateVariancesList, i as isValidNumber, e as isValidInteger, b as isValidLevel, c as validateOrderList, d as isValidDirection, k as isValidDateFormat, h as validateStackConfig, l as isValidAxisLabelsMode, f as isValidBoolean, g as isValidMeasureScale, w as withStyled, j as isBlankInput } from './withStyled-DCipbf2O.js';
3
- import { w as withDataset, g as getParentDimensions, p as parseScaling } from './scaling-C6K8FYSF.js';
4
- import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
5
- import { w as withTranslation } from './withTranslation-mimbJdER.js';
6
- import { a as globalLabelKeys } from './context-protocol-Bz5klD-F.js';
7
- import { w as withComponentStyle } from './withComponentStyle-BerJY64r.js';
8
- import { w as withHasError } from './withHasError-B3QX2emi.js';
9
- import { O as OrderDirection, a as OrderColumn, c as AxisLabelsMode, S as StackOrder, b as StackMode, C as ChartMode } from './Order-DdexOqTs.js';
2
+ import { v as validateScenarioList, a as validateVariancesList, i as isValidNumber, b as isValidInteger, c as isValidLevel, d as validateOrderList, e as isValidDirection, f as isValidDateFormat, g as validateStackConfig, h as isValidAxisLabelsMode, j as isValidBoolean, k as isValidMeasureScale, w as withStyled, l as isBlankInput } from './withStyled--qQWquTH.js';
3
+ import { w as withDataset, g as getParentDimensions, p as parseScaling } from './scaling-Cehc74IE.js';
4
+ import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
5
+ import { w as withTranslation } from './withTranslation-BqD0Kp7b.js';
6
+ import { a as globalLabelKeys } from './context-protocol-BHnQsVsr.js';
7
+ import { w as withComponentStyle } from './withComponentStyle-9uP_hcDq.js';
8
+ import { w as withHasError } from './withHasError-FyY5mQ_3.js';
9
+ import { O as OrderDirection, a as OrderColumn, A as AxisLabelsMode, S as StackBy, b as StackOrder, c as StackMode, C as ChartMode } from './Order-Bnhh02CF.js';
10
10
  import { F as Formatter } from './formatter-DTMEZ6d8.js';
11
- import { D as DateDistance } from './DateStringFactory-DRcbojUT.js';
11
+ import { D as DateDistance } from './DateStringFactory-CSGz6TDk.js';
12
+ import './emotion-hash.esm-BYBpC0EO.js';
13
+ import './utils-DvvwfRQG.js';
12
14
  import './_commonjsHelpers-BFTU3MAI.js';
13
15
 
14
16
  const bnChartTimeCss = () => `:host{display:inline-block;position:relative;overflow:visible;}.container{display:flex;flex-direction:column-reverse}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}`;
@@ -711,6 +713,7 @@ const Chart = class {
711
713
  axisStyles: $["bn-chart-time"]["axisStyles"],
712
714
  barStyles: $["bn-chart-time"]["barStyles"],
713
715
  varianceStyles: $["bn-chart-time"]["varianceStyles"],
716
+ stackColors: $["bn-chart-time"]["stackColors"],
714
717
  padding: $["bn-chart-time"]["padding"],
715
718
  pattern: null,
716
719
  };
@@ -830,17 +833,37 @@ const Chart = class {
830
833
  }
831
834
  prepareStackConfig() {
832
835
  if (isBlankInput(this.stack)) {
836
+ this.errors.remove("WARN_stack_dimensions_scenarios");
833
837
  return null;
834
838
  }
835
839
  try {
836
840
  const parsed = JSON.parse(this.stack);
841
+ const by = parsed.by;
842
+ const errId = "WARN_stack_dimensions_scenarios";
843
+ if (by === StackBy.DIMENSIONS) {
844
+ const scenarios = this.prepareScenarios();
845
+ if (scenarios.length > 1) {
846
+ this.errors.addOrReplace({
847
+ id: errId,
848
+ type: "warning",
849
+ message: `stack by dimensions: only the first scenario "${scenarios[0]}" is used, the rest (${scenarios.slice(1).join(", ")}) are discarded.`,
850
+ });
851
+ }
852
+ else {
853
+ this.errors.remove(errId);
854
+ }
855
+ }
856
+ else {
857
+ this.errors.remove(errId);
858
+ }
837
859
  return {
838
- by: parsed.by,
860
+ by,
839
861
  mode: parsed.mode || StackMode.ABSOLUTE,
840
862
  order: parsed.order || StackOrder.DATASET,
841
863
  };
842
864
  }
843
865
  catch (_a) {
866
+ this.errors.remove("WARN_stack_dimensions_scenarios");
844
867
  return null;
845
868
  }
846
869
  }
@@ -868,7 +891,10 @@ const Chart = class {
868
891
  const effectiveFactor = this.getEffectiveScaleFactor();
869
892
  const ppu = this.preparePixelPerUnit();
870
893
  const ppp = this.preparePixelPerPercentage();
871
- return (h("ibcs-chart-time", { data: this.data, chartTitle: this.prepareChartTitle(idx), scenarios: this.prepareScenarios(), variances: [localScenarioString], hideAxisLabels: this.prepareHideAxisLabels(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), leftSideOffsetForHorizontalSync: this.prepareLeftSideOffset(preparedI18n, preparedStyle), styles: preparedStyle, i18n: preparedI18n, order: this.prepareOrder(), level: this.prepareLevel(), dateInterval: this.prepareDateInterval(), intervalSpanLimit: this.prepareIntervalSpanLimit(), axisLabelsMode: this.prepareAxisLabelsMode(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showOverlayAvg: this.prepareAvg(), showOverlayMedian: this.prepareMedian(), showMeasureScale: this.prepareShowMeasureScale(idx), chartMode: this.prepareChartMode(), maxBars: this.prepareMaxBars(), stackConfig: this.prepareStackConfig(), lineFullWidth: this.prepareLineFullWidth(), containerWidth: fullParentWidth, parentDimensions: this.prepareDimension() }));
894
+ const stackConfig = this.prepareStackConfig();
895
+ const scenarios = this.prepareScenarios();
896
+ const effectiveScenarios = (stackConfig === null || stackConfig === void 0 ? void 0 : stackConfig.by) === StackBy.DIMENSIONS ? scenarios.slice(0, 1) : scenarios;
897
+ return (h("ibcs-chart-time", { data: this.data, chartTitle: this.prepareChartTitle(idx), scenarios: effectiveScenarios, variances: [localScenarioString], hideAxisLabels: this.prepareHideAxisLabels(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), leftSideOffsetForHorizontalSync: this.prepareLeftSideOffset(preparedI18n, preparedStyle), styles: preparedStyle, i18n: preparedI18n, order: this.prepareOrder(), level: this.prepareLevel(), dateInterval: this.prepareDateInterval(), intervalSpanLimit: this.prepareIntervalSpanLimit(), axisLabelsMode: this.prepareAxisLabelsMode(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showOverlayAvg: this.prepareAvg(), showOverlayMedian: this.prepareMedian(), showMeasureScale: this.prepareShowMeasureScale(idx), chartMode: this.prepareChartMode(), maxBars: this.prepareMaxBars(), stackConfig: stackConfig, lineFullWidth: this.prepareLineFullWidth(), containerWidth: fullParentWidth, parentDimensions: this.prepareDimension() }));
872
898
  }
873
899
  getEffectiveScaleFactor() {
874
900
  const { mode, factor } = parseScaling(this.scale);
@@ -898,7 +924,7 @@ const Chart = class {
898
924
  scenariosArray = [...scenariosArray, ...variancesArray];
899
925
  }
900
926
  const fontStyles = this.getFontStyles();
901
- return (h(Host, { key: 'ed9bf10764443d9b4be0bf05dbbcd858d271993a', style: fontStyles }, h("div", { key: 'c2bda702b470a4ddba2da84d81908d96ce893c8e', class: "container" }, scenariosArray.map(this.chartTemplate))));
927
+ return (h(Host, { key: 'ecbf96e2d037a7dad9b3380bcc28b6e010ac867c', style: fontStyles }, h("div", { key: 'c556b86aac629e59c601986650d1a4857a2ee068', class: "container" }, scenariosArray.map(this.chartTemplate))));
902
928
  }
903
929
  get element() { return getElement(this); }
904
930
  static get watchers() { return {
@@ -1,8 +1,9 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
2
- import { w as withBodyObserver } from './withBodyObserver-DczL5ia8.js';
3
- import { g as getStores } from './context-protocol-Bz5klD-F.js';
4
- import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
5
- import { w as withHasError } from './withHasError-B3QX2emi.js';
2
+ import { w as withBodyObserver } from './withBodyObserver-FQ8NwCIz.js';
3
+ import { g as getStores } from './context-protocol-BHnQsVsr.js';
4
+ import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
5
+ import { w as withHasError } from './withHasError-FyY5mQ_3.js';
6
+ import './utils-DvvwfRQG.js';
6
7
 
7
8
  const bnComponentStyleCss = () => `bn-component-style{display:none}`;
8
9
 
@@ -1,10 +1,13 @@
1
1
  import { g as getElement, r as registerInstance, h, H as Host } from './index-JNHhIe7t.js';
2
- import { g as getStores, c as clearStoresCache } from './context-protocol-Bz5klD-F.js';
3
- import { r as runIfExisits, w as withHasError } from './withHasError-B3QX2emi.js';
4
- import { w as withBodyObserver } from './withBodyObserver-DczL5ia8.js';
2
+ import { g as getStores, c as clearStoresCache } from './context-protocol-BHnQsVsr.js';
3
+ import { r as runIfExisits } from './utils-DvvwfRQG.js';
4
+ import { w as withBodyObserver } from './withBodyObserver-FQ8NwCIz.js';
5
5
  import { a as alasql } from './alasql.min-CWu4NkIt.js';
6
- import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
6
+ import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
7
+ import { w as withHasError } from './withHasError-FyY5mQ_3.js';
8
+ import { d as decodeCompressedContent, c as computeContentHash } from './contentDecoder-oMmxz6nJ.js';
7
9
  import './_commonjsHelpers-BFTU3MAI.js';
10
+ import './emotion-hash.esm-BYBpC0EO.js';
8
11
 
9
12
  /**
10
13
  * Mixin that subscribes a Stencil component to raw datasources.
@@ -218,6 +221,12 @@ const Dataset = class {
218
221
  * content as raw JSON, writing it directly to the datasets store.
219
222
  */
220
223
  this.static = false;
224
+ /**
225
+ * When true (default), body content is plain text (SQL or JSON).
226
+ * When false, body content is a compressed payload (`<hash>:<base64_gzip>`).
227
+ */
228
+ this.raw = true;
229
+ this.lastBodyHash = null;
221
230
  withComponentStatus(this);
222
231
  this.errors = withHasError(this);
223
232
  // @ts-ignore
@@ -227,7 +236,27 @@ const Dataset = class {
227
236
  this.executeQuery();
228
237
  });
229
238
  withBodyObserver(this, (data) => {
230
- this.query = data;
239
+ let contentHash;
240
+ let body;
241
+ if (!this.raw && this.static) {
242
+ try {
243
+ const decoded = decodeCompressedContent(data);
244
+ contentHash = decoded.hash;
245
+ body = decoded.json;
246
+ }
247
+ catch (e) {
248
+ console.error("Error decoding compressed dataset", e, String(data).slice(0, 200));
249
+ return;
250
+ }
251
+ }
252
+ else {
253
+ contentHash = computeContentHash(data);
254
+ body = data;
255
+ }
256
+ if (contentHash === this.lastBodyHash)
257
+ return;
258
+ this.lastBodyHash = contentHash;
259
+ this.query = body;
231
260
  this.executeQuery();
232
261
  });
233
262
  }
@@ -261,7 +290,7 @@ const Dataset = class {
261
290
  this.executeQuery();
262
291
  }
263
292
  render() {
264
- return h(Host, { key: '0aecc50d8aa488f49d6630fec9f0755d306f213e' });
293
+ return h(Host, { key: '3e8b6fbc52b5b5cbe0ae88d7aa1d259f86d63e1b' });
265
294
  }
266
295
  get element() { return getElement(this); }
267
296
  static get watchers() { return {
@@ -1,11 +1,13 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
2
- import { f as isValidBoolean, w as withStyled } from './withStyled-DCipbf2O.js';
3
- import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
4
- import { w as withComponentStyle } from './withComponentStyle-BerJY64r.js';
5
- import { w as withHasError } from './withHasError-B3QX2emi.js';
6
- import './Order-DdexOqTs.js';
7
- import './DateStringFactory-DRcbojUT.js';
8
- import './context-protocol-Bz5klD-F.js';
2
+ import { j as isValidBoolean, w as withStyled } from './withStyled--qQWquTH.js';
3
+ import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
4
+ import { w as withComponentStyle } from './withComponentStyle-9uP_hcDq.js';
5
+ import { w as withHasError } from './withHasError-FyY5mQ_3.js';
6
+ import './emotion-hash.esm-BYBpC0EO.js';
7
+ import './Order-Bnhh02CF.js';
8
+ import './DateStringFactory-CSGz6TDk.js';
9
+ import './utils-DvvwfRQG.js';
10
+ import './context-protocol-BHnQsVsr.js';
9
11
 
10
12
  /**
11
13
  * Header configuration types and parsing utilities for bn-grid component.
@@ -1,11 +1,13 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
2
- import { w as withStyled } from './withStyled-DCipbf2O.js';
3
- import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
4
- import { w as withComponentStyle } from './withComponentStyle-BerJY64r.js';
5
- import { g as getStores } from './context-protocol-Bz5klD-F.js';
6
- import { w as withHasError } from './withHasError-B3QX2emi.js';
7
- import './Order-DdexOqTs.js';
8
- import './DateStringFactory-DRcbojUT.js';
2
+ import { w as withStyled } from './withStyled--qQWquTH.js';
3
+ import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
4
+ import { w as withComponentStyle } from './withComponentStyle-9uP_hcDq.js';
5
+ import { g as getStores } from './context-protocol-BHnQsVsr.js';
6
+ import { w as withHasError } from './withHasError-FyY5mQ_3.js';
7
+ import './emotion-hash.esm-BYBpC0EO.js';
8
+ import './Order-Bnhh02CF.js';
9
+ import './DateStringFactory-CSGz6TDk.js';
10
+ import './utils-DvvwfRQG.js';
9
11
 
10
12
  const bnImageCss = () => `:host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}`;
11
13
 
@@ -1,8 +1,9 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
2
- import { w as withBodyObserver } from './withBodyObserver-DczL5ia8.js';
3
- import { g as getStores, f as flattenObject } from './context-protocol-Bz5klD-F.js';
4
- import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
5
- import { w as withHasError } from './withHasError-B3QX2emi.js';
2
+ import { w as withBodyObserver } from './withBodyObserver-FQ8NwCIz.js';
3
+ import { g as getStores, f as flattenObject } from './context-protocol-BHnQsVsr.js';
4
+ import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
5
+ import { w as withHasError } from './withHasError-FyY5mQ_3.js';
6
+ import './utils-DvvwfRQG.js';
6
7
 
7
8
  const bnInternationalizationCss = () => `bn-internationalization{display:none}`;
8
9
 
@@ -1,6 +1,7 @@
1
1
  import { r as registerInstance, h, F as Fragment, g as getElement } from './index-JNHhIe7t.js';
2
- import { g as getStores } from './context-protocol-Bz5klD-F.js';
3
- import { w as withHasError } from './withHasError-B3QX2emi.js';
2
+ import { g as getStores } from './context-protocol-BHnQsVsr.js';
3
+ import { w as withHasError } from './withHasError-FyY5mQ_3.js';
4
+ import './utils-DvvwfRQG.js';
4
5
 
5
6
  const bnLayoutCardCss = () => `:host{background:var(--bn-font-background, white);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);flex-direction:column;overflow:hidden;float:left;clear:left}.cardtitle{display:inline-flex}.image{margin-right:0.5em;margin-top:0.5em;z-index:2;background-color:transparent;border:transparent;height:4em;width:auto;display:inline}`;
6
7
 
@@ -1,5 +1,6 @@
1
1
  import { r as registerInstance, h, F as Fragment, g as getElement } from './index-JNHhIe7t.js';
2
- import { w as withHasError } from './withHasError-B3QX2emi.js';
2
+ import { w as withHasError } from './withHasError-FyY5mQ_3.js';
3
+ import './utils-DvvwfRQG.js';
3
4
 
4
5
  const bnLayoutPageCss = () => `:host{background:var(--bn-font-background, white);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);flex-direction:column;overflow:hidden;float:left;clear:left}`;
5
6
 
@@ -1,8 +1,9 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-JNHhIe7t.js';
2
- import { w as withComponentStatus } from './withComponentStatus-DodoSXe-.js';
3
- import { w as withComponentStyle } from './withComponentStyle-BerJY64r.js';
4
- import { g as getStores } from './context-protocol-Bz5klD-F.js';
5
- import { w as withHasError } from './withHasError-B3QX2emi.js';
2
+ import { w as withComponentStatus } from './withComponentStatus-DWjDYtZ7.js';
3
+ import { w as withComponentStyle } from './withComponentStyle-9uP_hcDq.js';
4
+ import { g as getStores } from './context-protocol-BHnQsVsr.js';
5
+ import { w as withHasError } from './withHasError-FyY5mQ_3.js';
6
+ import './utils-DvvwfRQG.js';
6
7
 
7
8
  const bnMessageCss = () => `:host{padding:0.2em 0.5em;display:flex;flex-direction:row;justify-content:space-between;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}:host(#container-page-message){height:4.55em;box-sizing:border-box;-webkit-box-sizing:border-box;border-bottom:0.1em solid #ddd}div#message-text{font-size:1.4em;overflow:clip;display:inline}.image{z-index:2;background-color:transparent;border:transparent;height:4em;width:auto;display:inline}`;
8
9