@bino-bi/bn-template-engine 1.0.0-alpha.0 → 1.0.0-alpha.10
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-14318b0d.entry.js +1 -0
- package/dist/bn-template-engine/{p-c9f050bf.entry.js → p-2133e02b.entry.js} +1 -1
- package/dist/bn-template-engine/p-6b469808.entry.js +1 -0
- package/dist/bn-template-engine/p-7HSTE79g.js +1 -0
- package/dist/bn-template-engine/p-9b1288df.entry.js +1 -0
- package/dist/bn-template-engine/p-B4JfKvVT.js +1 -0
- package/dist/bn-template-engine/p-B_d-jp99.js +2 -0
- package/dist/bn-template-engine/p-Bi2wx-el.js +1 -0
- package/dist/bn-template-engine/p-CWiZks2h.js +1 -0
- package/dist/bn-template-engine/{p-BQp6ZPYW.js → p-DSXNgKLa.js} +1 -1
- package/dist/bn-template-engine/p-c2cbb8ea.entry.js +1 -0
- package/dist/bn-template-engine/p-e783733e.entry.js +1 -0
- package/dist/bn-template-engine/p-e94b4e31.entry.js +1 -0
- package/dist/bn-template-engine/p-fdb3e99a.entry.js +1 -0
- package/dist/cjs/bn-asset_21.cjs.entry.js +23906 -0
- package/dist/cjs/bn-grid.cjs.entry.js +6 -13
- package/dist/cjs/bn-image.cjs.entry.js +6 -13
- package/dist/cjs/bn-internationalization.cjs.entry.js +5 -7
- package/dist/cjs/bn-template-engine.cjs.js +2 -2
- package/dist/cjs/bn-template.cjs.entry.js +4 -6
- package/dist/cjs/bn-text.cjs.entry.js +10 -19
- package/dist/cjs/bn-tree.cjs.entry.js +11 -14
- package/dist/cjs/{context-protocol-BkYHFkXE.js → context-protocol-B_jipZpJ.js} +6 -2
- package/dist/cjs/editor-companion.cjs.entry.js +3 -3
- package/dist/cjs/{index-CScBFiS1.js → index-CDKG4xmO.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/scaling-eyzCrFB8.js +329 -0
- package/dist/cjs/{withBodyObserver-B0_W1VOf.js → withBodyObserver-D7BKWN2N.js} +2 -2
- package/dist/cjs/{withHasError-Dspb3lIV.js → withHasError-Cl2gTQzA.js} +106 -2
- package/dist/{esm/luxon-DbyXf6dF.js → cjs/withStyled-V7xz_x1c.js} +1406 -1
- package/dist/collection/collection-manifest.json +2 -10
- package/dist/collection/components/bn-body/bn-body.css +1 -0
- package/dist/collection/components/bn-card/bn-card.css +2 -0
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +368 -130
- package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +34 -10
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +94 -11
- package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +8 -6
- package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +4 -0
- package/dist/collection/components/bn-chart-time/bn-chart-time.css +1 -1
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +172 -51
- package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +22 -9
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -3
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -4
- package/dist/collection/components/bn-chart-time/utils/model/styles/TimeChartStyle.js +4 -0
- package/dist/collection/components/bn-dataset/bn-dataset.js +49 -2
- package/dist/collection/components/bn-datasource/bn-datasource.js +46 -3
- package/dist/collection/components/bn-layout-card/bn-layout-card.css +3 -2
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +207 -32
- package/dist/collection/components/bn-layout-page/bn-layout-page.css +1 -3
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +172 -43
- package/dist/collection/components/bn-message/bn-message.js +1 -1
- package/dist/collection/components/bn-page/bn-page.js +1 -1
- package/dist/collection/components/bn-scaling-group/bn-scaling-group.css +3 -0
- package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +136 -0
- package/dist/collection/components/bn-table/bn-table.js +201 -55
- package/dist/collection/components/bn-table/ibcs-table.css +7 -5
- package/dist/collection/components/bn-table/ibcs-table.js +91 -5
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +79 -31
- package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
- package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
- package/dist/collection/components/bn-template/bn-template.js +1 -1
- package/dist/collection/components/bn-text/bn-text.js +1 -1
- package/dist/collection/components/bn-title/bn-title.js +1 -9
- package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +1 -1
- package/dist/collection/components/bn-tree/bn-tree.js +5 -1
- package/dist/collection/components/editor-companion/editor-companion.js +1 -1
- package/dist/collection/stores/componentStyles.js +2 -0
- package/dist/collection/stores/createScopedStores.js +3 -1
- package/dist/collection/utils/DateStringFactory.js +0 -1
- package/dist/collection/utils/constants.js +35 -5
- package/dist/collection/utils/contentDecoder.js +28 -0
- package/dist/collection/utils/layoutObserver.js +88 -0
- package/dist/collection/utils/parentDimensions.js +57 -10
- package/dist/collection/utils/stackColors.js +2 -2
- package/dist/collection/utils/validate.js +5 -2
- package/dist/collection/utils/withInheritedProps.js +152 -0
- package/dist/collection/utils/withScalingGroup.js +66 -0
- package/dist/components/DataFormatDigits.js +1 -1
- package/dist/components/DateStringFactory.js +1 -1
- package/dist/components/Order.js +1 -1
- package/dist/components/SVGVariancesStyleGroup.js +1 -1
- package/dist/components/bn-body2.js +1 -1
- package/dist/components/bn-card2.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-dataset.js +1 -1
- package/dist/components/bn-datasource.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-message2.js +1 -1
- package/dist/components/bn-page2.js +1 -1
- package/dist/components/{test-runner-time.d.ts → bn-scaling-group.d.ts} +4 -4
- package/dist/components/bn-scaling-group.js +1 -0
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-template.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/bn-title2.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/contentDecoder.js +1 -0
- package/dist/components/context-protocol.js +1 -1
- package/dist/components/editor-companion.js +1 -1
- package/dist/components/emotion-hash.esm.js +1 -0
- 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/components/ibcsRuleSet.js +1 -1
- package/dist/components/layoutObserver.js +1 -0
- package/dist/components/scaling.js +1 -1
- package/dist/components/validate.js +1 -1
- package/dist/components/withHasError.js +1 -1
- package/dist/components/withInheritedProps.js +1 -0
- package/dist/components/withStyled.js +1 -1
- package/dist/esm/bn-asset_21.entry.js +23884 -0
- package/dist/esm/bn-grid.entry.js +4 -11
- package/dist/esm/bn-image.entry.js +4 -11
- package/dist/esm/bn-internationalization.entry.js +4 -6
- package/dist/esm/bn-template-engine.js +3 -3
- package/dist/esm/bn-template.entry.js +3 -5
- package/dist/esm/bn-text.entry.js +6 -15
- package/dist/esm/bn-tree.entry.js +9 -12
- package/dist/esm/{context-protocol-DzeqZxg6.js → context-protocol-D-o_UZ33.js} +6 -2
- package/dist/esm/editor-companion.entry.js +3 -3
- package/dist/esm/{index-B27Ax6P_.js → index-B_d-jp99.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/scaling-BzbiBnuN.js +324 -0
- package/dist/esm/{withBodyObserver-gZpZiEIK.js → withBodyObserver-AFk2wwHT.js} +2 -2
- package/dist/esm/{withHasError-C48fTE2k.js → withHasError-DW_vMDUp.js} +106 -2
- package/dist/{cjs/luxon-8hyy5YD7.js → esm/withStyled-5RqF8WBL.js} +1371 -2
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +163 -110
- package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +4 -3
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +7 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +2 -0
- package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +29 -12
- package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +4 -3
- package/dist/types/components/bn-chart-time/utils/model/styles/TimeChartStyle.d.ts +1 -0
- package/dist/types/components/bn-dataset/bn-dataset.d.ts +6 -0
- package/dist/types/components/bn-datasource/bn-datasource.d.ts +8 -0
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +153 -0
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +160 -1
- package/dist/types/components/bn-scaling-group/bn-scaling-group.d.ts +37 -0
- package/dist/types/components/bn-table/bn-table.d.ts +32 -16
- package/dist/types/components/bn-table/ibcs-table.d.ts +20 -0
- package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +1 -0
- package/dist/types/components/bn-title/bn-title.d.ts +0 -1
- package/dist/types/components.d.ts +389 -443
- package/dist/types/context/context-protocol.d.ts +2 -1
- package/dist/types/stores/componentStyles.d.ts +2 -0
- package/dist/types/stores/createScopedStores.d.ts +1 -0
- package/dist/types/utils/constants.d.ts +23 -5
- package/dist/types/utils/contentDecoder.d.ts +12 -0
- package/dist/types/utils/layoutObserver.d.ts +27 -0
- package/dist/types/utils/parentDimensions.d.ts +7 -2
- package/dist/types/utils/validate.d.ts +1 -0
- package/dist/types/utils/withInheritedProps.d.ts +38 -0
- package/dist/types/utils/withScalingGroup.d.ts +14 -0
- package/package.json +3 -3
- package/readme.md +0 -1
- package/dist/bn-template-engine/assets/gpx/Chasing_Legends.gpx +0 -195076
- package/dist/bn-template-engine/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
- package/dist/bn-template-engine/assets/icons/gpx-finish.png +0 -0
- package/dist/bn-template-engine/assets/icons/gpx-shadow.png +0 -0
- package/dist/bn-template-engine/assets/icons/gpx-start.png +0 -0
- package/dist/bn-template-engine/assets/icons/marker-example.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-icon-end.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-icon-start.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-icon-wpt.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin-shadow.png +0 -0
- package/dist/bn-template-engine/assets/icons/pin.png +0 -0
- package/dist/bn-template-engine/p--TeDldm8.js +0 -1
- package/dist/bn-template-engine/p-0e7dc113.entry.js +0 -1
- package/dist/bn-template-engine/p-1jFf17Vj.js +0 -1
- package/dist/bn-template-engine/p-264c6bad.entry.js +0 -1
- package/dist/bn-template-engine/p-326a0902.entry.js +0 -1
- package/dist/bn-template-engine/p-38a8bde3.entry.js +0 -1
- package/dist/bn-template-engine/p-577eafcd.entry.js +0 -1
- package/dist/bn-template-engine/p-5905cc43.entry.js +0 -1
- package/dist/bn-template-engine/p-5d155a72.entry.js +0 -1
- package/dist/bn-template-engine/p-65f8962a.entry.js +0 -1
- package/dist/bn-template-engine/p-6b8d1ebf.entry.js +0 -1
- package/dist/bn-template-engine/p-7995acb2.entry.js +0 -1
- package/dist/bn-template-engine/p-7afe431e.entry.js +0 -1
- package/dist/bn-template-engine/p-8014b1ac.entry.js +0 -1
- package/dist/bn-template-engine/p-80423fc8.entry.js +0 -1
- package/dist/bn-template-engine/p-91e74d42.entry.js +0 -1
- package/dist/bn-template-engine/p-930a9e29.entry.js +0 -1
- package/dist/bn-template-engine/p-93C9jL8R.js +0 -1
- package/dist/bn-template-engine/p-93ff8584.entry.js +0 -1
- package/dist/bn-template-engine/p-B0m0U4wJ.js +0 -1
- package/dist/bn-template-engine/p-B27Ax6P_.js +0 -2
- package/dist/bn-template-engine/p-B79VcHiT.js +0 -1
- package/dist/bn-template-engine/p-BBd0ZVLL.js +0 -1
- package/dist/bn-template-engine/p-BFTU3MAI.js +0 -1
- package/dist/bn-template-engine/p-BFatTBqh.js +0 -1
- package/dist/bn-template-engine/p-BYmPQYxx.js +0 -1
- package/dist/bn-template-engine/p-BhEQy-2D.js +0 -1
- package/dist/bn-template-engine/p-BtVfu16B.js +0 -1
- package/dist/bn-template-engine/p-CY1RzLjU.js +0 -1
- package/dist/bn-template-engine/p-CfWnag33.js +0 -1
- package/dist/bn-template-engine/p-CnI71OA9.js +0 -1
- package/dist/bn-template-engine/p-Cp4MVxCu.js +0 -1
- package/dist/bn-template-engine/p-DbyXf6dF.js +0 -1
- package/dist/bn-template-engine/p-TdL-LRR9.js +0 -1
- package/dist/bn-template-engine/p-_LBTIfNN.js +0 -1
- package/dist/bn-template-engine/p-a342cd3c.entry.js +0 -1
- package/dist/bn-template-engine/p-ad94cf63.entry.js +0 -1
- package/dist/bn-template-engine/p-bc37d750.entry.js +0 -1
- package/dist/bn-template-engine/p-d07a0ca3.entry.js +0 -1
- package/dist/bn-template-engine/p-e5f372af.entry.js +0 -1
- package/dist/bn-template-engine/p-e620028c.entry.js +0 -1
- package/dist/bn-template-engine/p-e81e116a.entry.js +0 -1
- package/dist/bn-template-engine/p-eca98070.entry.js +0 -1
- package/dist/bn-template-engine/p-ee6de950.entry.js +0 -1
- package/dist/bn-template-engine/p-efe0ef1e.entry.js +0 -1
- package/dist/bn-template-engine/p-f034f1b8.entry.js +0 -1
- package/dist/bn-template-engine/p-f1c1a8a3.entry.js +0 -1
- package/dist/bn-template-engine/p-fe573a1a.entry.js +0 -1
- package/dist/bn-template-engine/p-kMyLevYy.js +0 -1
- package/dist/cjs/DataFormatDigits-DmTbhF8q.js +0 -142
- package/dist/cjs/DateStringFactory-Dn0aRj2Y.js +0 -453
- package/dist/cjs/Order-B4NIqQWe.js +0 -129
- package/dist/cjs/SVGVariancesStyleGroup-Czizhngt.js +0 -7973
- package/dist/cjs/StringAdapter-0EbYMkR0.js +0 -136
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -10
- package/dist/cjs/alasql.min-C_nHTuEQ.js +0 -306
- package/dist/cjs/bn-asset.cjs.entry.js +0 -42
- package/dist/cjs/bn-body_3.cjs.entry.js +0 -413
- package/dist/cjs/bn-card.cjs.entry.js +0 -37
- package/dist/cjs/bn-chart-structure.cjs.entry.js +0 -705
- package/dist/cjs/bn-chart-time.cjs.entry.js +0 -987
- package/dist/cjs/bn-component-style.cjs.entry.js +0 -44
- package/dist/cjs/bn-context_5.cjs.entry.js +0 -3380
- package/dist/cjs/bn-dataset.cjs.entry.js +0 -278
- package/dist/cjs/bn-layout-card.cjs.entry.js +0 -128
- package/dist/cjs/bn-layout-page.cjs.entry.js +0 -142
- package/dist/cjs/bn-map.cjs.entry.js +0 -425
- package/dist/cjs/bn-message.cjs.entry.js +0 -52
- package/dist/cjs/componentRegister-C17UFNPh.js +0 -72
- package/dist/cjs/constants-DHqQXSSd.js +0 -158
- package/dist/cjs/formatter-DIJL_crx.js +0 -215
- package/dist/cjs/ibcs-chart-structure.cjs.entry.js +0 -2906
- package/dist/cjs/ibcs-chart-time.cjs.entry.js +0 -4140
- package/dist/cjs/ibcs-map.cjs.entry.js +0 -1075
- package/dist/cjs/ibcs-title.cjs.entry.js +0 -352
- package/dist/cjs/scaling-B23eOtsC.js +0 -67
- package/dist/cjs/test-runner-card.cjs.entry.js +0 -27
- package/dist/cjs/test-runner-chart-time.cjs.entry.js +0 -230
- package/dist/cjs/test-runner-chart.cjs.entry.js +0 -326
- package/dist/cjs/test-runner-map.cjs.entry.js +0 -1862
- package/dist/cjs/test-runner-table.cjs.entry.js +0 -477
- package/dist/cjs/test-runner-time.cjs.entry.js +0 -381
- package/dist/cjs/test-runner-title.cjs.entry.js +0 -115
- package/dist/cjs/withComponentStatus-BrxL7usr.js +0 -39
- package/dist/cjs/withComponentStyle-C6KHnZHt.js +0 -128
- package/dist/cjs/withDataset-ZdN-RRTx.js +0 -146
- package/dist/cjs/withStyled-Bf-stJTR.js +0 -567
- package/dist/cjs/withTranslation-Cz0M5maV.js +0 -77
- package/dist/collection/components/bn-map/bn-map.css +0 -4
- package/dist/collection/components/bn-map/bn-map.js +0 -725
- package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Chasing_Legends.gpx +0 -195076
- package/dist/collection/components/bn-map/ibcs-map/assets/gpx/Fahrt_am_Nachmittag.gpx +0 -142007
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-finish.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-shadow.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/gpx-start.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/marker-example.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-end.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-start.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-icon-wpt.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin-shadow.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/assets/icons/pin.png +0 -0
- package/dist/collection/components/bn-map/ibcs-map/ibcs-map.css +0 -674
- package/dist/collection/components/bn-map/ibcs-map/ibcs-map.js +0 -744
- package/dist/collection/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.js +0 -9
- package/dist/collection/components/bn-map/ibcs-map/utils/model/GpxLayer.js +0 -13
- package/dist/collection/components/bn-map/ibcs-map/utils/model/Marker.js +0 -11
- package/dist/collection/components/bn-map/ibcs-map/utils/model/index.js +0 -2
- package/dist/collection/test-runner/test-runner-card.js +0 -36
- package/dist/collection/test-runner/test-runner-chart-time.js +0 -234
- package/dist/collection/test-runner/test-runner-chart.js +0 -364
- package/dist/collection/test-runner/test-runner-map.js +0 -1901
- package/dist/collection/test-runner/test-runner-table.js +0 -469
- package/dist/collection/test-runner/test-runner-time.js +0 -399
- package/dist/collection/test-runner/test-runner-title.js +0 -108
- package/dist/components/bn-map.d.ts +0 -11
- package/dist/components/bn-map.js +0 -1
- package/dist/components/componentRegister.js +0 -1
- package/dist/components/ibcs-map.d.ts +0 -11
- package/dist/components/ibcs-map.js +0 -1
- package/dist/components/ibcs-map2.js +0 -1
- package/dist/components/test-runner-card.d.ts +0 -11
- package/dist/components/test-runner-card.js +0 -1
- package/dist/components/test-runner-chart-time.d.ts +0 -11
- package/dist/components/test-runner-chart-time.js +0 -1
- package/dist/components/test-runner-chart.d.ts +0 -11
- package/dist/components/test-runner-chart.js +0 -1
- package/dist/components/test-runner-map.d.ts +0 -11
- package/dist/components/test-runner-map.js +0 -1
- package/dist/components/test-runner-table.d.ts +0 -11
- package/dist/components/test-runner-table.js +0 -1
- package/dist/components/test-runner-time.js +0 -1
- package/dist/components/test-runner-title.d.ts +0 -11
- package/dist/components/test-runner-title.js +0 -1
- package/dist/components/withDataset.js +0 -1
- package/dist/esm/DataFormatDigits-Dt6gpIiZ.js +0 -137
- package/dist/esm/DateStringFactory-_Qiv0IvF.js +0 -451
- package/dist/esm/Order-B4fpLe_f.js +0 -125
- package/dist/esm/SVGVariancesStyleGroup-DlWgvpzs.js +0 -7961
- package/dist/esm/StringAdapter-BLvo1Krl.js +0 -133
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
- package/dist/esm/alasql.min-CWu4NkIt.js +0 -304
- package/dist/esm/bn-asset.entry.js +0 -40
- package/dist/esm/bn-body_3.entry.js +0 -409
- package/dist/esm/bn-card.entry.js +0 -35
- package/dist/esm/bn-chart-structure.entry.js +0 -703
- package/dist/esm/bn-chart-time.entry.js +0 -985
- package/dist/esm/bn-component-style.entry.js +0 -42
- package/dist/esm/bn-context_5.entry.js +0 -3374
- package/dist/esm/bn-dataset.entry.js +0 -276
- package/dist/esm/bn-layout-card.entry.js +0 -126
- package/dist/esm/bn-layout-page.entry.js +0 -140
- package/dist/esm/bn-map.entry.js +0 -423
- package/dist/esm/bn-message.entry.js +0 -50
- package/dist/esm/componentRegister-BtVfu16B.js +0 -72
- package/dist/esm/constants-kMyLevYy.js +0 -158
- package/dist/esm/formatter-DTMEZ6d8.js +0 -211
- package/dist/esm/ibcs-chart-structure.entry.js +0 -2904
- package/dist/esm/ibcs-chart-time.entry.js +0 -4138
- package/dist/esm/ibcs-map.entry.js +0 -1073
- package/dist/esm/ibcs-title.entry.js +0 -350
- package/dist/esm/scaling-BBd0ZVLL.js +0 -64
- package/dist/esm/test-runner-card.entry.js +0 -25
- package/dist/esm/test-runner-chart-time.entry.js +0 -228
- package/dist/esm/test-runner-chart.entry.js +0 -324
- package/dist/esm/test-runner-map.entry.js +0 -1860
- package/dist/esm/test-runner-table.entry.js +0 -475
- package/dist/esm/test-runner-time.entry.js +0 -379
- package/dist/esm/test-runner-title.entry.js +0 -113
- package/dist/esm/withComponentStatus-elELReKt.js +0 -37
- package/dist/esm/withComponentStyle-NaxfakAG.js +0 -126
- package/dist/esm/withDataset-BT2VQCsG.js +0 -144
- package/dist/esm/withStyled-CpUTv74m.js +0 -539
- package/dist/esm/withTranslation-Do4GhleK.js +0 -75
- package/dist/types/components/bn-map/bn-map.d.ts +0 -122
- package/dist/types/components/bn-map/ibcs-map/ibcs-map.d.ts +0 -73
- package/dist/types/components/bn-map/ibcs-map/utils/model/GeoJsonLayer.d.ts +0 -8
- package/dist/types/components/bn-map/ibcs-map/utils/model/GpxLayer.d.ts +0 -11
- package/dist/types/components/bn-map/ibcs-map/utils/model/Marker.d.ts +0 -9
- package/dist/types/components/bn-map/ibcs-map/utils/model/index.d.ts +0 -2
- package/dist/types/test-runner/test-runner-card.d.ts +0 -3
- package/dist/types/test-runner/test-runner-chart-time.d.ts +0 -3
- package/dist/types/test-runner/test-runner-chart.d.ts +0 -3
- package/dist/types/test-runner/test-runner-map.d.ts +0 -3
- package/dist/types/test-runner/test-runner-table.d.ts +0 -3
- package/dist/types/test-runner/test-runner-time.d.ts +0 -3
- package/dist/types/test-runner/test-runner-title.d.ts +0 -3
|
@@ -84,25 +84,34 @@ export class IbcsChartStructure {
|
|
|
84
84
|
this.chart.setPattern("fc", this.pattern.getFCPolygonPattern());
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
* Two-pass auto-fit
|
|
88
|
-
*
|
|
89
|
-
*
|
|
87
|
+
* Two-pass auto-fit for pixelPerUnit and/or pixelPerPercentage.
|
|
88
|
+
* When either is 0 (auto mode), renders a measurement pass at 1,
|
|
89
|
+
* computes the ratio to fit the available width, and rebuilds.
|
|
90
90
|
* Structure charts grow horizontally, so we fit to width.
|
|
91
|
+
* Explicit (> 0) values are never overridden.
|
|
91
92
|
*/
|
|
92
93
|
autoFitScaling(config, styles) {
|
|
93
94
|
var _a;
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
const autoUnit = config.pixelPerUnit <= 0;
|
|
96
|
+
const autoPercent = config.pixelPerPercentage <= 0;
|
|
97
|
+
if (!autoUnit && !autoPercent) {
|
|
98
|
+
return; // Both explicit — nothing to auto-fit
|
|
96
99
|
}
|
|
97
100
|
const targetWidth = (_a = this.parentDimensions) === null || _a === void 0 ? void 0 : _a.width;
|
|
98
101
|
if (!targetWidth || targetWidth <= 0) {
|
|
99
|
-
|
|
102
|
+
if (autoUnit)
|
|
103
|
+
config.pixelPerUnit = 1;
|
|
104
|
+
if (autoPercent)
|
|
105
|
+
config.pixelPerPercentage = 50;
|
|
100
106
|
this.chart = new StructureChart(new IBCSRuleSet(), config, styles);
|
|
101
107
|
this.chart.setI18n(this.i18n);
|
|
102
108
|
return;
|
|
103
109
|
}
|
|
104
|
-
// First pass
|
|
105
|
-
|
|
110
|
+
// First pass: set auto values to 1 and measure total width + bar extent
|
|
111
|
+
if (autoUnit)
|
|
112
|
+
config.pixelPerUnit = 1;
|
|
113
|
+
if (autoPercent)
|
|
114
|
+
config.pixelPerPercentage = 1;
|
|
106
115
|
this.chart = new StructureChart(new IBCSRuleSet(), config, styles);
|
|
107
116
|
this.chart.setI18n(this.i18n);
|
|
108
117
|
this.chart.toString();
|
|
@@ -110,8 +119,23 @@ export class IbcsChartStructure {
|
|
|
110
119
|
if (svgWidth <= 0) {
|
|
111
120
|
return;
|
|
112
121
|
}
|
|
113
|
-
//
|
|
114
|
-
|
|
122
|
+
// Separate fixed parts (labels, padding, spacing) from variable part (bar extent).
|
|
123
|
+
// totalWidth(ppu) = fixedWidth + maxBarValue * ppu
|
|
124
|
+
// Solving for ppu: ppu = (targetWidth - fixedWidth) / maxBarValue
|
|
125
|
+
const maxBarValue = this.chart.getMaxBarValue();
|
|
126
|
+
if (autoUnit) {
|
|
127
|
+
if (maxBarValue > 0) {
|
|
128
|
+
const fixedWidth = svgWidth - maxBarValue; // at ppu=1, barExtent = maxBarValue * 1
|
|
129
|
+
config.pixelPerUnit = Math.max(0.001, (targetWidth - fixedWidth) / maxBarValue);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
config.pixelPerUnit = (targetWidth * 0.9) / svgWidth;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (autoPercent) {
|
|
136
|
+
// Same ratio approach: scale percentage bars to fill ~90% of width
|
|
137
|
+
config.pixelPerPercentage = (targetWidth * 0.9) / svgWidth;
|
|
138
|
+
}
|
|
115
139
|
// Second pass with the corrected scaling
|
|
116
140
|
this.chart = new StructureChart(new IBCSRuleSet(), config, styles);
|
|
117
141
|
this.chart.setI18n(this.i18n);
|
|
@@ -58,6 +58,7 @@ export class StructureChart {
|
|
|
58
58
|
this.dataFormatDigits = { percent: 2, decimal: 1 };
|
|
59
59
|
this.stackConfig = null;
|
|
60
60
|
this.overflowConfig = null;
|
|
61
|
+
this.highestStackedTotal = 0;
|
|
61
62
|
this.initSQLFunctions();
|
|
62
63
|
this.ruleSet = ruleSet || new IBCSRuleSet();
|
|
63
64
|
this.i18n = this.createI18n(new Map());
|
|
@@ -96,7 +97,7 @@ export class StructureChart {
|
|
|
96
97
|
this.setData([...config.data], config.filter);
|
|
97
98
|
this.dataModel = this.populateModel(config.scenarios, config.level, config.sortOrder);
|
|
98
99
|
// Populate per-dimension stack segments when stacking by a data dimension
|
|
99
|
-
if (config.stackConfig && config.stackConfig.by !== StackBy.
|
|
100
|
+
if (config.stackConfig && config.stackConfig.by !== StackBy.SCENARIOS) {
|
|
100
101
|
this.populateDimensionStackSegments(config.scenarios, config.stackConfig, config.level);
|
|
101
102
|
}
|
|
102
103
|
this.variancesDataModel = this.populateVarianceModel(config.variances, this.dataModel);
|
|
@@ -110,6 +111,7 @@ export class StructureChart {
|
|
|
110
111
|
this.measureUnit = config.measureUnit;
|
|
111
112
|
this.dataFormatDigits = config.dataFormatDigits;
|
|
112
113
|
this.stackConfig = config.stackConfig;
|
|
114
|
+
this.highestStackedTotal = this.findHighestStackedRowTotal(this.dataModel);
|
|
113
115
|
this.updatePosition();
|
|
114
116
|
}
|
|
115
117
|
sortScenariosbyVisualisationRules(config) {
|
|
@@ -199,6 +201,30 @@ export class StructureChart {
|
|
|
199
201
|
this.preparedDataSet = data;
|
|
200
202
|
}
|
|
201
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Returns the data value whose bar extent is proportional to pixelPerUnit.
|
|
206
|
+
* Used by autoFitScaling to separate fixed vs variable width components.
|
|
207
|
+
*/
|
|
208
|
+
getMaxBarValue() {
|
|
209
|
+
var _a, _b;
|
|
210
|
+
// Stacked: bar extent = highestStackedTotal * ppu (or just ppu for relative)
|
|
211
|
+
if (this.stackConfig != null && this.highestStackedTotal > 0) {
|
|
212
|
+
if (this.stackConfig.mode === StackMode.RELATIVE) {
|
|
213
|
+
return 1;
|
|
214
|
+
}
|
|
215
|
+
return this.highestStackedTotal;
|
|
216
|
+
}
|
|
217
|
+
// Non-stacked: bar extent = highestDataPointValue * ppu
|
|
218
|
+
const vt = this.getVarianceType();
|
|
219
|
+
if (vt === VarianceType.NONE && ((_a = this.highestDataPointValue) === null || _a === void 0 ? void 0 : _a.value) != null) {
|
|
220
|
+
return Math.abs(this.highestDataPointValue.value);
|
|
221
|
+
}
|
|
222
|
+
if (vt === VarianceType.ABSOLUTE && ((_b = this.highestVarianceDataPointValue) === null || _b === void 0 ? void 0 : _b.value) != null) {
|
|
223
|
+
return Math.abs(this.highestVarianceDataPointValue.value);
|
|
224
|
+
}
|
|
225
|
+
// RELATIVE variance depends on pixelPerPercentage, not pixelPerUnit
|
|
226
|
+
return 0;
|
|
227
|
+
}
|
|
202
228
|
getAllocatedCanvasWidth() {
|
|
203
229
|
//let columnLabelWidth = this.calculateCategoryWidth();
|
|
204
230
|
const leftSideWidth = this.position.getAxisPositionX(); //this.calculateLeftSideWidth(this.getVarianceType());
|
|
@@ -449,6 +475,48 @@ export class StructureChart {
|
|
|
449
475
|
}
|
|
450
476
|
return highestDataPoint;
|
|
451
477
|
}
|
|
478
|
+
findHighestStackedRowTotal(dataModel) {
|
|
479
|
+
if (!this.stackConfig || dataModel.length === 0)
|
|
480
|
+
return 0;
|
|
481
|
+
const isScenarioStack = this.stackConfig.by === StackBy.SCENARIOS;
|
|
482
|
+
let maxTotal = 0;
|
|
483
|
+
for (const row of dataModel) {
|
|
484
|
+
let rowTotal = 0;
|
|
485
|
+
if (isScenarioStack) {
|
|
486
|
+
const scenarioKeys = ["scenario1", "scenario2", "scenario3", "scenario4"];
|
|
487
|
+
const segments = [];
|
|
488
|
+
for (const key of scenarioKeys) {
|
|
489
|
+
const dp = row[key];
|
|
490
|
+
if (dp && !dp.isEmpty() && dp.value != null) {
|
|
491
|
+
segments.push({ value: dp.value, scenario: dp.scenario });
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
const prefixes = new Set(segments.map((s) => getScenarioPrefix(s.scenario)));
|
|
495
|
+
if (prefixes.size > 1) {
|
|
496
|
+
// Overlay: groups overlap from baseline, width = max group total
|
|
497
|
+
const groupMap = new Map();
|
|
498
|
+
for (const seg of segments) {
|
|
499
|
+
const prefix = getScenarioPrefix(seg.scenario);
|
|
500
|
+
groupMap.set(prefix, (groupMap.get(prefix) || 0) + Math.abs(seg.value));
|
|
501
|
+
}
|
|
502
|
+
rowTotal = Math.max(...groupMap.values());
|
|
503
|
+
}
|
|
504
|
+
else {
|
|
505
|
+
// Single group: segments stack end-to-end, width = sum
|
|
506
|
+
rowTotal = segments.reduce((sum, s) => sum + Math.abs(s.value), 0);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
// Dimension stacking: use stackSegments
|
|
511
|
+
if (row.stackSegments && row.stackSegments.length > 0) {
|
|
512
|
+
rowTotal = row.stackSegments.reduce((sum, s) => sum + Math.abs(s.value), 0);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
if (rowTotal > maxTotal)
|
|
516
|
+
maxTotal = rowTotal;
|
|
517
|
+
}
|
|
518
|
+
return maxTotal;
|
|
519
|
+
}
|
|
452
520
|
populateVarianceModel(variancesConfig, dataModel) {
|
|
453
521
|
const varianceModel = [];
|
|
454
522
|
if (variancesConfig.length === 0) {
|
|
@@ -596,7 +664,7 @@ export class StructureChart {
|
|
|
596
664
|
if (!this.stackConfig)
|
|
597
665
|
return;
|
|
598
666
|
const stackGroup = svgContainer.group().id("StackedScenarios");
|
|
599
|
-
const isScenarioStack = this.stackConfig.by === StackBy.
|
|
667
|
+
const isScenarioStack = this.stackConfig.by === StackBy.SCENARIOS;
|
|
600
668
|
dataModel.forEach((elements, index) => {
|
|
601
669
|
const scenarioKeys = ["scenario1", "scenario2", "scenario3", "scenario4"];
|
|
602
670
|
const segments = [];
|
|
@@ -697,7 +765,7 @@ export class StructureChart {
|
|
|
697
765
|
drawStackedHeaders(dataModel, svgContainer) {
|
|
698
766
|
if (!this.stackConfig || dataModel.length === 0)
|
|
699
767
|
return;
|
|
700
|
-
const isScenarioStack = this.stackConfig.by === StackBy.
|
|
768
|
+
const isScenarioStack = this.stackConfig.by === StackBy.SCENARIOS;
|
|
701
769
|
const headerGroup = svgContainer.group().id("StackedHeaders");
|
|
702
770
|
const firstRow = dataModel[0];
|
|
703
771
|
// Dimension stacking: use stackSegments from first row for headers
|
|
@@ -832,6 +900,20 @@ export class StructureChart {
|
|
|
832
900
|
}
|
|
833
901
|
calculateRightSideWidth(varianceType) {
|
|
834
902
|
var _a, _b, _c;
|
|
903
|
+
// Stacked charts: width based on max row total, not individual max
|
|
904
|
+
if (this.stackConfig != null && this.highestStackedTotal > 0) {
|
|
905
|
+
const labelToBar = this.styles.fontStyles.size * this.styles.scaleFactors.labelToBar;
|
|
906
|
+
let barExtent;
|
|
907
|
+
if (this.stackConfig.mode === StackMode.RELATIVE) {
|
|
908
|
+
barExtent = this.pixelPerUnit;
|
|
909
|
+
}
|
|
910
|
+
else {
|
|
911
|
+
barExtent = this.highestStackedTotal * this.pixelPerUnit;
|
|
912
|
+
}
|
|
913
|
+
const sizeTotalLabel = this.calculateTextBoxWidth(this.highestStackedTotal);
|
|
914
|
+
const width = barExtent + labelToBar + sizeTotalLabel;
|
|
915
|
+
return Math.max(width, this.titleLength);
|
|
916
|
+
}
|
|
835
917
|
let width = 0;
|
|
836
918
|
const labelToBar = this.styles.fontStyles.size * this.styles.scaleFactors.labelToBar;
|
|
837
919
|
if (VarianceType.NONE === varianceType &&
|
|
@@ -861,19 +943,20 @@ export class StructureChart {
|
|
|
861
943
|
* For dimension stacking (by category, subcategory, or rowgroup), query the raw data
|
|
862
944
|
* at the stack dimension level and attach stackSegments to each dataModel row.
|
|
863
945
|
*/
|
|
864
|
-
populateDimensionStackSegments(scenarios,
|
|
946
|
+
populateDimensionStackSegments(scenarios, _stackConfig, level) {
|
|
865
947
|
var _a;
|
|
866
948
|
if (((_a = this.preparedDataSet) === null || _a === void 0 ? void 0 : _a.length) === 0 || scenarios.length === 0)
|
|
867
949
|
return;
|
|
868
|
-
//
|
|
869
|
-
const
|
|
870
|
-
[
|
|
871
|
-
[
|
|
872
|
-
[
|
|
950
|
+
// Derive stack column from level: stack by the next-lower hierarchy dimension
|
|
951
|
+
const nextLowerDimension = {
|
|
952
|
+
[AggregationLevel.ROWGROUP]: "category",
|
|
953
|
+
[AggregationLevel.ROWGROUPINDEX]: "category",
|
|
954
|
+
[AggregationLevel.CATEGORY]: "subCategory",
|
|
955
|
+
[AggregationLevel.CATEGORYINDEX]: "subCategory",
|
|
873
956
|
};
|
|
874
|
-
const stackColumn =
|
|
957
|
+
const stackColumn = nextLowerDimension[level];
|
|
875
958
|
if (!stackColumn)
|
|
876
|
-
return;
|
|
959
|
+
return; // subCategory has no lower dimension
|
|
877
960
|
// The display level column (what each bar represents)
|
|
878
961
|
const displayColumn = level.toString(); // e.g. 'rowGroup', 'category', 'subCategory'
|
|
879
962
|
const scenario = scenarios[0]; // dimension stacking uses first scenario
|
|
@@ -30,6 +30,7 @@ export class Label {
|
|
|
30
30
|
constructor(parent, xPosition, yPosition, groupPrefix, value, styles, verticalHookLocation, horizontalHookLocation) {
|
|
31
31
|
this.group = null;
|
|
32
32
|
this.segmentFillColor = null;
|
|
33
|
+
this.maxWidth = null;
|
|
33
34
|
this.ID_SCENARIOLABEL = "Label";
|
|
34
35
|
this.CSS_CATEGORIES = "categories";
|
|
35
36
|
this.x = xPosition;
|
|
@@ -57,6 +58,10 @@ export class Label {
|
|
|
57
58
|
this.segmentFillColor = color;
|
|
58
59
|
return this;
|
|
59
60
|
}
|
|
61
|
+
setMaxWidth(width) {
|
|
62
|
+
this.maxWidth = width;
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
60
65
|
updateGroup(newGroup) {
|
|
61
66
|
this.group = newGroup;
|
|
62
67
|
return this;
|
|
@@ -65,6 +70,7 @@ export class Label {
|
|
|
65
70
|
return prefix + "_" + groupPrefix + "_" + this.ID_SCENARIOLABEL;
|
|
66
71
|
}
|
|
67
72
|
draw(dataFormatDigits = { percent: 2, decimal: 1 }, measureScale = new SiPrefix()) {
|
|
73
|
+
var _a;
|
|
68
74
|
if (this.isEmpty()) {
|
|
69
75
|
return this;
|
|
70
76
|
}
|
|
@@ -102,6 +108,11 @@ export class Label {
|
|
|
102
108
|
text.move(this.x, this.y);
|
|
103
109
|
const boxWidth = text.bbox().w;
|
|
104
110
|
const boxHeight = text.bbox().h;
|
|
111
|
+
if (this.maxWidth != null && boxWidth > this.maxWidth) {
|
|
112
|
+
(_a = this.group) === null || _a === void 0 ? void 0 : _a.remove();
|
|
113
|
+
this.group = null;
|
|
114
|
+
return this;
|
|
115
|
+
}
|
|
105
116
|
if (this.horizontalHookLocation === HookLocation.Right) {
|
|
106
117
|
labelAnchor = "end";
|
|
107
118
|
text.move(text.x() - text.length(), text.y());
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HookLocation, Label } from "./Label";
|
|
2
2
|
import { SiPrefix } from "../../../../utils/model/SiPrefix";
|
|
3
3
|
import { StackMode } from "../../../../utils/constants";
|
|
4
|
-
import { getStackFill, getStackStroke } from "../../../../utils/stackColors";
|
|
5
4
|
/**
|
|
6
5
|
* Renders a single horizontal stacked bar segment for the structure chart.
|
|
7
6
|
*/
|
|
@@ -45,26 +44,29 @@ export class StackedBar {
|
|
|
45
44
|
xPos = axisX + baselinePixels;
|
|
46
45
|
}
|
|
47
46
|
const yPos = this.position.getBarPositionY(this.index, true);
|
|
48
|
-
|
|
49
|
-
const fillColor =
|
|
47
|
+
const colors = this.styles.stackColors;
|
|
48
|
+
const fillColor = colors[this.segmentIndex % colors.length];
|
|
50
49
|
const fillStyle = { color: fillColor };
|
|
51
|
-
const strokeStyle = { color:
|
|
50
|
+
const strokeStyle = { color: fillColor, width: 0.5 };
|
|
52
51
|
this.barGroup.rect(Math.max(segmentLength, 0.5), barWidth).fill(fillStyle).stroke(strokeStyle).cy(yPos).x(xPos);
|
|
53
52
|
// Draw segment value label centered on bar if wide enough
|
|
54
|
-
const
|
|
55
|
-
|
|
53
|
+
const LABEL_PADDING = 6;
|
|
54
|
+
const availableWidth = segmentLength - LABEL_PADDING;
|
|
55
|
+
if (availableWidth > 0) {
|
|
56
56
|
const labelX = xPos + segmentLength / 2;
|
|
57
57
|
if (this.stackMode === StackMode.RELATIVE || this.stackMode === StackMode.ABSOLUTE_RELATIVE) {
|
|
58
58
|
const pct = this.totalValue !== 0 ? (value / this.totalValue) * 100 : 0;
|
|
59
59
|
const labelValue = pct.toFixed(dataFormatDigits.percent) + "%";
|
|
60
60
|
new Label(this.group, labelX, yPos, "STACK_SEG", labelValue, this.styles, HookLocation.Center, HookLocation.Center)
|
|
61
61
|
.setSegmentFill(fillColor)
|
|
62
|
+
.setMaxWidth(availableWidth)
|
|
62
63
|
.draw();
|
|
63
64
|
}
|
|
64
65
|
else {
|
|
65
66
|
// Pass raw numeric value — Label.draw() formats with measureScale
|
|
66
67
|
new Label(this.group, labelX, yPos, "STACK_SEG", value, this.styles, HookLocation.Center, HookLocation.Center)
|
|
67
68
|
.setSegmentFill(fillColor)
|
|
69
|
+
.setMaxWidth(availableWidth)
|
|
68
70
|
.draw(dataFormatDigits, measureScale);
|
|
69
71
|
}
|
|
70
72
|
}
|
package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js
CHANGED
|
@@ -16,6 +16,7 @@ export class StructureChartStyle {
|
|
|
16
16
|
this.varianceStyles = varianceStyles;
|
|
17
17
|
this.padding = padding;
|
|
18
18
|
this.pattern = new Map();
|
|
19
|
+
this.stackColors = ["#000000", "#c0c0c0", "#808080"];
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
/** Adapts raw componentStyle JSON into a StructureChartStyle, falling back to defaults for missing properties. */
|
|
@@ -48,6 +49,9 @@ export class StructureChartStylesAdapter {
|
|
|
48
49
|
if (CompareUtil.isExisting(data.padding)) {
|
|
49
50
|
styles.padding = this.paddingadapter.adapt(data.padding);
|
|
50
51
|
}
|
|
52
|
+
if (Array.isArray(data.stackColors) && data.stackColors.length > 0) {
|
|
53
|
+
styles.stackColors = data.stackColors;
|
|
54
|
+
}
|
|
51
55
|
styles.pattern = new MarkerPattern(styles.fontStyles.size).createPatternMapForStructureBar();
|
|
52
56
|
}
|
|
53
57
|
return styles;
|