@bino-bi/bn-template-engine 1.0.0-next.26 → 1.0.0-next.27

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 (138) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-0a19e8af.entry.js +1 -0
  3. package/dist/bn-template-engine/p-0f6ece5a.entry.js +1 -0
  4. package/dist/bn-template-engine/p-13db2986.entry.js +1 -0
  5. package/dist/bn-template-engine/p-1b35c4ac.entry.js +1 -0
  6. package/dist/bn-template-engine/{p-0fb02c57.entry.js → p-4602d613.entry.js} +1 -1
  7. package/dist/bn-template-engine/{p-fcfbb329.entry.js → p-489438ed.entry.js} +1 -1
  8. package/dist/bn-template-engine/{p-5d7a3a77.entry.js → p-6f86159c.entry.js} +1 -1
  9. package/dist/bn-template-engine/{p-45508f1b.entry.js → p-7401e3f3.entry.js} +1 -1
  10. package/dist/bn-template-engine/{p-b27009eb.entry.js → p-83d50a14.entry.js} +1 -1
  11. package/dist/bn-template-engine/{p-qRZrT-U3.js → p-BCr2-Ka-.js} +1 -1
  12. package/dist/bn-template-engine/{p-BbmobTg0.js → p-BEkgk7Ij.js} +1 -1
  13. package/dist/bn-template-engine/{p-CsJ84YRk.js → p-BVYKc5cH.js} +1 -1
  14. package/dist/bn-template-engine/{p-CWWWM-XC.js → p-BeLWoM0Q.js} +1 -1
  15. package/dist/bn-template-engine/p-CHZZqoB7.js +1 -0
  16. package/dist/bn-template-engine/p-CURM2Nrr.js +1 -0
  17. package/dist/bn-template-engine/{p-DVrDYxlh.js → p-Ckhir6Ux.js} +1 -1
  18. package/dist/bn-template-engine/{p-EtT29btN.js → p-Ct0wEGrw.js} +1 -1
  19. package/dist/bn-template-engine/p-CtEA0ZQc.js +1 -0
  20. package/dist/bn-template-engine/{p-DjPXefnq.js → p-DJ5KJ6GF.js} +1 -1
  21. package/dist/bn-template-engine/{p-BcaI745G.js → p-DoIuKI09.js} +1 -1
  22. package/dist/bn-template-engine/{p-B5Jd_eCX.js → p-DwGg2_vO.js} +1 -1
  23. package/dist/bn-template-engine/{p-CG_Bcm6V.js → p-Z-mcXias.js} +1 -1
  24. package/dist/bn-template-engine/p-aeba74a4.entry.js +1 -0
  25. package/dist/bn-template-engine/{p-4419db8f.entry.js → p-b4dabaf9.entry.js} +1 -1
  26. package/dist/bn-template-engine/{p-a5867a4c.entry.js → p-d083f0e6.entry.js} +1 -1
  27. package/dist/bn-template-engine/p-ee09f216.entry.js +1 -0
  28. package/dist/bn-template-engine/p-f00b189f.entry.js +1 -0
  29. package/dist/cjs/{AxisConfig-DwiNUyYG.js → AxisConfig-CbNnsmGC.js} +1 -1
  30. package/dist/cjs/{LabelCollisionManager-Bv-xkeXw.js → LabelCollisionManager-tOT40-pH.js} +2 -2
  31. package/dist/cjs/{Order-2wRydarc.js → Order-C5XgrPzr.js} +1 -1
  32. package/dist/cjs/SVGStyle-C1LhLgbT.js +6513 -0
  33. package/dist/cjs/{SVGVariancesStyleGroup-CiI4GeWe.js → SVGVariancesStyleGroup-C2Ys_Iz6.js} +1 -1
  34. package/dist/cjs/{VarianceMeasure-CQlSRzlp.js → VarianceMeasure-uph4FBRa.js} +1 -1
  35. package/dist/cjs/{XYChartDataRow-C2FdL58s.js → XYChartDataRow-BNqTnXnX.js} +4 -4
  36. package/dist/cjs/bn-asset_21.cjs.entry.js +79 -42
  37. package/dist/cjs/bn-chart-bubble.cjs.entry.js +15 -14
  38. package/dist/cjs/bn-chart-bullet.cjs.entry.js +14 -13
  39. package/dist/cjs/bn-chart-scatter.cjs.entry.js +14 -13
  40. package/dist/cjs/bn-grid.cjs.entry.js +5 -5
  41. package/dist/cjs/bn-image.cjs.entry.js +4 -4
  42. package/dist/cjs/bn-internationalization.cjs.entry.js +1 -1
  43. package/dist/cjs/bn-ruleset.cjs.entry.js +1 -1
  44. package/dist/cjs/bn-text.cjs.entry.js +5 -5
  45. package/dist/cjs/bn-tree.cjs.entry.js +5 -5
  46. package/dist/cjs/{context-protocol-DcTEh1rq.js → context-protocol-G4pi217i.js} +10 -10
  47. package/dist/cjs/{diagnostics-CTgbq_Gc.js → diagnostics-CRfecdNZ.js} +1 -1
  48. package/dist/cjs/editor-companion.cjs.entry.js +1 -1
  49. package/dist/cjs/{svgChartElements-tDA43aYj.js → emptyState-B3kPjSFO.js} +27 -4
  50. package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +9 -8
  51. package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +9 -8
  52. package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +9 -8
  53. package/dist/cjs/{scaling-Dsb5_NXy.js → scaling-BGTK5H0H.js} +1 -1
  54. package/dist/cjs/{withScalingGroup-CFIc5-6s.js → withScalingGroup-DrFV_zsQ.js} +1 -1
  55. package/dist/cjs/{withStyled-D0jLwCib.js → withStyled-CZCnmfPw.js} +3 -3
  56. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.css +37 -0
  57. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +3 -1
  58. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.css +37 -5
  59. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.js +3 -2
  60. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.css +37 -0
  61. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +3 -1
  62. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.css +37 -5
  63. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.js +3 -2
  64. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.css +37 -0
  65. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +3 -1
  66. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.css +37 -5
  67. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.js +3 -2
  68. package/dist/collection/components/bn-chart-structure/bn-chart-structure.css +37 -5
  69. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +16 -2
  70. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +4 -4
  71. package/dist/collection/components/bn-chart-time/bn-chart-time.css +37 -0
  72. package/dist/collection/components/bn-chart-time/bn-chart-time.js +24 -2
  73. package/dist/collection/components/bn-chart-time/ibcs-chart-time.css +37 -0
  74. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +4 -4
  75. package/dist/collection/components/bn-table/bn-table.css +38 -1
  76. package/dist/collection/components/bn-table/bn-table.js +4 -2
  77. package/dist/collection/components/bn-table/ibcs-table.css +37 -0
  78. package/dist/collection/components/bn-table/ibcs-table.js +5 -3
  79. package/dist/collection/stores/internationalization.js +10 -10
  80. package/dist/collection/utils/emptyState.js +21 -0
  81. package/dist/components/bn-chart-bubble.js +1 -1
  82. package/dist/components/bn-chart-bullet.js +1 -1
  83. package/dist/components/bn-chart-scatter.js +1 -1
  84. package/dist/components/bn-chart-structure.js +1 -1
  85. package/dist/components/bn-chart-time.js +1 -1
  86. package/dist/components/bn-table.js +1 -1
  87. package/dist/components/context-protocol.js +1 -1
  88. package/dist/components/emptyState.js +1 -0
  89. package/dist/components/ibcs-chart-bubble2.js +1 -1
  90. package/dist/components/ibcs-chart-bullet2.js +1 -1
  91. package/dist/components/ibcs-chart-scatter2.js +1 -1
  92. package/dist/components/ibcs-chart-structure2.js +1 -1
  93. package/dist/components/ibcs-chart-time2.js +1 -1
  94. package/dist/components/ibcs-table2.js +1 -1
  95. package/dist/components/svg.esm.js +1 -0
  96. package/dist/esm/{AxisConfig-KqzWQbML.js → AxisConfig-CEFoGHUN.js} +1 -1
  97. package/dist/esm/{LabelCollisionManager-585bQMtP.js → LabelCollisionManager-Dou5LvUs.js} +2 -2
  98. package/dist/esm/{Order-DZVWjEL_.js → Order-Tn0j255j.js} +1 -1
  99. package/dist/esm/SVGStyle-BSuFK9YW.js +6503 -0
  100. package/dist/esm/{SVGVariancesStyleGroup-DO5QJfRQ.js → SVGVariancesStyleGroup-D52LMGw8.js} +1 -1
  101. package/dist/esm/{VarianceMeasure-DDjChp8C.js → VarianceMeasure-BXWH7oAW.js} +1 -1
  102. package/dist/esm/{XYChartDataRow-Dn83Tqh9.js → XYChartDataRow-D272UFel.js} +4 -4
  103. package/dist/esm/bn-asset_21.entry.js +70 -33
  104. package/dist/esm/bn-chart-bubble.entry.js +12 -11
  105. package/dist/esm/bn-chart-bullet.entry.js +11 -10
  106. package/dist/esm/bn-chart-scatter.entry.js +11 -10
  107. package/dist/esm/bn-grid.entry.js +5 -5
  108. package/dist/esm/bn-image.entry.js +4 -4
  109. package/dist/esm/bn-internationalization.entry.js +1 -1
  110. package/dist/esm/bn-ruleset.entry.js +1 -1
  111. package/dist/esm/bn-text.entry.js +5 -5
  112. package/dist/esm/bn-tree.entry.js +5 -5
  113. package/dist/esm/{context-protocol-B-vdGKeG.js → context-protocol-D_ysqCp8.js} +10 -10
  114. package/dist/esm/{diagnostics-CiquIw8B.js → diagnostics-BjZRZraG.js} +1 -1
  115. package/dist/esm/editor-companion.entry.js +1 -1
  116. package/dist/esm/{svgChartElements-B3YClivG.js → emptyState-DqkM4Yc5.js} +27 -5
  117. package/dist/esm/ibcs-chart-bubble.entry.js +9 -8
  118. package/dist/esm/ibcs-chart-bullet.entry.js +9 -8
  119. package/dist/esm/ibcs-chart-scatter.entry.js +9 -8
  120. package/dist/esm/{scaling-Dggyeqts.js → scaling-YbP727FC.js} +1 -1
  121. package/dist/esm/{withScalingGroup-DNBSqRC0.js → withScalingGroup-Byn-W6z8.js} +1 -1
  122. package/dist/esm/{withStyled-DoNsbwS3.js → withStyled-3yRswBcf.js} +3 -3
  123. package/dist/types/utils/emptyState.d.ts +10 -0
  124. package/package.json +2 -2
  125. package/dist/bn-template-engine/p-03304284.entry.js +0 -1
  126. package/dist/bn-template-engine/p-461fdffa.entry.js +0 -1
  127. package/dist/bn-template-engine/p-62cc95b7.entry.js +0 -1
  128. package/dist/bn-template-engine/p-829212c3.entry.js +0 -1
  129. package/dist/bn-template-engine/p-BcLsoDrW.js +0 -1
  130. package/dist/bn-template-engine/p-D5e8I9Qe.js +0 -1
  131. package/dist/bn-template-engine/p-TuLpbB5O.js +0 -1
  132. package/dist/bn-template-engine/p-bfa87b07.entry.js +0 -1
  133. package/dist/bn-template-engine/p-ceb80db3.entry.js +0 -1
  134. package/dist/bn-template-engine/p-f06c3703.entry.js +0 -1
  135. package/dist/cjs/SVGStyle-DoxylrEQ.js +0 -8219
  136. package/dist/components/layoutObserver.js +0 -1
  137. package/dist/components/main.js +0 -1
  138. package/dist/esm/SVGStyle-OrPkzjcb.js +0 -8209
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var diagnostics = require('./diagnostics-CTgbq_Gc.js');
5
- var svgChartElements = require('./svgChartElements-tDA43aYj.js');
6
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
7
- var scaling = require('./scaling-Dsb5_NXy.js');
8
- var withStyled = require('./withStyled-D0jLwCib.js');
4
+ var diagnostics = require('./diagnostics-CRfecdNZ.js');
5
+ var emptyState = require('./emptyState-B3kPjSFO.js');
6
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
7
+ var scaling = require('./scaling-BGTK5H0H.js');
8
+ var withStyled = require('./withStyled-CZCnmfPw.js');
9
9
  var withHasError = require('./withHasError-BdDmiOXM.js');
10
- var VarianceMeasure = require('./VarianceMeasure-CQlSRzlp.js');
11
- var AxisConfig = require('./AxisConfig-DwiNUyYG.js');
10
+ var VarianceMeasure = require('./VarianceMeasure-uph4FBRa.js');
11
+ var AxisConfig = require('./AxisConfig-CbNnsmGC.js');
12
12
  require('./index.cjs.js');
13
- require('./Order-2wRydarc.js');
13
+ require('./Order-C5XgrPzr.js');
14
14
 
15
- const bnChartScatterCss = () => `:host{display:inline-block;position:relative;overflow:hidden;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.container{display:flex;flex-direction:column}`;
15
+ const bnChartScatterCss = () => `:host(.no-data){display:block;box-sizing:border-box;width:100%;height:100%}:host(.no-data)>div{float:none;width:100%;height:100%}:host(.no-data) .no-data~.no-data{display:none}.empty-state{box-sizing:border-box;display:flex;align-items:center;justify-content:center;float:none;width:100%;height:100%;min-height:3em;margin:0;padding:0.5em;overflow:hidden;border:0.1em dashed #ddd;color:#808080;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);font-style:normal;text-align:center}:host{display:inline-block;position:relative;overflow:hidden;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.container{display:flex;flex-direction:column}`;
16
16
 
17
17
  const HIERARCHY_DEPTH = { rowGroup: 0, category: 1, subCategory: 2 };
18
18
  const ChartScatter = class {
@@ -181,7 +181,7 @@ const ChartScatter = class {
181
181
  });
182
182
  this.errors = withHasError.withHasError(this);
183
183
  this.componentStyle = withStyled.withComponentStyle(this);
184
- this.ruleSetConfig = svgChartElements.withRuleSet(this);
184
+ this.ruleSetConfig = emptyState.withRuleSet(this);
185
185
  this.t = scaling.withTranslation(this).t;
186
186
  }
187
187
  componentWillLoad() {
@@ -198,6 +198,7 @@ const ChartScatter = class {
198
198
  this.validateScale(this.scale);
199
199
  }
200
200
  componentDidRender() {
201
+ emptyState.syncEmptyState(this.element, "ibcs-chart-scatter");
201
202
  const { mode } = scaling.parseScaling(this.scale);
202
203
  if (mode !== "auto" && mode !== "empty") {
203
204
  this._autoScaleGuard = false;
@@ -253,7 +254,7 @@ const ChartScatter = class {
253
254
  }
254
255
  componentDidLoad() {
255
256
  // Watch for size changes (window resize, card relayout) — width only.
256
- this.layoutObserver = svgChartElements.observeParentResize(this.element, () => {
257
+ this.layoutObserver = emptyState.observeParentResize(this.element, () => {
257
258
  if (this._autoScaleGuard)
258
259
  return;
259
260
  const { width } = scaling.getParentDimensions(this.element);
@@ -552,7 +553,7 @@ const ChartScatter = class {
552
553
  // Auto-scale can be mid-measurement (or unmeasurable in tests) — report a sane factor.
553
554
  const factor = Number.isFinite(rawFactor) && rawFactor > 0 ? rawFactor : 1;
554
555
  const fontSizePx = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; }) * factor;
555
- return svgChartElements.collectXYFacadeState(this.element, "ibcs-chart-scatter", this.chartTitle || undefined, { fontSizePx, appliedScaleFactor: factor }, origins, detail);
556
+ return emptyState.collectXYFacadeState(this.element, "ibcs-chart-scatter", this.chartTitle || undefined, { fontSizePx, appliedScaleFactor: factor }, origins, detail);
556
557
  }
557
558
  getEffectiveScaleFactor() {
558
559
  const { mode, factor } = scaling.parseScaling(this.scale);
@@ -634,7 +635,7 @@ const ChartScatter = class {
634
635
  return (index.h("ibcs-chart-scatter", { tableName: this.datasetName, dataVersion: this.dataVersion, chartTitle: this.chartTitle, x: x, y: y, iso: this.prepareIso(), labels: this.prepareLabels(), legend: this.prepareLegend(), facet: facet, pointLevel: pointLevel, seriesLevel: this.prepareSeriesLevel(pointLevel), aspect: this.prepareAspect(), limit: this.prepareLimit(), filter: this.filter, styles: preparedStyle, i18n: preparedI18n, containerWidth: fullParentWidth, ruleSetConfig: this.ruleSetConfig(), errors: this.errors, translate: this.translateForInner }));
635
636
  }
636
637
  render() {
637
- return (index.h(index.Host, { key: '1e347d72935a145bb50bed0516c7aeda34014547', style: this.getFontStyles() }, index.h("div", { key: '8fb0acb5218bb5dba7252eda639a60ff6384e744', class: "container" }, this.chartTemplate())));
638
+ return (index.h(index.Host, { key: 'c89cf155219b71044f049ad2b941cdd155f13162', style: this.getFontStyles() }, index.h("div", { key: 'f61225de4c4b7b53e223a268fc25d9bd783ed712', class: "container" }, this.chartTemplate())));
638
639
  }
639
640
  get element() { return index.getElement(this); }
640
641
  static get watchers() { return {
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var withStyled = require('./withStyled-D0jLwCib.js');
4
+ var withStyled = require('./withStyled-CZCnmfPw.js');
5
5
  var index$1 = require('./index.cjs.js');
6
- var diagnostics = require('./diagnostics-CTgbq_Gc.js');
6
+ var diagnostics = require('./diagnostics-CRfecdNZ.js');
7
7
  var withHasError = require('./withHasError-BdDmiOXM.js');
8
- require('./context-protocol-DcTEh1rq.js');
9
- require('./VarianceMeasure-CQlSRzlp.js');
10
- require('./Order-2wRydarc.js');
8
+ require('./context-protocol-G4pi217i.js');
9
+ require('./VarianceMeasure-uph4FBRa.js');
10
+ require('./Order-C5XgrPzr.js');
11
11
 
12
12
  /**
13
13
  * Header configuration types and parsing utilities for bn-grid component.
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var withStyled = require('./withStyled-D0jLwCib.js');
4
+ var withStyled = require('./withStyled-CZCnmfPw.js');
5
5
  var withHasError = require('./withHasError-BdDmiOXM.js');
6
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
7
- require('./VarianceMeasure-CQlSRzlp.js');
8
- require('./Order-2wRydarc.js');
6
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
7
+ require('./VarianceMeasure-uph4FBRa.js');
8
+ require('./Order-C5XgrPzr.js');
9
9
 
10
10
  const bnImageCss = () => `:host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}`;
11
11
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
4
  var withBodyObserver = require('./withBodyObserver-DJO98AJ-.js');
5
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
5
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
6
6
  var withHasError = require('./withHasError-BdDmiOXM.js');
7
7
 
8
8
  const bnInternationalizationCss = () => `bn-internationalization{display:none}`;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
4
  var withBodyObserver = require('./withBodyObserver-DJO98AJ-.js');
5
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
5
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
6
6
  var withHasError = require('./withHasError-BdDmiOXM.js');
7
7
 
8
8
  const bnRulesetCss = () => `bn-ruleset{display:none}`;
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var scaling = require('./scaling-Dsb5_NXy.js');
4
+ var scaling = require('./scaling-BGTK5H0H.js');
5
5
  var withHasError = require('./withHasError-BdDmiOXM.js');
6
- var withStyled = require('./withStyled-D0jLwCib.js');
6
+ var withStyled = require('./withStyled-CZCnmfPw.js');
7
7
  var sanitizeHtml = require('./sanitizeHtml-LuZr1IMd.js');
8
- require('./context-protocol-DcTEh1rq.js');
9
- require('./VarianceMeasure-CQlSRzlp.js');
10
- require('./Order-2wRydarc.js');
8
+ require('./context-protocol-G4pi217i.js');
9
+ require('./VarianceMeasure-uph4FBRa.js');
10
+ require('./Order-C5XgrPzr.js');
11
11
 
12
12
  const bnTextCss = () => `:host{padding:0.5em;display:inline-block;position:relative;overflow:hidden;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000);background-color:var(--bn-font-background, white)}span.container p{margin:0}`;
13
13
 
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var withStyled = require('./withStyled-D0jLwCib.js');
4
+ var withStyled = require('./withStyled-CZCnmfPw.js');
5
5
  var index$1 = require('./index.cjs.js');
6
- var diagnostics = require('./diagnostics-CTgbq_Gc.js');
6
+ var diagnostics = require('./diagnostics-CRfecdNZ.js');
7
7
  var withHasError = require('./withHasError-BdDmiOXM.js');
8
- require('./context-protocol-DcTEh1rq.js');
9
- require('./VarianceMeasure-CQlSRzlp.js');
10
- require('./Order-2wRydarc.js');
8
+ require('./context-protocol-G4pi217i.js');
9
+ require('./VarianceMeasure-uph4FBRa.js');
10
+ require('./Order-C5XgrPzr.js');
11
11
 
12
12
  /**
13
13
  * Tree Parser utility for bn-tree component
@@ -615,7 +615,7 @@ const globalLabelKeys = [
615
615
  const xyChartKeysDe = {
616
616
  axis: { in: "in" },
617
617
  legend: { title: "" },
618
- "no-data": "==Keine Daten==",
618
+ "no-data": "Keine Daten",
619
619
  "xy-prop-json": "{{prop}}: ungültiges JSON.",
620
620
  "xy-measure-invalid": "{{prop}}: '{{measure}}' ist weder eine Szenario-Spalte noch ein Varianz-Token.",
621
621
  "xy-family-mixed": "Alle Kennzahlen müssen zur selben Szenario-Familie gehören (gefunden: {{families}}).",
@@ -630,7 +630,7 @@ const xyChartKeysDe = {
630
630
  const xyChartKeysEn = {
631
631
  axis: { in: "in" },
632
632
  legend: { title: "" },
633
- "no-data": "==No Data==",
633
+ "no-data": "No Data",
634
634
  "xy-prop-json": "{{prop}}: invalid JSON.",
635
635
  "xy-measure-invalid": "{{prop}}: '{{measure}}' is neither a scenario column nor a variance token.",
636
636
  "xy-family-mixed": "All measures must share one scenario family (found: {{families}}).",
@@ -672,13 +672,13 @@ const de = flattenObject({
672
672
  CONNECTOR_WS: " und ",
673
673
  in: "in",
674
674
  },
675
- "bn-chart-time": { "no-data": "==Keine Daten==" },
676
- "bn-chart-structure": { "no-data": "==Keine Daten==", REST: "REST" },
675
+ "bn-chart-time": { "no-data": "Keine Daten" },
676
+ "bn-chart-structure": { "no-data": "Keine Daten", REST: "REST" },
677
677
  "bn-chart-scatter": Object.assign(Object.assign({}, xyChartKeysDe), { "xy-iso-domain": "Iso-Linien benötigen einen strikt positiven Wertebereich auf beiden Achsen; übersprungen." }),
678
678
  "bn-chart-bubble": Object.assign(Object.assign({}, xyChartKeysDe), { legend: Object.assign(Object.assign({}, xyChartKeysDe.legend), { size: "Größe", compare: "Szenarien" }), "xy-compare-variance": "compareWith kann nicht mit Varianz-Kennzahlen auf den Achsen kombiniert werden.", "bubble-size-negative": "{{count}} Blase(n) mit negativem Größenwert ausgeschlossen.", "bubble-share-range": "{{count}} Anteilswert(e) außerhalb [0,1] wurden begrenzt.", "bubble-scale-group-unknown": "size.group '{{group}}' verweist auf keine bn-scaling-group im Kontext.", "bubble-scale-overflow": "{{count}} gruppenskalierte Blase(n) überschreiten das Panel; in Originalgröße gezeichnet." }),
679
679
  "bn-chart-bullet": {
680
680
  axis: { in: "in" },
681
- "no-data": "==Keine Daten==",
681
+ "no-data": "Keine Daten",
682
682
  target: "Ziel",
683
683
  "bullet-prop-json": "{{prop}}: ungültiges JSON.",
684
684
  "bullet-measure-invalid": "{{prop}}: '{{measure}}' ist keine Szenario-Spalte (ac1…pl4).",
@@ -698,7 +698,7 @@ const de = flattenObject({
698
698
  part_of: "in % von",
699
699
  SUM_TOTAL: "❖",
700
700
  REST: "REST",
701
- "no-data": "==Keine Daten==",
701
+ "no-data": "Keine Daten",
702
702
  },
703
703
  });
704
704
  const en = flattenObject({
@@ -731,13 +731,13 @@ const en = flattenObject({
731
731
  CONNECTOR_WS: " and ",
732
732
  in: "in",
733
733
  },
734
- "bn-chart-time": { "no-data": "==No Data==" },
735
- "bn-chart-structure": { "no-data": "==No Data==", REST: "REST" },
734
+ "bn-chart-time": { "no-data": "No Data" },
735
+ "bn-chart-structure": { "no-data": "No Data", REST: "REST" },
736
736
  "bn-chart-scatter": Object.assign(Object.assign({}, xyChartKeysEn), { "xy-iso-domain": "Iso-lines need a strictly positive domain on both axes; skipped." }),
737
737
  "bn-chart-bubble": Object.assign(Object.assign({}, xyChartKeysEn), { legend: Object.assign(Object.assign({}, xyChartKeysEn.legend), { size: "Size", compare: "Scenarios" }), "xy-compare-variance": "compareWith cannot be combined with variance measures on the axes.", "bubble-size-negative": "{{count}} bubble(s) with a negative size value excluded.", "bubble-share-range": "{{count}} share value(s) outside [0,1] were clamped.", "bubble-scale-group-unknown": "size.group '{{group}}' names no bn-scaling-group in scope.", "bubble-scale-overflow": "{{count}} group-scaled bubble(s) exceed the panel; rendered true-size." }),
738
738
  "bn-chart-bullet": {
739
739
  axis: { in: "in" },
740
- "no-data": "==No Data==",
740
+ "no-data": "No Data",
741
741
  target: "Target",
742
742
  "bullet-prop-json": "{{prop}}: invalid JSON.",
743
743
  "bullet-measure-invalid": "{{prop}}: '{{measure}}' is not a scenario column (ac1…pl4).",
@@ -757,7 +757,7 @@ const en = flattenObject({
757
757
  part_of: "in % of",
758
758
  SUM_TOTAL: "❖",
759
759
  REST: "REST",
760
- "no-data": "==No Data==",
760
+ "no-data": "No Data",
761
761
  },
762
762
  });
763
763
  const BN_INTERNATIONALIZATION_KEYS = Object.keys(de || {});
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
3
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
4
4
 
5
5
  const round2 = (value) => Math.round(value * 100) / 100;
6
6
  /** Converts a viewport rect into a rounded {@link LayoutRect}. */
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
4
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
5
5
 
6
6
  const editorCompanionCss = () => `editor-companion{display:none}`;
7
7
 
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
4
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
5
5
  var withHasError = require('./withHasError-BdDmiOXM.js');
6
- var scaling = require('./scaling-Dsb5_NXy.js');
7
- var VarianceMeasure = require('./VarianceMeasure-CQlSRzlp.js');
8
- var diagnostics = require('./diagnostics-CTgbq_Gc.js');
6
+ var scaling = require('./scaling-BGTK5H0H.js');
7
+ var VarianceMeasure = require('./VarianceMeasure-uph4FBRa.js');
8
+ var diagnostics = require('./diagnostics-CRfecdNZ.js');
9
9
  var index$1 = require('./index.cjs.js');
10
10
 
11
11
  /**
@@ -394,7 +394,30 @@ function collectXYFacadeState(host, innerTag, title, em, origins, detail) {
394
394
  return state;
395
395
  }
396
396
 
397
+ /**
398
+ * Mirrors the inner no-data state on the outer component's host.
399
+ *
400
+ * Only the inner `ibcs-*` element knows it has no rows; it sets `no-data` on
401
+ * its own host. The outer host sits in a layout slot wrapper as an
402
+ * inline-block, so it must fill that wrapper too before the empty-state box
403
+ * can fill the cell (see styles/_empty-state.scss). Call from the outer
404
+ * component's componentDidRender, which runs after the inners have rendered.
405
+ */
406
+ function syncEmptyState(host, innerTag) {
407
+ var _a, _b;
408
+ const inners = Array.from((_b = (_a = host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(innerTag)) !== null && _b !== void 0 ? _b : []);
409
+ const empty = inners.length > 0 && inners.every((inner) => inner.classList.contains("no-data"));
410
+ // Not classList.toggle(name, force): Stencil's mock-doc ignores `force`.
411
+ if (empty) {
412
+ host.classList.add("no-data");
413
+ }
414
+ else {
415
+ host.classList.remove("no-data");
416
+ }
417
+ }
418
+
397
419
  exports.collectChartFacadeLayout = collectChartFacadeLayout;
398
420
  exports.collectXYFacadeState = collectXYFacadeState;
399
421
  exports.observeParentResize = observeParentResize;
422
+ exports.syncEmptyState = syncEmptyState;
400
423
  exports.withRuleSet = withRuleSet;
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
5
- var SVGStyle = require('./SVGStyle-DoxylrEQ.js');
6
- var XYChartDataRow = require('./XYChartDataRow-C2FdL58s.js');
7
- var LabelCollisionManager = require('./LabelCollisionManager-Bv-xkeXw.js');
4
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
5
+ var SVGStyle = require('./SVGStyle-C1LhLgbT.js');
6
+ var XYChartDataRow = require('./XYChartDataRow-BNqTnXnX.js');
7
+ var LabelCollisionManager = require('./LabelCollisionManager-tOT40-pH.js');
8
8
  var NumericScale = require('./NumericScale-BAyYXpKL.js');
9
- var VarianceMeasure = require('./VarianceMeasure-CQlSRzlp.js');
9
+ var VarianceMeasure = require('./VarianceMeasure-uph4FBRa.js');
10
10
 
11
11
  /**
12
12
  * Area-true bubble sizing: bubble **area** is proportional to the data
@@ -511,7 +511,7 @@ class BubbleChart {
511
511
  }
512
512
  }
513
513
 
514
- const ibcsChartBubbleCss = () => `:host{position:relative;display:inline-block}.warning{font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}`;
514
+ const ibcsChartBubbleCss = () => `:host(.no-data){display:block;box-sizing:border-box;width:100%;height:100%}:host(.no-data)>div{float:none;width:100%;height:100%}:host(.no-data) .no-data~.no-data{display:none}.empty-state{box-sizing:border-box;display:flex;align-items:center;justify-content:center;float:none;width:100%;height:100%;min-height:3em;margin:0;padding:0.5em;overflow:hidden;border:0.1em dashed #ddd;color:#808080;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);font-style:normal;text-align:center}:host{position:relative;display:inline-block}`;
515
515
 
516
516
  /** The §8 codes this chart can raise from data resolution / drawing. */
517
517
  const BUBBLE_DATA_WARNING_CODES = [
@@ -608,12 +608,13 @@ const IbcsChartBubble = class {
608
608
  return new XYChartDataRow.XYChartStylesAdapter(new XYChartDataRow.ScaleFactorsXYChartAdapter(), new SVGStyle.FontStyleAdapter(), new SVGStyle.SVGStyleGroupAdapter(new SVGStyle.SVGStyleAdapter()), new SVGStyle.PaddingAdapter()).adapt(this.styles);
609
609
  }
610
610
  render() {
611
+ var _a;
611
612
  if (this.chart === undefined) {
612
613
  return index.h(index.Host, null);
613
614
  }
614
615
  if (this.chart.hasNoData()) {
615
- const errorMsg = this.i18n.get("no-data") || "==No Data==";
616
- return (index.h(index.Host, null, index.h("p", { class: "warning" }, errorMsg)));
616
+ const errorMsg = (_a = this.i18n.get("no-data")) !== null && _a !== void 0 ? _a : "No Data";
617
+ return (index.h(index.Host, { class: "no-data" }, index.h("div", { class: "empty-state" }, errorMsg)));
617
618
  }
618
619
  return (index.h(index.Host, null, index.h("div", { innerHTML: this.svgMarkup })));
619
620
  }
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
5
- var VarianceMeasure = require('./VarianceMeasure-CQlSRzlp.js');
6
- var SVGStyle = require('./SVGStyle-DoxylrEQ.js');
7
- var SVGVariancesStyleGroup = require('./SVGVariancesStyleGroup-CiI4GeWe.js');
8
- var Order = require('./Order-2wRydarc.js');
4
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
5
+ var VarianceMeasure = require('./VarianceMeasure-uph4FBRa.js');
6
+ var SVGStyle = require('./SVGStyle-C1LhLgbT.js');
7
+ var SVGVariancesStyleGroup = require('./SVGVariancesStyleGroup-C2Ys_Iz6.js');
8
+ var Order = require('./Order-C5XgrPzr.js');
9
9
  var NumericScale = require('./NumericScale-BAyYXpKL.js');
10
10
 
11
11
  /**
@@ -574,7 +574,7 @@ class BulletChartStylesAdapter {
574
574
  }
575
575
  }
576
576
 
577
- const ibcsChartBulletCss = () => `:host{position:relative;display:inline-block}.warning{font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}`;
577
+ const ibcsChartBulletCss = () => `:host(.no-data){display:block;box-sizing:border-box;width:100%;height:100%}:host(.no-data)>div{float:none;width:100%;height:100%}:host(.no-data) .no-data~.no-data{display:none}.empty-state{box-sizing:border-box;display:flex;align-items:center;justify-content:center;float:none;width:100%;height:100%;min-height:3em;margin:0;padding:0.5em;overflow:hidden;border:0.1em dashed #ddd;color:#808080;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);font-style:normal;text-align:center}:host{position:relative;display:inline-block}`;
578
578
 
579
579
  /** The codes this chart can raise from data resolution. */
580
580
  const BULLET_DATA_WARNING_CODES = [
@@ -657,12 +657,13 @@ const IbcsChartBullet = class {
657
657
  return new BulletChartStylesAdapter(new ScaleFactorsBulletChartAdapter(), new SVGStyle.FontStyleAdapter(), new SVGStyle.SVGStyleGroupAdapter(new SVGStyle.SVGStyleAdapter()), new SVGVariancesStyleGroup.SVGVariancesStyleGroupAdapter(new SVGStyle.SVGStyleAdapter()), new SVGStyle.PaddingAdapter()).adapt(this.styles);
658
658
  }
659
659
  render() {
660
+ var _a;
660
661
  if (this.chart === undefined) {
661
662
  return index.h(index.Host, null);
662
663
  }
663
664
  if (this.chart.hasNoData()) {
664
- const errorMsg = this.i18n.get("no-data") || "==No Data==";
665
- return (index.h(index.Host, null, index.h("p", { class: "warning" }, errorMsg)));
665
+ const errorMsg = (_a = this.i18n.get("no-data")) !== null && _a !== void 0 ? _a : "No Data";
666
+ return (index.h(index.Host, { class: "no-data" }, index.h("div", { class: "empty-state" }, errorMsg)));
666
667
  }
667
668
  return (index.h(index.Host, null, index.h("div", { innerHTML: this.svgMarkup })));
668
669
  }
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
5
- var SVGStyle = require('./SVGStyle-DoxylrEQ.js');
6
- var XYChartDataRow = require('./XYChartDataRow-C2FdL58s.js');
4
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
5
+ var SVGStyle = require('./SVGStyle-C1LhLgbT.js');
6
+ var XYChartDataRow = require('./XYChartDataRow-BNqTnXnX.js');
7
7
  var NumericScale = require('./NumericScale-BAyYXpKL.js');
8
- var VarianceMeasure = require('./VarianceMeasure-CQlSRzlp.js');
9
- require('./LabelCollisionManager-Bv-xkeXw.js');
8
+ var VarianceMeasure = require('./VarianceMeasure-uph4FBRa.js');
9
+ require('./LabelCollisionManager-tOT40-pH.js');
10
10
 
11
11
  const SAMPLES = 64;
12
12
  /**
@@ -563,7 +563,7 @@ class ScatterChart {
563
563
  }
564
564
  }
565
565
 
566
- const ibcsChartScatterCss = () => `:host{position:relative;display:inline-block}.warning{font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);color:var(--bn-font-color, black)}`;
566
+ const ibcsChartScatterCss = () => `:host(.no-data){display:block;box-sizing:border-box;width:100%;height:100%}:host(.no-data)>div{float:none;width:100%;height:100%}:host(.no-data) .no-data~.no-data{display:none}.empty-state{box-sizing:border-box;display:flex;align-items:center;justify-content:center;float:none;width:100%;height:100%;min-height:3em;margin:0;padding:0.5em;overflow:hidden;border:0.1em dashed #ddd;color:#808080;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);font-style:normal;text-align:center}:host{position:relative;display:inline-block}`;
567
567
 
568
568
  /** The §8 codes this chart can raise from data resolution / drawing. */
569
569
  const SCATTER_DATA_WARNING_CODES = [
@@ -651,12 +651,13 @@ const IbcsChartScatter = class {
651
651
  return new XYChartDataRow.XYChartStylesAdapter(new XYChartDataRow.ScaleFactorsXYChartAdapter(), new SVGStyle.FontStyleAdapter(), new SVGStyle.SVGStyleGroupAdapter(new SVGStyle.SVGStyleAdapter()), new SVGStyle.PaddingAdapter()).adapt(this.styles);
652
652
  }
653
653
  render() {
654
+ var _a;
654
655
  if (this.chart === undefined) {
655
656
  return index.h(index.Host, null);
656
657
  }
657
658
  if (this.chart.hasNoData()) {
658
- const errorMsg = this.i18n.get("no-data") || "==No Data==";
659
- return (index.h(index.Host, null, index.h("p", { class: "warning" }, errorMsg)));
659
+ const errorMsg = (_a = this.i18n.get("no-data")) !== null && _a !== void 0 ? _a : "No Data";
660
+ return (index.h(index.Host, { class: "no-data" }, index.h("div", { class: "empty-state" }, errorMsg)));
660
661
  }
661
662
  return (index.h(index.Host, null, index.h("div", { innerHTML: this.svgMarkup })));
662
663
  }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
3
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
4
4
  var withHasError = require('./withHasError-BdDmiOXM.js');
5
5
  var index = require('./index-C1Z9vO7z.js');
6
6
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
4
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
5
5
  var withHasError = require('./withHasError-BdDmiOXM.js');
6
6
 
7
7
  /**
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-C1Z9vO7z.js');
4
- var contextProtocol = require('./context-protocol-DcTEh1rq.js');
4
+ var contextProtocol = require('./context-protocol-G4pi217i.js');
5
5
  var withHasError = require('./withHasError-BdDmiOXM.js');
6
- var VarianceMeasure = require('./VarianceMeasure-CQlSRzlp.js');
7
- var Order = require('./Order-2wRydarc.js');
6
+ var VarianceMeasure = require('./VarianceMeasure-uph4FBRa.js');
7
+ var Order = require('./Order-C5XgrPzr.js');
8
8
 
9
9
  /**
10
10
  * Mixin that provides themed styling to a Stencil component using a
@@ -1,3 +1,40 @@
1
+ :host(.no-data) {
2
+ display: block;
3
+ box-sizing: border-box;
4
+ width: 100%;
5
+ height: 100%;
6
+ }
7
+
8
+ :host(.no-data) > div {
9
+ float: none;
10
+ width: 100%;
11
+ height: 100%;
12
+ }
13
+
14
+ :host(.no-data) .no-data ~ .no-data {
15
+ display: none;
16
+ }
17
+
18
+ .empty-state {
19
+ box-sizing: border-box;
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ float: none;
24
+ width: 100%;
25
+ height: 100%;
26
+ min-height: 3em;
27
+ margin: 0;
28
+ padding: 0.5em;
29
+ overflow: hidden;
30
+ border: 0.1em dashed #ddd;
31
+ color: #808080;
32
+ font-family: var(--bn-font-family, "Noto Sans", sans-serif);
33
+ font-size: var(--bn-font-size, 13.3333px);
34
+ font-style: normal;
35
+ text-align: center;
36
+ }
37
+
1
38
  :host {
2
39
  display: inline-block;
3
40
  position: relative;
@@ -15,6 +15,7 @@ import withTranslation from "../../utils/withTranslation";
15
15
  import { withStyled } from "../../utils/styled/withStyled";
16
16
  import { resolveMeasure, scenarioFamily } from "../../utils/xy/VarianceMeasure";
17
17
  import { parseSpec, toAxisConfig, toFacetConfig, toLabelConfig, toLegendConfig, toShareConfig, toSizeConfig, } from "../../utils/xy/model/AxisConfig";
18
+ import { syncEmptyState } from "../../utils/emptyState";
18
19
  const HIERARCHY_DEPTH = { rowGroup: 0, category: 1, subCategory: 2 };
19
20
  const COMPARE_FAMILIES = ["ac", "pp", "fc", "pl"];
20
21
  /**
@@ -239,6 +240,7 @@ export class ChartBubble {
239
240
  this.validateScale(this.scale);
240
241
  }
241
242
  componentDidRender() {
243
+ syncEmptyState(this.element, "ibcs-chart-bubble");
242
244
  const { mode } = parseScaling(this.scale);
243
245
  if (mode !== "auto" && mode !== "empty") {
244
246
  this._autoScaleGuard = false;
@@ -752,7 +754,7 @@ export class ChartBubble {
752
754
  return (h("ibcs-chart-bubble", { tableName: this.datasetName, dataVersion: this.dataVersion, chartTitle: this.chartTitle, x: x, y: y, size: size, share: share, compareFamily: this.prepareCompareFamily(), labels: this.prepareLabels(), legend: this.prepareLegend(), facet: facet, pointLevel: pointLevel, seriesLevel: this.prepareSeriesLevel(pointLevel), aspect: this.prepareAspect(), limit: this.prepareLimit(), filter: this.filter, sizeAreaPerUnit: this.prepareSizeAreaPerUnit(), styles: preparedStyle, i18n: preparedI18n, containerWidth: fullParentWidth, ruleSetConfig: this.ruleSetConfig(), errors: this.errors, translate: this.translateForInner }));
753
755
  }
754
756
  render() {
755
- return (h(Host, { key: '0dd049de98d978c2d8223eb8b68faef8568260b6', style: this.getFontStyles() }, h("div", { key: '676705ee1711e0780a3a80b01e4f951800742bbd', class: "container" }, this.chartTemplate())));
757
+ return (h(Host, { key: '997088a63d65b8e0a5bb89cc0c4954605677b4ab', style: this.getFontStyles() }, h("div", { key: 'c67a4204ad2e34071f3e67395ac69fdd972e9edb', class: "container" }, this.chartTemplate())));
756
758
  }
757
759
  static get is() { return "bn-chart-bubble"; }
758
760
  static get encapsulation() { return "shadow"; }
@@ -1,9 +1,41 @@
1
+ :host(.no-data) {
2
+ display: block;
3
+ box-sizing: border-box;
4
+ width: 100%;
5
+ height: 100%;
6
+ }
7
+
8
+ :host(.no-data) > div {
9
+ float: none;
10
+ width: 100%;
11
+ height: 100%;
12
+ }
13
+
14
+ :host(.no-data) .no-data ~ .no-data {
15
+ display: none;
16
+ }
17
+
18
+ .empty-state {
19
+ box-sizing: border-box;
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ float: none;
24
+ width: 100%;
25
+ height: 100%;
26
+ min-height: 3em;
27
+ margin: 0;
28
+ padding: 0.5em;
29
+ overflow: hidden;
30
+ border: 0.1em dashed #ddd;
31
+ color: #808080;
32
+ font-family: var(--bn-font-family, "Noto Sans", sans-serif);
33
+ font-size: var(--bn-font-size, 13.3333px);
34
+ font-style: normal;
35
+ text-align: center;
36
+ }
37
+
1
38
  :host {
2
39
  position: relative;
3
40
  display: inline-block;
4
- }
5
-
6
- .warning {
7
- font-family: var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);
8
- color: var(--bn-font-color, black);
9
41
  }
@@ -108,12 +108,13 @@ export class IbcsChartBubble {
108
108
  return new XYChartStylesAdapter(new ScaleFactorsXYChartAdapter(), new FontStyleAdapter(), new SVGStyleGroupAdapter(new SVGStyleAdapter()), new PaddingAdapter()).adapt(this.styles);
109
109
  }
110
110
  render() {
111
+ var _a;
111
112
  if (this.chart === undefined) {
112
113
  return h(Host, null);
113
114
  }
114
115
  if (this.chart.hasNoData()) {
115
- const errorMsg = this.i18n.get("no-data") || "==No Data==";
116
- return (h(Host, null, h("p", { class: "warning" }, errorMsg)));
116
+ const errorMsg = (_a = this.i18n.get("no-data")) !== null && _a !== void 0 ? _a : "No Data";
117
+ return (h(Host, { class: "no-data" }, h("div", { class: "empty-state" }, errorMsg)));
117
118
  }
118
119
  return (h(Host, null, h("div", { innerHTML: this.svgMarkup })));
119
120
  }