@bino-bi/bn-template-engine 1.0.0-next.44 → 1.0.0-next.46
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-8b28c9bd.entry.js → p-16623e0f.entry.js} +1 -1
- package/dist/bn-template-engine/p-17970e07.entry.js +1 -0
- package/dist/bn-template-engine/{p-ce764078.entry.js → p-21930d0a.entry.js} +1 -1
- package/dist/bn-template-engine/{p-5a64f90f.entry.js → p-46c46067.entry.js} +1 -1
- package/dist/bn-template-engine/p-9caa7f46.entry.js +1 -0
- package/dist/bn-template-engine/p-B0MEAsAS.js +1 -0
- package/dist/bn-template-engine/{p-qpZjVnX5.js → p-BA-fydUt.js} +1 -1
- package/dist/bn-template-engine/p-BEGt_7Hr.js +1 -0
- package/dist/bn-template-engine/p-BRO1oW7m.js +1 -0
- package/dist/bn-template-engine/{p-BjozxTTW.js → p-BnzIfgCq.js} +1 -1
- package/dist/bn-template-engine/{p-b0dfc113.entry.js → p-b0d528f2.entry.js} +1 -1
- package/dist/cjs/bn-annotation-layer_30.cjs.entry.js +612 -84
- package/dist/cjs/bn-grid.cjs.entry.js +161 -34
- 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-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-text.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localFrame-U3Qs0psw.js → localFrame-C27GGom1.js} +1 -1
- package/dist/cjs/{withBodyObserver-S-FGHpAX.js → withBodyObserver-B78wzw3f.js} +1 -1
- package/dist/cjs/{withHasError-BkBrsCpI.js → withHasError-0hW3-4mr.js} +11 -5
- package/dist/cjs/{withStyled-BZb6snOx.js → withStyled-D0hrcfE_.js} +25 -1
- package/dist/cjs/{withTranslation-FxXGUB3H.js → withTranslation-B4WipL_5.js} +7 -4
- package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.js +33 -2
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +112 -16
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +1 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +3 -3
- package/dist/collection/components/bn-chart-time/bn-chart-time-renderer/bn-chart-time-renderer.js +113 -3
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +261 -22
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +221 -12
- package/dist/collection/components/bn-chart-time/utils/elements/Axis.js +9 -1
- package/dist/collection/components/bn-chart-time/utils/elements/Column.js +10 -4
- package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +9 -3
- package/dist/collection/components/bn-chart-time/utils/factories/ScenarioFactory.js +2 -2
- package/dist/collection/components/bn-chart-time/utils/model/DataPoint.js +9 -6
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +15 -0
- package/dist/collection/components/bn-grid/bn-grid.js +118 -24
- package/dist/collection/components/bn-grid/utils/cellLayout.js +55 -9
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +4 -2
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +23 -1
- package/dist/collection/components/bn-title/bn-title-renderer/bn-title-renderer.css +10 -0
- package/dist/collection/components/bn-title/bn-title-renderer/bn-title-renderer.js +23 -1
- package/dist/collection/components/bn-title/bn-title.js +40 -2
- package/dist/collection/components/bn-tree/bn-tree.js +4 -1
- package/dist/collection/stores/componentStyles.js +9 -3
- package/dist/collection/stores/internationalization.js +2 -2
- package/dist/collection/utils/DateStringFactory.js +19 -0
- package/dist/collection/utils/model/DataFormatDigits.js +4 -2
- package/dist/collection/utils/model/VarianceScenario.js +13 -0
- package/dist/collection/utils/parentDimensions.js +5 -2
- package/dist/collection/utils/validate.js +4 -0
- 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-9X5fVJqR.js +1 -0
- package/dist/components/p-B5GRtTLX.js +1 -0
- package/dist/components/{p-DJUffGeB.js → p-BKA15uoz.js} +1 -1
- package/dist/components/p-BKLq0Pbv.js +1 -0
- package/dist/components/p-BKTBdrEA.js +1 -0
- package/dist/components/p-Bd8cQiLx.js +1 -0
- package/dist/components/{p-CvEdUq8i.js → p-Be0Q3bvf.js} +1 -1
- package/dist/components/{p-xIWChKGS.js → p-Bj3RWsEx.js} +1 -1
- package/dist/components/{p-B4L069XF.js → p-BoBamuPt.js} +1 -1
- package/dist/components/{p-DaOm9YwQ.js → p-BrJZUp-K.js} +1 -1
- package/dist/components/{p-CyfGkLMh.js → p-BuWNCnvR.js} +1 -1
- package/dist/components/p-C50Ge-4H.js +1 -0
- package/dist/components/{p-M2k_I8lv.js → p-CFVoK5Rb.js} +1 -1
- package/dist/components/{p-fKJx8WtW.js → p-CgJB5mCu.js} +1 -1
- package/dist/components/p-Cxx0YNnl.js +1 -0
- package/dist/components/p-D9F5IBFT.js +1 -0
- package/dist/components/{p-BfUdaxZ9.js → p-DQFahsnV.js} +1 -1
- package/dist/components/p-DROj8gke.js +1 -0
- package/dist/components/p-D_Sbhd0L.js +1 -0
- package/dist/components/{p-Cel0a6ma.js → p-DbWh9W5D.js} +1 -1
- package/dist/components/{p-2eicD9rF.js → p-DkCeSWKR.js} +1 -1
- package/dist/components/{p-7ieJFBUk.js → p-DoOSXntC.js} +1 -1
- package/dist/components/p-Dxj_pf8s.js +1 -0
- package/dist/components/{p-DQl2K2Xl.js → p-DzYhS_9s.js} +1 -1
- package/dist/components/{p-B2bvM2Ig.js → p-EQNS13GN.js} +1 -1
- package/dist/components/{p-Y9bth2Y_.js → p-G56USTsQ.js} +1 -1
- package/dist/components/p-OgFFKehL.js +1 -0
- package/dist/components/{p-C2ycO60j.js → p-kvYRImZT.js} +1 -1
- package/dist/components/{p-Chuj-LpI.js → p-rEdNIgD8.js} +1 -1
- package/dist/components/{p-DwuXVo2h.js → p-uCpFBDF5.js} +1 -1
- package/dist/esm/bn-annotation-layer_30.entry.js +612 -84
- package/dist/esm/bn-grid.entry.js +161 -34
- 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-template-engine.js +1 -1
- package/dist/esm/bn-text.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localFrame-BNWPPaQa.js → localFrame-CEZ7-hBs.js} +1 -1
- package/dist/esm/{withBodyObserver-AHQAUV85.js → withBodyObserver-D9yIMxdr.js} +1 -1
- package/dist/esm/{withHasError-B6Lvj9Cq.js → withHasError-UGtkLrYT.js} +11 -5
- package/dist/esm/{withStyled-CzzXg64f.js → withStyled-BlMqEIfr.js} +25 -2
- package/dist/esm/{withTranslation-Daq2JXkv.js → withTranslation-Bc3bjHTb.js} +7 -4
- package/dist/schemas/theme.schema.json +18 -0
- package/dist/types/components/bn-annotation-layer/bn-annotation-layer.d.ts +11 -0
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +16 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Needle.d.ts +2 -1
- package/dist/types/components/bn-chart-time/bn-chart-time-renderer/bn-chart-time-renderer.d.ts +8 -0
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +46 -1
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +37 -0
- package/dist/types/components/bn-chart-time/utils/elements/Axis.d.ts +2 -0
- package/dist/types/components/bn-chart-time/utils/elements/Needle.d.ts +2 -1
- package/dist/types/components/bn-chart-time/utils/factories/ScenarioFactory.d.ts +1 -1
- package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +6 -1
- package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +6 -0
- package/dist/types/components/bn-grid/bn-grid.d.ts +23 -0
- package/dist/types/components/bn-grid/utils/cellLayout.d.ts +39 -3
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +3 -1
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +9 -0
- package/dist/types/components/bn-title/bn-title-renderer/bn-title-renderer.d.ts +2 -0
- package/dist/types/components/bn-title/bn-title.d.ts +10 -0
- package/dist/types/components.d.ts +173 -6
- package/dist/types/stores/componentStyles.d.ts +8 -0
- package/dist/types/utils/DateStringFactory.d.ts +4 -0
- package/dist/types/utils/layoutState/types.d.ts +3 -0
- package/dist/types/utils/model/VarianceScenario.d.ts +2 -0
- package/dist/types/utils/validate.d.ts +2 -0
- package/package.json +1 -1
- package/dist/bn-template-engine/p-3c4af59a.entry.js +0 -1
- package/dist/bn-template-engine/p-D0tNATZq.js +0 -1
- package/dist/bn-template-engine/p-DF9sfwBN.js +0 -1
- package/dist/bn-template-engine/p-EcC0qLtU.js +0 -1
- package/dist/bn-template-engine/p-a4b76176.entry.js +0 -1
- package/dist/components/p-1B_s8oPY.js +0 -1
- package/dist/components/p-AwH1w8Mu.js +0 -1
- package/dist/components/p-BiSytXUy.js +0 -1
- package/dist/components/p-C3gYq-HU.js +0 -1
- package/dist/components/p-CEf5X8MZ.js +0 -1
- package/dist/components/p-CniN8ALm.js +0 -1
- package/dist/components/p-D2Epww9R.js +0 -1
- package/dist/components/p-D40Am1Ap.js +0 -1
- package/dist/components/p-DDvWTgk1.js +0 -1
- package/dist/components/p-DjPWZfry.js +0 -1
- package/dist/components/p-DnDL1pPc.js +0 -1
- package/dist/components/p-sLbQ7yZ1.js +0 -1
- /package/dist/components/{p-DD1zlev_.js → p-Dsvjkuy3.js} +0 -0
|
@@ -44,7 +44,7 @@ export declare class ScenarioFactory {
|
|
|
44
44
|
constructor(position: ElementPositions, scenariosGroupParent: G, styles: TimeChartStyle, elementCnt: number, i18n: Map<string | number, string>);
|
|
45
45
|
setOverflowConfig(config: OverflowConfig | null): void;
|
|
46
46
|
createLine(name: string, dataPoint: DataPoint, previousDataPoint: DataPoint, index: number): Line;
|
|
47
|
-
createPrimaryBar(dataPoint: DataPoint, index: number): Column;
|
|
47
|
+
createPrimaryBar(dataPoint: DataPoint, index: number, withScenarioLabel?: boolean): Column;
|
|
48
48
|
createVarianceBar(dataPoint: DataPoint, index: number): Column;
|
|
49
49
|
createRelativeVarianceBar(dataPoint: DataPoint, index: number): Needle;
|
|
50
50
|
createSecondaryBar(dataPoint: DataPoint, index: number): Column;
|
|
@@ -21,12 +21,17 @@ export declare class DataPoint {
|
|
|
21
21
|
variance: Scenario | string;
|
|
22
22
|
/** The data row this point shows. Written as `data-bn-*` attributes on what is drawn for it. */
|
|
23
23
|
key?: DataPointKey;
|
|
24
|
+
/** Scenario type (`pl`, `fc`, ...) a variance is drawn in. Only set in a row that several variances share. */
|
|
25
|
+
notation?: string;
|
|
26
|
+
/** Relative variances beyond this fraction are cut. Infinity when the chart has room for the full pin. */
|
|
27
|
+
percentClamp: number;
|
|
28
|
+
static readonly PERCENT_CLAMP = 1.45;
|
|
24
29
|
constructor(value: number | null | undefined, scenario: Scenario | string | null, pixelPerUnit: number | null, variance: Scenario | string | null);
|
|
25
30
|
isEmpty(): boolean;
|
|
26
31
|
/** Returns the value scaled to pixel height for absolute (non-percentage) bars. */
|
|
27
32
|
getScaledUnit(): number;
|
|
28
33
|
/**
|
|
29
|
-
* Returns the percentage value scaled to pixel height, clipped at +/-145
|
|
34
|
+
* Returns the percentage value scaled to pixel height, clipped at +/-145% unless the clamp is lifted.
|
|
30
35
|
*
|
|
31
36
|
* Values beyond +/-1.45 (145%) are clamped to prevent extreme bars from
|
|
32
37
|
* distorting the chart layout. Use {@link isClipped} to check if clipping occurred.
|
|
@@ -50,6 +50,12 @@ export declare class TimeChartComponentConfig {
|
|
|
50
50
|
stackConfig: StackConfigParsed | null;
|
|
51
51
|
/** When true, line charts extend to the full width of the chart area. */
|
|
52
52
|
lineFullWidth: boolean;
|
|
53
|
+
/** Print every n-th category label only. */
|
|
54
|
+
axisLabelsStep: number;
|
|
55
|
+
/** One series that changes its scenario along the time axis, see `bn-chart-time`. */
|
|
56
|
+
scenarioSwitch: boolean;
|
|
57
|
+
/** Side of the axis title: left, right or none. */
|
|
58
|
+
axisTitlePosition: string;
|
|
53
59
|
/** Locale used for date-axis labels and SQL date normalization; set from the bn-context locale. */
|
|
54
60
|
locale: string;
|
|
55
61
|
constructor(data: TimeChartDataRow[], scenarios: string[]);
|
|
@@ -6,6 +6,18 @@ import { ComponentLayoutState, LayoutStateOptions } from "../../utils/layoutStat
|
|
|
6
6
|
* Supports configurable borders, title, and header visibility. Cells can
|
|
7
7
|
* have equal sizes, a caption, and aligned content; `baseline` lines up the
|
|
8
8
|
* axes of charts (and the header of tables) in a row or column.
|
|
9
|
+
*
|
|
10
|
+
* The slotted child of a cell can carry `row-span` and `column-span` (whole
|
|
11
|
+
* numbers, default 1): its cell then also takes the positions right of it and
|
|
12
|
+
* below it, and those positions get no cell. `cell-background` on the child
|
|
13
|
+
* is the background colour of its cell.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <bn-grid row-headers='["a","b"]' column-headers='["x","y"]'>
|
|
17
|
+
* <div slot="0-0" row-span="2" cell-background="#f2f2f2">...</div>
|
|
18
|
+
* <div slot="0-1">...</div>
|
|
19
|
+
* <div slot="1-1">...</div>
|
|
20
|
+
* </bn-grid>
|
|
9
21
|
*/
|
|
10
22
|
export declare class Grid {
|
|
11
23
|
private element;
|
|
@@ -17,6 +29,10 @@ export declare class Grid {
|
|
|
17
29
|
private captions;
|
|
18
30
|
/** Per slot: how far the baseline pass moved the content. */
|
|
19
31
|
private offsets;
|
|
32
|
+
/** Per slot: span and background from the slotted child. Only cells that set one of them. */
|
|
33
|
+
private cellAttributes;
|
|
34
|
+
/** The data cells of the last render, row by row. */
|
|
35
|
+
private placed;
|
|
20
36
|
/** Per slot: the frame around its component, from the last baseline pass. */
|
|
21
37
|
private frames;
|
|
22
38
|
private readonly errors;
|
|
@@ -121,6 +137,12 @@ export declare class Grid {
|
|
|
121
137
|
/** Captions, headers, gap or style can move a cell without resizing its component. */
|
|
122
138
|
componentDidRender(): void;
|
|
123
139
|
private validateChoice;
|
|
140
|
+
/** Reads the span and the background of every cell from its slotted child. */
|
|
141
|
+
private readCellAttributes;
|
|
142
|
+
/** Places the data cells. */
|
|
143
|
+
private placeDataCells;
|
|
144
|
+
/** Warns about a child in a position that a span covers. A new child changes no state, so the observer calls this too. */
|
|
145
|
+
private checkCoveredSlots;
|
|
124
146
|
private isBaselineMode;
|
|
125
147
|
/**
|
|
126
148
|
* Aligns the baselines after the next paint. The grid counts as working
|
|
@@ -148,6 +170,7 @@ export declare class Grid {
|
|
|
148
170
|
*/
|
|
149
171
|
private getGridStyle;
|
|
150
172
|
componentWillLoad(): void;
|
|
173
|
+
componentWillRender(): void;
|
|
151
174
|
private updateGridConfig;
|
|
152
175
|
private shouldShowRowHeaders;
|
|
153
176
|
private shouldShowColumnHeaders;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Cell size and alignment for bn-grid: the accepted values, their CSS,
|
|
3
|
-
* the offsets that line up the baselines of the components in a row or column.
|
|
2
|
+
* Cell size, span and alignment for bn-grid: the accepted values, their CSS,
|
|
3
|
+
* and the offsets that line up the baselines of the components in a row or column.
|
|
4
4
|
*/
|
|
5
5
|
export declare const CELL_SIZES: readonly ["auto", "equal"];
|
|
6
6
|
export declare const VERTICAL_ALIGNS: readonly ["top", "center", "bottom", "baseline"];
|
|
@@ -17,11 +17,45 @@ export declare const JUSTIFY: Record<VerticalAlign, string>;
|
|
|
17
17
|
export declare const ALIGN: Record<HorizontalAlign, string>;
|
|
18
18
|
/** Parses `cell-captions`: a JSON object from slot name to caption text. `undefined` when invalid. */
|
|
19
19
|
export declare function parseCaptions(json: string | undefined): Record<string, string> | undefined;
|
|
20
|
+
/** What the slotted child of a cell says about its cell. */
|
|
21
|
+
export interface CellAttributes {
|
|
22
|
+
rowSpan: number;
|
|
23
|
+
columnSpan: number;
|
|
24
|
+
background?: string;
|
|
25
|
+
}
|
|
26
|
+
/** The value of `row-span` or `column-span`: a whole number from 1. `undefined` when invalid. */
|
|
27
|
+
export declare function parseSpan(value: string | null): number | undefined;
|
|
28
|
+
/** One data cell: its first row and column, and how many of them it covers. */
|
|
29
|
+
export interface PlacedCell {
|
|
30
|
+
row: number;
|
|
31
|
+
column: number;
|
|
32
|
+
rowSpan: number;
|
|
33
|
+
columnSpan: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The data cells of a grid, row by row. A cell with a span also takes the
|
|
37
|
+
* positions right of it and below it, and those get no cell of their own. A
|
|
38
|
+
* span ends at the edge of the grid, and before a position that is taken.
|
|
39
|
+
*/
|
|
40
|
+
export declare function placeCells(rowCount: number, columnCount: number, spanOf: (row: number, column: number) => {
|
|
41
|
+
rowSpan: number;
|
|
42
|
+
columnSpan: number;
|
|
43
|
+
} | undefined): {
|
|
44
|
+
cells: PlacedCell[];
|
|
45
|
+
covered: {
|
|
46
|
+
row: number;
|
|
47
|
+
column: number;
|
|
48
|
+
by: PlacedCell;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
20
51
|
/** One cell as the baseline pass sees it, in the grid's layout px. */
|
|
21
52
|
export interface BaselineCell {
|
|
22
53
|
slot: string;
|
|
23
54
|
row: number;
|
|
24
55
|
column: number;
|
|
56
|
+
/** More than 1: the cell is in no single row (or column), so that axis is not aligned. */
|
|
57
|
+
rowSpan?: number;
|
|
58
|
+
columnSpan?: number;
|
|
25
59
|
/** Baseline of the component in the cell, with the current offsets applied. */
|
|
26
60
|
y?: number;
|
|
27
61
|
x?: number;
|
|
@@ -40,7 +74,9 @@ export interface CellOffset {
|
|
|
40
74
|
/**
|
|
41
75
|
* Offsets that put every baseline of a row on the lowest one, and every
|
|
42
76
|
* baseline of a column on the rightmost one. A cell without a baseline on an
|
|
43
|
-
* axis goes to the bottom (vertical) or stays left (horizontal).
|
|
77
|
+
* axis goes to the bottom (vertical) or stays left (horizontal). A cell over
|
|
78
|
+
* several rows is left out of the rows and stays at the top; a cell over
|
|
79
|
+
* several columns is left out of the columns and stays left.
|
|
44
80
|
*/
|
|
45
81
|
export declare function baselineOffsets(cells: BaselineCell[], vertical: boolean, horizontal: boolean): Record<string, CellOffset>;
|
|
46
82
|
/** Two offset maps place every cell within half a px of each other. */
|
|
@@ -2,6 +2,7 @@ export declare class LayoutCard {
|
|
|
2
2
|
private element;
|
|
3
3
|
private readonly errors;
|
|
4
4
|
private readonly resolveInherited;
|
|
5
|
+
private readonly componentStyle;
|
|
5
6
|
private stores;
|
|
6
7
|
constructor();
|
|
7
8
|
connectedCallback(): void;
|
|
@@ -14,7 +15,8 @@ export declare class LayoutCard {
|
|
|
14
15
|
/**
|
|
15
16
|
* Name of a registered component style (see `bn-component-style`) passed
|
|
16
17
|
* through to the inner `<bn-card>` element as its `selected-style`
|
|
17
|
-
* attribute.
|
|
18
|
+
* attribute. Its section `bn-layout-card` sets the font size of the title
|
|
19
|
+
* (`titleFontSize`, in px).
|
|
18
20
|
*/
|
|
19
21
|
selectedStyle?: string;
|
|
20
22
|
/**
|
|
@@ -40,6 +40,15 @@ export declare class LayoutPage {
|
|
|
40
40
|
* <bn-layout-page message-image="debug/concordia.png"></bn-layout-page>
|
|
41
41
|
*/
|
|
42
42
|
messageImage: string;
|
|
43
|
+
/**
|
|
44
|
+
* Short id of the page, a template number like `13A`. Shown at the top
|
|
45
|
+
* right of the title, on the level of its first line, in the font of the
|
|
46
|
+
* title and not bold. If empty, nothing is shown.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* <bn-layout-page title-id="13A"></bn-layout-page>
|
|
50
|
+
*/
|
|
51
|
+
titleId?: string;
|
|
43
52
|
/**
|
|
44
53
|
* Name of the business unit displayed in the title header row.
|
|
45
54
|
* If empty, the business unit row is omitted.
|
|
@@ -30,6 +30,16 @@ export declare class Title {
|
|
|
30
30
|
* take over the value from an ancestor `bn-layout-card` / `bn-layout-page`.
|
|
31
31
|
*/
|
|
32
32
|
readonly ruleset?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Font size of the title in px. Without it the title has the font size of
|
|
35
|
+
* the style (`global.fontSizePx`).
|
|
36
|
+
*/
|
|
37
|
+
readonly titleFontSize?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Short id of the report, a template number like `13A`. Shown at the top
|
|
40
|
+
* right, on the level of the first title line. Without it nothing is shown.
|
|
41
|
+
*/
|
|
42
|
+
readonly titleId?: string;
|
|
33
43
|
/** Name of the business unit displayed in card header. If empty string (`''` or `null`) the business unit row is omitted
|
|
34
44
|
* <br /><br />
|
|
35
45
|
* Rendered as sanitized HTML, so inline markup such as ```<b>```, ```<i>``` and ```<br />``` is supported.
|
|
@@ -74,6 +74,9 @@ export namespace Components {
|
|
|
74
74
|
* that is a finding in the data and not a broken page, so the layer does not fail.
|
|
75
75
|
* Place it in the `annotations` slot of `bn-layout-page`. The numbers are given,
|
|
76
76
|
* the layer never counts.
|
|
77
|
+
* A target can sit anywhere in the page, also on the child of one `bn-grid`
|
|
78
|
+
* cell or of a card in it. The mark then points at the first component in
|
|
79
|
+
* that element.
|
|
77
80
|
* @example <bn-layout-page>
|
|
78
81
|
* <div slot="slot-0" data-bino-annotation-target="t1"><bn-chart-time ...></bn-chart-time></div>
|
|
79
82
|
* <bn-annotation-layer slot="annotations"
|
|
@@ -680,6 +683,16 @@ export namespace Components {
|
|
|
680
683
|
* @default ""
|
|
681
684
|
*/
|
|
682
685
|
"chartTitle": string;
|
|
686
|
+
/**
|
|
687
|
+
* Number of decimal digits of the value labels
|
|
688
|
+
* @default 1
|
|
689
|
+
*/
|
|
690
|
+
"dataFormatDigitsDecimal": number;
|
|
691
|
+
/**
|
|
692
|
+
* Number of decimal digits of the percent labels (relative variances, shares of a 100 % stack)
|
|
693
|
+
* @default 2
|
|
694
|
+
*/
|
|
695
|
+
"dataFormatDigitsPercent": number;
|
|
683
696
|
/**
|
|
684
697
|
* Name of the dataset to render (the `name` of a `<bn-dataset>`). A name that starts with `$` reads a `<bn-datasource>` directly, which gives a warning.
|
|
685
698
|
*/
|
|
@@ -752,7 +765,7 @@ export namespace Components {
|
|
|
752
765
|
*/
|
|
753
766
|
"scale"?: string;
|
|
754
767
|
/**
|
|
755
|
-
* Comma-separated list of scenario columns to display as bars. Up to 4 scenarios are supported; additional values are ignored. Valid scenario names: `ac1`-`ac4`, `fc1`-`fc4`, `pp1`-`pp4`, `pl1`-`pl4`. | Value | Behavior | |---------------|-------------------------------------------------------------| | `"ac1,fc1"` | Show the listed scenarios | | `"auto"` | Auto-detect from dataset metadata (no warning) | | not set / `""` | Auto-detect from dataset metadata (emits `AUTO_scenarios` warning) |
|
|
768
|
+
* Comma-separated list of scenario columns to display as bars. Up to 4 scenarios are supported; additional values are ignored. Valid scenario names: `ac1`-`ac4`, `fc1`-`fc4`, `pp1`-`pp4`, `pl1`-`pl4`. | Value | Behavior | |---------------|-------------------------------------------------------------| | `"ac1,fc1"` | Show the listed scenarios | | `"auto"` | Auto-detect from dataset metadata (no warning) | | not set / `""` | Auto-detect from dataset metadata (emits `AUTO_scenarios` warning) | | `"none"` | Draw no scenario: the chart shows only its variances, the first one carries the categories |
|
|
756
769
|
* @example scenarios="ac1,pp1,pl1"
|
|
757
770
|
*/
|
|
758
771
|
"scenarios": string;
|
|
@@ -897,6 +910,16 @@ export namespace Components {
|
|
|
897
910
|
* Axis Labels Mode defines in which mode the labels are rendered. long, and short mode uses the long an short styles for the date smart only displays relevant information if a change/ transition occured (eg. only on 1.Jan the year is displayed) <br /><br /> values:<br /> ```smart // long // short```
|
|
898
911
|
*/
|
|
899
912
|
"axisLabelsMode": string;
|
|
913
|
+
/**
|
|
914
|
+
* Prints only every n-th category label, starting with the first period. 2 labels every second period. Bar mode only.
|
|
915
|
+
* @default 1
|
|
916
|
+
*/
|
|
917
|
+
"axisLabelsStep": number;
|
|
918
|
+
/**
|
|
919
|
+
* Where the axis title stands (the chart title, or the name of a variance). <br /><br /> values:<br /> ```left // right // none```
|
|
920
|
+
* @default "left"
|
|
921
|
+
*/
|
|
922
|
+
"axisTitlePosition": string;
|
|
900
923
|
/**
|
|
901
924
|
* Chart Mode - controls how the chart is rendered <br /><br /> values:<br /> ```bar // line // auto``` <br /><br /> When set to 'auto', the chart will switch to line mode when the number of data points exceeds maxBars.
|
|
902
925
|
* @default "bar"
|
|
@@ -907,6 +930,16 @@ export namespace Components {
|
|
|
907
930
|
* @default ""
|
|
908
931
|
*/
|
|
909
932
|
"chartTitle": string;
|
|
933
|
+
/**
|
|
934
|
+
* Number of decimal digits of the value labels
|
|
935
|
+
* @default 1
|
|
936
|
+
*/
|
|
937
|
+
"dataFormatDigitsDecimal": number;
|
|
938
|
+
/**
|
|
939
|
+
* Number of decimal digits of the percent labels (relative variances)
|
|
940
|
+
* @default 2
|
|
941
|
+
*/
|
|
942
|
+
"dataFormatDigitsPercent": number;
|
|
910
943
|
/**
|
|
911
944
|
* Name of the dataset to render (the `name` of a `<bn-dataset>`). A name that starts with `$` reads a `<bn-datasource>` directly, which gives a warning.
|
|
912
945
|
*/
|
|
@@ -973,7 +1006,12 @@ export namespace Components {
|
|
|
973
1006
|
*/
|
|
974
1007
|
"scale"?: string;
|
|
975
1008
|
/**
|
|
976
|
-
*
|
|
1009
|
+
* For a series that changes its scenario along the time axis, for example AC up to this year and PL after it. In a period where the first scenario has no value, the next scenario with a value is drawn in its place with its value label. A vertical line marks the change, and the scenario names stand under the axis. Variances with the same reference and type share one row. Bar mode without stack only.
|
|
1010
|
+
* @default false
|
|
1011
|
+
*/
|
|
1012
|
+
"scenarioSwitch": boolean;
|
|
1013
|
+
/**
|
|
1014
|
+
* List of Scenarios Map. <br /> <br /> per chart there are up to 4 different scenarios supported. The first 4 scenarios in the list are used, the rest ignored. <br /> <br /> values:<br /> ```ac // fc // pp // pl [1-4] // auto``` example:<br /> ```ac1,ac2,ac3,ac4``` <br /> <br /> When set to ```auto```, scenarios are detected from the dataset silently. When left blank, scenarios are detected from the dataset with a warning. When set to ```none```, no scenario is drawn: the chart shows only its variances, and the lowest variance carries the category labels.
|
|
977
1015
|
*/
|
|
978
1016
|
"scenarios": string;
|
|
979
1017
|
/**
|
|
@@ -1025,6 +1063,14 @@ export namespace Components {
|
|
|
1025
1063
|
* @default AxisLabelsMode.SMART
|
|
1026
1064
|
*/
|
|
1027
1065
|
"axisLabelsMode": AxisLabelsMode;
|
|
1066
|
+
/**
|
|
1067
|
+
* @default 1
|
|
1068
|
+
*/
|
|
1069
|
+
"axisLabelsStep": number;
|
|
1070
|
+
/**
|
|
1071
|
+
* @default "left"
|
|
1072
|
+
*/
|
|
1073
|
+
"axisTitlePosition": string;
|
|
1028
1074
|
/**
|
|
1029
1075
|
* @default ChartMode.BAR
|
|
1030
1076
|
*/
|
|
@@ -1104,6 +1150,10 @@ export namespace Components {
|
|
|
1104
1150
|
*/
|
|
1105
1151
|
"reportAutoScaling"?: (report: AutoScalingReport) => void;
|
|
1106
1152
|
"ruleSetConfig"?: RuleSetConfig;
|
|
1153
|
+
/**
|
|
1154
|
+
* @default false
|
|
1155
|
+
*/
|
|
1156
|
+
"scenarioSwitch": boolean;
|
|
1107
1157
|
/**
|
|
1108
1158
|
* @default []
|
|
1109
1159
|
*/
|
|
@@ -1256,6 +1306,15 @@ export namespace Components {
|
|
|
1256
1306
|
* Supports configurable borders, title, and header visibility. Cells can
|
|
1257
1307
|
* have equal sizes, a caption, and aligned content; `baseline` lines up the
|
|
1258
1308
|
* axes of charts (and the header of tables) in a row or column.
|
|
1309
|
+
* The slotted child of a cell can carry `row-span` and `column-span` (whole
|
|
1310
|
+
* numbers, default 1): its cell then also takes the positions right of it and
|
|
1311
|
+
* below it, and those positions get no cell. `cell-background` on the child
|
|
1312
|
+
* is the background colour of its cell.
|
|
1313
|
+
* @example <bn-grid row-headers='["a","b"]' column-headers='["x","y"]'>
|
|
1314
|
+
* <div slot="0-0" row-span="2" cell-background="#f2f2f2">...</div>
|
|
1315
|
+
* <div slot="0-1">...</div>
|
|
1316
|
+
* <div slot="1-1">...</div>
|
|
1317
|
+
* </bn-grid>
|
|
1259
1318
|
*/
|
|
1260
1319
|
interface BnGrid {
|
|
1261
1320
|
/**
|
|
@@ -1406,7 +1465,7 @@ export namespace Components {
|
|
|
1406
1465
|
*/
|
|
1407
1466
|
"ruleset"?: string;
|
|
1408
1467
|
/**
|
|
1409
|
-
* Name of a registered component style (see `bn-component-style`) passed through to the inner `<bn-card>` element as its `selected-style` attribute.
|
|
1468
|
+
* Name of a registered component style (see `bn-component-style`) passed through to the inner `<bn-card>` element as its `selected-style` attribute. Its section `bn-layout-card` sets the font size of the title (`titleFontSize`, in px).
|
|
1410
1469
|
*/
|
|
1411
1470
|
"selectedStyle"?: string;
|
|
1412
1471
|
/**
|
|
@@ -1578,6 +1637,11 @@ export namespace Components {
|
|
|
1578
1637
|
* Start date displayed in the title date row. Accepts `yyyy-MM-dd` (e.g. `2024-01-01`) or ISO 8601 datetime (e.g. `2024-01-01T14:30:00Z`).
|
|
1579
1638
|
*/
|
|
1580
1639
|
"titleDateStart"?: string;
|
|
1640
|
+
/**
|
|
1641
|
+
* Short id of the page, a template number like `13A`. Shown at the top right of the title, on the level of its first line, in the font of the title and not bold. If empty, nothing is shown.
|
|
1642
|
+
* @example <bn-layout-page title-id="13A"></bn-layout-page>
|
|
1643
|
+
*/
|
|
1644
|
+
"titleId"?: string;
|
|
1581
1645
|
/**
|
|
1582
1646
|
* Array of measure objects with `name` and `unit` displayed in the title. Passed as a JSON string. If all units are the same, redundant units are reduced and names concatenated. If empty, the measure row is omitted.
|
|
1583
1647
|
* @example <bn-layout-page title-measures='[{"name":"Revenue","unit":"mEUR"}]'></bn-layout-page>
|
|
@@ -2113,6 +2177,14 @@ export namespace Components {
|
|
|
2113
2177
|
* Name of the component style to use (the `name` of a `<bn-component-style>`). Its values go on top of the default style.
|
|
2114
2178
|
*/
|
|
2115
2179
|
"selectedStyle"?: string;
|
|
2180
|
+
/**
|
|
2181
|
+
* Font size of the title in px. Without it the title has the font size of the style (`global.fontSizePx`).
|
|
2182
|
+
*/
|
|
2183
|
+
"titleFontSize"?: number;
|
|
2184
|
+
/**
|
|
2185
|
+
* Short id of the report, a template number like `13A`. Shown at the top right, on the level of the first title line. Without it nothing is shown.
|
|
2186
|
+
*/
|
|
2187
|
+
"titleId"?: string;
|
|
2116
2188
|
/**
|
|
2117
2189
|
* <br /> <br /> List of Variances The additonal variances which are calculated form the given scenarios. the scenarios used in the variances have also be defined in the *scenarios* property. <br /> <br /> the variance is defiend as (Scenario A - ScenarioB) neu. neg and pos post fix defines which value is *good* a negative or a positive value. <br /> <br /> if empty variance charts are hidden <br /> <br /> each variance creates a chart <br /> <br /> pattern:<br /> ```d<scenarioB>_<scenarioA>_[pos/neg/neu/op/opinv]```
|
|
2118
2190
|
*/
|
|
@@ -2154,6 +2226,7 @@ export namespace Components {
|
|
|
2154
2226
|
*/
|
|
2155
2227
|
"scenarios": string[];
|
|
2156
2228
|
"timeperiod"?: TimePeriod;
|
|
2229
|
+
"titleId"?: string;
|
|
2157
2230
|
}
|
|
2158
2231
|
/**
|
|
2159
2232
|
* Renders a hierarchical tree diagram with SVG edge connections.
|
|
@@ -2217,6 +2290,9 @@ declare global {
|
|
|
2217
2290
|
* that is a finding in the data and not a broken page, so the layer does not fail.
|
|
2218
2291
|
* Place it in the `annotations` slot of `bn-layout-page`. The numbers are given,
|
|
2219
2292
|
* the layer never counts.
|
|
2293
|
+
* A target can sit anywhere in the page, also on the child of one `bn-grid`
|
|
2294
|
+
* cell or of a card in it. The mark then points at the first component in
|
|
2295
|
+
* that element.
|
|
2220
2296
|
* @example <bn-layout-page>
|
|
2221
2297
|
* <div slot="slot-0" data-bino-annotation-target="t1"><bn-chart-time ...></bn-chart-time></div>
|
|
2222
2298
|
* <bn-annotation-layer slot="annotations"
|
|
@@ -2448,6 +2524,15 @@ declare global {
|
|
|
2448
2524
|
* Supports configurable borders, title, and header visibility. Cells can
|
|
2449
2525
|
* have equal sizes, a caption, and aligned content; `baseline` lines up the
|
|
2450
2526
|
* axes of charts (and the header of tables) in a row or column.
|
|
2527
|
+
* The slotted child of a cell can carry `row-span` and `column-span` (whole
|
|
2528
|
+
* numbers, default 1): its cell then also takes the positions right of it and
|
|
2529
|
+
* below it, and those positions get no cell. `cell-background` on the child
|
|
2530
|
+
* is the background colour of its cell.
|
|
2531
|
+
* @example <bn-grid row-headers='["a","b"]' column-headers='["x","y"]'>
|
|
2532
|
+
* <div slot="0-0" row-span="2" cell-background="#f2f2f2">...</div>
|
|
2533
|
+
* <div slot="0-1">...</div>
|
|
2534
|
+
* <div slot="1-1">...</div>
|
|
2535
|
+
* </bn-grid>
|
|
2451
2536
|
*/
|
|
2452
2537
|
interface HTMLBnGridElement extends Components.BnGrid, HTMLStencilElement {
|
|
2453
2538
|
}
|
|
@@ -2638,6 +2723,9 @@ declare namespace LocalJSX {
|
|
|
2638
2723
|
* that is a finding in the data and not a broken page, so the layer does not fail.
|
|
2639
2724
|
* Place it in the `annotations` slot of `bn-layout-page`. The numbers are given,
|
|
2640
2725
|
* the layer never counts.
|
|
2726
|
+
* A target can sit anywhere in the page, also on the child of one `bn-grid`
|
|
2727
|
+
* cell or of a card in it. The mark then points at the first component in
|
|
2728
|
+
* that element.
|
|
2641
2729
|
* @example <bn-layout-page>
|
|
2642
2730
|
* <div slot="slot-0" data-bino-annotation-target="t1"><bn-chart-time ...></bn-chart-time></div>
|
|
2643
2731
|
* <bn-annotation-layer slot="annotations"
|
|
@@ -3013,6 +3101,16 @@ declare namespace LocalJSX {
|
|
|
3013
3101
|
* @default ""
|
|
3014
3102
|
*/
|
|
3015
3103
|
"chartTitle"?: string;
|
|
3104
|
+
/**
|
|
3105
|
+
* Number of decimal digits of the value labels
|
|
3106
|
+
* @default 1
|
|
3107
|
+
*/
|
|
3108
|
+
"dataFormatDigitsDecimal"?: number;
|
|
3109
|
+
/**
|
|
3110
|
+
* Number of decimal digits of the percent labels (relative variances, shares of a 100 % stack)
|
|
3111
|
+
* @default 2
|
|
3112
|
+
*/
|
|
3113
|
+
"dataFormatDigitsPercent"?: number;
|
|
3016
3114
|
/**
|
|
3017
3115
|
* Name of the dataset to render (the `name` of a `<bn-dataset>`). A name that starts with `$` reads a `<bn-datasource>` directly, which gives a warning.
|
|
3018
3116
|
*/
|
|
@@ -3076,7 +3174,7 @@ declare namespace LocalJSX {
|
|
|
3076
3174
|
*/
|
|
3077
3175
|
"scale"?: string;
|
|
3078
3176
|
/**
|
|
3079
|
-
* Comma-separated list of scenario columns to display as bars. Up to 4 scenarios are supported; additional values are ignored. Valid scenario names: `ac1`-`ac4`, `fc1`-`fc4`, `pp1`-`pp4`, `pl1`-`pl4`. | Value | Behavior | |---------------|-------------------------------------------------------------| | `"ac1,fc1"` | Show the listed scenarios | | `"auto"` | Auto-detect from dataset metadata (no warning) | | not set / `""` | Auto-detect from dataset metadata (emits `AUTO_scenarios` warning) |
|
|
3177
|
+
* Comma-separated list of scenario columns to display as bars. Up to 4 scenarios are supported; additional values are ignored. Valid scenario names: `ac1`-`ac4`, `fc1`-`fc4`, `pp1`-`pp4`, `pl1`-`pl4`. | Value | Behavior | |---------------|-------------------------------------------------------------| | `"ac1,fc1"` | Show the listed scenarios | | `"auto"` | Auto-detect from dataset metadata (no warning) | | not set / `""` | Auto-detect from dataset metadata (emits `AUTO_scenarios` warning) | | `"none"` | Draw no scenario: the chart shows only its variances, the first one carries the categories |
|
|
3080
3178
|
* @example scenarios="ac1,pp1,pl1"
|
|
3081
3179
|
*/
|
|
3082
3180
|
"scenarios": string;
|
|
@@ -3133,6 +3231,16 @@ declare namespace LocalJSX {
|
|
|
3133
3231
|
* Axis Labels Mode defines in which mode the labels are rendered. long, and short mode uses the long an short styles for the date smart only displays relevant information if a change/ transition occured (eg. only on 1.Jan the year is displayed) <br /><br /> values:<br /> ```smart // long // short```
|
|
3134
3232
|
*/
|
|
3135
3233
|
"axisLabelsMode": string;
|
|
3234
|
+
/**
|
|
3235
|
+
* Prints only every n-th category label, starting with the first period. 2 labels every second period. Bar mode only.
|
|
3236
|
+
* @default 1
|
|
3237
|
+
*/
|
|
3238
|
+
"axisLabelsStep"?: number;
|
|
3239
|
+
/**
|
|
3240
|
+
* Where the axis title stands (the chart title, or the name of a variance). <br /><br /> values:<br /> ```left // right // none```
|
|
3241
|
+
* @default "left"
|
|
3242
|
+
*/
|
|
3243
|
+
"axisTitlePosition"?: string;
|
|
3136
3244
|
/**
|
|
3137
3245
|
* Chart Mode - controls how the chart is rendered <br /><br /> values:<br /> ```bar // line // auto``` <br /><br /> When set to 'auto', the chart will switch to line mode when the number of data points exceeds maxBars.
|
|
3138
3246
|
* @default "bar"
|
|
@@ -3143,6 +3251,16 @@ declare namespace LocalJSX {
|
|
|
3143
3251
|
* @default ""
|
|
3144
3252
|
*/
|
|
3145
3253
|
"chartTitle"?: string;
|
|
3254
|
+
/**
|
|
3255
|
+
* Number of decimal digits of the value labels
|
|
3256
|
+
* @default 1
|
|
3257
|
+
*/
|
|
3258
|
+
"dataFormatDigitsDecimal"?: number;
|
|
3259
|
+
/**
|
|
3260
|
+
* Number of decimal digits of the percent labels (relative variances)
|
|
3261
|
+
* @default 2
|
|
3262
|
+
*/
|
|
3263
|
+
"dataFormatDigitsPercent"?: number;
|
|
3146
3264
|
/**
|
|
3147
3265
|
* Name of the dataset to render (the `name` of a `<bn-dataset>`). A name that starts with `$` reads a `<bn-datasource>` directly, which gives a warning.
|
|
3148
3266
|
*/
|
|
@@ -3200,7 +3318,12 @@ declare namespace LocalJSX {
|
|
|
3200
3318
|
*/
|
|
3201
3319
|
"scale"?: string;
|
|
3202
3320
|
/**
|
|
3203
|
-
*
|
|
3321
|
+
* For a series that changes its scenario along the time axis, for example AC up to this year and PL after it. In a period where the first scenario has no value, the next scenario with a value is drawn in its place with its value label. A vertical line marks the change, and the scenario names stand under the axis. Variances with the same reference and type share one row. Bar mode without stack only.
|
|
3322
|
+
* @default false
|
|
3323
|
+
*/
|
|
3324
|
+
"scenarioSwitch"?: boolean;
|
|
3325
|
+
/**
|
|
3326
|
+
* List of Scenarios Map. <br /> <br /> per chart there are up to 4 different scenarios supported. The first 4 scenarios in the list are used, the rest ignored. <br /> <br /> values:<br /> ```ac // fc // pp // pl [1-4] // auto``` example:<br /> ```ac1,ac2,ac3,ac4``` <br /> <br /> When set to ```auto```, scenarios are detected from the dataset silently. When left blank, scenarios are detected from the dataset with a warning. When set to ```none```, no scenario is drawn: the chart shows only its variances, and the lowest variance carries the category labels.
|
|
3204
3327
|
*/
|
|
3205
3328
|
"scenarios": string;
|
|
3206
3329
|
/**
|
|
@@ -3365,6 +3488,15 @@ declare namespace LocalJSX {
|
|
|
3365
3488
|
* Supports configurable borders, title, and header visibility. Cells can
|
|
3366
3489
|
* have equal sizes, a caption, and aligned content; `baseline` lines up the
|
|
3367
3490
|
* axes of charts (and the header of tables) in a row or column.
|
|
3491
|
+
* The slotted child of a cell can carry `row-span` and `column-span` (whole
|
|
3492
|
+
* numbers, default 1): its cell then also takes the positions right of it and
|
|
3493
|
+
* below it, and those positions get no cell. `cell-background` on the child
|
|
3494
|
+
* is the background colour of its cell.
|
|
3495
|
+
* @example <bn-grid row-headers='["a","b"]' column-headers='["x","y"]'>
|
|
3496
|
+
* <div slot="0-0" row-span="2" cell-background="#f2f2f2">...</div>
|
|
3497
|
+
* <div slot="0-1">...</div>
|
|
3498
|
+
* <div slot="1-1">...</div>
|
|
3499
|
+
* </bn-grid>
|
|
3368
3500
|
*/
|
|
3369
3501
|
interface BnGrid {
|
|
3370
3502
|
/**
|
|
@@ -3510,7 +3642,7 @@ declare namespace LocalJSX {
|
|
|
3510
3642
|
*/
|
|
3511
3643
|
"ruleset"?: string;
|
|
3512
3644
|
/**
|
|
3513
|
-
* Name of a registered component style (see `bn-component-style`) passed through to the inner `<bn-card>` element as its `selected-style` attribute.
|
|
3645
|
+
* Name of a registered component style (see `bn-component-style`) passed through to the inner `<bn-card>` element as its `selected-style` attribute. Its section `bn-layout-card` sets the font size of the title (`titleFontSize`, in px).
|
|
3514
3646
|
*/
|
|
3515
3647
|
"selectedStyle"?: string;
|
|
3516
3648
|
/**
|
|
@@ -3682,6 +3814,11 @@ declare namespace LocalJSX {
|
|
|
3682
3814
|
* Start date displayed in the title date row. Accepts `yyyy-MM-dd` (e.g. `2024-01-01`) or ISO 8601 datetime (e.g. `2024-01-01T14:30:00Z`).
|
|
3683
3815
|
*/
|
|
3684
3816
|
"titleDateStart"?: string;
|
|
3817
|
+
/**
|
|
3818
|
+
* Short id of the page, a template number like `13A`. Shown at the top right of the title, on the level of its first line, in the font of the title and not bold. If empty, nothing is shown.
|
|
3819
|
+
* @example <bn-layout-page title-id="13A"></bn-layout-page>
|
|
3820
|
+
*/
|
|
3821
|
+
"titleId"?: string;
|
|
3685
3822
|
/**
|
|
3686
3823
|
* Array of measure objects with `name` and `unit` displayed in the title. Passed as a JSON string. If all units are the same, redundant units are reduced and names concatenated. If empty, the measure row is omitted.
|
|
3687
3824
|
* @example <bn-layout-page title-measures='[{"name":"Revenue","unit":"mEUR"}]'></bn-layout-page>
|
|
@@ -4055,6 +4192,14 @@ declare namespace LocalJSX {
|
|
|
4055
4192
|
* Name of the component style to use (the `name` of a `<bn-component-style>`). Its values go on top of the default style.
|
|
4056
4193
|
*/
|
|
4057
4194
|
"selectedStyle"?: string;
|
|
4195
|
+
/**
|
|
4196
|
+
* Font size of the title in px. Without it the title has the font size of the style (`global.fontSizePx`).
|
|
4197
|
+
*/
|
|
4198
|
+
"titleFontSize"?: number;
|
|
4199
|
+
/**
|
|
4200
|
+
* Short id of the report, a template number like `13A`. Shown at the top right, on the level of the first title line. Without it nothing is shown.
|
|
4201
|
+
*/
|
|
4202
|
+
"titleId"?: string;
|
|
4058
4203
|
/**
|
|
4059
4204
|
* <br /> <br /> List of Variances The additonal variances which are calculated form the given scenarios. the scenarios used in the variances have also be defined in the *scenarios* property. <br /> <br /> the variance is defiend as (Scenario A - ScenarioB) neu. neg and pos post fix defines which value is *good* a negative or a positive value. <br /> <br /> if empty variance charts are hidden <br /> <br /> each variance creates a chart <br /> <br /> pattern:<br /> ```d<scenarioB>_<scenarioA>_[pos/neg/neu/op/opinv]```
|
|
4060
4205
|
*/
|
|
@@ -4212,6 +4357,8 @@ declare namespace LocalJSX {
|
|
|
4212
4357
|
"measureScale": string;
|
|
4213
4358
|
"showMeasureScale": boolean;
|
|
4214
4359
|
"measureUnit": string;
|
|
4360
|
+
"dataFormatDigitsDecimal": number;
|
|
4361
|
+
"dataFormatDigitsPercent": number;
|
|
4215
4362
|
"stack": string;
|
|
4216
4363
|
"scale": string;
|
|
4217
4364
|
}
|
|
@@ -4244,6 +4391,11 @@ declare namespace LocalJSX {
|
|
|
4244
4391
|
"showOverlayAvg": boolean;
|
|
4245
4392
|
"showOverlayMedian": boolean;
|
|
4246
4393
|
"measureUnit": string;
|
|
4394
|
+
"dataFormatDigitsDecimal": number;
|
|
4395
|
+
"dataFormatDigitsPercent": number;
|
|
4396
|
+
"axisLabelsStep": number;
|
|
4397
|
+
"scenarioSwitch": boolean;
|
|
4398
|
+
"axisTitlePosition": string;
|
|
4247
4399
|
}
|
|
4248
4400
|
interface BnChartTimeRendererAttributes {
|
|
4249
4401
|
|
|
@@ -4341,6 +4493,7 @@ declare namespace LocalJSX {
|
|
|
4341
4493
|
"ruleset": string;
|
|
4342
4494
|
"messageText": string;
|
|
4343
4495
|
"messageImage": string;
|
|
4496
|
+
"titleId": string;
|
|
4344
4497
|
"titleBusinessUnit": string;
|
|
4345
4498
|
"titleScenarios": string;
|
|
4346
4499
|
"titleVariances": string;
|
|
@@ -4442,6 +4595,8 @@ declare namespace LocalJSX {
|
|
|
4442
4595
|
"selectedStyle": string;
|
|
4443
4596
|
"i18nNamespace": string;
|
|
4444
4597
|
"ruleset": string;
|
|
4598
|
+
"titleFontSize": number;
|
|
4599
|
+
"titleId": string;
|
|
4445
4600
|
"businessUnit": string;
|
|
4446
4601
|
"scenarios": string;
|
|
4447
4602
|
"variances": string;
|
|
@@ -4519,6 +4674,9 @@ declare module "@stencil/core" {
|
|
|
4519
4674
|
* that is a finding in the data and not a broken page, so the layer does not fail.
|
|
4520
4675
|
* Place it in the `annotations` slot of `bn-layout-page`. The numbers are given,
|
|
4521
4676
|
* the layer never counts.
|
|
4677
|
+
* A target can sit anywhere in the page, also on the child of one `bn-grid`
|
|
4678
|
+
* cell or of a card in it. The mark then points at the first component in
|
|
4679
|
+
* that element.
|
|
4522
4680
|
* @example <bn-layout-page>
|
|
4523
4681
|
* <div slot="slot-0" data-bino-annotation-target="t1"><bn-chart-time ...></bn-chart-time></div>
|
|
4524
4682
|
* <bn-annotation-layer slot="annotations"
|
|
@@ -4650,6 +4808,15 @@ declare module "@stencil/core" {
|
|
|
4650
4808
|
* Supports configurable borders, title, and header visibility. Cells can
|
|
4651
4809
|
* have equal sizes, a caption, and aligned content; `baseline` lines up the
|
|
4652
4810
|
* axes of charts (and the header of tables) in a row or column.
|
|
4811
|
+
* The slotted child of a cell can carry `row-span` and `column-span` (whole
|
|
4812
|
+
* numbers, default 1): its cell then also takes the positions right of it and
|
|
4813
|
+
* below it, and those positions get no cell. `cell-background` on the child
|
|
4814
|
+
* is the background colour of its cell.
|
|
4815
|
+
* @example <bn-grid row-headers='["a","b"]' column-headers='["x","y"]'>
|
|
4816
|
+
* <div slot="0-0" row-span="2" cell-background="#f2f2f2">...</div>
|
|
4817
|
+
* <div slot="0-1">...</div>
|
|
4818
|
+
* <div slot="1-1">...</div>
|
|
4819
|
+
* </bn-grid>
|
|
4653
4820
|
*/
|
|
4654
4821
|
"bn-grid": LocalJSX.IntrinsicElements["bn-grid"] & JSXBase.HTMLAttributes<HTMLBnGridElement>;
|
|
4655
4822
|
"bn-image": LocalJSX.IntrinsicElements["bn-image"] & JSXBase.HTMLAttributes<HTMLBnImageElement>;
|
|
@@ -30,6 +30,8 @@ export interface GridStyle {
|
|
|
30
30
|
borderColor: string;
|
|
31
31
|
borderWidth: number;
|
|
32
32
|
cellPadding: number;
|
|
33
|
+
/** Background colour of every data cell. `cell-background` on the child of a cell wins. */
|
|
34
|
+
cellBackground: string;
|
|
33
35
|
/** Cell caption (`cell-captions`): font size in px. */
|
|
34
36
|
captionFontSize: number;
|
|
35
37
|
captionFontWeight: string;
|
|
@@ -37,6 +39,11 @@ export interface GridStyle {
|
|
|
37
39
|
/** Space below a cell caption, in px. */
|
|
38
40
|
captionGap: number;
|
|
39
41
|
}
|
|
42
|
+
/** Optional overrides for `bn-layout-card`. */
|
|
43
|
+
export interface LayoutCardStyle {
|
|
44
|
+
/** Font size of the card title in px. Without it the title has the font size of `global.fontSizePx`. */
|
|
45
|
+
titleFontSize?: number;
|
|
46
|
+
}
|
|
40
47
|
/** Top-level style object grouping global defaults and per-component overrides. */
|
|
41
48
|
export interface Style {
|
|
42
49
|
global: GlobalStyle;
|
|
@@ -48,6 +55,7 @@ export interface Style {
|
|
|
48
55
|
"bn-chart-bullet": BulletChartStyle;
|
|
49
56
|
"bn-tree": TreeStyle;
|
|
50
57
|
"bn-grid": GridStyle;
|
|
58
|
+
"bn-layout-card": LayoutCardStyle;
|
|
51
59
|
"bn-annotation": AnnotationStyle;
|
|
52
60
|
}
|
|
53
61
|
/** Colours of the marks of `bn-annotation-layer` and the circles of `bn-annotation-list`. */
|