@bino-bi/bn-template-engine 1.0.0-next.34 → 1.0.0-next.36
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-2dcdac86.entry.js +1 -0
- package/dist/bn-template-engine/{p-7d475277.entry.js → p-5a64f90f.entry.js} +1 -1
- package/dist/bn-template-engine/{p-789bfd06.entry.js → p-93b8387f.entry.js} +1 -1
- package/dist/bn-template-engine/{p-66ed6259.entry.js → p-9a61f59d.entry.js} +1 -1
- package/dist/bn-template-engine/p-BVU4bIsi.js +1 -0
- package/dist/bn-template-engine/{p-CJfJQT0m.js → p-D0tNATZq.js} +1 -1
- package/dist/bn-template-engine/p-DF9sfwBN.js +1 -0
- package/dist/bn-template-engine/{p-CAvWZ3a5.js → p-DyupX-Z-.js} +1 -1
- package/dist/bn-template-engine/{p-14d021be.entry.js → p-b0dfc113.entry.js} +1 -1
- package/dist/bn-template-engine/{p-dec6837c.entry.js → p-eea538f1.entry.js} +1 -1
- package/dist/bn-template-engine/{p-CHZ50kEY.js → p-qpZjVnX5.js} +1 -1
- package/dist/cjs/bn-annotation-layer_30.cjs.entry.js +378 -135
- package/dist/cjs/bn-grid.cjs.entry.js +3 -3
- package/dist/cjs/bn-image.cjs.entry.js +2 -2
- package/dist/cjs/bn-internationalization.cjs.entry.js +2 -2
- package/dist/cjs/bn-ruleset.cjs.entry.js +2 -2
- package/dist/cjs/bn-text.cjs.entry.js +3 -3
- package/dist/cjs/{localFrame-P5SDUOto.js → localFrame-U3Qs0psw.js} +1 -1
- package/dist/cjs/{withBodyObserver-B1_hmuUz.js → withBodyObserver-S-FGHpAX.js} +1 -1
- package/dist/cjs/{withHasError-3kR2tdhJ.js → withHasError-BkBrsCpI.js} +8 -7
- package/dist/cjs/{withStyled-eHD8Yt2K.js → withStyled-DfE0aW7D.js} +63 -3
- package/dist/cjs/{withTranslation-yJ-j0lsu.js → withTranslation-0gkn9xoC.js} +2 -2
- package/dist/collection/components/bn-table/bn-table-renderer/bn-table-renderer.js +97 -48
- package/dist/collection/components/bn-table/bn-table.js +19 -10
- package/dist/collection/components/bn-table/utils/Table.js +34 -8
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +103 -32
- package/dist/collection/components/bn-table/utils/helper/DataQuery.js +57 -10
- package/dist/collection/components/bn-table/utils/helper/barColumnGeometry.js +73 -30
- package/dist/collection/stores/ruleSets.js +8 -7
- package/dist/collection/utils/ibcsRuleSet.js +2 -1
- package/dist/collection/utils/model/Order.js +49 -2
- package/dist/collection/utils/validate.js +11 -1
- package/dist/components/bn-annotation-layer.js +1 -1
- package/dist/components/bn-annotation-list.js +1 -1
- package/dist/components/bn-asset.js +1 -1
- package/dist/components/bn-body.js +1 -1
- package/dist/components/bn-card.js +1 -1
- package/dist/components/bn-chart-bubble-renderer.js +1 -1
- package/dist/components/bn-chart-bubble.js +1 -1
- package/dist/components/bn-chart-bullet-renderer.js +1 -1
- package/dist/components/bn-chart-bullet.js +1 -1
- package/dist/components/bn-chart-scatter-renderer.js +1 -1
- package/dist/components/bn-chart-scatter.js +1 -1
- package/dist/components/bn-chart-structure-renderer.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time-renderer.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-component-style.js +1 -1
- package/dist/components/bn-context.js +1 -1
- package/dist/components/bn-dataset.js +1 -1
- package/dist/components/bn-datasource.js +1 -1
- package/dist/components/bn-footer.js +1 -1
- package/dist/components/bn-grid.js +1 -1
- package/dist/components/bn-image.js +1 -1
- package/dist/components/bn-internationalization.js +1 -1
- package/dist/components/bn-layout-card.js +1 -1
- package/dist/components/bn-layout-page.js +1 -1
- package/dist/components/bn-message.js +1 -1
- package/dist/components/bn-page.js +1 -1
- package/dist/components/bn-ruleset.js +1 -1
- package/dist/components/bn-scaling-group.js +1 -1
- package/dist/components/bn-table-renderer.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/bn-title-renderer.js +1 -1
- package/dist/components/bn-title.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/p-16rjcQ0t.js +1 -0
- package/dist/components/{p-8a2-IS-y.js → p-2eicD9rF.js} +1 -1
- package/dist/components/p-4vVbchX2.js +1 -0
- package/dist/components/{p-VIw66ez1.js → p-7ieJFBUk.js} +1 -1
- package/dist/components/{p-Dn3DJxQQ.js → p-9mUU4itF.js} +1 -1
- package/dist/components/{p-D5LDmR4u.js → p-B5tixDPM.js} +1 -1
- package/dist/components/p-BPGLOHUe.js +1 -0
- package/dist/components/{p-B3F_c9GB.js → p-BU_53KVT.js} +1 -1
- package/dist/components/p-BXXjh6We.js +1 -0
- package/dist/components/{p-C-oNdJj9.js → p-BXg3v5AO.js} +1 -1
- package/dist/components/{p-B7UDMyar.js → p-BhEdmPjm.js} +1 -1
- package/dist/components/{p-nHZ8466v.js → p-BmOWXYHF.js} +1 -1
- package/dist/components/{p-DLLljAll.js → p-Bo_R7f_T.js} +1 -1
- package/dist/components/{p-DdG2Ylar.js → p-BqUB56k1.js} +1 -1
- package/dist/components/{p-DHAoxu6M.js → p-BzjGUtYh.js} +1 -1
- package/dist/components/{p-BtH2oezK.js → p-C-KX1_tw.js} +1 -1
- package/dist/components/{p-BldMZbAf.js → p-C3gYq-HU.js} +1 -1
- package/dist/components/p-CLilvhjH.js +1 -0
- package/dist/components/{p-CPC9Vkmg.js → p-CQVAHG6w.js} +1 -1
- package/dist/components/{p-4BanAktr.js → p-C_6KHDYv.js} +1 -1
- package/dist/components/{p-ClGOhg6P.js → p-Cel0a6ma.js} +1 -1
- package/dist/components/{p-Ku08TQL1.js → p-Chuj-LpI.js} +1 -1
- package/dist/components/{p-M6hn0BuZ.js → p-CniN8ALm.js} +1 -1
- package/dist/components/{p-BcOud3dQ.js → p-DDvWTgk1.js} +1 -1
- package/dist/components/p-DJUffGeB.js +1 -0
- package/dist/components/p-DQl2K2Xl.js +1 -0
- package/dist/components/p-DT04Cka0.js +1 -0
- package/dist/components/{p-BVnYDfb8.js → p-DTmqMQpw.js} +1 -1
- package/dist/components/{p-DSkyHSIL.js → p-DaOm9YwQ.js} +1 -1
- package/dist/components/p-DjPWZfry.js +1 -0
- package/dist/components/{p-BXt0ers2.js → p-Dm6EAaJ9.js} +1 -1
- package/dist/components/p-Do4oPrkE.js +1 -0
- package/dist/components/{p-DEHnizot.js → p-Dq9dG0Kr.js} +1 -1
- package/dist/components/{p-D6cWoDk1.js → p-M2k_I8lv.js} +1 -1
- package/dist/components/{p-B4pmO5QQ.js → p-NBaq67dL.js} +1 -1
- package/dist/components/p-OquycEMA.js +1 -0
- package/dist/components/{p-CJtE8Pyr.js → p-eWxolPDU.js} +1 -1
- package/dist/components/{p-De82WP7z.js → p-fKJx8WtW.js} +1 -1
- package/dist/components/{p-xhiPDAZa.js → p-sLbQ7yZ1.js} +1 -1
- package/dist/components/{p-GrpYAVHb.js → p-sar8m7th.js} +1 -1
- package/dist/components/{p-CYqHwYgQ.js → p-tkB96Ena.js} +1 -1
- package/dist/esm/bn-annotation-layer_30.entry.js +378 -135
- package/dist/esm/bn-grid.entry.js +3 -3
- package/dist/esm/bn-image.entry.js +2 -2
- package/dist/esm/bn-internationalization.entry.js +2 -2
- package/dist/esm/bn-ruleset.entry.js +2 -2
- package/dist/esm/bn-text.entry.js +3 -3
- package/dist/esm/{localFrame-IW84cmdb.js → localFrame-BNWPPaQa.js} +1 -1
- package/dist/esm/{withBodyObserver-CAnnvrE_.js → withBodyObserver-AHQAUV85.js} +1 -1
- package/dist/esm/{withHasError-Cj_MzZ8Q.js → withHasError-B6Lvj9Cq.js} +8 -7
- package/dist/esm/{withStyled-Cxua0iTP.js → withStyled-CIoJ86RM.js} +61 -4
- package/dist/esm/{withTranslation-BeAbw2--.js → withTranslation-BX9T3dfm.js} +2 -2
- package/dist/types/components/bn-table/bn-table-renderer/bn-table-renderer.d.ts +8 -12
- package/dist/types/components/bn-table/bn-table.d.ts +17 -4
- package/dist/types/components/bn-table/utils/Table.d.ts +2 -0
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +9 -2
- package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +8 -0
- package/dist/types/components/bn-table/utils/helper/barColumnGeometry.d.ts +18 -9
- package/dist/types/components.d.ts +4 -4
- package/dist/types/stores/ruleSets.d.ts +2 -1
- package/dist/types/utils/ibcsRuleSet.d.ts +2 -1
- package/dist/types/utils/model/Order.d.ts +18 -1
- package/dist/types/utils/validate.d.ts +2 -0
- package/package.json +1 -1
- package/dist/bn-template-engine/p-BNCLKXjM.js +0 -1
- package/dist/bn-template-engine/p-_SKPuKfK.js +0 -1
- package/dist/bn-template-engine/p-dc12ff1b.entry.js +0 -1
- package/dist/components/p-BNWZoAip.js +0 -1
- package/dist/components/p-BT2WH_CP.js +0 -1
- package/dist/components/p-BVtD8O36.js +0 -1
- package/dist/components/p-BWRE5w0i.js +0 -1
- package/dist/components/p-C6XrNN2m.js +0 -1
- package/dist/components/p-CGI6XIaK.js +0 -1
- package/dist/components/p-CLkpoHdg.js +0 -1
- package/dist/components/p-CYv_8LrR.js +0 -1
- package/dist/components/p-Ckl1aEvn.js +0 -1
- package/dist/components/p-CurWSJkH.js +0 -1
- package/dist/components/p-D7X69xMg.js +0 -1
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DGis1BzT.js');
|
|
4
4
|
var index$1 = require('./index.cjs.js');
|
|
5
|
-
var localFrame = require('./localFrame-
|
|
6
|
-
var withHasError = require('./withHasError-
|
|
7
|
-
var withStyled = require('./withStyled-
|
|
5
|
+
var localFrame = require('./localFrame-U3Qs0psw.js');
|
|
6
|
+
var withHasError = require('./withHasError-BkBrsCpI.js');
|
|
7
|
+
var withStyled = require('./withStyled-DfE0aW7D.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Header configuration types and parsing utilities for bn-grid component.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DGis1BzT.js');
|
|
4
|
-
var withStyled = require('./withStyled-
|
|
5
|
-
var withHasError = require('./withHasError-
|
|
4
|
+
var withStyled = require('./withStyled-DfE0aW7D.js');
|
|
5
|
+
var withHasError = require('./withHasError-BkBrsCpI.js');
|
|
6
6
|
|
|
7
7
|
const bnImageCss = () => `:host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}`;
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DGis1BzT.js');
|
|
4
|
-
var withBodyObserver = require('./withBodyObserver-
|
|
5
|
-
var withHasError = require('./withHasError-
|
|
4
|
+
var withBodyObserver = require('./withBodyObserver-S-FGHpAX.js');
|
|
5
|
+
var withHasError = require('./withHasError-BkBrsCpI.js');
|
|
6
6
|
var queryError = require('./queryError-BZjnIW_w.js');
|
|
7
7
|
|
|
8
8
|
const bnInternationalizationCss = () => `bn-internationalization{display:none}`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DGis1BzT.js');
|
|
4
|
-
var withBodyObserver = require('./withBodyObserver-
|
|
5
|
-
var withHasError = require('./withHasError-
|
|
4
|
+
var withBodyObserver = require('./withBodyObserver-S-FGHpAX.js');
|
|
5
|
+
var withHasError = require('./withHasError-BkBrsCpI.js');
|
|
6
6
|
|
|
7
7
|
const bnRulesetCss = () => `bn-ruleset{display:none}`;
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DGis1BzT.js');
|
|
4
|
-
var withTranslation = require('./withTranslation-
|
|
5
|
-
var withHasError = require('./withHasError-
|
|
6
|
-
var withStyled = require('./withStyled-
|
|
4
|
+
var withTranslation = require('./withTranslation-0gkn9xoC.js');
|
|
5
|
+
var withHasError = require('./withHasError-BkBrsCpI.js');
|
|
6
|
+
var withStyled = require('./withStyled-DfE0aW7D.js');
|
|
7
7
|
|
|
8
8
|
const NAME = "[A-Za-z_$\\u00C0-\\uFFFF][\\w$\\u00C0-\\uFFFF]*";
|
|
9
9
|
const STRING = `'[^'\\\\]*'|"[^"\\\\]*"`;
|
|
@@ -832,7 +832,8 @@ const SYSTEM_I18N_DEFAULTS = { _system: { de, en } };
|
|
|
832
832
|
/**
|
|
833
833
|
* Built-in IBCS rule-set defaults per IBCS notation standard v1.2.
|
|
834
834
|
* Sort order: PP(100s) < PL(200s) < FC(300s) < AC(400s); variance prefixes
|
|
835
|
-
* add +1000 (absolute) or +
|
|
835
|
+
* add +1000 (absolute) or +1005 (relative), so a relative variance sorts
|
|
836
|
+
* directly after the absolute variance with the same reference.
|
|
836
837
|
*/
|
|
837
838
|
const SYSTEM_RULESET_DEFAULTS = {
|
|
838
839
|
scenarios: {
|
|
@@ -848,12 +849,12 @@ const SYSTEM_RULESET_DEFAULTS = {
|
|
|
848
849
|
dbu: { name: "dBU", colorIndex: 50, sortIndex: 1200 },
|
|
849
850
|
dpp: { name: "dPP", colorIndex: 20, sortIndex: 1100 },
|
|
850
851
|
dpy: { name: "dPY", colorIndex: 20, sortIndex: 1100 },
|
|
851
|
-
drac: { name: "drAC", colorIndex: 10, sortIndex:
|
|
852
|
-
drfc: { name: "drFC", colorIndex: 30, sortIndex:
|
|
853
|
-
drpl: { name: "drPL", colorIndex: 50, sortIndex:
|
|
854
|
-
drbu: { name: "drBU", colorIndex: 50, sortIndex:
|
|
855
|
-
drpp: { name: "drPP", colorIndex: 20, sortIndex:
|
|
856
|
-
drpy: { name: "drPY", colorIndex: 20, sortIndex:
|
|
852
|
+
drac: { name: "drAC", colorIndex: 10, sortIndex: 1405 },
|
|
853
|
+
drfc: { name: "drFC", colorIndex: 30, sortIndex: 1305 },
|
|
854
|
+
drpl: { name: "drPL", colorIndex: 50, sortIndex: 1205 },
|
|
855
|
+
drbu: { name: "drBU", colorIndex: 50, sortIndex: 1205 },
|
|
856
|
+
drpp: { name: "drPP", colorIndex: 20, sortIndex: 1105 },
|
|
857
|
+
drpy: { name: "drPY", colorIndex: 20, sortIndex: 1105 },
|
|
857
858
|
},
|
|
858
859
|
fallback: {
|
|
859
860
|
name: "Series",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DGis1BzT.js');
|
|
4
|
-
var withHasError = require('./withHasError-
|
|
4
|
+
var withHasError = require('./withHasError-BkBrsCpI.js');
|
|
5
5
|
|
|
6
6
|
const isObject = (obj) => {
|
|
7
7
|
if (typeof obj === 'object' && obj !== null) {
|
|
@@ -949,15 +949,62 @@ class Order {
|
|
|
949
949
|
this.direction = direction;
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
+
const DIM_COLUMNS = [
|
|
953
|
+
exports.OrderColumn.ROWGROUP,
|
|
954
|
+
exports.OrderColumn.ROWGROUPINDEX,
|
|
955
|
+
exports.OrderColumn.CATEGORY,
|
|
956
|
+
exports.OrderColumn.CATEGORYINDEX,
|
|
957
|
+
exports.OrderColumn.SUBCATEGORY,
|
|
958
|
+
exports.OrderColumn.SUBCATEGORYINDEX,
|
|
959
|
+
];
|
|
960
|
+
const ORDER_SCENARIO_REGEX = /^(?:ac|fc|pp|pl)[1-4]$/;
|
|
961
|
+
const ORDER_VARIANCE_REGEX = /^(dr|d)((?:ac|fc|pp|pl)[1-4])_((?:ac|fc|pp|pl)[1-4])(?:_(?:pos|neg|neu|opinv|op))?$/;
|
|
962
|
+
/** Parses one bn-table order token, case-insensitive except for the bucket. undefined: not a valid token. */
|
|
963
|
+
function parseOrderToken(token) {
|
|
964
|
+
if (token == null) {
|
|
965
|
+
return undefined;
|
|
966
|
+
}
|
|
967
|
+
const at = token.indexOf("@");
|
|
968
|
+
const head = (at < 0 ? token : token.slice(0, at)).trim().toLowerCase();
|
|
969
|
+
const bucket = at < 0 ? undefined : token.slice(at + 1).trim();
|
|
970
|
+
if (bucket === "") {
|
|
971
|
+
return undefined;
|
|
972
|
+
}
|
|
973
|
+
const dim = exports.OrderColumn[head.toUpperCase()];
|
|
974
|
+
if (dim != null && DIM_COLUMNS.includes(dim)) {
|
|
975
|
+
return bucket === undefined ? { kind: "dim", column: dim } : undefined;
|
|
976
|
+
}
|
|
977
|
+
if (ORDER_SCENARIO_REGEX.test(head)) {
|
|
978
|
+
return { kind: "scenario", column: head, bucket };
|
|
979
|
+
}
|
|
980
|
+
const variance = ORDER_VARIANCE_REGEX.exec(head);
|
|
981
|
+
if (variance != null) {
|
|
982
|
+
const [, type, base, delta] = variance;
|
|
983
|
+
return { kind: "variance", column: `${type}${base}_${delta}`, type: type, base, delta, bucket };
|
|
984
|
+
}
|
|
985
|
+
return undefined;
|
|
986
|
+
}
|
|
987
|
+
/** Normalized form of a bn-table order token (`column[@bucket]`), undefined when it does not parse. */
|
|
988
|
+
function normalizeOrderToken(token) {
|
|
989
|
+
const parsed = parseOrderToken(token);
|
|
990
|
+
if (parsed == null) {
|
|
991
|
+
return undefined;
|
|
992
|
+
}
|
|
993
|
+
return parsed.bucket === undefined ? parsed.column : `${parsed.column}@${parsed.bucket}`;
|
|
994
|
+
}
|
|
952
995
|
class OrderAdapter {
|
|
953
|
-
|
|
996
|
+
/** @param allowMeasures bn-table only: keep variance and `@bucket` tokens instead of mapping them to category. */
|
|
997
|
+
constructor(stringAdapter, allowMeasures = false) {
|
|
954
998
|
this.stringAdapter = stringAdapter;
|
|
999
|
+
this.allowMeasures = allowMeasures;
|
|
955
1000
|
}
|
|
956
1001
|
adapt(data) {
|
|
957
1002
|
var _a;
|
|
958
1003
|
const hierarchy = AdapterUtils.adaptArray(data.hierarchy, this.stringAdapter);
|
|
959
1004
|
const order = exports.OrderDirection[(_a = data.direction) === null || _a === void 0 ? void 0 : _a.toUpperCase()] || exports.OrderDirection.ASC;
|
|
960
|
-
return new Order(hierarchy.map((str) =>
|
|
1005
|
+
return new Order(hierarchy.map((str) => (this.allowMeasures
|
|
1006
|
+
? normalizeOrderToken(str)
|
|
1007
|
+
: exports.OrderColumn[str.toUpperCase()]) || exports.OrderColumn.CATEGORY), order);
|
|
961
1008
|
}
|
|
962
1009
|
default() {
|
|
963
1010
|
return new Order(["category"], exports.OrderDirection.ASC);
|
|
@@ -1150,6 +1197,16 @@ function validateOrderList(value) {
|
|
|
1150
1197
|
const invalidScenarios = value.split(",").filter((element) => !(element.toUpperCase() in exports.OrderColumn));
|
|
1151
1198
|
return validateVariancesList(invalidScenarios.toString());
|
|
1152
1199
|
}
|
|
1200
|
+
/** bn-table order: dims, scenarios and variances, the last two optionally with `@<setname>`. */
|
|
1201
|
+
function validateTableOrderList(value) {
|
|
1202
|
+
if (isBlankInput(value)) {
|
|
1203
|
+
return [];
|
|
1204
|
+
}
|
|
1205
|
+
if (value.trim().toLowerCase() === "auto") {
|
|
1206
|
+
return [];
|
|
1207
|
+
}
|
|
1208
|
+
return value.split(",").filter((element) => parseOrderToken(element) === undefined);
|
|
1209
|
+
}
|
|
1153
1210
|
function isValidInteger(value) {
|
|
1154
1211
|
if (isBlankInput(value)) {
|
|
1155
1212
|
return false;
|
|
@@ -1642,6 +1699,8 @@ exports.isValidNumber = isValidNumber;
|
|
|
1642
1699
|
exports.isValidTableType = isValidTableType;
|
|
1643
1700
|
exports.merge = merge;
|
|
1644
1701
|
exports.murmur2 = murmur2;
|
|
1702
|
+
exports.normalizeOrderToken = normalizeOrderToken;
|
|
1703
|
+
exports.parseOrderToken = parseOrderToken;
|
|
1645
1704
|
exports.parseTableAttributeExpression = parseTableAttributeExpression;
|
|
1646
1705
|
exports.relativeVariance = relativeVariance;
|
|
1647
1706
|
exports.resolveMeasure = resolveMeasure;
|
|
@@ -1655,6 +1714,7 @@ exports.validateOrderList = validateOrderList;
|
|
|
1655
1714
|
exports.validatePartOfJsonStr = validatePartOfJsonStr;
|
|
1656
1715
|
exports.validateScenarioList = validateScenarioList;
|
|
1657
1716
|
exports.validateStackConfig = validateStackConfig;
|
|
1717
|
+
exports.validateTableOrderList = validateTableOrderList;
|
|
1658
1718
|
exports.validateThereOfJsonStr = validateThereOfJsonStr;
|
|
1659
1719
|
exports.validateVariancesList = validateVariancesList;
|
|
1660
1720
|
exports.withComponentStyle = withComponentStyle;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var withHasError = require('./withHasError-
|
|
3
|
+
var withHasError = require('./withHasError-BkBrsCpI.js');
|
|
4
4
|
var index = require('./index-DGis1BzT.js');
|
|
5
|
-
var withStyled = require('./withStyled-
|
|
5
|
+
var withStyled = require('./withStyled-DfE0aW7D.js');
|
|
6
6
|
|
|
7
7
|
const ALLOWED_TAGS = new Set([
|
|
8
8
|
"br",
|
|
@@ -9,13 +9,13 @@ import { StringAdapter } from "../../../utils/helper/StringAdapter";
|
|
|
9
9
|
import { IBCSRuleSet, stylesBySlot } from "../../../utils/ibcsRuleSet";
|
|
10
10
|
import { DataFormatDigits, DataFormatDigitsAdapter } from "../../../utils/model/DataFormatDigits";
|
|
11
11
|
import { OrderAdapter } from "../../../utils/model/Order";
|
|
12
|
-
import { CellBarChart } from "../utils/elements/CellBarChart";
|
|
12
|
+
import { CellBarChart, formatValue, zeroOnPositiveSide, } from "../utils/elements/CellBarChart";
|
|
13
13
|
import { WaterfallBar } from "../utils/elements/WaterfallBar";
|
|
14
14
|
import withComponentStatus from "../../../utils/withComponentStatus";
|
|
15
15
|
import withComponentStyle from "../../../utils/withComponentStyle";
|
|
16
16
|
import { getStores } from "../../../context/context-protocol";
|
|
17
17
|
import { sourceExpr } from "../../../context/scopedDb";
|
|
18
|
-
import { absoluteBarGeometry, BAR_LABEL_FONT_RATIO, relativePinGeometry } from "../utils/helper/barColumnGeometry";
|
|
18
|
+
import { absoluteBarGeometry, BAR_LABEL_FONT_RATIO, estimateLabelWidth, PIN_HEAD_SIZE, pinLabelsFit, relativePinGeometry, } from "../utils/helper/barColumnGeometry";
|
|
19
19
|
import { NOT_AVAILABLE } from "../../../utils/relativeVariance";
|
|
20
20
|
import { normalizeFillPattern } from "../../../utils/model/styles/SVGStyle";
|
|
21
21
|
/**
|
|
@@ -108,6 +108,7 @@ export class BnTableRenderer {
|
|
|
108
108
|
/** @internal */
|
|
109
109
|
this.scaleFactor = 1;
|
|
110
110
|
this.componentDataFormatDigits = new DataFormatDigits();
|
|
111
|
+
this.barColumnLayouts = new Map();
|
|
111
112
|
withComponentStatus(this);
|
|
112
113
|
this.componentStyle = withComponentStyle(this);
|
|
113
114
|
}
|
|
@@ -228,19 +229,20 @@ export class BnTableRenderer {
|
|
|
228
229
|
return h("div", { class: "empty-state" }, errorMsg);
|
|
229
230
|
}
|
|
230
231
|
const locale = (_d = (_c = (_b = this.stores) === null || _b === void 0 ? void 0 : _b.context) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.locale;
|
|
231
|
-
return (h("table", null, h("thead", null, this.table.getHeader().map((row) => (h("tr", { class: row.cssStyle }, row.getCells().map((cell) => (h("th", { colSpan: cell.colSpan, class: cell.cssStyle }, cell.getAsHeaderList().map((line, i, arr) => (h("span", null, i === arr.length - 1 ? (h("span", { class: line === " " ? "table-footer" : "" }, line, cell.drawPrefix(), " ")) : (h("span", null, line, cell.drawPrefix(), h("br", null))))))))))))), h("tbody", null, this.table.getBody().map((row) => (h("tr", Object.assign({ class: row.cssStyle }, dataPointAttributes(row.key, "element")), row === null || row === void 0 ? void 0 : row.getCells().map((cell) =>
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
232
|
+
return (h("table", null, h("thead", null, this.table.getHeader().map((row) => (h("tr", { class: row.cssStyle }, row.getCells().map((cell) => (h("th", { colSpan: cell.colSpan, class: cell.cssStyle }, cell.getAsHeaderList().map((line, i, arr) => (h("span", null, i === arr.length - 1 ? (h("span", { class: line === " " ? "table-footer" : "" }, line, cell.drawPrefix(), " ")) : (h("span", null, line, cell.drawPrefix(), h("br", null))))))))))))), h("tbody", null, this.table.getBody().map((row) => (h("tr", Object.assign({ class: row.cssStyle }, dataPointAttributes(row.key, "element")), row === null || row === void 0 ? void 0 : row.getCells().map((cell) => {
|
|
233
|
+
var _a, _b, _c, _d;
|
|
234
|
+
return (h("td", Object.assign({ colSpan: cell.colSpan, class: cell.type ? `${cell.cssStyle} ${cell.type}` : cell.cssStyle }, (row.key && cell.value != null && cell.value !== "" && cell.value !== "-"
|
|
235
|
+
? dataPointAttributes(Object.assign(Object.assign({}, row.key), { date: cell.date, scenario: cell.key }), "element")
|
|
236
|
+
: {})), cell.prefix != null ? (h("span", { class: cell.cssStyle + " " + cell.prefixStyle }, cell.drawPrefix())) : (""), cell.isBarChart &&
|
|
237
|
+
cell.columnStats &&
|
|
238
|
+
cell.value !== NOT_AVAILABLE &&
|
|
239
|
+
(cell.waterfall !== undefined || row.type !== TableRowType.SUM) ? (cell.waterfall !== undefined ? (h(WaterfallBar, { value: cell.value, scenario: cell.key, columnStats: cell.columnStats, height: 18 * this.scaleFactor, isRelative: false, isPositiveGood: cell.direction === "pos", measureScale: cell.measureScale, locale: locale, columnWidthEm: this.barColumnMaxWidth, styles: this.barChartStyles, waterfall: cell.waterfall })) : (h(CellBarChart, { value: cell.value, scenario: cell.key, columnStats: cell.columnStats, height: 18 * this.scaleFactor, isRelative: cell.key.startsWith("dr"), isPositiveGood: cell.direction === "pos", measureScale: barLabelMeasureScale(cell), locale: locale, percentDigits: (_b = (_a = this.barColumnLayouts.get(cell.key)) === null || _a === void 0 ? void 0 : _a.percentDigits) !== null && _b !== void 0 ? _b : this.componentDataFormatDigits.percent, percentSign: (_c = this.barColumnLayouts.get(cell.key)) === null || _c === void 0 ? void 0 : _c.percentSign, columnWidthEm: this.barColumnMaxWidth, labelWidths: (_d = this.barColumnLayouts.get(cell.key)) === null || _d === void 0 ? void 0 : _d.labels, styles: this.barChartStyles }))) : (cell.draw(this.componentDataFormatDigits, locale))));
|
|
240
|
+
})))))));
|
|
239
241
|
};
|
|
240
242
|
return h(Host, { class: { "no-data": ((_a = this.table) === null || _a === void 0 ? void 0 : _a.hasNoData()) === true } }, helper());
|
|
241
243
|
}
|
|
242
244
|
componentWillRender() {
|
|
243
|
-
var _a, _b, _c, _d, _e;
|
|
245
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
244
246
|
if (!this.stores)
|
|
245
247
|
this.stores = getStores(this.element);
|
|
246
248
|
const db = this.stores.db.db;
|
|
@@ -273,12 +275,20 @@ export class BnTableRenderer {
|
|
|
273
275
|
else {
|
|
274
276
|
(_e = this.errors) === null || _e === void 0 ? void 0 : _e.remove("WARN_blankRowGroup");
|
|
275
277
|
}
|
|
278
|
+
const orderBucketWarning = (_f = this.table) === null || _f === void 0 ? void 0 : _f.orderBucketWarning();
|
|
279
|
+
if (orderBucketWarning) {
|
|
280
|
+
(_g = this.errors) === null || _g === void 0 ? void 0 : _g.addOrReplace({ id: "WARN_orderBucket", type: "warning", message: orderBucketWarning });
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
(_h = this.errors) === null || _h === void 0 ? void 0 : _h.remove("WARN_orderBucket");
|
|
284
|
+
}
|
|
285
|
+
this.barColumnLayouts = this.collectBarColumnLayouts();
|
|
276
286
|
this.barChartStyles = this.prepareBarChartStyles();
|
|
277
287
|
}
|
|
278
288
|
prepareConfig(db) {
|
|
279
289
|
var _a, _b, _c;
|
|
280
290
|
const fromExpr = sourceExpr(db, this.tableName, this.filter);
|
|
281
|
-
const config = new TableComponentConfigAdapter(new TableDrillGroupAdapter(), new StringAdapter(), new OrderAdapter(new StringAdapter()), db, fromExpr,
|
|
291
|
+
const config = new TableComponentConfigAdapter(new TableDrillGroupAdapter(), new StringAdapter(), new OrderAdapter(new StringAdapter(), true), db, fromExpr,
|
|
282
292
|
// a failed measure-scale query ends in the ERR_sql of componentWillRender
|
|
283
293
|
(e) => {
|
|
284
294
|
throw e;
|
|
@@ -395,64 +405,99 @@ export class BnTableRenderer {
|
|
|
395
405
|
/**
|
|
396
406
|
* Auto-calculate unitScaling so the largest absolute variance bar
|
|
397
407
|
* fills ~80% of its side of the bar area, without tripping the overdrive break.
|
|
408
|
+
* One scaling for all columns, so it is the smallest that fits every column.
|
|
398
409
|
*/
|
|
399
410
|
autoUnitScaling() {
|
|
400
411
|
const emPx = this.emPx();
|
|
401
412
|
const fs = emPx * BAR_LABEL_FONT_RATIO;
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
413
|
+
let scaling = Infinity;
|
|
414
|
+
for (const { isRelative, absMax, labels } of this.barColumnLayouts.values()) {
|
|
415
|
+
if (isRelative || absMax <= 0)
|
|
416
|
+
continue;
|
|
417
|
+
const { maxBarWidth, cutWidth } = absoluteBarGeometry(this.barColumnMaxWidth, emPx, labels);
|
|
418
|
+
scaling = Math.min(scaling, Math.min(maxBarWidth * 0.8, cutWidth) / (absMax * fs));
|
|
405
419
|
}
|
|
406
|
-
|
|
407
|
-
const targetWidth = Math.min(maxBarWidth * 0.8, cutWidth);
|
|
408
|
-
return targetWidth / (absMax * fs);
|
|
420
|
+
return Number.isFinite(scaling) && fs > 0 ? scaling : 0.01;
|
|
409
421
|
}
|
|
410
422
|
/**
|
|
411
|
-
* Auto-calculate percentageScaling so the
|
|
412
|
-
*
|
|
423
|
+
* Auto-calculate percentageScaling so the longest relative variance pin, its head and
|
|
424
|
+
* its label exactly fill the column. One scaling for all columns, the smallest that fits.
|
|
413
425
|
*/
|
|
414
426
|
autoPercentageScaling() {
|
|
415
427
|
const emPx = this.emPx();
|
|
416
428
|
const fs = emPx * BAR_LABEL_FONT_RATIO;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
429
|
+
let scaling = Infinity;
|
|
430
|
+
for (const { isRelative, absMax, labels } of this.barColumnLayouts.values()) {
|
|
431
|
+
if (!isRelative || absMax <= 0)
|
|
432
|
+
continue;
|
|
433
|
+
const headSize = PIN_HEAD_SIZE * this.scaleFactor;
|
|
434
|
+
const { maxPinLength } = relativePinGeometry(this.barColumnMaxWidth, emPx, labels, headSize);
|
|
435
|
+
scaling = Math.min(scaling, maxPinLength / (absMax * fs));
|
|
420
436
|
}
|
|
421
|
-
|
|
422
|
-
return (maxPinLength * 0.8) / (maxPct * fs);
|
|
437
|
+
return Number.isFinite(scaling) && fs > 0 ? scaling : 0.5;
|
|
423
438
|
}
|
|
424
439
|
/**
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
*
|
|
440
|
+
* Largest value and widest label per side of every bar and pin column, from the cells
|
|
441
|
+
* that draw one: total rows and n/a draw none. Interval buckets share the column key,
|
|
442
|
+
* so they share the layout and the axis.
|
|
428
443
|
*/
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
* (e.g. 0.2 = 20%), returned as percentage (20).
|
|
436
|
-
*/
|
|
437
|
-
getRelativeBarColumnStats() {
|
|
438
|
-
return this.collectBarColumnStats((cell) => cell.key.startsWith("dr"), 100);
|
|
439
|
-
}
|
|
440
|
-
collectBarColumnStats(accept, valueFactor) {
|
|
441
|
-
const stats = { absMax: 0, hasNeg: false, hasPos: false };
|
|
442
|
-
if (!this.table)
|
|
443
|
-
return stats;
|
|
444
|
+
collectBarColumnLayouts() {
|
|
445
|
+
var _a, _b, _c, _d;
|
|
446
|
+
const layouts = new Map();
|
|
447
|
+
if (!this.table || this.table.hasNoData())
|
|
448
|
+
return layouts;
|
|
449
|
+
const cellsByKey = new Map();
|
|
444
450
|
for (const row of this.table.getBody()) {
|
|
445
451
|
if (row.type === TableRowType.SUM)
|
|
446
452
|
continue;
|
|
447
453
|
for (const cell of row.getCells()) {
|
|
448
|
-
|
|
454
|
+
// waterfall cells scale independently
|
|
455
|
+
if (!cell.isBarChart || !cell.columnStats || cell.waterfall !== undefined)
|
|
449
456
|
continue;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
457
|
+
if (typeof cell.value !== "number" || isNaN(cell.value))
|
|
458
|
+
continue;
|
|
459
|
+
cellsByKey.set(cell.key, [...((_a = cellsByKey.get(cell.key)) !== null && _a !== void 0 ? _a : []), cell]);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
const emPx = this.emPx();
|
|
463
|
+
const fs = emPx * BAR_LABEL_FONT_RATIO;
|
|
464
|
+
const headSize = PIN_HEAD_SIZE * this.scaleFactor;
|
|
465
|
+
const locale = (_d = (_c = (_b = this.stores) === null || _b === void 0 ? void 0 : _b.context) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.locale;
|
|
466
|
+
for (const [key, cells] of cellsByKey) {
|
|
467
|
+
const isRelative = key.startsWith("dr");
|
|
468
|
+
const values = cells.map((cell) => cell.value);
|
|
469
|
+
const measure = (percentDigits, percentSign) => {
|
|
470
|
+
var _a;
|
|
471
|
+
const labels = {
|
|
472
|
+
neg: values.some((value) => value < 0) ? 0 : undefined,
|
|
473
|
+
pos: values.some((value) => value > 0) ? 0 : undefined,
|
|
474
|
+
};
|
|
475
|
+
const zeroPositive = zeroOnPositiveSide(labels);
|
|
476
|
+
for (const cell of cells) {
|
|
477
|
+
const value = cell.value;
|
|
478
|
+
const side = value > 0 || (value === 0 && zeroPositive) ? "pos" : "neg";
|
|
479
|
+
const text = formatValue(value, isRelative, barLabelMeasureScale(cell), locale, percentDigits, percentSign);
|
|
480
|
+
labels[side] = Math.max((_a = labels[side]) !== null && _a !== void 0 ? _a : 0, estimateLabelWidth(text, fs));
|
|
481
|
+
}
|
|
482
|
+
return labels;
|
|
483
|
+
};
|
|
484
|
+
// a narrow pin column drops percent digits, then the %, so every label keeps its sign
|
|
485
|
+
let percentDigits = Math.min(20, Math.max(0, Math.trunc(this.componentDataFormatDigits.percent) || 0));
|
|
486
|
+
let percentSign = true;
|
|
487
|
+
let labels = measure(percentDigits, percentSign);
|
|
488
|
+
while (isRelative && (percentDigits > 0 || percentSign)) {
|
|
489
|
+
if (pinLabelsFit(this.barColumnMaxWidth, emPx, labels, headSize))
|
|
490
|
+
break;
|
|
491
|
+
if (percentDigits > 0)
|
|
492
|
+
percentDigits--;
|
|
493
|
+
else
|
|
494
|
+
percentSign = false;
|
|
495
|
+
labels = measure(percentDigits, percentSign);
|
|
453
496
|
}
|
|
497
|
+
const absMax = Math.max(...values.map(Math.abs)) * (isRelative ? 100 : 1);
|
|
498
|
+
layouts.set(key, { isRelative, absMax, labels, percentDigits, percentSign });
|
|
454
499
|
}
|
|
455
|
-
return
|
|
500
|
+
return layouts;
|
|
456
501
|
}
|
|
457
502
|
static get is() { return "bn-table-renderer"; }
|
|
458
503
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1381,3 +1426,7 @@ export class BnTableRenderer {
|
|
|
1381
1426
|
}
|
|
1382
1427
|
static get elementRef() { return "element"; }
|
|
1383
1428
|
}
|
|
1429
|
+
/** Percentage points: the fraction times 100, no measure scale. */
|
|
1430
|
+
function barLabelMeasureScale(cell) {
|
|
1431
|
+
return cell.type === "percentpoint" ? 0.01 : cell.measureScale;
|
|
1432
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { forceUpdate, h, Host, writeTask } from "@stencil/core";
|
|
2
2
|
import { hasInlineJs } from "../../context/scopedDb";
|
|
3
|
-
import { isBlankInput, isTableBarColumnWidth, isTableCategoryWidth, isValidDataFormat, isValidDateFormat, isValidDirection, isValidInteger, isValidMeasureScale, isValidMeasureType, isValidTableType, validateAttributesJsonStr, validateBarColumnsList, validateColumnThereOfJsonStr,
|
|
3
|
+
import { isBlankInput, isTableBarColumnWidth, isTableCategoryWidth, isValidDataFormat, isValidDateFormat, isValidDirection, isValidInteger, isValidMeasureScale, isValidMeasureType, isValidTableType, validateAttributesJsonStr, validateBarColumnsList, validateColumnThereOfJsonStr, validateTableOrderList, validatePartOfJsonStr, validateScenarioList, validateThereOfJsonStr, validateVariancesList, } from "../../utils/validate";
|
|
4
4
|
import withDataset from "../../utils/withDataset";
|
|
5
5
|
import withComponentStatus from "../../utils/withComponentStatus";
|
|
6
6
|
import withScalingGroup from "../../utils/withScalingGroup";
|
|
@@ -19,7 +19,7 @@ import { BAR_COLUMN_WIDTH_EM, DataFormat, I18nMode, MeasureType, TableBarColumnW
|
|
|
19
19
|
import { TableType } from "./utils/model";
|
|
20
20
|
import { INTERVAL_NONE, INTERVAL_SETNAME } from "./utils/helper/IntervalColumns";
|
|
21
21
|
import { parseTableAttributeExpression } from "./utils/model/TableAttribute";
|
|
22
|
-
import {
|
|
22
|
+
import { normalizeOrderToken, OrderDirection } from "../../utils/model/Order";
|
|
23
23
|
import { LAYOUT_STATE_VERSION, measure, originsFor, readDiagnostics, readTableBaseline, resolveStandaloneId, } from "../../utils/layoutState";
|
|
24
24
|
import { syncEmptyState } from "../../utils/emptyState";
|
|
25
25
|
/**
|
|
@@ -195,11 +195,20 @@ export class Table {
|
|
|
195
195
|
* ```[{"rowGroup": "Umsatz", "category": "Applications"}]```
|
|
196
196
|
*/
|
|
197
197
|
this.partof = "[]";
|
|
198
|
-
/**
|
|
199
|
-
* If order is set to a scenario it has also exists in scenariolist
|
|
198
|
+
/** Comma list of the columns the rows are sorted by, left to right. `orderDirection` applies to all of them.
|
|
200
199
|
* <br /><br />
|
|
201
200
|
* values: <br />
|
|
202
|
-
* ```category // categoryindex // rowgroup //
|
|
201
|
+
* ```category // categoryindex // rowgroup // rowgroupindex // subcategory // subcategoryindex // ac[1-4] // fc[1-4] // pp[1-4] // pl[1-4] // auto```
|
|
202
|
+
* <br />
|
|
203
|
+
* or a variance, written like a scenario column, the sentiment is optional and ignored: ```dac1_pp1```, ```drfc1_pp1_pos```
|
|
204
|
+
* <br /><br />
|
|
205
|
+
* With `interval="setname"` a scenario or variance can name one bucket after `@`: ```dac1_pp1@_November``` sorts
|
|
206
|
+
* by that block only. Without a bucket the sum over all buckets is used.
|
|
207
|
+
* <br /><br />
|
|
208
|
+
* The scenario or variance does not have to be a shown column; the sort arrow appears only on a shown one.
|
|
209
|
+
* A plain scenario also sorts the row groups by their sum. A variance or a token with `@` sorts only the rows
|
|
210
|
+
* inside each group, the groups keep their rowgroupindex order. With a variance or `@`, rows without data
|
|
211
|
+
* (and a relative variance with a zero reference) sort last.
|
|
203
212
|
* <br /><br />
|
|
204
213
|
* When set to ```auto```, order is detected from the dataset silently.
|
|
205
214
|
*/
|
|
@@ -554,7 +563,7 @@ export class Table {
|
|
|
554
563
|
this.errors.remove(errId);
|
|
555
564
|
return;
|
|
556
565
|
}
|
|
557
|
-
const invalidElements =
|
|
566
|
+
const invalidElements = validateTableOrderList(newValue);
|
|
558
567
|
if (invalidElements.length > 0) {
|
|
559
568
|
this.errors.addOrReplace({
|
|
560
569
|
id: errId,
|
|
@@ -882,7 +891,7 @@ export class Table {
|
|
|
882
891
|
orderStr = this.datasetMeta.suggestedOrder;
|
|
883
892
|
}
|
|
884
893
|
const tableOrder = {
|
|
885
|
-
hierarchy: orderStr.split(",").map((entry) =>
|
|
894
|
+
hierarchy: orderStr.split(",").map((entry) => normalizeOrderToken(entry)),
|
|
886
895
|
direction: OrderDirection[effectiveDirection === null || effectiveDirection === void 0 ? void 0 : effectiveDirection.toUpperCase()],
|
|
887
896
|
};
|
|
888
897
|
return tableOrder;
|
|
@@ -1330,7 +1339,7 @@ export class Table {
|
|
|
1330
1339
|
render() {
|
|
1331
1340
|
const fontStyles = this.getFontStyles();
|
|
1332
1341
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
1333
|
-
return (h(Host, { key: '
|
|
1342
|
+
return (h(Host, { key: '2f24deddc4e58f57ef27443a27b4706b5f1b90db', style: fontStyles }, h("div", { key: 'b6368e143f868d9c2a7ad8ec753a14813b60e197' }, h("bn-table-renderer", { key: '399b2dc8d5cf3e7a8093a9a486635ea4d1bb74b9', 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, errors: this.errors, scaleFactor: effectiveFactor, ruleSetConfig: this.ruleSetConfig(), selectedStyle: this.selectedStyle }))));
|
|
1334
1343
|
}
|
|
1335
1344
|
static get is() { return "bn-table"; }
|
|
1336
1345
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1554,7 +1563,7 @@ export class Table {
|
|
|
1554
1563
|
"optional": false,
|
|
1555
1564
|
"docs": {
|
|
1556
1565
|
"tags": [],
|
|
1557
|
-
"text": "List of column names to render as bar charts instead of numbers.\n<br /><br />\nAbsolute variances (d_*) render as horizontal bar charts.\nRelative variances (dr_*) render as pin
|
|
1566
|
+
"text": "List of column names to render as bar charts instead of numbers.\n<br /><br />\nAbsolute variances (d_*) render as horizontal bar charts.\nRelative variances (dr_*) render as pin charts with a square head.\nBars take the pattern of the minuend (FC hatched, PL outlined) in the colour\nof the sentiment; pin heads take the look of the minuend scenario (AC solid\ndark, PY solid grey, FC hatched, PL outlined); the axis takes the look of the\nreference scenario.\nScenario columns (ac1..pl4) render as horizontal bar charts; when the table\ncontains grouping structure (sum rows, thereof, or partof) they automatically\nrender as an IBCS waterfall - data rows cascade from the running total and\nsum rows anchor at zero. Waterfall columns auto-scale to fit the bar column\nwidth (unit-scaling does not apply) and are not supported in combination\nwith `interval` or `columnthereof`.\n<br /><br />\nexample:<br />\n```dac1_pp1_pos,drac1_pp1_pos,ac1```"
|
|
1558
1567
|
},
|
|
1559
1568
|
"getter": false,
|
|
1560
1569
|
"setter": false,
|
|
@@ -1805,7 +1814,7 @@ export class Table {
|
|
|
1805
1814
|
"optional": false,
|
|
1806
1815
|
"docs": {
|
|
1807
1816
|
"tags": [],
|
|
1808
|
-
"text": "
|
|
1817
|
+
"text": "Comma list of the columns the rows are sorted by, left to right. `orderDirection` applies to all of them.\n<br /><br />\nvalues: <br />\n```category // categoryindex // rowgroup // rowgroupindex // subcategory // subcategoryindex // ac[1-4] // fc[1-4] // pp[1-4] // pl[1-4] // auto```\n<br />\nor a variance, written like a scenario column, the sentiment is optional and ignored: ```dac1_pp1```, ```drfc1_pp1_pos```\n<br /><br />\nWith `interval=\"setname\"` a scenario or variance can name one bucket after `@`: ```dac1_pp1@_November``` sorts\nby that block only. Without a bucket the sum over all buckets is used.\n<br /><br />\nThe scenario or variance does not have to be a shown column; the sort arrow appears only on a shown one.\nA plain scenario also sorts the row groups by their sum. A variance or a token with `@` sorts only the rows\ninside each group, the groups keep their rowgroupindex order. With a variance or `@`, rows without data\n(and a relative variance with a zero reference) sort last.\n<br /><br />\nWhen set to ```auto```, order is detected from the dataset silently."
|
|
1809
1818
|
},
|
|
1810
1819
|
"getter": false,
|
|
1811
1820
|
"setter": false,
|