@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
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
1
|
+
import { forceUpdate, h, Host, writeTask } from "@stencil/core";
|
|
2
2
|
import { isBlankInput, isValidBoolean, isValidDirection, isValidInteger, isValidLevel, isValidMeasureScale, isValidNumber, validateOrderList, validateScenarioList, validateStackConfig, validateVariancesList, } from "../../utils/validate";
|
|
3
3
|
import withDataset from "../../utils/withDataset";
|
|
4
4
|
import withComponentStatus from "../../utils/withComponentStatus";
|
|
5
5
|
import withTranslation from "../../utils/withTranslation";
|
|
6
|
+
import withScalingGroup from "../../utils/withScalingGroup";
|
|
6
7
|
import { globalLabelKeys } from "../../stores/internationalization";
|
|
7
8
|
import { withStyled } from "../../utils/styled/withStyled";
|
|
8
9
|
import withComponentStyle from "../../utils/withComponentStyle";
|
|
9
10
|
import withHasError from "../../utils/withHasError";
|
|
11
|
+
import withInheritedProps, { isInheritedValue } from "../../utils/withInheritedProps";
|
|
10
12
|
import { getParentDimensions } from "../../utils/parentDimensions";
|
|
11
13
|
import { parseScaling } from "../../utils/scaling";
|
|
12
|
-
import {
|
|
14
|
+
import { observeParentResize } from "../../utils/layoutObserver";
|
|
15
|
+
import { AggregationLevel, StackBy, StackMode, StackOrder } from "../../utils/constants";
|
|
13
16
|
import { OrderColumn, OrderDirection } from "../../utils/model/Order";
|
|
14
17
|
/**
|
|
15
18
|
* SVG structure (categorical) bar chart following IBCS standards.
|
|
@@ -23,8 +26,12 @@ import { OrderColumn, OrderDirection } from "../../utils/model/Order";
|
|
|
23
26
|
*/
|
|
24
27
|
export class Chart {
|
|
25
28
|
validateScenario(newValue) {
|
|
26
|
-
const invalidScenarios = validateScenarioList(newValue);
|
|
27
29
|
const errId = "ERR_scenarios";
|
|
30
|
+
if (isInheritedValue(newValue)) {
|
|
31
|
+
this.errors.remove(errId);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const invalidScenarios = validateScenarioList(newValue);
|
|
28
35
|
if (invalidScenarios.length > 0) {
|
|
29
36
|
this.errors.addOrReplace({
|
|
30
37
|
id: errId,
|
|
@@ -38,6 +45,10 @@ export class Chart {
|
|
|
38
45
|
}
|
|
39
46
|
validateVariances(newValue) {
|
|
40
47
|
const errIdVar = "ERR_variances";
|
|
48
|
+
if (isInheritedValue(newValue)) {
|
|
49
|
+
this.errors.remove(errIdVar);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
41
52
|
const invalidVariances = validateVariancesList(newValue);
|
|
42
53
|
if (invalidVariances.length > 0) {
|
|
43
54
|
this.errors.addOrReplace({
|
|
@@ -52,7 +63,8 @@ export class Chart {
|
|
|
52
63
|
}
|
|
53
64
|
validateUnitScaling(newValue) {
|
|
54
65
|
const errId = "ERR_unitScaling";
|
|
55
|
-
|
|
66
|
+
const isAuto = (newValue === null || newValue === void 0 ? void 0 : newValue.toString().trim().toLowerCase()) === "auto";
|
|
67
|
+
if (!isAuto && !isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
|
|
56
68
|
this.errors.addOrReplace({
|
|
57
69
|
id: errId,
|
|
58
70
|
type: "warning",
|
|
@@ -65,7 +77,8 @@ export class Chart {
|
|
|
65
77
|
}
|
|
66
78
|
validatePercentageScaling(newValue) {
|
|
67
79
|
const errId = "ERR_percentageScaling";
|
|
68
|
-
|
|
80
|
+
const isAuto = (newValue === null || newValue === void 0 ? void 0 : newValue.toString().trim().toLowerCase()) === "auto";
|
|
81
|
+
if (!isAuto && !isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
|
|
69
82
|
this.errors.addOrReplace({
|
|
70
83
|
id: errId,
|
|
71
84
|
type: "warning",
|
|
@@ -90,8 +103,12 @@ export class Chart {
|
|
|
90
103
|
}
|
|
91
104
|
}
|
|
92
105
|
validateOrderList(newValue) {
|
|
93
|
-
const invalidElements = validateOrderList(newValue);
|
|
94
106
|
const errId = "ERR_order";
|
|
107
|
+
if (isInheritedValue(newValue)) {
|
|
108
|
+
this.errors.remove(errId);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const invalidElements = validateOrderList(newValue);
|
|
95
112
|
if (invalidElements.length > 0) {
|
|
96
113
|
this.errors.addOrReplace({
|
|
97
114
|
id: errId,
|
|
@@ -105,6 +122,10 @@ export class Chart {
|
|
|
105
122
|
}
|
|
106
123
|
validateOrderDirection(newValue) {
|
|
107
124
|
const errId = "ERR_orderDirection";
|
|
125
|
+
if (isInheritedValue(newValue)) {
|
|
126
|
+
this.errors.remove(errId);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
108
129
|
if (!isValidDirection(newValue)) {
|
|
109
130
|
this.errors.addOrReplace({
|
|
110
131
|
id: errId,
|
|
@@ -203,85 +224,102 @@ export class Chart {
|
|
|
203
224
|
this.data = [];
|
|
204
225
|
this.datasetMeta = null;
|
|
205
226
|
this.appliedScaleFactor = 1;
|
|
227
|
+
this.layoutObserver = null;
|
|
228
|
+
/** Last parent height seen, used to suppress ResizeObserver noise. */
|
|
229
|
+
this._lastScaledParentHeight = 0;
|
|
206
230
|
/**
|
|
207
|
-
*
|
|
231
|
+
* Title displayed above the chart. When empty, the title is derived
|
|
232
|
+
* from the variance scenario labels (if variances are configured).
|
|
233
|
+
*
|
|
234
|
+
* @example chart-title="Revenue by Category"
|
|
208
235
|
*/
|
|
209
236
|
this.chartTitle = "";
|
|
210
237
|
/**
|
|
211
238
|
* AlaSQL WHERE clause fragment injected into the data query to filter
|
|
212
|
-
* rows before rendering
|
|
239
|
+
* rows before rendering.
|
|
240
|
+
*
|
|
241
|
+
* @example filter="rowGroup = 'Revenue'"
|
|
213
242
|
*/
|
|
214
243
|
this.filter = "";
|
|
215
|
-
/** set translaton mode.
|
|
216
|
-
* <br /><br />
|
|
217
|
-
* values:<br />
|
|
218
|
-
* ``` all // none // meta ```
|
|
219
|
-
*/
|
|
220
244
|
/**
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
* <br /><br />
|
|
224
|
-
* rows wich where cut by the limit are cumulated as REST
|
|
245
|
+
* Maximum number of bars to display. Excess rows are aggregated into
|
|
246
|
+
* a "REST" summary bar. `0` means no limit (all rows are shown).
|
|
225
247
|
*
|
|
248
|
+
* @default 0
|
|
249
|
+
* @example limit="5"
|
|
226
250
|
*/
|
|
227
251
|
this.limit = 0;
|
|
252
|
+
/**
|
|
253
|
+
* Whether to display category labels on the left side of the chart.
|
|
254
|
+
*
|
|
255
|
+
* Values: `"true"` | `"false"`.
|
|
256
|
+
*
|
|
257
|
+
* @default "true"
|
|
258
|
+
* @example show-categories="false"
|
|
259
|
+
*/
|
|
228
260
|
this.showCategories = "true";
|
|
229
261
|
/**
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
* ``` "P": 1E+15,```<br />
|
|
241
|
-
* ``` "T": 1E+12,```<br />
|
|
242
|
-
* ``` "G": 1000000000,```<br />
|
|
243
|
-
* ``` "M": 1000000,```<br />
|
|
244
|
-
* ``` "k": 1000,```<br />
|
|
245
|
-
* <br />
|
|
246
|
-
* ``` "m": 0.001,```<br />
|
|
247
|
-
* ``` "μ": 0.000001,```<br />
|
|
248
|
-
* ``` "n": 0.000000001,```<br />
|
|
249
|
-
* ``` "p": 0.000000000001,```<br />
|
|
250
|
-
* ``` "f": 0.000000000000001,```<br />
|
|
251
|
-
* ``` "a": 0.000000000000000001,```<br />
|
|
252
|
-
* ``` "z": 0.000000000000000000001,```<br />
|
|
253
|
-
* ``` "y": 0.000000000000000000000001,```<br />
|
|
254
|
-
* <br /><br />
|
|
255
|
-
* Special modes:
|
|
256
|
-
* ```GREATEST``` seaches for the bigest (farest to zero) Value in the dataset and sets this value to SiPrefix<br />
|
|
257
|
-
* ```LEAST``` searches for smallest (closest to zero) Value in the dataset and sets this value to SiPrefix<br />
|
|
258
|
-
*<br /><br />
|
|
259
|
-
* ```_``` is the value for no SiPrefix the value is displayed as in the dataset stored.
|
|
262
|
+
* SI prefix applied to data values, dividing them for display
|
|
263
|
+
* (e.g. `"k"` divides by 1 000, showing 14 000 as "14").
|
|
264
|
+
*
|
|
265
|
+
* Common prefixes: `"k"` (×10³), `"M"` (×10⁶), `"G"` (×10⁹), `"T"` (×10¹²).
|
|
266
|
+
* Use `"_"` for no prefix (raw values).
|
|
267
|
+
*
|
|
268
|
+
* | Special value | Behavior |
|
|
269
|
+
* |---------------|--------------------------------------------------------------|
|
|
270
|
+
* | `"GREATEST"` | Auto-select prefix based on the largest value in the dataset |
|
|
271
|
+
* | `"LEAST"` | Auto-select prefix based on the smallest value |
|
|
260
272
|
*
|
|
273
|
+
* The selected prefix is shown in the chart footer when `show-measure-scale` is enabled.
|
|
261
274
|
*
|
|
275
|
+
* @default "greatest"
|
|
276
|
+
* @example measure-scale="k"
|
|
262
277
|
*/
|
|
263
278
|
this.measureScale = "greatest";
|
|
264
279
|
/**
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
*
|
|
280
|
+
* Toggles display of the SI prefix and unit label in the chart footer
|
|
281
|
+
* (e.g. "k EUR").
|
|
282
|
+
*
|
|
283
|
+
* Values: `"true"` | `"false"`.
|
|
284
|
+
*
|
|
285
|
+
* @default "false"
|
|
286
|
+
* @example show-measure-scale="true"
|
|
269
287
|
*/
|
|
270
288
|
this.showMeasureScale = "false";
|
|
271
289
|
/**
|
|
272
|
-
*
|
|
290
|
+
* Unit label displayed alongside the SI prefix in the chart footer
|
|
291
|
+
* (e.g. "EUR", "USD", "pcs"). Only visible when `show-measure-scale` is `"true"`.
|
|
292
|
+
*
|
|
293
|
+
* @default ""
|
|
294
|
+
* @example measure-unit="EUR"
|
|
273
295
|
*/
|
|
274
296
|
this.measureUnit = "";
|
|
275
297
|
/**
|
|
276
|
-
* Stacking configuration
|
|
298
|
+
* Stacking configuration as a JSON string. When set, bars are drawn as
|
|
299
|
+
* stacked segments instead of side-by-side.
|
|
300
|
+
*
|
|
301
|
+
* **Properties:**
|
|
302
|
+
*
|
|
303
|
+
* | Key | Values | Description |
|
|
304
|
+
* |---------|-----------------------------------------------|----------------------------------------------------|
|
|
305
|
+
* | `by` | `"scenarios"` \| `"dimensions"` | **Required.** What to stack. |
|
|
306
|
+
* | `mode` | `"absolute"` \| `"relative"` \| `"absolute-relative"` | Stacking mode. Default: `"absolute"`. |
|
|
307
|
+
* | `order` | `"asc"` \| `"desc"` \| `"dataset"` | Segment sort order. Default: `"dataset"`. |
|
|
277
308
|
*
|
|
278
|
-
*
|
|
309
|
+
* - `by: "scenarios"` — stacks the scenarios listed in the `scenarios` prop end-to-end.
|
|
310
|
+
* - `by: "dimensions"` — stacks by the next-lower hierarchy level derived from `level`
|
|
311
|
+
* (e.g. level `"rowGroup"` stacks by category). Only the first scenario is used;
|
|
312
|
+
* extra scenarios trigger a `WARN_stack_dimensions_scenarios` warning.
|
|
313
|
+
* - `mode: "relative"` — normalizes each bar to 100%, showing proportions.
|
|
314
|
+
* - `mode: "absolute-relative"` — absolute bars with percentage labels.
|
|
279
315
|
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
316
|
+
* Segment colors are configurable via the `stackColors` array in component styles.
|
|
317
|
+
*
|
|
318
|
+
* @default "" (no stacking)
|
|
319
|
+
* @example stack='{"by":"scenarios","mode":"absolute"}'
|
|
320
|
+
* @example stack='{"by":"dimensions","mode":"relative"}'
|
|
282
321
|
*/
|
|
283
322
|
this.stack = "";
|
|
284
|
-
this.scenariosArray = [""];
|
|
285
323
|
this.pixelPerUnitGroupMap = new Map();
|
|
286
324
|
this._autoScaleGuard = false;
|
|
287
325
|
withStyled(this);
|
|
@@ -293,8 +331,15 @@ export class Chart {
|
|
|
293
331
|
});
|
|
294
332
|
this.chartTemplate = this.chartTemplate.bind(this);
|
|
295
333
|
this.errors = withHasError(this);
|
|
334
|
+
withScalingGroup(this);
|
|
296
335
|
this.componentStyle = withComponentStyle(this);
|
|
297
336
|
this.t = withTranslation(this).t;
|
|
337
|
+
this.resolveInherited = withInheritedProps(this, [
|
|
338
|
+
{ propName: "scenarios", ancestorAttr: "title-scenarios" },
|
|
339
|
+
{ propName: "variances", ancestorAttr: "title-variances" },
|
|
340
|
+
{ propName: "order", ancestorAttr: "title-order" },
|
|
341
|
+
{ propName: "orderDirection", ancestorAttr: "title-order-direction" },
|
|
342
|
+
]);
|
|
298
343
|
}
|
|
299
344
|
componentWillLoad() {
|
|
300
345
|
this.validateScenario(this.scenarios);
|
|
@@ -311,48 +356,51 @@ export class Chart {
|
|
|
311
356
|
this.validateScaling(this.scale);
|
|
312
357
|
}
|
|
313
358
|
componentDidRender() {
|
|
314
|
-
var _a, _b;
|
|
315
359
|
const { mode } = parseScaling(this.scale);
|
|
316
360
|
if (mode !== "auto" && mode !== "empty") {
|
|
317
361
|
this._autoScaleGuard = false;
|
|
318
|
-
|
|
319
|
-
const parent = getParentDimensions(this.element);
|
|
320
|
-
const errId = "WARN_overflow";
|
|
321
|
-
if (parent.width > 0 && this.element.scrollWidth > parent.width + 1) {
|
|
322
|
-
this.errors.addOrReplace({
|
|
323
|
-
id: errId,
|
|
324
|
-
type: "warning",
|
|
325
|
-
message: "Chart exceeds available space and will be cut off. Check unit-scaling value.",
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
else {
|
|
329
|
-
this.errors.remove(errId);
|
|
330
|
-
}
|
|
362
|
+
this.checkWidthOverflow();
|
|
331
363
|
return;
|
|
332
364
|
}
|
|
333
365
|
if (this._autoScaleGuard) {
|
|
334
366
|
this._autoScaleGuard = false;
|
|
367
|
+
this.checkWidthOverflow();
|
|
335
368
|
return;
|
|
336
369
|
}
|
|
337
370
|
const host = this.element;
|
|
338
371
|
const { height: parentHeight } = getParentDimensions(host);
|
|
339
|
-
if (parentHeight <= 0)
|
|
372
|
+
if (parentHeight <= 0) {
|
|
373
|
+
this.checkWidthOverflow();
|
|
340
374
|
return;
|
|
341
|
-
|
|
375
|
+
}
|
|
376
|
+
// Record height so the ResizeObserver callback can tell
|
|
377
|
+
// whether the container genuinely resized or just reflowed.
|
|
378
|
+
this._lastScaledParentHeight = parentHeight;
|
|
342
379
|
const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
|
|
343
|
-
host
|
|
344
|
-
//
|
|
345
|
-
const
|
|
346
|
-
const
|
|
347
|
-
|
|
380
|
+
// The chart host is display:inline-block — it sizes to its content.
|
|
381
|
+
// scrollHeight gives the actual rendered height at the current factor.
|
|
382
|
+
const currentHeight = host.scrollHeight;
|
|
383
|
+
const currentFactor = this.appliedScaleFactor;
|
|
384
|
+
// Primary check: does the content ACTUALLY fit at the current factor?
|
|
385
|
+
// This avoids oscillation from non-linear SVG scaling where the
|
|
386
|
+
// divide-by-factor estimate overshoots.
|
|
387
|
+
if (currentHeight <= parentHeight + 1) {
|
|
388
|
+
// Content fits. Don't reset to factor 1 — the content only fits
|
|
389
|
+
// BECAUSE of the current factor. Resetting would cause oscillation.
|
|
348
390
|
this.errors.remove("AUTO_scale");
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
391
|
+
this.checkWidthOverflow();
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
// Content overflows. Compute a new factor based on the ratio of
|
|
395
|
+
// parent to current content height, scaled by the current factor.
|
|
396
|
+
const computedFactor = Math.max(0.3, (currentFactor * (parentHeight - 1)) / currentHeight);
|
|
397
|
+
// Only apply if the change is significant (> 1% of current factor).
|
|
398
|
+
// SVG charts have non-linear scaling so we use a wider tolerance
|
|
399
|
+
// than tables to avoid oscillation from sub-pixel rounding.
|
|
400
|
+
if (Math.abs(computedFactor - currentFactor) < 0.01) {
|
|
401
|
+
this.checkWidthOverflow();
|
|
353
402
|
return;
|
|
354
403
|
}
|
|
355
|
-
const computedFactor = (parentHeight - 1) / unscaledHeight;
|
|
356
404
|
host.style.setProperty("--bn-font-size", `${baseFontSize * computedFactor}px`);
|
|
357
405
|
if (mode === "empty") {
|
|
358
406
|
this.errors.addOrReplace({
|
|
@@ -364,18 +412,87 @@ export class Chart {
|
|
|
364
412
|
else {
|
|
365
413
|
this.errors.remove("AUTO_scale");
|
|
366
414
|
}
|
|
367
|
-
|
|
368
|
-
|
|
415
|
+
this._autoScaleGuard = true;
|
|
416
|
+
writeTask(() => {
|
|
369
417
|
this.appliedScaleFactor = computedFactor;
|
|
418
|
+
});
|
|
419
|
+
this.checkWidthOverflow();
|
|
420
|
+
}
|
|
421
|
+
componentDidLoad() {
|
|
422
|
+
// Observe the parent container for size changes so auto-scaling
|
|
423
|
+
// reacts to genuine container resizes (window resize, card relayout).
|
|
424
|
+
// Only trigger a re-render when the parent height actually changed
|
|
425
|
+
// compared to what auto-scaling last measured — this prevents the
|
|
426
|
+
// ResizeObserver's initial fire (and content-reflow noise) from
|
|
427
|
+
// creating an infinite auto-scale loop.
|
|
428
|
+
this.layoutObserver = observeParentResize(this.element, () => {
|
|
429
|
+
if (this._autoScaleGuard)
|
|
430
|
+
return;
|
|
431
|
+
const { height } = getParentDimensions(this.element);
|
|
432
|
+
// Only react to HEIGHT changes — structure chart scales by height.
|
|
433
|
+
// Width changes are handled separately via checkWidthOverflow.
|
|
434
|
+
if (height > 0 && Math.abs(height - this._lastScaledParentHeight) > 2) {
|
|
435
|
+
this._lastScaledParentHeight = height;
|
|
436
|
+
forceUpdate(this);
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
// Double-rAF guarantees the browser has completed at least one full
|
|
440
|
+
// paint cycle so all nested shadow DOM layouts are finalized.
|
|
441
|
+
requestAnimationFrame(() => {
|
|
442
|
+
requestAnimationFrame(() => {
|
|
443
|
+
if (this._autoScaleGuard)
|
|
444
|
+
return;
|
|
445
|
+
const { height } = getParentDimensions(this.element);
|
|
446
|
+
this._lastScaledParentHeight = height;
|
|
447
|
+
forceUpdate(this);
|
|
448
|
+
});
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
disconnectedCallback() {
|
|
452
|
+
var _a;
|
|
453
|
+
(_a = this.layoutObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
454
|
+
this.layoutObserver = null;
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Emits an error when a custom unit-scaling value causes the chart to exceed its container width.
|
|
458
|
+
* Skipped for auto/unset unit-scaling since auto-fit handles width.
|
|
459
|
+
*/
|
|
460
|
+
checkWidthOverflow() {
|
|
461
|
+
var _a;
|
|
462
|
+
const errId = "WARN_overflow";
|
|
463
|
+
const us = String((_a = this.unitScaling) !== null && _a !== void 0 ? _a : "")
|
|
464
|
+
.trim()
|
|
465
|
+
.toLowerCase();
|
|
466
|
+
if (us === "" || us === "auto") {
|
|
467
|
+
this.errors.remove(errId);
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
const parent = getParentDimensions(this.element);
|
|
471
|
+
if (parent.width > 0 && this.element.scrollWidth > parent.width + 1) {
|
|
472
|
+
this.errors.addOrReplace({
|
|
473
|
+
id: errId,
|
|
474
|
+
type: "error",
|
|
475
|
+
message: `Chart exceeds available width (${this.element.scrollWidth}px > ${Math.round(parent.width)}px). Reduce unit-scaling or set to "auto".`,
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
this.errors.remove(errId);
|
|
370
480
|
}
|
|
371
481
|
}
|
|
372
482
|
prepareDimension() {
|
|
373
483
|
const parent = getParentDimensions(this.element);
|
|
374
|
-
|
|
484
|
+
const variancesList = this.prepareVariances();
|
|
485
|
+
const segmentCount = 1 + variancesList.length;
|
|
486
|
+
this.canvasWidthSegmented = parent.width / segmentCount;
|
|
375
487
|
return { width: this.canvasWidthSegmented, height: parent.height };
|
|
376
488
|
}
|
|
377
489
|
prepareScenarios() {
|
|
378
490
|
var _a, _b, _c, _d;
|
|
491
|
+
const inherited = this.resolveInherited("scenarios", this.scenarios);
|
|
492
|
+
if (inherited !== undefined) {
|
|
493
|
+
this.errors.remove("AUTO_scenarios");
|
|
494
|
+
return inherited.split(",").map((entry) => entry.trim());
|
|
495
|
+
}
|
|
379
496
|
const isAuto = ((_a = this.scenarios) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === "auto";
|
|
380
497
|
if (isBlankInput(this.scenarios) || isAuto) {
|
|
381
498
|
if (((_c = (_b = this.datasetMeta) === null || _b === void 0 ? void 0 : _b.availableScenarios) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
@@ -398,6 +515,10 @@ export class Chart {
|
|
|
398
515
|
}
|
|
399
516
|
prepareVariances() {
|
|
400
517
|
var _a;
|
|
518
|
+
const inherited = this.resolveInherited("variances", this.variances);
|
|
519
|
+
if (inherited !== undefined) {
|
|
520
|
+
return inherited.split(",").map((entry) => entry.trim());
|
|
521
|
+
}
|
|
401
522
|
if (isBlankInput(this.variances)) {
|
|
402
523
|
return [];
|
|
403
524
|
}
|
|
@@ -438,10 +559,25 @@ export class Chart {
|
|
|
438
559
|
return 0;
|
|
439
560
|
}
|
|
440
561
|
preparePixelPerPercentage() {
|
|
562
|
+
var _a;
|
|
441
563
|
if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
|
|
442
|
-
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
564
|
+
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
565
|
+
}
|
|
566
|
+
if (((_a = this.percentageScaling) === null || _a === void 0 ? void 0 : _a.toString().trim().toLowerCase()) === "auto") {
|
|
567
|
+
this.errors.remove("AUTO_percentageScaling");
|
|
568
|
+
return 0;
|
|
569
|
+
}
|
|
570
|
+
const numeric = Number(this.percentageScaling);
|
|
571
|
+
if (!isNaN(numeric) && numeric > 0) {
|
|
572
|
+
this.errors.remove("AUTO_percentageScaling");
|
|
573
|
+
return numeric * 100;
|
|
443
574
|
}
|
|
444
|
-
|
|
575
|
+
this.errors.addOrReplace({
|
|
576
|
+
id: "AUTO_percentageScaling",
|
|
577
|
+
type: "warning",
|
|
578
|
+
message: `percentage-scaling: not set, auto-calculated to fit available space.`,
|
|
579
|
+
});
|
|
580
|
+
return 0;
|
|
445
581
|
}
|
|
446
582
|
prepareLevel() {
|
|
447
583
|
var _a, _b, _c;
|
|
@@ -466,11 +602,15 @@ export class Chart {
|
|
|
466
602
|
return AggregationLevel[(_c = this.level) === null || _c === void 0 ? void 0 : _c.toUpperCase()];
|
|
467
603
|
}
|
|
468
604
|
prepareOrder() {
|
|
469
|
-
var _a
|
|
470
|
-
const
|
|
605
|
+
var _a;
|
|
606
|
+
const inheritedOrder = this.resolveInherited("order", this.order);
|
|
607
|
+
const inheritedDirection = this.resolveInherited("orderDirection", this.orderDirection);
|
|
608
|
+
const effectiveOrder = inheritedOrder !== null && inheritedOrder !== void 0 ? inheritedOrder : this.order;
|
|
609
|
+
const effectiveDirection = inheritedDirection !== null && inheritedDirection !== void 0 ? inheritedDirection : this.orderDirection;
|
|
610
|
+
const isAuto = (effectiveOrder === null || effectiveOrder === void 0 ? void 0 : effectiveOrder.trim().toLowerCase()) === "auto";
|
|
471
611
|
let orderStr;
|
|
472
|
-
if (isBlankInput(
|
|
473
|
-
if ((
|
|
612
|
+
if (isBlankInput(effectiveOrder) || isAuto) {
|
|
613
|
+
if ((_a = this.datasetMeta) === null || _a === void 0 ? void 0 : _a.suggestedOrder) {
|
|
474
614
|
if (!isAuto) {
|
|
475
615
|
this.errors.addOrReplace({
|
|
476
616
|
id: "AUTO_order",
|
|
@@ -484,20 +624,19 @@ export class Chart {
|
|
|
484
624
|
orderStr = this.datasetMeta.suggestedOrder;
|
|
485
625
|
}
|
|
486
626
|
else {
|
|
487
|
-
orderStr =
|
|
627
|
+
orderStr = effectiveOrder;
|
|
488
628
|
}
|
|
489
629
|
}
|
|
490
630
|
else {
|
|
491
631
|
this.errors.remove("AUTO_order");
|
|
492
|
-
orderStr =
|
|
632
|
+
orderStr = effectiveOrder;
|
|
493
633
|
}
|
|
494
634
|
const tableOrder = {
|
|
495
635
|
hierarchy: orderStr === null || orderStr === void 0 ? void 0 : orderStr.split(",").map((entry) => OrderColumn[entry === null || entry === void 0 ? void 0 : entry.toUpperCase()]),
|
|
496
|
-
direction: OrderDirection[
|
|
636
|
+
direction: OrderDirection[effectiveDirection === null || effectiveDirection === void 0 ? void 0 : effectiveDirection.toUpperCase()],
|
|
497
637
|
};
|
|
498
638
|
return tableOrder;
|
|
499
639
|
}
|
|
500
|
-
// TODO(JHE): consider extracting style preparation into an adapter pattern
|
|
501
640
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
502
641
|
prepareStyle() {
|
|
503
642
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
@@ -545,17 +684,37 @@ export class Chart {
|
|
|
545
684
|
}
|
|
546
685
|
prepareStackConfig() {
|
|
547
686
|
if (isBlankInput(this.stack)) {
|
|
687
|
+
this.errors.remove("WARN_stack_dimensions_scenarios");
|
|
548
688
|
return null;
|
|
549
689
|
}
|
|
550
690
|
try {
|
|
551
691
|
const parsed = JSON.parse(this.stack);
|
|
692
|
+
const by = parsed.by;
|
|
693
|
+
const errId = "WARN_stack_dimensions_scenarios";
|
|
694
|
+
if (by === StackBy.DIMENSIONS) {
|
|
695
|
+
const scenarios = this.prepareScenarios();
|
|
696
|
+
if (scenarios.length > 1) {
|
|
697
|
+
this.errors.addOrReplace({
|
|
698
|
+
id: errId,
|
|
699
|
+
type: "warning",
|
|
700
|
+
message: `stack by dimensions: only the first scenario "${scenarios[0]}" is used, the rest (${scenarios.slice(1).join(", ")}) are discarded.`,
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
else {
|
|
704
|
+
this.errors.remove(errId);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
else {
|
|
708
|
+
this.errors.remove(errId);
|
|
709
|
+
}
|
|
552
710
|
return {
|
|
553
|
-
by
|
|
711
|
+
by,
|
|
554
712
|
mode: parsed.mode || StackMode.ABSOLUTE,
|
|
555
713
|
order: parsed.order || StackOrder.DATASET,
|
|
556
714
|
};
|
|
557
715
|
}
|
|
558
716
|
catch (_a) {
|
|
717
|
+
this.errors.remove("WARN_stack_dimensions_scenarios");
|
|
559
718
|
return null;
|
|
560
719
|
}
|
|
561
720
|
}
|
|
@@ -628,7 +787,11 @@ export class Chart {
|
|
|
628
787
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
629
788
|
const ppu = this.preparePixelPerUnit();
|
|
630
789
|
const ppp = this.preparePixelPerPercentage();
|
|
631
|
-
|
|
790
|
+
const stackConfig = this.prepareStackConfig();
|
|
791
|
+
const scenarios = this.prepareScenarios();
|
|
792
|
+
// Dimension stacking uses only the first scenario
|
|
793
|
+
const effectiveScenarios = (stackConfig === null || stackConfig === void 0 ? void 0 : stackConfig.by) === StackBy.DIMENSIONS ? scenarios.slice(0, 1) : scenarios;
|
|
794
|
+
return (h("ibcs-chart-structure", { data: this.data, chartTitle: this.prepareChartTitle(idx), scenarios: effectiveScenarios, variances: [localScenarioString], hideCategories: this.prepareHideCategories(idx), pixelPerUnit: ppu > 0 ? ppu * effectiveFactor : 0, pixelPerPercentage: ppp > 0 ? ppp * effectiveFactor : 0, limit: this.prepareLimit(), styles: this.prepareStyle(), i18n: this.prepareI18n(), order: this.prepareOrder(), level: this.prepareLevel(), filter: this.prepareFilter(), "measure-scale": this.prepareMeasureScale(), "measure-unit": this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(idx), stackConfig: stackConfig, parentDimensions: this.prepareDimension() }));
|
|
632
795
|
}
|
|
633
796
|
getEffectiveScaleFactor() {
|
|
634
797
|
const { mode, factor } = parseScaling(this.scale);
|
|
@@ -658,7 +821,7 @@ export class Chart {
|
|
|
658
821
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
659
822
|
}
|
|
660
823
|
const fontStyles = this.getFontStyles();
|
|
661
|
-
return (h(Host, { key: '
|
|
824
|
+
return (h(Host, { key: '6e3c0b035ad3290f3b8ceb8ca7dc931ea30ae910', style: fontStyles }, h("div", { key: '89c5625eabe1b87648fba55f6642d7af0231449d', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
662
825
|
}
|
|
663
826
|
static get is() { return "bn-chart-structure"; }
|
|
664
827
|
static get encapsulation() { return "shadow"; }
|
|
@@ -685,8 +848,11 @@ export class Chart {
|
|
|
685
848
|
"required": false,
|
|
686
849
|
"optional": false,
|
|
687
850
|
"docs": {
|
|
688
|
-
"tags": [
|
|
689
|
-
|
|
851
|
+
"tags": [{
|
|
852
|
+
"name": "example",
|
|
853
|
+
"text": "chart-title=\"Revenue by Category\""
|
|
854
|
+
}],
|
|
855
|
+
"text": "Title displayed above the chart. When empty, the title is derived\nfrom the variance scenario labels (if variances are configured)."
|
|
690
856
|
},
|
|
691
857
|
"getter": false,
|
|
692
858
|
"setter": false,
|
|
@@ -705,8 +871,11 @@ export class Chart {
|
|
|
705
871
|
"required": false,
|
|
706
872
|
"optional": false,
|
|
707
873
|
"docs": {
|
|
708
|
-
"tags": [
|
|
709
|
-
|
|
874
|
+
"tags": [{
|
|
875
|
+
"name": "example",
|
|
876
|
+
"text": "filter=\"rowGroup = 'Revenue'\""
|
|
877
|
+
}],
|
|
878
|
+
"text": "AlaSQL WHERE clause fragment injected into the data query to filter\nrows before rendering."
|
|
710
879
|
},
|
|
711
880
|
"getter": false,
|
|
712
881
|
"setter": false,
|
|
@@ -725,8 +894,11 @@ export class Chart {
|
|
|
725
894
|
"required": true,
|
|
726
895
|
"optional": false,
|
|
727
896
|
"docs": {
|
|
728
|
-
"tags": [
|
|
729
|
-
|
|
897
|
+
"tags": [{
|
|
898
|
+
"name": "example",
|
|
899
|
+
"text": "scenarios=\"ac1,pp1,pl1\""
|
|
900
|
+
}],
|
|
901
|
+
"text": "Comma-separated list of scenario columns to display as bars.\nUp to 4 scenarios are supported; additional values are ignored.\n\nValid scenario names: `ac1`\u2013`ac4`, `fc1`\u2013`fc4`, `pp1`\u2013`pp4`, `pl1`\u2013`pl4`.\n\n| Value | Behavior |\n|---------------|-------------------------------------------------------------|\n| `\"ac1,fc1\"` | Show the listed scenarios |\n| `\"auto\"` | Auto-detect from dataset metadata (no warning) |\n| not set / `\"\"` | Auto-detect from dataset metadata (emits `AUTO_scenarios` warning) |"
|
|
730
902
|
},
|
|
731
903
|
"getter": false,
|
|
732
904
|
"setter": false,
|
|
@@ -744,8 +916,14 @@ export class Chart {
|
|
|
744
916
|
"required": true,
|
|
745
917
|
"optional": false,
|
|
746
918
|
"docs": {
|
|
747
|
-
"tags": [
|
|
748
|
-
|
|
919
|
+
"tags": [{
|
|
920
|
+
"name": "example",
|
|
921
|
+
"text": "variances=\"dpp1_ac1_neg,dfc1_ac1_neg\""
|
|
922
|
+
}, {
|
|
923
|
+
"name": "example",
|
|
924
|
+
"text": "variances=\"drac1_pl1_pos\""
|
|
925
|
+
}],
|
|
926
|
+
"text": "Comma-separated list of variance definitions. Each variance adds\na separate sub-chart next to the main bar chart.\n\n**Pattern:** `d<base>_<comparison>_<sentiment>` (absolute)\nor `dr<base>_<comparison>_<sentiment>` (relative / percentage).\n\n- `base` / `comparison`: scenario names that must also appear in `scenarios`.\n- `sentiment`: `pos` (positive is good), `neg` (negative is good), `neu` (neutral).\n\nWhen empty, no variance charts are shown."
|
|
749
927
|
},
|
|
750
928
|
"getter": false,
|
|
751
929
|
"setter": false,
|
|
@@ -763,8 +941,17 @@ export class Chart {
|
|
|
763
941
|
"required": true,
|
|
764
942
|
"optional": false,
|
|
765
943
|
"docs": {
|
|
766
|
-
"tags": [
|
|
767
|
-
|
|
944
|
+
"tags": [{
|
|
945
|
+
"name": "example",
|
|
946
|
+
"text": "unit-scaling=\"auto\""
|
|
947
|
+
}, {
|
|
948
|
+
"name": "example",
|
|
949
|
+
"text": "unit-scaling=\"0.05\""
|
|
950
|
+
}, {
|
|
951
|
+
"name": "example",
|
|
952
|
+
"text": "unit-scaling=\"revenue-scale\""
|
|
953
|
+
}],
|
|
954
|
+
"text": "Controls horizontal bar scaling (pixels per data unit).\n\n| Value | Behavior |\n|----------------|-----------------------------------------------------------------|\n| `\"auto\"` | Auto-fit bars to fill the available container width (no warning) |\n| not set / `\"\"` | Same as auto, but emits `AUTO_unitScaling` warning |\n| `\"0.03\"`, `1` | Explicit pixels-per-unit value; bars scale proportionally |\n| group name | References a `<bn-scaling-group>` for synchronized scaling |\n\nWhen using a custom value that causes the chart to exceed its container,\na `WARN_overflow` error is emitted."
|
|
768
955
|
},
|
|
769
956
|
"getter": false,
|
|
770
957
|
"setter": false,
|
|
@@ -782,8 +969,14 @@ export class Chart {
|
|
|
782
969
|
"required": true,
|
|
783
970
|
"optional": false,
|
|
784
971
|
"docs": {
|
|
785
|
-
"tags": [
|
|
786
|
-
|
|
972
|
+
"tags": [{
|
|
973
|
+
"name": "example",
|
|
974
|
+
"text": "percentage-scaling=\"50\""
|
|
975
|
+
}, {
|
|
976
|
+
"name": "example",
|
|
977
|
+
"text": "percentage-scaling=\"pct-scale\""
|
|
978
|
+
}],
|
|
979
|
+
"text": "Controls scaling of relative variance bars (pixels per percentage point).\n\n| Value | Behavior |\n|----------------|---------------------------------------------------------------|\n| `\"auto\"` | Auto-fit to available width |\n| not set / `\"\"` | Same as auto with warning |\n| `\"50\"`, `1.5` | Explicit pixels-per-percentage-point value |\n| group name | References a `<bn-scaling-group>` for synchronized scaling |"
|
|
787
980
|
},
|
|
788
981
|
"getter": false,
|
|
789
982
|
"setter": false,
|
|
@@ -801,8 +994,11 @@ export class Chart {
|
|
|
801
994
|
"required": true,
|
|
802
995
|
"optional": false,
|
|
803
996
|
"docs": {
|
|
804
|
-
"tags": [
|
|
805
|
-
|
|
997
|
+
"tags": [{
|
|
998
|
+
"name": "example",
|
|
999
|
+
"text": "level=\"category\""
|
|
1000
|
+
}],
|
|
1001
|
+
"text": "Aggregation level that determines which hierarchy dimension each bar represents.\n\n| Value | Bars represent |\n|--------------------|---------------------------|\n| `\"rowGroup\"` | Row groups |\n| `\"rowGroupIndex\"` | Row groups (dataset order)|\n| `\"category\"` | Categories |\n| `\"categoryIndex\"` | Categories (dataset order)|\n| `\"subCategory\"` | Sub-categories |\n| `\"subCategoryIndex\"` | Sub-categories (dataset order)|\n| `\"auto\"` | Auto-detect from dataset metadata (no warning) |\n| not set / `\"\"` | Auto-detect with `AUTO_level` warning |\n\nIndex variants preserve the original dataset order instead of sorting alphabetically.\nWhen `stack.by` is `\"dimensions\"`, the chart automatically stacks by the next-lower\nlevel (e.g. level `\"rowGroup\"` stacks by category)."
|
|
806
1002
|
},
|
|
807
1003
|
"getter": false,
|
|
808
1004
|
"setter": false,
|
|
@@ -820,8 +1016,11 @@ export class Chart {
|
|
|
820
1016
|
"required": true,
|
|
821
1017
|
"optional": false,
|
|
822
1018
|
"docs": {
|
|
823
|
-
"tags": [
|
|
824
|
-
|
|
1019
|
+
"tags": [{
|
|
1020
|
+
"name": "example",
|
|
1021
|
+
"text": "order=\"ac1\""
|
|
1022
|
+
}],
|
|
1023
|
+
"text": "Comma-separated list of columns that define the sort order of bars.\nWhen ordering by a scenario column, that scenario must also be listed in `scenarios`.\n\nValid values: `category`, `categoryIndex`, `rowGroup`, `rowGroupIndex`,\n`subCategory`, `subCategoryIndex`, `ac1`\u2013`ac4`, `fc1`\u2013`fc4`, `pp1`\u2013`pp4`, `pl1`\u2013`pl4`.\n\n| Value | Behavior |\n|----------------|-----------------------------------------------------|\n| `\"ac1\"` | Sort bars by the ac1 scenario values |\n| `\"category\"` | Sort bars alphabetically by category name |\n| `\"auto\"` | Auto-detect from dataset metadata (no warning) |\n| not set / `\"\"` | Auto-detect with `AUTO_order` warning |"
|
|
825
1024
|
},
|
|
826
1025
|
"getter": false,
|
|
827
1026
|
"setter": false,
|
|
@@ -839,8 +1038,14 @@ export class Chart {
|
|
|
839
1038
|
"required": true,
|
|
840
1039
|
"optional": false,
|
|
841
1040
|
"docs": {
|
|
842
|
-
"tags": [
|
|
843
|
-
|
|
1041
|
+
"tags": [{
|
|
1042
|
+
"name": "default",
|
|
1043
|
+
"text": "\"asc\""
|
|
1044
|
+
}, {
|
|
1045
|
+
"name": "example",
|
|
1046
|
+
"text": "order-direction=\"desc\""
|
|
1047
|
+
}],
|
|
1048
|
+
"text": "Sort direction applied to the columns specified in `order`.\n\nValues: `\"asc\"` (ascending) | `\"desc\"` (descending)."
|
|
844
1049
|
},
|
|
845
1050
|
"getter": false,
|
|
846
1051
|
"setter": false,
|
|
@@ -858,8 +1063,14 @@ export class Chart {
|
|
|
858
1063
|
"required": false,
|
|
859
1064
|
"optional": false,
|
|
860
1065
|
"docs": {
|
|
861
|
-
"tags": [
|
|
862
|
-
|
|
1066
|
+
"tags": [{
|
|
1067
|
+
"name": "default",
|
|
1068
|
+
"text": "0"
|
|
1069
|
+
}, {
|
|
1070
|
+
"name": "example",
|
|
1071
|
+
"text": "limit=\"5\""
|
|
1072
|
+
}],
|
|
1073
|
+
"text": "Maximum number of bars to display. Excess rows are aggregated into\na \"REST\" summary bar. `0` means no limit (all rows are shown)."
|
|
863
1074
|
},
|
|
864
1075
|
"getter": false,
|
|
865
1076
|
"setter": false,
|
|
@@ -878,8 +1089,14 @@ export class Chart {
|
|
|
878
1089
|
"required": false,
|
|
879
1090
|
"optional": false,
|
|
880
1091
|
"docs": {
|
|
881
|
-
"tags": [
|
|
882
|
-
|
|
1092
|
+
"tags": [{
|
|
1093
|
+
"name": "default",
|
|
1094
|
+
"text": "\"true\""
|
|
1095
|
+
}, {
|
|
1096
|
+
"name": "example",
|
|
1097
|
+
"text": "show-categories=\"false\""
|
|
1098
|
+
}],
|
|
1099
|
+
"text": "Whether to display category labels on the left side of the chart.\n\nValues: `\"true\"` | `\"false\"`."
|
|
883
1100
|
},
|
|
884
1101
|
"getter": false,
|
|
885
1102
|
"setter": false,
|
|
@@ -898,8 +1115,14 @@ export class Chart {
|
|
|
898
1115
|
"required": false,
|
|
899
1116
|
"optional": false,
|
|
900
1117
|
"docs": {
|
|
901
|
-
"tags": [
|
|
902
|
-
|
|
1118
|
+
"tags": [{
|
|
1119
|
+
"name": "default",
|
|
1120
|
+
"text": "\"greatest\""
|
|
1121
|
+
}, {
|
|
1122
|
+
"name": "example",
|
|
1123
|
+
"text": "measure-scale=\"k\""
|
|
1124
|
+
}],
|
|
1125
|
+
"text": "SI prefix applied to data values, dividing them for display\n(e.g. `\"k\"` divides by 1 000, showing 14 000 as \"14\").\n\nCommon prefixes: `\"k\"` (\u00D710\u00B3), `\"M\"` (\u00D710\u2076), `\"G\"` (\u00D710\u2079), `\"T\"` (\u00D710\u00B9\u00B2).\nUse `\"_\"` for no prefix (raw values).\n\n| Special value | Behavior |\n|---------------|--------------------------------------------------------------|\n| `\"GREATEST\"` | Auto-select prefix based on the largest value in the dataset |\n| `\"LEAST\"` | Auto-select prefix based on the smallest value |\n\nThe selected prefix is shown in the chart footer when `show-measure-scale` is enabled."
|
|
903
1126
|
},
|
|
904
1127
|
"getter": false,
|
|
905
1128
|
"setter": false,
|
|
@@ -918,8 +1141,14 @@ export class Chart {
|
|
|
918
1141
|
"required": false,
|
|
919
1142
|
"optional": false,
|
|
920
1143
|
"docs": {
|
|
921
|
-
"tags": [
|
|
922
|
-
|
|
1144
|
+
"tags": [{
|
|
1145
|
+
"name": "default",
|
|
1146
|
+
"text": "\"false\""
|
|
1147
|
+
}, {
|
|
1148
|
+
"name": "example",
|
|
1149
|
+
"text": "show-measure-scale=\"true\""
|
|
1150
|
+
}],
|
|
1151
|
+
"text": "Toggles display of the SI prefix and unit label in the chart footer\n(e.g. \"k EUR\").\n\nValues: `\"true\"` | `\"false\"`."
|
|
923
1152
|
},
|
|
924
1153
|
"getter": false,
|
|
925
1154
|
"setter": false,
|
|
@@ -938,8 +1167,14 @@ export class Chart {
|
|
|
938
1167
|
"required": false,
|
|
939
1168
|
"optional": false,
|
|
940
1169
|
"docs": {
|
|
941
|
-
"tags": [
|
|
942
|
-
|
|
1170
|
+
"tags": [{
|
|
1171
|
+
"name": "default",
|
|
1172
|
+
"text": "\"\""
|
|
1173
|
+
}, {
|
|
1174
|
+
"name": "example",
|
|
1175
|
+
"text": "measure-unit=\"EUR\""
|
|
1176
|
+
}],
|
|
1177
|
+
"text": "Unit label displayed alongside the SI prefix in the chart footer\n(e.g. \"EUR\", \"USD\", \"pcs\"). Only visible when `show-measure-scale` is `\"true\"`."
|
|
943
1178
|
},
|
|
944
1179
|
"getter": false,
|
|
945
1180
|
"setter": false,
|
|
@@ -960,12 +1195,15 @@ export class Chart {
|
|
|
960
1195
|
"docs": {
|
|
961
1196
|
"tags": [{
|
|
962
1197
|
"name": "default",
|
|
963
|
-
"text": "
|
|
1198
|
+
"text": "\"\" (no stacking)"
|
|
1199
|
+
}, {
|
|
1200
|
+
"name": "example",
|
|
1201
|
+
"text": "stack='{\"by\":\"scenarios\",\"mode\":\"absolute\"}'"
|
|
964
1202
|
}, {
|
|
965
1203
|
"name": "example",
|
|
966
|
-
"text": "stack='{\"by\":\"
|
|
1204
|
+
"text": "stack='{\"by\":\"dimensions\",\"mode\":\"relative\"}'"
|
|
967
1205
|
}],
|
|
968
|
-
"text": "Stacking configuration
|
|
1206
|
+
"text": "Stacking configuration as a JSON string. When set, bars are drawn as\nstacked segments instead of side-by-side.\n\n**Properties:**\n\n| Key | Values | Description |\n|---------|-----------------------------------------------|----------------------------------------------------|\n| `by` | `\"scenarios\"` \\| `\"dimensions\"` | **Required.** What to stack. |\n| `mode` | `\"absolute\"` \\| `\"relative\"` \\| `\"absolute-relative\"` | Stacking mode. Default: `\"absolute\"`. |\n| `order` | `\"asc\"` \\| `\"desc\"` \\| `\"dataset\"` | Segment sort order. Default: `\"dataset\"`. |\n\n- `by: \"scenarios\"` \u2014 stacks the scenarios listed in the `scenarios` prop end-to-end.\n- `by: \"dimensions\"` \u2014 stacks by the next-lower hierarchy level derived from `level`\n (e.g. level `\"rowGroup\"` stacks by category). Only the first scenario is used;\n extra scenarios trigger a `WARN_stack_dimensions_scenarios` warning.\n- `mode: \"relative\"` \u2014 normalizes each bar to 100%, showing proportions.\n- `mode: \"absolute-relative\"` \u2014 absolute bars with percentage labels.\n\nSegment colors are configurable via the `stackColors` array in component styles."
|
|
969
1207
|
},
|
|
970
1208
|
"getter": false,
|
|
971
1209
|
"setter": false,
|