@bino-bi/bn-template-engine 1.0.0-next.19 → 1.0.0-next.21
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-7bdc0e28.entry.js → p-28d5c266.entry.js} +1 -1
- package/dist/bn-template-engine/{p-2e6dc267.entry.js → p-2d3ea756.entry.js} +1 -1
- package/dist/bn-template-engine/{p-9879c9b2.entry.js → p-2fba7c99.entry.js} +1 -1
- package/dist/bn-template-engine/{p-eca8e2e2.entry.js → p-6077155f.entry.js} +1 -1
- package/dist/bn-template-engine/{p-74c5a95d.entry.js → p-687032d5.entry.js} +1 -1
- package/dist/bn-template-engine/{p-22d0fb7a.entry.js → p-6c7f0076.entry.js} +1 -1
- package/dist/bn-template-engine/{p-Dg9OcXAO.js → p-6lOdN-fB.js} +1 -1
- package/dist/bn-template-engine/{p-83c71b16.entry.js → p-7e9dbc93.entry.js} +1 -1
- package/dist/bn-template-engine/{p-b25455a7.entry.js → p-99477a27.entry.js} +1 -1
- package/dist/bn-template-engine/p-A8xyE4b1.js +1 -0
- package/dist/bn-template-engine/p-BgIpdpfH.js +1 -0
- package/dist/bn-template-engine/p-BpWWgN6k.js +1 -0
- package/dist/bn-template-engine/{p-Bdfxd_Ke.js → p-C5uvAEKI.js} +1 -1
- package/dist/bn-template-engine/p-C8Q0lsaU.js +1 -0
- package/dist/bn-template-engine/{p-DY7YYmpa.js → p-C9i1Xsib.js} +1 -1
- package/dist/bn-template-engine/{p-BWKdb9ym.js → p-CJThzFZm.js} +1 -1
- package/dist/bn-template-engine/{p-rdqTC0_5.js → p-CYE0I1Mx.js} +1 -1
- package/dist/bn-template-engine/{p-X6CxL6W-.js → p-DwYUTvvI.js} +1 -1
- package/dist/bn-template-engine/{p-19bbac66.entry.js → p-a1380d7c.entry.js} +1 -1
- package/dist/bn-template-engine/{p-485d23d7.entry.js → p-a4ea9a79.entry.js} +1 -1
- package/dist/bn-template-engine/p-b5274369.entry.js +1 -0
- package/dist/bn-template-engine/{p-e96da91f.entry.js → p-b9e94127.entry.js} +1 -1
- package/dist/bn-template-engine/p-ba912130.entry.js +1 -0
- package/dist/bn-template-engine/{p-f9dfd120.entry.js → p-de29986f.entry.js} +1 -1
- package/dist/bn-template-engine/{p-BZV1b5VH.js → p-eEfqksk-.js} +1 -1
- package/dist/bn-template-engine/{p-aakBGfzL.js → p-fFtEvsY-.js} +1 -1
- package/dist/cjs/{AxisConfig-VnVelfSV.js → AxisConfig-D7CAyPLO.js} +1 -1
- package/dist/cjs/{LabelCollisionManager-nfD5P__k.js → LabelCollisionManager-DkdQ9Xdg.js} +2 -2
- package/dist/cjs/{Order-DobBozQC.js → Order-IPfAP0q8.js} +1 -1
- package/dist/cjs/{SVGStyle-BQOmGWLX.js → SVGStyle-BD8jApd4.js} +2 -2
- package/dist/cjs/{SVGVariancesStyleGroup-DCGfHrqh.js → SVGVariancesStyleGroup-BaWzR951.js} +1 -1
- package/dist/cjs/{VarianceMeasure-NY9yhiNV.js → VarianceMeasure-BBWTgv2e.js} +1 -1
- package/dist/cjs/{XYChartDataRow-B7OKrAcC.js → XYChartDataRow-BoR0CTfl.js} +4 -4
- package/dist/cjs/bn-asset_21.cjs.entry.js +93 -35
- package/dist/cjs/bn-chart-bubble.cjs.entry.js +8 -8
- package/dist/cjs/bn-chart-bullet.cjs.entry.js +7 -7
- package/dist/cjs/bn-chart-scatter.cjs.entry.js +7 -7
- 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-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-text.cjs.entry.js +5 -5
- package/dist/cjs/bn-tree.cjs.entry.js +4 -4
- package/dist/cjs/{context-protocol-BDrMkhc4.js → context-protocol-BBhT9B52.js} +9 -3
- package/dist/cjs/editor-companion.cjs.entry.js +1 -1
- package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +5 -5
- package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +5 -5
- package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +5 -5
- package/dist/cjs/{layoutObserver-o03YUfn_.js → layoutObserver-DUYYkDMQ.js} +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{scaling-DKZyjWj5.js → scaling-BIJQ2NV1.js} +4 -2
- package/dist/cjs/{withScalingGroup-BmcRlWBs.js → withScalingGroup-D5clRvRe.js} +1 -1
- package/dist/cjs/{withStyled-CRiC9fzc.js → withStyled-Cm9dWQhu.js} +34 -3
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +2 -2
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +1 -1
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +19 -2
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +2 -2
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +3 -1
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +19 -1
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +5 -0
- package/dist/collection/components/bn-context/bn-context.js +20 -1
- package/dist/collection/components/bn-grid/bn-grid.js +20 -1
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +3 -3
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +3 -3
- package/dist/collection/components/bn-table/bn-table.js +2 -2
- package/dist/collection/components/bn-table/ibcs-table.js +1 -1
- package/dist/collection/components/bn-table/utils/Table.js +0 -1
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +3 -1
- package/dist/collection/components/bn-title/bn-title.js +5 -1
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +25 -2
- package/dist/collection/components/bn-title/ibcs-title/utils/Title.js +4 -4
- package/dist/collection/components/bn-title/ibcs-title/utils/factories/TitleDataSetFactory.js +6 -2
- package/dist/collection/components/bn-title/ibcs-title/utils/model/TitleConfig.js +5 -0
- package/dist/collection/components/bn-tree/bn-tree.js +19 -0
- package/dist/collection/stores/internationalization.js +9 -3
- package/dist/collection/utils/DateStringFactory.js +31 -0
- package/dist/collection/utils/withTranslation.js +3 -1
- package/dist/components/DateStringFactory.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-context.js +1 -1
- package/dist/components/bn-grid.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-table.js +1 -1
- package/dist/components/bn-title2.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/context-protocol.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/ibcs-title2.js +1 -1
- package/dist/esm/{AxisConfig-C_zWCKlL.js → AxisConfig-ByIP5J-9.js} +1 -1
- package/dist/esm/{LabelCollisionManager-8swVQHKA.js → LabelCollisionManager-DaNiDiM9.js} +2 -2
- package/dist/esm/{Order-BPeWfygb.js → Order-BQeJE_yi.js} +1 -1
- package/dist/esm/{SVGStyle-BxEDw9zh.js → SVGStyle-BwBlY3Km.js} +2 -2
- package/dist/esm/{SVGVariancesStyleGroup-DRQYvSDD.js → SVGVariancesStyleGroup-BpGW4CvN.js} +1 -1
- package/dist/esm/{VarianceMeasure-DnwNKspZ.js → VarianceMeasure-CE3N8Bea.js} +1 -1
- package/dist/esm/{XYChartDataRow-DeV4r-Wm.js → XYChartDataRow-DeMI1JKU.js} +4 -4
- package/dist/esm/bn-asset_21.entry.js +93 -35
- package/dist/esm/bn-chart-bubble.entry.js +8 -8
- package/dist/esm/bn-chart-bullet.entry.js +7 -7
- package/dist/esm/bn-chart-scatter.entry.js +7 -7
- 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-template-engine.js +1 -1
- package/dist/esm/bn-text.entry.js +5 -5
- package/dist/esm/bn-tree.entry.js +4 -4
- package/dist/esm/{context-protocol-1Yj1uKvh.js → context-protocol-d8MHrEo8.js} +9 -3
- package/dist/esm/editor-companion.entry.js +1 -1
- package/dist/esm/ibcs-chart-bubble.entry.js +5 -5
- package/dist/esm/ibcs-chart-bullet.entry.js +5 -5
- package/dist/esm/ibcs-chart-scatter.entry.js +5 -5
- package/dist/esm/{layoutObserver-BG5dOBYH.js → layoutObserver-BJBEyhNf.js} +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{scaling-CeSRcRl1.js → scaling-BGnpSN1j.js} +4 -2
- package/dist/esm/{withScalingGroup-Br70pAv9.js → withScalingGroup-CC3UcvC5.js} +1 -1
- package/dist/esm/{withStyled-Br2DGTPs.js → withStyled-2l5Tx3cf.js} +34 -3
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +5 -0
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +5 -0
- package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +2 -0
- package/dist/types/components/bn-context/bn-context.d.ts +8 -0
- package/dist/types/components/bn-grid/bn-grid.d.ts +8 -0
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +4 -0
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +4 -0
- package/dist/types/components/bn-title/bn-title.d.ts +1 -0
- package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +2 -0
- package/dist/types/components/bn-title/ibcs-title/utils/factories/TitleDataSetFactory.d.ts +3 -1
- package/dist/types/components/bn-title/ibcs-title/utils/model/TitleConfig.d.ts +2 -0
- package/dist/types/components/bn-tree/bn-tree.d.ts +8 -0
- package/dist/types/components.d.ts +42 -4
- package/dist/types/utils/DateStringFactory.d.ts +19 -0
- package/dist/types/utils/withTranslation.d.ts +3 -1
- package/package.json +1 -1
- package/dist/bn-template-engine/p-209351c9.entry.js +0 -1
- package/dist/bn-template-engine/p-90806e7a.entry.js +0 -1
- package/dist/bn-template-engine/p-BqhIhYr1.js +0 -1
- package/dist/bn-template-engine/p-C0Pwqx-O.js +0 -1
- package/dist/bn-template-engine/p-CiudZRQr.js +0 -1
- package/dist/bn-template-engine/p-DTuaq8Pj.js +0 -1
|
@@ -142,6 +142,10 @@ export declare class LayoutPage {
|
|
|
142
142
|
* descendant component (their own `i18n-namespace` wins). Reflected so
|
|
143
143
|
* descendants can resolve it from the `i18n-namespace` attribute. Takes
|
|
144
144
|
* precedence over the deprecated `titleNamespace`.
|
|
145
|
+
*
|
|
146
|
+
* The attribute name is pinned: Stencil's default dash-casing would turn
|
|
147
|
+
* `i18nNamespace` into `i-1-8n-namespace`, which `findAncestorWithAttr` does
|
|
148
|
+
* not match, silently breaking inheritance for anyone setting the property.
|
|
145
149
|
*/
|
|
146
150
|
i18nNamespace: string;
|
|
147
151
|
/**
|
|
@@ -14,6 +14,8 @@ export declare class IbcsTitle {
|
|
|
14
14
|
order: Order;
|
|
15
15
|
i18n: Map<string, string>;
|
|
16
16
|
i18nMode: I18nMode;
|
|
17
|
+
/** Locale used to format the date-link labels (e.g. "en", "de"). */
|
|
18
|
+
locale: string;
|
|
17
19
|
ruleSetConfig?: RuleSetConfig;
|
|
18
20
|
private title;
|
|
19
21
|
render(): any;
|
|
@@ -20,7 +20,9 @@ export declare class TitleDataSetFactory implements Formatter {
|
|
|
20
20
|
* @param time
|
|
21
21
|
* @param order
|
|
22
22
|
* @param i18n
|
|
23
|
+
* @param spanLimit
|
|
24
|
+
* @param locale Locale used to format the date-link labels.
|
|
23
25
|
*/
|
|
24
|
-
createDimension(scenarios: string[], time: TimePeriod | undefined, order: Order | null | undefined, i18n: Map<string, string>, spanLimit: number): string;
|
|
26
|
+
createDimension(scenarios: string[], time: TimePeriod | undefined, order: Order | null | undefined, i18n: Map<string, string>, spanLimit: number, locale?: string): string;
|
|
25
27
|
private allMeasuresUseSameUnit;
|
|
26
28
|
}
|
|
@@ -12,6 +12,8 @@ export declare class TitleConfig {
|
|
|
12
12
|
i18nMode: I18nMode;
|
|
13
13
|
order?: Order | undefined;
|
|
14
14
|
intervalSpanLimit: number;
|
|
15
|
+
/** Locale used for the date-link labels; set from the bn-context locale. */
|
|
16
|
+
locale: string;
|
|
15
17
|
constructor();
|
|
16
18
|
}
|
|
17
19
|
export declare class TitleConifgAdapter implements IAdapter<TitleConfig> {
|
|
@@ -59,6 +59,14 @@ export declare class ChartTree {
|
|
|
59
59
|
* - 'curved': smooth bezier curves
|
|
60
60
|
*/
|
|
61
61
|
edgeStyle: EdgeStyleType;
|
|
62
|
+
/**
|
|
63
|
+
* I18n namespace inherited by this tree's children (their own namespace
|
|
64
|
+
* wins). Resolved at runtime from the `i18n-namespace` attribute by the
|
|
65
|
+
* nearest ancestor lookup in `withTranslation`; the tree renders no
|
|
66
|
+
* translated text itself. Declared so the attribute is part of the typed
|
|
67
|
+
* public API rather than a bare DOM attribute.
|
|
68
|
+
*/
|
|
69
|
+
i18nNamespace: string;
|
|
62
70
|
validateEdgeStyle(newValue: string): void;
|
|
63
71
|
/**
|
|
64
72
|
* Show operator labels between sibling nodes.
|
|
@@ -557,6 +557,10 @@ export namespace Components {
|
|
|
557
557
|
"name": string;
|
|
558
558
|
}
|
|
559
559
|
interface BnContext {
|
|
560
|
+
/**
|
|
561
|
+
* Default i18n namespace for every component inside this context. Resolved at runtime from the `i18n-namespace` attribute by the nearest ancestor lookup in `withTranslation`; a namespace set on a page, card, tree, grid, or the component itself wins. Declared so the attribute is part of the typed public API rather than a bare DOM attribute.
|
|
562
|
+
*/
|
|
563
|
+
"i18nNamespace": string;
|
|
560
564
|
"locale": string;
|
|
561
565
|
}
|
|
562
566
|
/**
|
|
@@ -666,6 +670,10 @@ export namespace Components {
|
|
|
666
670
|
* @default "[]"
|
|
667
671
|
*/
|
|
668
672
|
"columnHeaders": string;
|
|
673
|
+
/**
|
|
674
|
+
* I18n namespace inherited by this grid's children (their own namespace wins). Resolved at runtime from the `i18n-namespace` attribute by the nearest ancestor lookup in `withTranslation`; the grid renders no translated text itself. Declared so the attribute is part of the typed public API rather than a bare DOM attribute.
|
|
675
|
+
*/
|
|
676
|
+
"i18nNamespace": string;
|
|
669
677
|
/**
|
|
670
678
|
* Width of row header column. Accepts CSS values (e.g., 'auto', '100px', '20%').
|
|
671
679
|
* @default "auto"
|
|
@@ -750,7 +758,7 @@ export namespace Components {
|
|
|
750
758
|
"footerText"?: string;
|
|
751
759
|
"getNumberOfSlot": (name: string) => Promise<number>;
|
|
752
760
|
/**
|
|
753
|
-
* I18n namespace for this card's title and, via default inheritance, every descendant component (their own `i18n-namespace` wins). Reflected so descendants can resolve it from the `i18n-namespace` attribute. Takes precedence over the deprecated `titleNamespace`.
|
|
761
|
+
* I18n namespace for this card's title and, via default inheritance, every descendant component (their own `i18n-namespace` wins). Reflected so descendants can resolve it from the `i18n-namespace` attribute. Takes precedence over the deprecated `titleNamespace`. The attribute name is pinned: Stencil's default dash-casing would turn `i18nNamespace` into `i-1-8n-namespace`, which `findAncestorWithAttr` does not match, silently breaking inheritance for anyone setting the property.
|
|
754
762
|
*/
|
|
755
763
|
"i18nNamespace": string;
|
|
756
764
|
/**
|
|
@@ -836,7 +844,7 @@ export namespace Components {
|
|
|
836
844
|
"footerText"?: string;
|
|
837
845
|
"getNumberOfSlot": (name: string) => Promise<number>;
|
|
838
846
|
/**
|
|
839
|
-
* I18n namespace for this page's title and, via default inheritance, every descendant component (their own `i18n-namespace` wins). Reflected so descendants can resolve it from the `i18n-namespace` attribute. Takes precedence over the deprecated `titleNamespace`.
|
|
847
|
+
* I18n namespace for this page's title and, via default inheritance, every descendant component (their own `i18n-namespace` wins). Reflected so descendants can resolve it from the `i18n-namespace` attribute. Takes precedence over the deprecated `titleNamespace`. The attribute name is pinned: Stencil's default dash-casing would turn `i18nNamespace` into `i-1-8n-namespace`, which `findAncestorWithAttr` does not match, silently breaking inheritance for anyone setting the property.
|
|
840
848
|
*/
|
|
841
849
|
"i18nNamespace": string;
|
|
842
850
|
/**
|
|
@@ -1267,6 +1275,10 @@ export namespace Components {
|
|
|
1267
1275
|
* JSON string defining connections between nodes. Each edge specifies a source (from) and target (to) node ID, with optional operator and styling. Example: ```json [ {"from":"roi","to":"ros","operator":"x"}, {"from":"roi","to":"capital-turnover"} ] ```
|
|
1268
1276
|
*/
|
|
1269
1277
|
"edges": string;
|
|
1278
|
+
/**
|
|
1279
|
+
* I18n namespace inherited by this tree's children (their own namespace wins). Resolved at runtime from the `i18n-namespace` attribute by the nearest ancestor lookup in `withTranslation`; the tree renders no translated text itself. Declared so the attribute is part of the typed public API rather than a bare DOM attribute.
|
|
1280
|
+
*/
|
|
1281
|
+
"i18nNamespace": string;
|
|
1270
1282
|
/**
|
|
1271
1283
|
* Spacing between hierarchy levels in pixels.
|
|
1272
1284
|
* @default 60
|
|
@@ -1871,6 +1883,11 @@ export namespace Components {
|
|
|
1871
1883
|
* @default 28
|
|
1872
1884
|
*/
|
|
1873
1885
|
"intervalSpanLimit": number;
|
|
1886
|
+
/**
|
|
1887
|
+
* Locale used to format the date-link labels (e.g. "en", "de").
|
|
1888
|
+
* @default "de"
|
|
1889
|
+
*/
|
|
1890
|
+
"locale": string;
|
|
1874
1891
|
/**
|
|
1875
1892
|
* @default []
|
|
1876
1893
|
*/
|
|
@@ -2791,6 +2808,10 @@ declare namespace LocalJSX {
|
|
|
2791
2808
|
"name"?: string;
|
|
2792
2809
|
}
|
|
2793
2810
|
interface BnContext {
|
|
2811
|
+
/**
|
|
2812
|
+
* Default i18n namespace for every component inside this context. Resolved at runtime from the `i18n-namespace` attribute by the nearest ancestor lookup in `withTranslation`; a namespace set on a page, card, tree, grid, or the component itself wins. Declared so the attribute is part of the typed public API rather than a bare DOM attribute.
|
|
2813
|
+
*/
|
|
2814
|
+
"i18nNamespace"?: string;
|
|
2794
2815
|
"locale"?: string;
|
|
2795
2816
|
}
|
|
2796
2817
|
/**
|
|
@@ -2900,6 +2921,10 @@ declare namespace LocalJSX {
|
|
|
2900
2921
|
* @default "[]"
|
|
2901
2922
|
*/
|
|
2902
2923
|
"columnHeaders"?: string;
|
|
2924
|
+
/**
|
|
2925
|
+
* I18n namespace inherited by this grid's children (their own namespace wins). Resolved at runtime from the `i18n-namespace` attribute by the nearest ancestor lookup in `withTranslation`; the grid renders no translated text itself. Declared so the attribute is part of the typed public API rather than a bare DOM attribute.
|
|
2926
|
+
*/
|
|
2927
|
+
"i18nNamespace"?: string;
|
|
2903
2928
|
/**
|
|
2904
2929
|
* Width of row header column. Accepts CSS values (e.g., 'auto', '100px', '20%').
|
|
2905
2930
|
* @default "auto"
|
|
@@ -2983,7 +3008,7 @@ declare namespace LocalJSX {
|
|
|
2983
3008
|
*/
|
|
2984
3009
|
"footerText"?: string;
|
|
2985
3010
|
/**
|
|
2986
|
-
* I18n namespace for this card's title and, via default inheritance, every descendant component (their own `i18n-namespace` wins). Reflected so descendants can resolve it from the `i18n-namespace` attribute. Takes precedence over the deprecated `titleNamespace`.
|
|
3011
|
+
* I18n namespace for this card's title and, via default inheritance, every descendant component (their own `i18n-namespace` wins). Reflected so descendants can resolve it from the `i18n-namespace` attribute. Takes precedence over the deprecated `titleNamespace`. The attribute name is pinned: Stencil's default dash-casing would turn `i18nNamespace` into `i-1-8n-namespace`, which `findAncestorWithAttr` does not match, silently breaking inheritance for anyone setting the property.
|
|
2987
3012
|
*/
|
|
2988
3013
|
"i18nNamespace"?: string;
|
|
2989
3014
|
/**
|
|
@@ -3068,7 +3093,7 @@ declare namespace LocalJSX {
|
|
|
3068
3093
|
*/
|
|
3069
3094
|
"footerText"?: string;
|
|
3070
3095
|
/**
|
|
3071
|
-
* I18n namespace for this page's title and, via default inheritance, every descendant component (their own `i18n-namespace` wins). Reflected so descendants can resolve it from the `i18n-namespace` attribute. Takes precedence over the deprecated `titleNamespace`.
|
|
3096
|
+
* I18n namespace for this page's title and, via default inheritance, every descendant component (their own `i18n-namespace` wins). Reflected so descendants can resolve it from the `i18n-namespace` attribute. Takes precedence over the deprecated `titleNamespace`. The attribute name is pinned: Stencil's default dash-casing would turn `i18nNamespace` into `i-1-8n-namespace`, which `findAncestorWithAttr` does not match, silently breaking inheritance for anyone setting the property.
|
|
3072
3097
|
*/
|
|
3073
3098
|
"i18nNamespace"?: string;
|
|
3074
3099
|
/**
|
|
@@ -3499,6 +3524,10 @@ declare namespace LocalJSX {
|
|
|
3499
3524
|
* JSON string defining connections between nodes. Each edge specifies a source (from) and target (to) node ID, with optional operator and styling. Example: ```json [ {"from":"roi","to":"ros","operator":"x"}, {"from":"roi","to":"capital-turnover"} ] ```
|
|
3500
3525
|
*/
|
|
3501
3526
|
"edges": string;
|
|
3527
|
+
/**
|
|
3528
|
+
* I18n namespace inherited by this tree's children (their own namespace wins). Resolved at runtime from the `i18n-namespace` attribute by the nearest ancestor lookup in `withTranslation`; the tree renders no translated text itself. Declared so the attribute is part of the typed public API rather than a bare DOM attribute.
|
|
3529
|
+
*/
|
|
3530
|
+
"i18nNamespace"?: string;
|
|
3502
3531
|
/**
|
|
3503
3532
|
* Spacing between hierarchy levels in pixels.
|
|
3504
3533
|
* @default 60
|
|
@@ -4100,6 +4129,11 @@ declare namespace LocalJSX {
|
|
|
4100
4129
|
* @default 28
|
|
4101
4130
|
*/
|
|
4102
4131
|
"intervalSpanLimit"?: number;
|
|
4132
|
+
/**
|
|
4133
|
+
* Locale used to format the date-link labels (e.g. "en", "de").
|
|
4134
|
+
* @default "de"
|
|
4135
|
+
*/
|
|
4136
|
+
"locale"?: string;
|
|
4103
4137
|
/**
|
|
4104
4138
|
* @default []
|
|
4105
4139
|
*/
|
|
@@ -4221,6 +4255,7 @@ declare namespace LocalJSX {
|
|
|
4221
4255
|
}
|
|
4222
4256
|
interface BnContextAttributes {
|
|
4223
4257
|
"locale": string;
|
|
4258
|
+
"i18nNamespace": string;
|
|
4224
4259
|
}
|
|
4225
4260
|
interface BnDatasetAttributes {
|
|
4226
4261
|
"name": string;
|
|
@@ -4246,6 +4281,7 @@ declare namespace LocalJSX {
|
|
|
4246
4281
|
"columnHeaders": string;
|
|
4247
4282
|
"showRowHeaders": string;
|
|
4248
4283
|
"showColumnHeaders": string;
|
|
4284
|
+
"i18nNamespace": string;
|
|
4249
4285
|
"showBorders": string;
|
|
4250
4286
|
"rowHeaderWidth": string;
|
|
4251
4287
|
"cellGap": string;
|
|
@@ -4402,6 +4438,7 @@ declare namespace LocalJSX {
|
|
|
4402
4438
|
"levelSpacing": number;
|
|
4403
4439
|
"nodeSpacing": number;
|
|
4404
4440
|
"edgeStyle": EdgeStyleType;
|
|
4441
|
+
"i18nNamespace": string;
|
|
4405
4442
|
"showOperators": string;
|
|
4406
4443
|
}
|
|
4407
4444
|
interface IbcsChartBubbleAttributes {
|
|
@@ -4504,6 +4541,7 @@ declare namespace LocalJSX {
|
|
|
4504
4541
|
"businessUnit": string;
|
|
4505
4542
|
"intervalSpanLimit": number;
|
|
4506
4543
|
"i18nMode": I18nMode;
|
|
4544
|
+
"locale": string;
|
|
4507
4545
|
}
|
|
4508
4546
|
|
|
4509
4547
|
interface IntrinsicElements {
|
|
@@ -39,14 +39,33 @@ export declare class DateStringFactory {
|
|
|
39
39
|
private readonly _dateFormat;
|
|
40
40
|
private readonly _dateFormatShort;
|
|
41
41
|
private readonly _dateLinkFormat;
|
|
42
|
+
/**
|
|
43
|
+
* Per-locale overrides for the patterns whose literals are language-specific.
|
|
44
|
+
*
|
|
45
|
+
* The base maps above are German (`KW` = Kalenderwoche, `dd.MM.yyyy`); a
|
|
46
|
+
* locale listed here replaces only the entries it names. Locales that are not
|
|
47
|
+
* listed keep the base patterns, so adding a bundle never silently reformats
|
|
48
|
+
* existing reports. Luxon's `LLL` (month) and `q` (quarter) tokens are already
|
|
49
|
+
* locale-aware through `setLocale`, so they need no override.
|
|
50
|
+
*/
|
|
51
|
+
private static readonly LOCALE_DATE_FORMAT;
|
|
52
|
+
private static readonly LOCALE_DATE_FORMAT_SHORT;
|
|
42
53
|
private dateFormat;
|
|
43
54
|
private dateLinkFormat;
|
|
44
55
|
private dateFormatShort;
|
|
45
56
|
private locale;
|
|
57
|
+
/** Set once a caller supplies an explicit map, so `setLocale` stops overwriting it. */
|
|
58
|
+
private dateFormatPinned;
|
|
59
|
+
private dateFormatShortPinned;
|
|
46
60
|
constructor();
|
|
47
61
|
setDateLinkFormat(datelink: DateLinkFormat): void;
|
|
48
62
|
setDateFormat(dateFormat: DateFormat): void;
|
|
49
63
|
setDateFormatShort(dateFormatShort: DateFormat): void;
|
|
64
|
+
/**
|
|
65
|
+
* Selects the locale used for Luxon's localized tokens and swaps in the
|
|
66
|
+
* locale's pattern overrides. An explicit `setDateFormat` /
|
|
67
|
+
* `setDateFormatShort` always wins, whatever the call order.
|
|
68
|
+
*/
|
|
50
69
|
setLocale(locale: string): void;
|
|
51
70
|
/**
|
|
52
71
|
* Converts date string based on dateFormatMap and the selected Type
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
* the key itself is returned.
|
|
22
22
|
*
|
|
23
23
|
* **Mustache-style interpolation:** `{{variable}}` placeholders in translation
|
|
24
|
-
* templates are replaced with values from the optional `data` object.
|
|
24
|
+
* templates are replaced with values from the optional `data` object. The
|
|
25
|
+
* separate `{%}` scenario token used by the variance symbols is substituted
|
|
26
|
+
* later, by `Formatter.translateScenarioLabel`.
|
|
25
27
|
*
|
|
26
28
|
* @param component - The Stencil component instance
|
|
27
29
|
* @returns Object containing the `t` translation function
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,H as r,g as s}from"./p-B_d-jp99.js";import{e as i,w as o,b as n}from"./p-C0Pwqx-O.js";import{w as a,a as d}from"./p-B4JfKvVT.js";import"./p-BqhIhYr1.js";import"./p-BZV1b5VH.js";import"./p-Bdfxd_Ke.js";function l(e){if(!e||""===e.trim()||"[]"===e)return[];try{const t=JSON.parse(e);return Array.isArray(t)?t.map(((e,t)=>{var r,s,i;return"string"==typeof e?{label:e,id:String(t)}:"object"==typeof e&&null!==e?{label:null!==(s=null!==(r=e.label)&&void 0!==r?r:e.name)&&void 0!==s?s:String(t),id:null!==(i=e.id)&&void 0!==i?i:String(t)}:{label:String(e),id:String(t)}})):[]}catch(e){return console.error("parseHeaders: failed to parse JSON",e),[]}}function h(e){if(!e||""===e.trim()||"[]"===e)return[];try{const t=JSON.parse(e);if(!Array.isArray(t))return["Headers must be an array"];const r=[],s=new Set;return t.forEach(((e,t)=>{"object"==typeof e&&null!==e&&void 0!==e.id&&("string"!=typeof e.id?r.push(`Header[${t}]: 'id' must be a string`):s.has(e.id)?r.push(`Header[${t}]: duplicate id '${e.id}'`):s.add(e.id),void 0!==e.label&&"string"!=typeof e.label&&r.push(`Header[${t}]: 'label' must be a string`))})),r}catch(e){return console.error("validateHeadersJson: failed to parse JSON",e),["Invalid JSON structure"]}}const u=class{validateRowHeaders(e){const t="ERR_rowHeaders",r=h(e);r.length>0?this.errors.addOrReplace({id:t,type:"error",message:`row-headers: ${r.join("; ")}`}):this.errors.remove(t),this.updateGridConfig()}validateColumnHeaders(e){const t="ERR_columnHeaders",r=h(e);r.length>0?this.errors.addOrReplace({id:t,type:"error",message:`column-headers: ${r.join("; ")}`}):this.errors.remove(t),this.updateGridConfig()}validateShowRowHeaders(e){const t="ERR_showRowHeaders";i(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:`show-row-headers: invalid value '${e}', must be 'true' or 'false'`})}validateShowColumnHeaders(e){const t="ERR_showColumnHeaders";i(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:`show-column-headers: invalid value '${e}', must be 'true' or 'false'`})}validateShowBorders(e){const t="ERR_showBorders";i(e)?this.errors.remove(t):this.errors.addOrReplace({id:t,type:"warning",message:`show-borders: invalid value '${e}', must be 'true' or 'false'`})}constructor(t){e(this,t),this.gridConfig={rows:[],columns:[]},this.chartTitle="",this.rowHeaders="[]",this.columnHeaders="[]",this.showRowHeaders="true",this.showColumnHeaders="true",this.showBorders="true",this.rowHeaderWidth="auto",this.cellGap="0px",o(this),a(this),this.errors=d(this),this.componentStyle=n(this)}getGridStyle(){return this.componentStyle((e=>e["bn-grid"]))}componentWillLoad(){this.validateRowHeaders(this.rowHeaders),this.validateColumnHeaders(this.columnHeaders),this.validateShowRowHeaders(this.showRowHeaders),this.validateShowColumnHeaders(this.showColumnHeaders),this.validateShowBorders(this.showBorders)}updateGridConfig(){var e;this.gridConfig=(e=this.columnHeaders,{rows:l(this.rowHeaders),columns:l(e)})}shouldShowRowHeaders(){return"true"===this.showRowHeaders&&this.gridConfig.rows.length>0}shouldShowColumnHeaders(){return"true"===this.showColumnHeaders&&this.gridConfig.columns.length>0}shouldShowBorders(){return"true"===this.showBorders}getGridTemplateColumns(){const e=[];this.shouldShowRowHeaders()&&e.push(this.rowHeaderWidth);const t=this.gridConfig.columns.length||1;for(let r=0;r<t;r++)e.push("auto");return e.join(" ")}getGridTemplateRows(){const e=[];this.chartTitle&&e.push("auto"),this.shouldShowColumnHeaders()&&e.push("auto");const t=this.gridConfig.rows.length||1;for(let r=0;r<t;r++)e.push("auto");return e.join(" ")}renderTitle(){if(!this.chartTitle)return null;const e=(this.shouldShowRowHeaders()?1:0)+this.gridConfig.columns.length;return t("div",{class:"grid-title",style:{"grid-column":`1 / span ${e}`,"grid-row":"1"}},this.chartTitle)}renderColumnHeaders(){if(!this.shouldShowColumnHeaders())return null;const e=this.getGridStyle(),r=this.shouldShowBorders()?`${e.borderWidth}px solid ${e.borderColor}`:"none",s=this.shouldShowRowHeaders()?2:1,i=this.chartTitle?2:1;return this.gridConfig.columns.map(((o,n)=>{const a=n>0;return t("div",{key:`col-header-${o.id}`,class:"grid-header grid-header-col",style:{"grid-column":String(s+n),"grid-row":String(i),"border-left":a?r:"none",padding:`${e.cellPadding}px`,"padding-left":a?`${e.cellPadding+4}px`:`${e.cellPadding}px`}},o.label)}))}renderDataCells(){const e=this.getGridStyle(),r=this.shouldShowBorders()?`${e.borderWidth}px solid ${e.borderColor}`:"none",s=this.shouldShowRowHeaders()?2:1,i=(this.chartTitle?1:0)+(this.shouldShowColumnHeaders()?1:0)+1,o=[];return this.gridConfig.rows.length>0&&this.gridConfig.columns.length>0&&this.gridConfig.rows.forEach(((n,a)=>{if(this.shouldShowRowHeaders()){const s=a>0;o.push(t("div",{key:`row-header-${n.id}`,class:"grid-header grid-header-row",style:{"grid-column":"1","grid-row":String(i+a),"border-top":s?r:"none",padding:`${e.cellPadding}px`,"padding-top":s?`${e.cellPadding+4}px`:`${e.cellPadding}px`}},n.label))}this.gridConfig.columns.forEach(((d,l)=>{const h=function(e,t){return`${e.id}-${t.id}`}(n,d),u=l>0,c=a>0;o.push(t("div",{key:`cell-${h}`,class:"grid-cell",style:{"grid-column":String(s+l),"grid-row":String(i+a),"border-left":u?r:"none","border-top":c?r:"none","padding-left":u?`${e.cellPadding+4}px`:"0","padding-top":c?`${e.cellPadding+4}px`:"0"}},t("slot",{name:h})))}))})),o}getFontStyles(){return this.componentStyle((e=>{var t,r,s,i;return{"--bn-font-family":(null===(t=e.global)||void 0===t?void 0:t.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(r=e.global)||void 0===r?void 0:r.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(s=e.global)||void 0===s?void 0:s.fontColor)||"#000000","--bn-font-background":(null===(i=e.global)||void 0===i?void 0:i.fontBackgroundColor)||"#ffffff"}}))}render(){const e={display:"inline-grid","grid-template-columns":this.getGridTemplateColumns(),"grid-template-rows":this.getGridTemplateRows(),gap:this.cellGap};return t(r,{key:"05d4b729414b87446a98ea2f98552e8c17e3f4e1",style:this.getFontStyles()},t("div",{key:"dd2325babb734553c8661e2e18c0ab12f59e0c9f",class:"grid-container",style:e},this.renderTitle(),this.renderColumnHeaders(),this.renderDataCells()),t("slot",{key:"30cab0c8effc88704e781ff48e9295aa3cc9c954"}))}get element(){return s(this)}static get watchers(){return{rowHeaders:[{validateRowHeaders:0}],columnHeaders:[{validateColumnHeaders:0}],showRowHeaders:[{validateShowRowHeaders:0}],showColumnHeaders:[{validateShowColumnHeaders:0}],showBorders:[{validateShowBorders:0}]}}};u.style=':host{display:inline-block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.grid-container{display:inline-grid;box-sizing:border-box}.grid-title{font-weight:normal;padding-bottom:8px}.grid-header{display:flex;align-items:flex-end;box-sizing:border-box}.grid-header-row{justify-content:flex-end;padding-right:8px}.grid-header-col{white-space:nowrap;justify-content:flex-start}.grid-cell{position:relative;box-sizing:border-box}';export{u as bn_grid}
|