@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.
- package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/p-0a19e8af.entry.js +1 -0
- package/dist/bn-template-engine/p-0f6ece5a.entry.js +1 -0
- package/dist/bn-template-engine/p-13db2986.entry.js +1 -0
- package/dist/bn-template-engine/p-1b35c4ac.entry.js +1 -0
- package/dist/bn-template-engine/{p-0fb02c57.entry.js → p-4602d613.entry.js} +1 -1
- package/dist/bn-template-engine/{p-fcfbb329.entry.js → p-489438ed.entry.js} +1 -1
- package/dist/bn-template-engine/{p-5d7a3a77.entry.js → p-6f86159c.entry.js} +1 -1
- package/dist/bn-template-engine/{p-45508f1b.entry.js → p-7401e3f3.entry.js} +1 -1
- package/dist/bn-template-engine/{p-b27009eb.entry.js → p-83d50a14.entry.js} +1 -1
- package/dist/bn-template-engine/{p-qRZrT-U3.js → p-BCr2-Ka-.js} +1 -1
- package/dist/bn-template-engine/{p-BbmobTg0.js → p-BEkgk7Ij.js} +1 -1
- package/dist/bn-template-engine/{p-CsJ84YRk.js → p-BVYKc5cH.js} +1 -1
- package/dist/bn-template-engine/{p-CWWWM-XC.js → p-BeLWoM0Q.js} +1 -1
- package/dist/bn-template-engine/p-CHZZqoB7.js +1 -0
- package/dist/bn-template-engine/p-CURM2Nrr.js +1 -0
- package/dist/bn-template-engine/{p-DVrDYxlh.js → p-Ckhir6Ux.js} +1 -1
- package/dist/bn-template-engine/{p-EtT29btN.js → p-Ct0wEGrw.js} +1 -1
- package/dist/bn-template-engine/p-CtEA0ZQc.js +1 -0
- package/dist/bn-template-engine/{p-DjPXefnq.js → p-DJ5KJ6GF.js} +1 -1
- package/dist/bn-template-engine/{p-BcaI745G.js → p-DoIuKI09.js} +1 -1
- package/dist/bn-template-engine/{p-B5Jd_eCX.js → p-DwGg2_vO.js} +1 -1
- package/dist/bn-template-engine/{p-CG_Bcm6V.js → p-Z-mcXias.js} +1 -1
- package/dist/bn-template-engine/p-aeba74a4.entry.js +1 -0
- package/dist/bn-template-engine/{p-4419db8f.entry.js → p-b4dabaf9.entry.js} +1 -1
- package/dist/bn-template-engine/{p-a5867a4c.entry.js → p-d083f0e6.entry.js} +1 -1
- package/dist/bn-template-engine/p-ee09f216.entry.js +1 -0
- package/dist/bn-template-engine/p-f00b189f.entry.js +1 -0
- package/dist/cjs/{AxisConfig-DwiNUyYG.js → AxisConfig-CbNnsmGC.js} +1 -1
- package/dist/cjs/{LabelCollisionManager-Bv-xkeXw.js → LabelCollisionManager-tOT40-pH.js} +2 -2
- package/dist/cjs/{Order-2wRydarc.js → Order-C5XgrPzr.js} +1 -1
- package/dist/cjs/SVGStyle-C1LhLgbT.js +6513 -0
- package/dist/cjs/{SVGVariancesStyleGroup-CiI4GeWe.js → SVGVariancesStyleGroup-C2Ys_Iz6.js} +1 -1
- package/dist/cjs/{VarianceMeasure-CQlSRzlp.js → VarianceMeasure-uph4FBRa.js} +1 -1
- package/dist/cjs/{XYChartDataRow-C2FdL58s.js → XYChartDataRow-BNqTnXnX.js} +4 -4
- package/dist/cjs/bn-asset_21.cjs.entry.js +79 -42
- package/dist/cjs/bn-chart-bubble.cjs.entry.js +15 -14
- package/dist/cjs/bn-chart-bullet.cjs.entry.js +14 -13
- package/dist/cjs/bn-chart-scatter.cjs.entry.js +14 -13
- package/dist/cjs/bn-grid.cjs.entry.js +5 -5
- package/dist/cjs/bn-image.cjs.entry.js +4 -4
- package/dist/cjs/bn-internationalization.cjs.entry.js +1 -1
- package/dist/cjs/bn-ruleset.cjs.entry.js +1 -1
- package/dist/cjs/bn-text.cjs.entry.js +5 -5
- package/dist/cjs/bn-tree.cjs.entry.js +5 -5
- package/dist/cjs/{context-protocol-DcTEh1rq.js → context-protocol-G4pi217i.js} +10 -10
- package/dist/cjs/{diagnostics-CTgbq_Gc.js → diagnostics-CRfecdNZ.js} +1 -1
- package/dist/cjs/editor-companion.cjs.entry.js +1 -1
- package/dist/cjs/{svgChartElements-tDA43aYj.js → emptyState-B3kPjSFO.js} +27 -4
- package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +9 -8
- package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +9 -8
- package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +9 -8
- package/dist/cjs/{scaling-Dsb5_NXy.js → scaling-BGTK5H0H.js} +1 -1
- package/dist/cjs/{withScalingGroup-CFIc5-6s.js → withScalingGroup-DrFV_zsQ.js} +1 -1
- package/dist/cjs/{withStyled-D0jLwCib.js → withStyled-CZCnmfPw.js} +3 -3
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.css +37 -0
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +3 -1
- package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.css +37 -5
- package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.js +3 -2
- package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.css +37 -0
- package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +3 -1
- package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.css +37 -5
- package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.js +3 -2
- package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.css +37 -0
- package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +3 -1
- package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.css +37 -5
- package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.js +3 -2
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.css +37 -5
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +16 -2
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +4 -4
- package/dist/collection/components/bn-chart-time/bn-chart-time.css +37 -0
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +24 -2
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.css +37 -0
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +4 -4
- package/dist/collection/components/bn-table/bn-table.css +38 -1
- package/dist/collection/components/bn-table/bn-table.js +4 -2
- package/dist/collection/components/bn-table/ibcs-table.css +37 -0
- package/dist/collection/components/bn-table/ibcs-table.js +5 -3
- package/dist/collection/stores/internationalization.js +10 -10
- package/dist/collection/utils/emptyState.js +21 -0
- package/dist/components/bn-chart-bubble.js +1 -1
- package/dist/components/bn-chart-bullet.js +1 -1
- package/dist/components/bn-chart-scatter.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/context-protocol.js +1 -1
- package/dist/components/emptyState.js +1 -0
- package/dist/components/ibcs-chart-bubble2.js +1 -1
- package/dist/components/ibcs-chart-bullet2.js +1 -1
- package/dist/components/ibcs-chart-scatter2.js +1 -1
- package/dist/components/ibcs-chart-structure2.js +1 -1
- package/dist/components/ibcs-chart-time2.js +1 -1
- package/dist/components/ibcs-table2.js +1 -1
- package/dist/components/svg.esm.js +1 -0
- package/dist/esm/{AxisConfig-KqzWQbML.js → AxisConfig-CEFoGHUN.js} +1 -1
- package/dist/esm/{LabelCollisionManager-585bQMtP.js → LabelCollisionManager-Dou5LvUs.js} +2 -2
- package/dist/esm/{Order-DZVWjEL_.js → Order-Tn0j255j.js} +1 -1
- package/dist/esm/SVGStyle-BSuFK9YW.js +6503 -0
- package/dist/esm/{SVGVariancesStyleGroup-DO5QJfRQ.js → SVGVariancesStyleGroup-D52LMGw8.js} +1 -1
- package/dist/esm/{VarianceMeasure-DDjChp8C.js → VarianceMeasure-BXWH7oAW.js} +1 -1
- package/dist/esm/{XYChartDataRow-Dn83Tqh9.js → XYChartDataRow-D272UFel.js} +4 -4
- package/dist/esm/bn-asset_21.entry.js +70 -33
- package/dist/esm/bn-chart-bubble.entry.js +12 -11
- package/dist/esm/bn-chart-bullet.entry.js +11 -10
- package/dist/esm/bn-chart-scatter.entry.js +11 -10
- package/dist/esm/bn-grid.entry.js +5 -5
- package/dist/esm/bn-image.entry.js +4 -4
- package/dist/esm/bn-internationalization.entry.js +1 -1
- package/dist/esm/bn-ruleset.entry.js +1 -1
- package/dist/esm/bn-text.entry.js +5 -5
- package/dist/esm/bn-tree.entry.js +5 -5
- package/dist/esm/{context-protocol-B-vdGKeG.js → context-protocol-D_ysqCp8.js} +10 -10
- package/dist/esm/{diagnostics-CiquIw8B.js → diagnostics-BjZRZraG.js} +1 -1
- package/dist/esm/editor-companion.entry.js +1 -1
- package/dist/esm/{svgChartElements-B3YClivG.js → emptyState-DqkM4Yc5.js} +27 -5
- package/dist/esm/ibcs-chart-bubble.entry.js +9 -8
- package/dist/esm/ibcs-chart-bullet.entry.js +9 -8
- package/dist/esm/ibcs-chart-scatter.entry.js +9 -8
- package/dist/esm/{scaling-Dggyeqts.js → scaling-YbP727FC.js} +1 -1
- package/dist/esm/{withScalingGroup-DNBSqRC0.js → withScalingGroup-Byn-W6z8.js} +1 -1
- package/dist/esm/{withStyled-DoNsbwS3.js → withStyled-3yRswBcf.js} +3 -3
- package/dist/types/utils/emptyState.d.ts +10 -0
- package/package.json +2 -2
- package/dist/bn-template-engine/p-03304284.entry.js +0 -1
- package/dist/bn-template-engine/p-461fdffa.entry.js +0 -1
- package/dist/bn-template-engine/p-62cc95b7.entry.js +0 -1
- package/dist/bn-template-engine/p-829212c3.entry.js +0 -1
- package/dist/bn-template-engine/p-BcLsoDrW.js +0 -1
- package/dist/bn-template-engine/p-D5e8I9Qe.js +0 -1
- package/dist/bn-template-engine/p-TuLpbB5O.js +0 -1
- package/dist/bn-template-engine/p-bfa87b07.entry.js +0 -1
- package/dist/bn-template-engine/p-ceb80db3.entry.js +0 -1
- package/dist/bn-template-engine/p-f06c3703.entry.js +0 -1
- package/dist/cjs/SVGStyle-DoxylrEQ.js +0 -8219
- package/dist/components/layoutObserver.js +0 -1
- package/dist/components/main.js +0 -1
- package/dist/esm/SVGStyle-OrPkzjcb.js +0 -8209
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var VarianceMeasure = require('./VarianceMeasure-
|
|
4
|
-
var contextProtocol = require('./context-protocol-
|
|
5
|
-
var LabelCollisionManager = require('./LabelCollisionManager-
|
|
6
|
-
var SVGStyle = require('./SVGStyle-
|
|
3
|
+
var VarianceMeasure = require('./VarianceMeasure-uph4FBRa.js');
|
|
4
|
+
var contextProtocol = require('./context-protocol-G4pi217i.js');
|
|
5
|
+
var LabelCollisionManager = require('./LabelCollisionManager-tOT40-pH.js');
|
|
6
|
+
var SVGStyle = require('./SVGStyle-C1LhLgbT.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Aggregates all style configuration for an XY chart (scatter/bubble):
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C1Z9vO7z.js');
|
|
4
4
|
var withHasError = require('./withHasError-BdDmiOXM.js');
|
|
5
|
-
var contextProtocol = require('./context-protocol-
|
|
5
|
+
var contextProtocol = require('./context-protocol-G4pi217i.js');
|
|
6
6
|
var withBodyObserver = require('./withBodyObserver-DJO98AJ-.js');
|
|
7
|
-
var withStyled = require('./withStyled-
|
|
8
|
-
var scaling = require('./scaling-
|
|
9
|
-
var withScalingGroup = require('./withScalingGroup-
|
|
10
|
-
var
|
|
11
|
-
var VarianceMeasure = require('./VarianceMeasure-
|
|
12
|
-
var Order = require('./Order-
|
|
7
|
+
var withStyled = require('./withStyled-CZCnmfPw.js');
|
|
8
|
+
var scaling = require('./scaling-BGTK5H0H.js');
|
|
9
|
+
var withScalingGroup = require('./withScalingGroup-DrFV_zsQ.js');
|
|
10
|
+
var emptyState = require('./emptyState-B3kPjSFO.js');
|
|
11
|
+
var VarianceMeasure = require('./VarianceMeasure-uph4FBRa.js');
|
|
12
|
+
var Order = require('./Order-C5XgrPzr.js');
|
|
13
13
|
var index$1 = require('./index.cjs.js');
|
|
14
|
-
var diagnostics = require('./diagnostics-
|
|
15
|
-
var SVGStyle = require('./SVGStyle-
|
|
14
|
+
var diagnostics = require('./diagnostics-CRfecdNZ.js');
|
|
15
|
+
var SVGStyle = require('./SVGStyle-C1LhLgbT.js');
|
|
16
16
|
var sanitizeHtml = require('./sanitizeHtml-LuZr1IMd.js');
|
|
17
|
-
var LabelCollisionManager = require('./LabelCollisionManager-
|
|
18
|
-
var SVGVariancesStyleGroup = require('./SVGVariancesStyleGroup-
|
|
17
|
+
var LabelCollisionManager = require('./LabelCollisionManager-tOT40-pH.js');
|
|
18
|
+
var SVGVariancesStyleGroup = require('./SVGVariancesStyleGroup-C2Ys_Iz6.js');
|
|
19
19
|
|
|
20
20
|
const bnAssetCss = () => `:host{display:none}`;
|
|
21
21
|
|
|
@@ -136,7 +136,7 @@ function buildGenericState(el, origins) {
|
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
const bnChartStructureCss$1 = () => `: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: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}
|
|
139
|
+
const bnChartStructureCss$1 = () => `: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: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}svg#drawCanvas{display:block}.footer{margin:0.2em;font-size:0.6em}.footer-hide{margin:0.2em;font-size:0.6em;opacity:0}`;
|
|
140
140
|
|
|
141
141
|
const Chart$1 = class Chart {
|
|
142
142
|
validateScenario(newValue) {
|
|
@@ -177,6 +177,10 @@ const Chart$1 = class Chart {
|
|
|
177
177
|
}
|
|
178
178
|
validateUnitScaling(newValue) {
|
|
179
179
|
const errId = "ERR_unitScaling";
|
|
180
|
+
if (withStyled.isBlankInput(newValue)) {
|
|
181
|
+
this.errors.remove(errId);
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
180
184
|
if (scaling.resolveScalingValue(newValue, this.pixelPerUnitGroupMap).kind === "invalid") {
|
|
181
185
|
this.errors.addOrReplace({
|
|
182
186
|
id: errId,
|
|
@@ -190,6 +194,10 @@ const Chart$1 = class Chart {
|
|
|
190
194
|
}
|
|
191
195
|
validatePercentageScaling(newValue) {
|
|
192
196
|
const errId = "ERR_percentageScaling";
|
|
197
|
+
if (withStyled.isBlankInput(newValue)) {
|
|
198
|
+
this.errors.remove(errId);
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
193
201
|
if (scaling.resolveScalingValue(newValue, this.pixelPerUnitGroupMap).kind === "invalid") {
|
|
194
202
|
this.errors.addOrReplace({
|
|
195
203
|
id: errId,
|
|
@@ -203,6 +211,10 @@ const Chart$1 = class Chart {
|
|
|
203
211
|
}
|
|
204
212
|
validateLevel(newValue) {
|
|
205
213
|
const errId = "ERR_level";
|
|
214
|
+
if (withStyled.isBlankInput(newValue)) {
|
|
215
|
+
this.errors.remove(errId);
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
206
218
|
if (!withStyled.isValidLevel(newValue)) {
|
|
207
219
|
this.errors.addOrReplace({
|
|
208
220
|
id: errId,
|
|
@@ -234,7 +246,7 @@ const Chart$1 = class Chart {
|
|
|
234
246
|
}
|
|
235
247
|
validateOrderDirection(newValue) {
|
|
236
248
|
const errId = "ERR_orderDirection";
|
|
237
|
-
if (scaling.isInheritedValue(newValue)) {
|
|
249
|
+
if (scaling.isInheritedValue(newValue) || withStyled.isBlankInput(newValue)) {
|
|
238
250
|
this.errors.remove(errId);
|
|
239
251
|
return;
|
|
240
252
|
}
|
|
@@ -490,7 +502,7 @@ const Chart$1 = class Chart {
|
|
|
490
502
|
this.errors = withHasError.withHasError(this);
|
|
491
503
|
withScalingGroup.withScalingGroup(this);
|
|
492
504
|
this.componentStyle = withStyled.withComponentStyle(this);
|
|
493
|
-
this.ruleSetConfig =
|
|
505
|
+
this.ruleSetConfig = emptyState.withRuleSet(this);
|
|
494
506
|
this.t = scaling.withTranslation(this).t;
|
|
495
507
|
this.resolveInherited = scaling.withInheritedProps(this, [
|
|
496
508
|
{ propName: "scenarios", ancestorAttr: "title-scenarios" },
|
|
@@ -514,6 +526,7 @@ const Chart$1 = class Chart {
|
|
|
514
526
|
this.validateScaling(this.scale);
|
|
515
527
|
}
|
|
516
528
|
componentDidRender() {
|
|
529
|
+
emptyState.syncEmptyState(this.element, "ibcs-chart-structure");
|
|
517
530
|
const { mode } = scaling.parseScaling(this.scale);
|
|
518
531
|
if (mode !== "auto" && mode !== "empty") {
|
|
519
532
|
this._autoScaleGuard = false;
|
|
@@ -586,7 +599,7 @@ const Chart$1 = class Chart {
|
|
|
586
599
|
// compared to what auto-scaling last measured — this prevents the
|
|
587
600
|
// ResizeObserver's initial fire (and content-reflow noise) from
|
|
588
601
|
// creating an infinite auto-scale loop.
|
|
589
|
-
this.layoutObserver =
|
|
602
|
+
this.layoutObserver = emptyState.observeParentResize(this.element, () => {
|
|
590
603
|
if (this._autoScaleGuard)
|
|
591
604
|
return;
|
|
592
605
|
const { height } = scaling.getParentDimensions(this.element);
|
|
@@ -1024,7 +1037,7 @@ const Chart$1 = class Chart {
|
|
|
1024
1037
|
const factor = Number.isFinite(rawFactor) && rawFactor > 0 ? rawFactor : 1;
|
|
1025
1038
|
const fontSizePx = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; }) * factor;
|
|
1026
1039
|
const variances = this.prepareVariances();
|
|
1027
|
-
const layout =
|
|
1040
|
+
const layout = emptyState.collectChartFacadeLayout(this.element, "ibcs-chart-structure", ["base", ...variances], origins, detail);
|
|
1028
1041
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1029
1042
|
const firstInner = (_b = this.element.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("ibcs-chart-structure");
|
|
1030
1043
|
const state = {
|
|
@@ -1120,7 +1133,7 @@ const Chart$1 = class Chart {
|
|
|
1120
1133
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
1121
1134
|
}
|
|
1122
1135
|
const fontStyles = this.getFontStyles();
|
|
1123
|
-
return (index.h(index.Host, { key: '
|
|
1136
|
+
return (index.h(index.Host, { key: '63dd26b9a5518573a663d62b807a94c7dca10120', style: fontStyles }, index.h("div", { key: '58a39867f8c3ecedf315c5322ddba5facb896a31', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
1124
1137
|
}
|
|
1125
1138
|
get element() { return index.getElement(this); }
|
|
1126
1139
|
static get watchers() { return {
|
|
@@ -1167,7 +1180,7 @@ const Chart$1 = class Chart {
|
|
|
1167
1180
|
};
|
|
1168
1181
|
Chart$1.style = bnChartStructureCss$1();
|
|
1169
1182
|
|
|
1170
|
-
const bnChartTimeCss = () => `: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-reverse}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}`;
|
|
1183
|
+
const bnChartTimeCss = () => `: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-reverse}.background-image{display:flex;flex-wrap:wrap;justify-content:flex-end}`;
|
|
1171
1184
|
|
|
1172
1185
|
var AggregationLevel;
|
|
1173
1186
|
(function (AggregationLevel) {
|
|
@@ -1243,6 +1256,10 @@ const Chart = class {
|
|
|
1243
1256
|
}
|
|
1244
1257
|
validateUnitScaling(newValue) {
|
|
1245
1258
|
const errId = "ERR_unitScaling";
|
|
1259
|
+
if (withStyled.isBlankInput(newValue)) {
|
|
1260
|
+
this.errors.remove(errId);
|
|
1261
|
+
return;
|
|
1262
|
+
}
|
|
1246
1263
|
if (scaling.resolveScalingValue(newValue, this.pixelPerUnitGroupMap).kind === "invalid") {
|
|
1247
1264
|
this.errors.addOrReplace({
|
|
1248
1265
|
id: errId,
|
|
@@ -1256,6 +1273,10 @@ const Chart = class {
|
|
|
1256
1273
|
}
|
|
1257
1274
|
validatePercentageScaling(newValue) {
|
|
1258
1275
|
const errId = "ERR_percentageScaling";
|
|
1276
|
+
if (withStyled.isBlankInput(newValue)) {
|
|
1277
|
+
this.errors.remove(errId);
|
|
1278
|
+
return;
|
|
1279
|
+
}
|
|
1259
1280
|
if (scaling.resolveScalingValue(newValue, this.pixelPerUnitGroupMap).kind === "invalid") {
|
|
1260
1281
|
this.errors.addOrReplace({
|
|
1261
1282
|
id: errId,
|
|
@@ -1269,6 +1290,10 @@ const Chart = class {
|
|
|
1269
1290
|
}
|
|
1270
1291
|
validateLevel(newValue) {
|
|
1271
1292
|
const errId = "ERR_level";
|
|
1293
|
+
if (withStyled.isBlankInput(newValue)) {
|
|
1294
|
+
this.errors.remove(errId);
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1272
1297
|
if (!withStyled.isValidLevel(newValue)) {
|
|
1273
1298
|
this.errors.addOrReplace({
|
|
1274
1299
|
id: errId,
|
|
@@ -1300,7 +1325,7 @@ const Chart = class {
|
|
|
1300
1325
|
}
|
|
1301
1326
|
validateOrderDirection(newValue) {
|
|
1302
1327
|
const errId = "ERR_orderDirection";
|
|
1303
|
-
if (scaling.isInheritedValue(newValue)) {
|
|
1328
|
+
if (scaling.isInheritedValue(newValue) || withStyled.isBlankInput(newValue)) {
|
|
1304
1329
|
this.errors.remove(errId);
|
|
1305
1330
|
return;
|
|
1306
1331
|
}
|
|
@@ -1317,6 +1342,10 @@ const Chart = class {
|
|
|
1317
1342
|
}
|
|
1318
1343
|
validateDateInterval(newValue) {
|
|
1319
1344
|
const errId = "ERR_dateInterval";
|
|
1345
|
+
if (withStyled.isBlankInput(newValue)) {
|
|
1346
|
+
this.errors.remove(errId);
|
|
1347
|
+
return;
|
|
1348
|
+
}
|
|
1320
1349
|
if (!withStyled.isValidDateFormat(newValue)) {
|
|
1321
1350
|
this.errors.addOrReplace({
|
|
1322
1351
|
id: errId,
|
|
@@ -1390,6 +1419,10 @@ const Chart = class {
|
|
|
1390
1419
|
}
|
|
1391
1420
|
validateAxisLabelsMode(newValue) {
|
|
1392
1421
|
const errId = "ERR_axisLabelsMode";
|
|
1422
|
+
if (withStyled.isBlankInput(newValue)) {
|
|
1423
|
+
this.errors.remove(errId);
|
|
1424
|
+
return;
|
|
1425
|
+
}
|
|
1393
1426
|
if (!withStyled.isValidAxisLabelsMode(newValue)) {
|
|
1394
1427
|
this.errors.addOrReplace({
|
|
1395
1428
|
id: errId,
|
|
@@ -1681,7 +1714,7 @@ const Chart = class {
|
|
|
1681
1714
|
this.errors = withHasError.withHasError(this);
|
|
1682
1715
|
withScalingGroup.withScalingGroup(this);
|
|
1683
1716
|
this.componentStyle = withStyled.withComponentStyle(this);
|
|
1684
|
-
this.ruleSetConfig =
|
|
1717
|
+
this.ruleSetConfig = emptyState.withRuleSet(this);
|
|
1685
1718
|
this.t = scaling.withTranslation(this).t;
|
|
1686
1719
|
this.resolveInherited = scaling.withInheritedProps(this, [
|
|
1687
1720
|
{ propName: "scenarios", ancestorAttr: "title-scenarios" },
|
|
@@ -1801,6 +1834,7 @@ const Chart = class {
|
|
|
1801
1834
|
});
|
|
1802
1835
|
}
|
|
1803
1836
|
componentDidRender() {
|
|
1837
|
+
emptyState.syncEmptyState(this.element, "ibcs-chart-time");
|
|
1804
1838
|
const { mode } = scaling.parseScaling(this.scale);
|
|
1805
1839
|
if (mode !== "auto" && mode !== "empty") {
|
|
1806
1840
|
this._autoScaleGuard = false;
|
|
@@ -1862,7 +1896,7 @@ const Chart = class {
|
|
|
1862
1896
|
}
|
|
1863
1897
|
componentDidLoad() {
|
|
1864
1898
|
// Watch for size changes (window resize, card relayout).
|
|
1865
|
-
this.layoutObserver =
|
|
1899
|
+
this.layoutObserver = emptyState.observeParentResize(this.element, () => {
|
|
1866
1900
|
if (this._autoScaleGuard)
|
|
1867
1901
|
return;
|
|
1868
1902
|
const { width } = scaling.getParentDimensions(this.element);
|
|
@@ -2339,7 +2373,7 @@ const Chart = class {
|
|
|
2339
2373
|
const factor = Number.isFinite(rawFactor) && rawFactor > 0 ? rawFactor : 1;
|
|
2340
2374
|
const fontSizePx = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; }) * factor;
|
|
2341
2375
|
const variances = this.prepareVariances();
|
|
2342
|
-
const layout =
|
|
2376
|
+
const layout = emptyState.collectChartFacadeLayout(this.element, "ibcs-chart-time", ["base", ...variances], origins, detail);
|
|
2343
2377
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2344
2378
|
const firstInner = (_b = this.element.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("ibcs-chart-time");
|
|
2345
2379
|
const state = {
|
|
@@ -2436,7 +2470,7 @@ const Chart = class {
|
|
|
2436
2470
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
2437
2471
|
}
|
|
2438
2472
|
const fontStyles = this.getFontStyles();
|
|
2439
|
-
return (index.h(index.Host, { key: '
|
|
2473
|
+
return (index.h(index.Host, { key: '942ecfa6b05694341a8fb30b020f26cce686c742', style: fontStyles }, index.h("div", { key: 'd7f2c11b6930223a11eb6bbce4b74bc48d1363b0', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
2440
2474
|
}
|
|
2441
2475
|
get element() { return index.getElement(this); }
|
|
2442
2476
|
static get watchers() { return {
|
|
@@ -4757,7 +4791,7 @@ function toDateTime(value) {
|
|
|
4757
4791
|
return undefined;
|
|
4758
4792
|
}
|
|
4759
4793
|
|
|
4760
|
-
const bnTableCss = () => `: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)}`;
|
|
4794
|
+
const bnTableCss = () => `: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)}`;
|
|
4761
4795
|
|
|
4762
4796
|
const Table$1 = class Table {
|
|
4763
4797
|
validateScaling(newValue) {
|
|
@@ -5095,7 +5129,7 @@ const Table$1 = class Table {
|
|
|
5095
5129
|
this.errors = withHasError.withHasError(this);
|
|
5096
5130
|
withScalingGroup.withScalingGroup(this);
|
|
5097
5131
|
this.componentStyle = withStyled.withComponentStyle(this);
|
|
5098
|
-
this.ruleSetConfig =
|
|
5132
|
+
this.ruleSetConfig = emptyState.withRuleSet(this);
|
|
5099
5133
|
scaling.withDataset(this, (name, data) => {
|
|
5100
5134
|
// Helpers query the shared alasql database directly by name; we just
|
|
5101
5135
|
// record the active dataset and bump a version counter so Stencil
|
|
@@ -5486,7 +5520,7 @@ const Table$1 = class Table {
|
|
|
5486
5520
|
componentDidLoad() {
|
|
5487
5521
|
// Observe the parent container for size changes so auto-scaling
|
|
5488
5522
|
// reacts to genuine container resizes (window resize, card relayout).
|
|
5489
|
-
this.layoutObserver =
|
|
5523
|
+
this.layoutObserver = emptyState.observeParentResize(this.element, () => {
|
|
5490
5524
|
if (this._autoScaleGuard)
|
|
5491
5525
|
return;
|
|
5492
5526
|
const { width } = scaling.getParentDimensions(this.element);
|
|
@@ -5505,6 +5539,7 @@ const Table$1 = class Table {
|
|
|
5505
5539
|
this.layoutObserver = null;
|
|
5506
5540
|
}
|
|
5507
5541
|
componentDidRender() {
|
|
5542
|
+
emptyState.syncEmptyState(this.element, "ibcs-table");
|
|
5508
5543
|
const { mode } = scaling.parseScaling(this.scale);
|
|
5509
5544
|
// Only auto-scale for 'auto' and 'empty' (blank) modes
|
|
5510
5545
|
if (mode !== "auto" && mode !== "empty") {
|
|
@@ -6066,7 +6101,7 @@ const Table$1 = class Table {
|
|
|
6066
6101
|
render() {
|
|
6067
6102
|
const fontStyles = this.getFontStyles();
|
|
6068
6103
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
6069
|
-
return (index.h(index.Host, { key: '
|
|
6104
|
+
return (index.h(index.Host, { key: '862e6c754183277d1a0de24ffa8e2d102052e1aa', style: fontStyles }, index.h("div", { key: '8f70e759a81367466da351759949f670d1dcb692' }, index.h("ibcs-table", { key: 'ac01fc5f8a22c4f2fa62088154f2c59a7f6cb6fc', tableName: this.datasetName, dataVersion: this.dataVersion, sumTitle: this.prepareSumTitle(), scenarios: this.prepareScenarios(), scenariosDataFormat: this.prepareDataFormat(), grouped: this.prepareGrouped(), limit: this.prepareLimit(), showGroupTitle: this.prepareShowGroupTitle(), thereof: this.prepareThereOf(), partof: this.preparePartOf(), order: this.prepareOrder(), categorythereof: this.prepareColumnThereOf(), attributeColumns: this.prepareAttributes(), type: this.prepareTableType(), categoryWidth: this.prepareCategoryWidth(), dataFormatDigits: this.prepareDataFormatDigits(), i18n: this.prepareI18n(), i18nMode: this.prepareI18nMode(), measureScale: this.prepareMeasureScale(), measureType: this.prepareMeasureType(), measureUnit: this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(), filter: this.prepareFilter(), barColumns: this.prepareBarColumns(), interval: this.prepareInterval(), barColumnMaxWidth: this.prepareBarColumnWidth(), unitScaling: this.prepareUnitScaling(), percentageScaling: this.preparePercentageScaling(), reportAutoScaling: this.handleAutoScalingReport, scaleFactor: effectiveFactor, ruleSetConfig: this.ruleSetConfig(), selectedStyle: this.selectedStyle }))));
|
|
6070
6105
|
}
|
|
6071
6106
|
get element() { return index.getElement(this); }
|
|
6072
6107
|
static get watchers() { return {
|
|
@@ -6213,7 +6248,7 @@ const Title$1 = class Title {
|
|
|
6213
6248
|
this.t = scaling.withTranslation(this).t;
|
|
6214
6249
|
this.errors = withHasError.withHasError(this);
|
|
6215
6250
|
this.componentStyle = withStyled.withComponentStyle(this);
|
|
6216
|
-
this.ruleSetConfig =
|
|
6251
|
+
this.ruleSetConfig = emptyState.withRuleSet(this);
|
|
6217
6252
|
}
|
|
6218
6253
|
validateScenario(newValue) {
|
|
6219
6254
|
const errId = "ERR_scenarios";
|
|
@@ -9658,7 +9693,7 @@ class DataFormatDigitsAdapter {
|
|
|
9658
9693
|
}
|
|
9659
9694
|
}
|
|
9660
9695
|
|
|
9661
|
-
const bnChartStructureCss = () => `: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: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}
|
|
9696
|
+
const bnChartStructureCss = () => `: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: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}svg#drawCanvas{display:block}.footer{margin:0.2em;font-size:0.6em}.footer-hide{margin:0.2em;font-size:0.6em;opacity:0}`;
|
|
9662
9697
|
|
|
9663
9698
|
const IbcsChartStructure = class {
|
|
9664
9699
|
constructor(hostRef) {
|
|
@@ -9694,15 +9729,15 @@ const IbcsChartStructure = class {
|
|
|
9694
9729
|
return this.stores.db.db;
|
|
9695
9730
|
}
|
|
9696
9731
|
render() {
|
|
9697
|
-
var _a, _b, _c;
|
|
9732
|
+
var _a, _b, _c, _d;
|
|
9698
9733
|
if (this.chart === undefined) {
|
|
9699
9734
|
return index.h(index.Host, null);
|
|
9700
9735
|
}
|
|
9701
9736
|
if (this.chart.hasNoData()) {
|
|
9702
|
-
const errorMsg = this.i18n.get("no-data")
|
|
9703
|
-
return (index.h(index.Host,
|
|
9737
|
+
const errorMsg = (_a = this.i18n.get("no-data")) !== null && _a !== void 0 ? _a : "No Data";
|
|
9738
|
+
return (index.h(index.Host, { class: "no-data" }, index.h("div", { class: "empty-state" }, errorMsg)));
|
|
9704
9739
|
}
|
|
9705
|
-
return (index.h(index.Host, null, index.h("div", { innerHTML: (
|
|
9740
|
+
return (index.h(index.Host, null, index.h("div", { innerHTML: (_b = this.pattern) === null || _b === void 0 ? void 0 : _b.toString(), class: "hidePatternContainer" }), index.h("div", { class: this.showMeasureScale ? "footer" : "footer-hide" }, (_c = this.chart) === null || _c === void 0 ? void 0 : _c.getFooter()), index.h("div", { innerHTML: (_d = this.chart) === null || _d === void 0 ? void 0 : _d.toString() })));
|
|
9706
9741
|
}
|
|
9707
9742
|
async componentWillLoad() {
|
|
9708
9743
|
var _a;
|
|
@@ -13737,7 +13772,7 @@ class TimeChartComponentConfigAdapter {
|
|
|
13737
13772
|
}
|
|
13738
13773
|
}
|
|
13739
13774
|
|
|
13740
|
-
const ibcsChartTimeCss = () => `:host{position:relative;display:inline-block}.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-default{stroke:black;stroke-width:0.1em}.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}.hide{opacity:0}.footer{margin:0.2em;font-size:0.6em}.footer-hide{display:none}svg#drawCanvas{display:block}`;
|
|
13775
|
+
const ibcsChartTimeCss = () => `: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}.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-default{stroke:black;stroke-width:0.1em}.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}.hide{opacity:0}.footer{margin:0.2em;font-size:0.6em}.footer-hide{display:none}svg#drawCanvas{display:block}`;
|
|
13741
13776
|
|
|
13742
13777
|
const IbcsChartTime = class {
|
|
13743
13778
|
constructor(hostRef) {
|
|
@@ -13782,15 +13817,15 @@ const IbcsChartTime = class {
|
|
|
13782
13817
|
return this.stores.db.db;
|
|
13783
13818
|
}
|
|
13784
13819
|
render() {
|
|
13785
|
-
var _a, _b, _c;
|
|
13820
|
+
var _a, _b, _c, _d;
|
|
13786
13821
|
if (this.chart === undefined) {
|
|
13787
13822
|
return index.h(index.Host, null);
|
|
13788
13823
|
}
|
|
13789
13824
|
if (this.chart.hasNoData()) {
|
|
13790
|
-
const errorMsg = this.i18n.get("no-data")
|
|
13791
|
-
return (index.h(index.Host,
|
|
13825
|
+
const errorMsg = (_a = this.i18n.get("no-data")) !== null && _a !== void 0 ? _a : "No Data";
|
|
13826
|
+
return (index.h(index.Host, { class: "no-data" }, index.h("div", { class: "empty-state" }, errorMsg)));
|
|
13792
13827
|
}
|
|
13793
|
-
return (index.h(index.Host, null, index.h("div", { innerHTML: (
|
|
13828
|
+
return (index.h(index.Host, null, index.h("div", { innerHTML: (_b = this.pattern) === null || _b === void 0 ? void 0 : _b.toString(), class: "hidePatternContainer" }), index.h("div", { class: this.showMeasureScale ? "footer" : "footer-hide" }, (_c = this.chart) === null || _c === void 0 ? void 0 : _c.getFooter()), index.h("div", { innerHTML: (_d = this.chart) === null || _d === void 0 ? void 0 : _d.toString() })));
|
|
13794
13829
|
}
|
|
13795
13830
|
async componentWillLoad() {
|
|
13796
13831
|
var _a;
|
|
@@ -16778,7 +16813,7 @@ class TableDrillGroupAdapter {
|
|
|
16778
16813
|
}
|
|
16779
16814
|
}
|
|
16780
16815
|
|
|
16781
|
-
const ibcsTableCss = () => `:host{position:relative;display:inline-block}table{background-color:var(--bn-font-background, white);font-size:var(--bn-font-size, 1em);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);border-spacing:0.3em 0}thead{border-style:none}tr:first-child td{border-top:none;padding-top:0.5em}td.ac1,td.ac2,td.ac3,td.ac4,td.pp1,td.pp2,td.pp3,td.pp4,td.pl1,td.pl2,td.pl3,td.pl4,td.fc1,td.fc2,td.fc3,td.fc4,td.share,td.variance,td.pos_pos,td.pos_neg,td.neg_pos,td.neg_neg,td.pos_neutral,td.neg_neutral{text-align:right}.category-w100{min-width:100em;max-width:100em}.category-w50{min-width:50em;max-width:50em}.category-w25{min-width:25em;max-width:25em}.category-w20{min-width:20em;max-width:20em}.category-w15{min-width:15em;max-width:15em}.category-w10{min-width:10em;max-width:10em}.category-w5{min-width:5em;max-width:5em}.prefix-second{color:transparent;font-style:normal}.prefix-first{font-style:normal}th{border-bottom:0.1em solid black;text-align:right;font-weight:normal;vertical-align:text-top}td.columnGroup,th.columnGroup{font-size:0.6em}td.columnSubGroup,th.columnSubGroup{font-size:0.6em;border-spacing:0em 0;font-style:italic}td.base,th.base{font-style:normal}th.ofit,td.ofit,tr.ofit,th.partof,td.partof,tr.partof{font-size:0.6em;font-style:italic}td.ofit,td.partof{font-size:0.6em;font-style:italic}th.ofit td,tr.ofit td,th.partof td,tr.partof td{border-top:0em solid black;padding-left:1em}th.ofit share,th.partof share,tr.share td{border-top:0em solid black}th.share,tr.share,td.share{font-size:0.6em;font-style:italic}th.filler{border-bottom:0em solid black;text-align:right}td.filler{border-top:0em none !important;border-bottom:0em none;text-align:right}th.group{text-align:center;border-spacing:1em 0}th.headerlabel{border-bottom:0em none black;padding-bottom:0em}th.intervalGroup{border-bottom:0.1em solid black;text-align:center;font-weight:bold}td.variance:after{content:"%"}td.relative_variance{font-style:italic}td.percent{font-style:italic;text-align:right}td.decimal{text-align:right}td.pos_pos{color:#008f96}td.neg_pos{color:#ff0000}td.pos_neg{color:#ff0000}td.neg_neg{color:#008f96}td.pos_pos:before{content:"+"}td.pos_neg:before{content:"+"}td.pos_neu:before{content:"+"}th.ac1,th.ac2,th.ac3,th.ac4{padding-top:0em;border-bottom:0.3em solid black}th.pp1,th.pp2,th.pp3,th.pp4{padding-top:0em;border-bottom:0.3em solid grey}th.pl1,th.pl2,th.pl3,th.pl4{padding-top:0em;border-bottom:0.3em double black}th.fc1,th.fc2,th.fc3,th.fc4{border-bottom:0.3em solid;border-image:repeating-linear-gradient(-45deg, white, white, black, white, white 0.3em) 2}td.colsum{font-weight:bold}th.colsum{padding-top:0em;font-weight:bold}tr.sum td{border-top:0.1em solid black;font-weight:bold;padding-bottom:0.5em}tr.groupheader td{border-top:0em dotted #ddd;padding-top:0.5em;font-weight:bold;font-style:italic}tr.begingroup td{border-top:0em dotted #ddd;padding-top:0.5em}th.begin-group{padding-left:0.75em}th.end-group{padding-left:0.75em}td{box-sizing:border-box;-webkit-box-sizing:border-box;border-top:0.1em dashed #ddd;padding-left:0.5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-footer{font-size:0.6em}.cell-bar-chart{display:inline-block;vertical-align:middle}.bar-chart-empty{color:#999}td:has(.cell-bar-chart){padding:0 0.25em;vertical-align:middle}td:has(.cell-bar-chart).pos_pos:before,td:has(.cell-bar-chart).pos_neg:before,td:has(.cell-bar-chart).pos_neu:before{content:none}td:has(.cell-bar-chart).variance:after{content:none}`;
|
|
16816
|
+
const ibcsTableCss = () => `: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}table{background-color:var(--bn-font-background, white);font-size:var(--bn-font-size, 1em);color:var(--bn-font-color, black);font-family:var(--bn-font-family, "Noto Sans", "Helvetica Neue", Helvetica, sans-serif);border-spacing:0.3em 0}thead{border-style:none}tr:first-child td{border-top:none;padding-top:0.5em}td.ac1,td.ac2,td.ac3,td.ac4,td.pp1,td.pp2,td.pp3,td.pp4,td.pl1,td.pl2,td.pl3,td.pl4,td.fc1,td.fc2,td.fc3,td.fc4,td.share,td.variance,td.pos_pos,td.pos_neg,td.neg_pos,td.neg_neg,td.pos_neutral,td.neg_neutral{text-align:right}.category-w100{min-width:100em;max-width:100em}.category-w50{min-width:50em;max-width:50em}.category-w25{min-width:25em;max-width:25em}.category-w20{min-width:20em;max-width:20em}.category-w15{min-width:15em;max-width:15em}.category-w10{min-width:10em;max-width:10em}.category-w5{min-width:5em;max-width:5em}.prefix-second{color:transparent;font-style:normal}.prefix-first{font-style:normal}th{border-bottom:0.1em solid black;text-align:right;font-weight:normal;vertical-align:text-top}td.columnGroup,th.columnGroup{font-size:0.6em}td.columnSubGroup,th.columnSubGroup{font-size:0.6em;border-spacing:0em 0;font-style:italic}td.base,th.base{font-style:normal}th.ofit,td.ofit,tr.ofit,th.partof,td.partof,tr.partof{font-size:0.6em;font-style:italic}td.ofit,td.partof{font-size:0.6em;font-style:italic}th.ofit td,tr.ofit td,th.partof td,tr.partof td{border-top:0em solid black;padding-left:1em}th.ofit share,th.partof share,tr.share td{border-top:0em solid black}th.share,tr.share,td.share{font-size:0.6em;font-style:italic}th.filler{border-bottom:0em solid black;text-align:right}td.filler{border-top:0em none !important;border-bottom:0em none;text-align:right}th.group{text-align:center;border-spacing:1em 0}th.headerlabel{border-bottom:0em none black;padding-bottom:0em}th.intervalGroup{border-bottom:0.1em solid black;text-align:center;font-weight:bold}td.variance:after{content:"%"}td.relative_variance{font-style:italic}td.percent{font-style:italic;text-align:right}td.decimal{text-align:right}td.pos_pos{color:#008f96}td.neg_pos{color:#ff0000}td.pos_neg{color:#ff0000}td.neg_neg{color:#008f96}td.pos_pos:before{content:"+"}td.pos_neg:before{content:"+"}td.pos_neu:before{content:"+"}th.ac1,th.ac2,th.ac3,th.ac4{padding-top:0em;border-bottom:0.3em solid black}th.pp1,th.pp2,th.pp3,th.pp4{padding-top:0em;border-bottom:0.3em solid grey}th.pl1,th.pl2,th.pl3,th.pl4{padding-top:0em;border-bottom:0.3em double black}th.fc1,th.fc2,th.fc3,th.fc4{border-bottom:0.3em solid;border-image:repeating-linear-gradient(-45deg, white, white, black, white, white 0.3em) 2}td.colsum{font-weight:bold}th.colsum{padding-top:0em;font-weight:bold}tr.sum td{border-top:0.1em solid black;font-weight:bold;padding-bottom:0.5em}tr.groupheader td{border-top:0em dotted #ddd;padding-top:0.5em;font-weight:bold;font-style:italic}tr.begingroup td{border-top:0em dotted #ddd;padding-top:0.5em}th.begin-group{padding-left:0.75em}th.end-group{padding-left:0.75em}td{box-sizing:border-box;-webkit-box-sizing:border-box;border-top:0.1em dashed #ddd;padding-left:0.5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-footer{font-size:0.6em}.cell-bar-chart{display:inline-block;vertical-align:middle}.bar-chart-empty{color:#999}td:has(.cell-bar-chart){padding:0 0.25em;vertical-align:middle}td:has(.cell-bar-chart).pos_pos:before,td:has(.cell-bar-chart).pos_neg:before,td:has(.cell-bar-chart).pos_neu:before{content:none}td:has(.cell-bar-chart).variance:after{content:none}`;
|
|
16782
16817
|
|
|
16783
16818
|
const IbcsTable = class {
|
|
16784
16819
|
constructor(hostRef) {
|
|
@@ -16928,19 +16963,21 @@ const IbcsTable = class {
|
|
|
16928
16963
|
return result;
|
|
16929
16964
|
}
|
|
16930
16965
|
render() {
|
|
16966
|
+
var _a;
|
|
16931
16967
|
const helper = () => {
|
|
16968
|
+
var _a;
|
|
16932
16969
|
if (this.table === undefined) {
|
|
16933
16970
|
return;
|
|
16934
16971
|
}
|
|
16935
16972
|
if (this.table.hasNoData()) {
|
|
16936
|
-
const errorMsg = this.i18n.get("no-data")
|
|
16937
|
-
return index.h("
|
|
16973
|
+
const errorMsg = (_a = this.i18n.get("no-data")) !== null && _a !== void 0 ? _a : "No Data";
|
|
16974
|
+
return index.h("div", { class: "empty-state" }, errorMsg);
|
|
16938
16975
|
}
|
|
16939
16976
|
return (index.h("table", null, index.h("thead", null, this.table.getHeader().map((row) => (index.h("tr", { class: row.cssStyle }, row.getCells().map((cell) => (index.h("th", { colSpan: cell.colSpan, class: cell.cssStyle }, cell.getAsHeaderList().map((line, i, arr) => (index.h("span", null, i === arr.length - 1 ? (index.h("span", { class: line === " " ? "table-footer" : "" }, line, cell.drawPrefix(), " ")) : (index.h("span", null, line, cell.drawPrefix(), index.h("br", null))))))))))))), index.h("tbody", null, this.table.getBody().map((row) => (index.h("tr", { class: row.cssStyle }, row === null || row === void 0 ? void 0 : row.getCells().map((cell) => (index.h("td", { colSpan: cell.colSpan, class: cell.type ? `${cell.cssStyle} ${cell.type}` : cell.cssStyle }, cell.prefix != null ? (index.h("span", { class: cell.cssStyle + " " + cell.prefixStyle }, cell.drawPrefix())) : (""), cell.isBarChart &&
|
|
16940
16977
|
cell.columnStats &&
|
|
16941
16978
|
(cell.waterfall !== undefined || row.type !== TableRowType.SUM) ? (cell.waterfall !== undefined ? (index.h(WaterfallBar, { value: cell.value, scenario: cell.key, columnStats: cell.columnStats, height: 18 * this.scaleFactor, isRelative: false, isPositiveGood: cell.key.endsWith("_pos"), measureScale: cell.measureScale, columnWidthEm: this.barColumnMaxWidth, styles: this.barChartStyles, waterfall: cell.waterfall })) : (index.h(CellBarChart, { value: cell.value, scenario: cell.key, columnStats: cell.columnStats, height: 18 * this.scaleFactor, isRelative: cell.key.startsWith("dr"), isPositiveGood: cell.key.endsWith("_pos"), measureScale: cell.measureScale, columnWidthEm: this.barColumnMaxWidth, styles: this.barChartStyles }))) : (cell.draw(this.componentDataFormatDigits)))))))))));
|
|
16942
16979
|
};
|
|
16943
|
-
return index.h(index.Host, null, helper());
|
|
16980
|
+
return index.h(index.Host, { class: { "no-data": ((_a = this.table) === null || _a === void 0 ? void 0 : _a.hasNoData()) === true } }, helper());
|
|
16944
16981
|
}
|
|
16945
16982
|
componentWillRender() {
|
|
16946
16983
|
if (!this.stores)
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C1Z9vO7z.js');
|
|
4
|
-
var diagnostics = require('./diagnostics-
|
|
5
|
-
var
|
|
6
|
-
var contextProtocol = require('./context-protocol-
|
|
7
|
-
var scaling = require('./scaling-
|
|
8
|
-
var withStyled = require('./withStyled-
|
|
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 withScalingGroup = require('./withScalingGroup-
|
|
11
|
-
var VarianceMeasure = require('./VarianceMeasure-
|
|
12
|
-
var AxisConfig = require('./AxisConfig-
|
|
10
|
+
var withScalingGroup = require('./withScalingGroup-DrFV_zsQ.js');
|
|
11
|
+
var VarianceMeasure = require('./VarianceMeasure-uph4FBRa.js');
|
|
12
|
+
var AxisConfig = require('./AxisConfig-CbNnsmGC.js');
|
|
13
13
|
require('./index.cjs.js');
|
|
14
|
-
require('./Order-
|
|
14
|
+
require('./Order-C5XgrPzr.js');
|
|
15
15
|
|
|
16
|
-
const bnChartBubbleCss = () => `: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
|
+
const bnChartBubbleCss = () => `: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}`;
|
|
17
17
|
|
|
18
18
|
const HIERARCHY_DEPTH = { rowGroup: 0, category: 1, subCategory: 2 };
|
|
19
19
|
const COMPARE_FAMILIES = ["ac", "pp", "fc", "pl"];
|
|
@@ -210,7 +210,7 @@ const ChartBubble = class {
|
|
|
210
210
|
this.errors = withHasError.withHasError(this);
|
|
211
211
|
withScalingGroup.withScalingGroup(this);
|
|
212
212
|
this.componentStyle = withStyled.withComponentStyle(this);
|
|
213
|
-
this.ruleSetConfig =
|
|
213
|
+
this.ruleSetConfig = emptyState.withRuleSet(this);
|
|
214
214
|
this.t = scaling.withTranslation(this).t;
|
|
215
215
|
}
|
|
216
216
|
componentWillLoad() {
|
|
@@ -229,6 +229,7 @@ const ChartBubble = class {
|
|
|
229
229
|
this.validateScale(this.scale);
|
|
230
230
|
}
|
|
231
231
|
componentDidRender() {
|
|
232
|
+
emptyState.syncEmptyState(this.element, "ibcs-chart-bubble");
|
|
232
233
|
const { mode } = scaling.parseScaling(this.scale);
|
|
233
234
|
if (mode !== "auto" && mode !== "empty") {
|
|
234
235
|
this._autoScaleGuard = false;
|
|
@@ -284,7 +285,7 @@ const ChartBubble = class {
|
|
|
284
285
|
}
|
|
285
286
|
componentDidLoad() {
|
|
286
287
|
// Watch for size changes (window resize, card relayout) — width only.
|
|
287
|
-
this.layoutObserver =
|
|
288
|
+
this.layoutObserver = emptyState.observeParentResize(this.element, () => {
|
|
288
289
|
if (this._autoScaleGuard)
|
|
289
290
|
return;
|
|
290
291
|
const { width } = scaling.getParentDimensions(this.element);
|
|
@@ -641,7 +642,7 @@ const ChartBubble = class {
|
|
|
641
642
|
// Auto-scale can be mid-measurement (or unmeasurable in tests) — report a sane factor.
|
|
642
643
|
const factor = Number.isFinite(rawFactor) && rawFactor > 0 ? rawFactor : 1;
|
|
643
644
|
const fontSizePx = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; }) * factor;
|
|
644
|
-
return
|
|
645
|
+
return emptyState.collectXYFacadeState(this.element, "ibcs-chart-bubble", this.chartTitle || undefined, { fontSizePx, appliedScaleFactor: factor }, origins, detail);
|
|
645
646
|
}
|
|
646
647
|
getEffectiveScaleFactor() {
|
|
647
648
|
const { mode, factor } = scaling.parseScaling(this.scale);
|
|
@@ -742,7 +743,7 @@ const ChartBubble = class {
|
|
|
742
743
|
return (index.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 }));
|
|
743
744
|
}
|
|
744
745
|
render() {
|
|
745
|
-
return (index.h(index.Host, { key: '
|
|
746
|
+
return (index.h(index.Host, { key: '997088a63d65b8e0a5bb89cc0c4954605677b4ab', style: this.getFontStyles() }, index.h("div", { key: 'c67a4204ad2e34071f3e67395ac69fdd972e9edb', class: "container" }, this.chartTemplate())));
|
|
746
747
|
}
|
|
747
748
|
get element() { return index.getElement(this); }
|
|
748
749
|
static get watchers() { return {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C1Z9vO7z.js');
|
|
4
|
-
var diagnostics = require('./diagnostics-
|
|
5
|
-
var
|
|
6
|
-
var contextProtocol = require('./context-protocol-
|
|
7
|
-
var VarianceMeasure = require('./VarianceMeasure-
|
|
8
|
-
var Order = require('./Order-
|
|
9
|
-
var scaling = require('./scaling-
|
|
10
|
-
var withStyled = require('./withStyled-
|
|
4
|
+
var diagnostics = require('./diagnostics-CRfecdNZ.js');
|
|
5
|
+
var emptyState = require('./emptyState-B3kPjSFO.js');
|
|
6
|
+
var contextProtocol = require('./context-protocol-G4pi217i.js');
|
|
7
|
+
var VarianceMeasure = require('./VarianceMeasure-uph4FBRa.js');
|
|
8
|
+
var Order = require('./Order-C5XgrPzr.js');
|
|
9
|
+
var scaling = require('./scaling-BGTK5H0H.js');
|
|
10
|
+
var withStyled = require('./withStyled-CZCnmfPw.js');
|
|
11
11
|
var withHasError = require('./withHasError-BdDmiOXM.js');
|
|
12
|
-
var AxisConfig = require('./AxisConfig-
|
|
12
|
+
var AxisConfig = require('./AxisConfig-CbNnsmGC.js');
|
|
13
13
|
require('./index.cjs.js');
|
|
14
14
|
|
|
15
15
|
const MEASURE_KEYS = ["measure", "label", "unit"];
|
|
@@ -101,7 +101,7 @@ function readString(data, key, invalid) {
|
|
|
101
101
|
return undefined;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
const bnChartBulletCss = () => `: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}`;
|
|
104
|
+
const bnChartBulletCss = () => `: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}`;
|
|
105
105
|
|
|
106
106
|
/** Auto-detection preference for the target scenario. */
|
|
107
107
|
const TARGET_SLOT_PREFERENCE = ["pl1", "pp1", "fc1"];
|
|
@@ -307,7 +307,7 @@ const ChartBullet = class {
|
|
|
307
307
|
});
|
|
308
308
|
this.errors = withHasError.withHasError(this);
|
|
309
309
|
this.componentStyle = withStyled.withComponentStyle(this);
|
|
310
|
-
this.ruleSetConfig =
|
|
310
|
+
this.ruleSetConfig = emptyState.withRuleSet(this);
|
|
311
311
|
this.t = scaling.withTranslation(this).t;
|
|
312
312
|
}
|
|
313
313
|
componentWillLoad() {
|
|
@@ -324,6 +324,7 @@ const ChartBullet = class {
|
|
|
324
324
|
this.validateScale(this.scale);
|
|
325
325
|
}
|
|
326
326
|
componentDidRender() {
|
|
327
|
+
emptyState.syncEmptyState(this.element, "ibcs-chart-bullet");
|
|
327
328
|
// Bullet height is data-driven (rows × rowHeight), so the auto-fit
|
|
328
329
|
// scales against the parent HEIGHT — the structure-chart variant, not
|
|
329
330
|
// the width-based XY one.
|
|
@@ -372,7 +373,7 @@ const ChartBullet = class {
|
|
|
372
373
|
}
|
|
373
374
|
componentDidLoad() {
|
|
374
375
|
// Watch for size changes (window resize, card relayout) — height only.
|
|
375
|
-
this.layoutObserver =
|
|
376
|
+
this.layoutObserver = emptyState.observeParentResize(this.element, () => {
|
|
376
377
|
if (this._autoScaleGuard)
|
|
377
378
|
return;
|
|
378
379
|
const { height } = scaling.getParentDimensions(this.element);
|
|
@@ -686,7 +687,7 @@ const ChartBullet = class {
|
|
|
686
687
|
// Auto-scale can be mid-measurement (or unmeasurable in tests) — report a sane factor.
|
|
687
688
|
const factor = Number.isFinite(rawFactor) && rawFactor > 0 ? rawFactor : 1;
|
|
688
689
|
const fontSizePx = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; }) * factor;
|
|
689
|
-
return
|
|
690
|
+
return emptyState.collectXYFacadeState(this.element, "ibcs-chart-bullet", this.chartTitle || undefined, { fontSizePx, appliedScaleFactor: factor }, origins, detail);
|
|
690
691
|
}
|
|
691
692
|
getEffectiveScaleFactor() {
|
|
692
693
|
const { mode, factor } = scaling.parseScaling(this.scale);
|
|
@@ -761,7 +762,7 @@ const ChartBullet = class {
|
|
|
761
762
|
return (index.h("ibcs-chart-bullet", { tableName: this.datasetName, dataVersion: this.dataVersion, chartTitle: this.chartTitle, actual: actual, target: target, ranges: ranges, normalize: normalize, showVariances: this.prepareShowVariances(), level: this.prepareLevel(), order: this.prepareOrder(), limit: this.prepareLimit(), labels: this.prepareLabels(), filter: this.filter, styles: this.prepareStyle(), i18n: this.prepareI18n(), containerWidth: scaling.getParentDimensions(this.element).width, ruleSetConfig: this.ruleSetConfig(), errors: this.errors, translate: this.translateForInner }));
|
|
762
763
|
}
|
|
763
764
|
render() {
|
|
764
|
-
return (index.h(index.Host, { key: '
|
|
765
|
+
return (index.h(index.Host, { key: '0043da79954e18d50d71cf4498990b46a4a05b65', style: this.getFontStyles() }, index.h("div", { key: 'f692bed6f2bdcd8b7f1e8da625b493499323ec98', class: "container" }, this.chartTemplate())));
|
|
765
766
|
}
|
|
766
767
|
get element() { return index.getElement(this); }
|
|
767
768
|
static get watchers() { return {
|