@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
|
@@ -2,19 +2,115 @@ import { h, Fragment } from "@stencil/core";
|
|
|
2
2
|
import withHasError from "../../utils/withHasError";
|
|
3
3
|
export class LayoutPage {
|
|
4
4
|
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* Message text displayed in the message row above the title.
|
|
7
|
+
* If empty, the message row is omitted.
|
|
8
|
+
*/
|
|
5
9
|
this.messageText = "";
|
|
10
|
+
/**
|
|
11
|
+
* URL or asset name of the image displayed in the message row.
|
|
12
|
+
* If the value is not an HTTP URL it is looked up in the asset store.
|
|
13
|
+
* If empty, the image is omitted.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <bn-layout-page message-image="debug/concordia.png"></bn-layout-page>
|
|
17
|
+
*/
|
|
6
18
|
this.messageImage = "";
|
|
19
|
+
/**
|
|
20
|
+
* Name of the business unit displayed in the title header row.
|
|
21
|
+
* If empty, the business unit row is omitted.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <bn-layout-page title-business-unit="Group Controlling"></bn-layout-page>
|
|
25
|
+
*/
|
|
7
26
|
this.titleBusinessUnit = "";
|
|
27
|
+
/**
|
|
28
|
+
* Primary column on which the order direction is applied.
|
|
29
|
+
* <br /><br />
|
|
30
|
+
* values:<br />
|
|
31
|
+
* ```category // categoryindex // rowgroup // rowgroupindex // ac // fc // py // pl```
|
|
32
|
+
*/
|
|
8
33
|
this.titleOrder = "category";
|
|
34
|
+
/**
|
|
35
|
+
* Sorting order direction for the column specified by `titleOrder`.
|
|
36
|
+
* <br /><br />
|
|
37
|
+
* values:<br />
|
|
38
|
+
* ```asc // desc```
|
|
39
|
+
*/
|
|
9
40
|
this.titleOrderDirection = "asc";
|
|
41
|
+
/**
|
|
42
|
+
* Date display format used in the title row.
|
|
43
|
+
* <br /><br />
|
|
44
|
+
* values:<br />
|
|
45
|
+
* ```year // quarter // month // week // day // time // auto // none```
|
|
46
|
+
* <br /><br />
|
|
47
|
+
* `year`: YYYY, `quarter`: Q[Q] YYYY, `month`: MMM YYYY,
|
|
48
|
+
* `week`: [KW]WW YYYY, `day`: DD.MM.YYYY, `time`: DD.MM.YYYY HH:mm:ss,
|
|
49
|
+
* `auto`: automatic detection, `none`: DD.MM.YYYY.
|
|
50
|
+
*/
|
|
10
51
|
this.titleDateFormat = "none";
|
|
52
|
+
/**
|
|
53
|
+
* Format in which the start and end dates are linked in the title.
|
|
54
|
+
* If set to `none` a plain date is shown.
|
|
55
|
+
* <br /><br />
|
|
56
|
+
* values:<br />
|
|
57
|
+
* ```avg // interval // cum // start // end // ytd // ytg // mat // none```
|
|
58
|
+
* <br /><br />
|
|
59
|
+
* `avg`: Ø[DATE], `interval`: [DATE]..[DATE2], `start`: .[DATE],
|
|
60
|
+
* `end`: [DATE]., `ytd`: _[DATE], `ytg`: [DATE]_, `cum`: [DATE]_[DATE2],
|
|
61
|
+
* `mat`: ~[DATE], `none`: [DATE].
|
|
62
|
+
*/
|
|
11
63
|
this.titleDateLink = "none";
|
|
64
|
+
/**
|
|
65
|
+
* Namespace used for title translations via the internationalization store.
|
|
66
|
+
*/
|
|
12
67
|
this.titleNamespace = "_system";
|
|
68
|
+
/**
|
|
69
|
+
* Whether to display the page number in the footer.
|
|
70
|
+
*/
|
|
13
71
|
this.footerDisplayPageNumber = true;
|
|
72
|
+
/**
|
|
73
|
+
* Layout mode that controls how child components are arranged in the
|
|
74
|
+
* page body using CSS Grid.
|
|
75
|
+
* <br /><br />
|
|
76
|
+
* values:<br />
|
|
77
|
+
* ```full // split-vertical // split-horizontal // 2x2 // 3x3 // 4x4 // 1-over-2 // 1-over-3 // 2-over-1 // 3-over-1 // custom-template```
|
|
78
|
+
* <br /><br />
|
|
79
|
+
* `full`: single slot. `split-vertical`: two side-by-side slots.
|
|
80
|
+
* `split-horizontal`: two stacked slots. `NxN`: equal grid.
|
|
81
|
+
* `1-over-2`: one full-width slot on top, two below. `custom-template`:
|
|
82
|
+
* uses the `pageCustomTemplate` CSS grid-template-areas string.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* <bn-layout-page page-layout="2x2"></bn-layout-page>
|
|
86
|
+
*/
|
|
14
87
|
this.pageLayout = "full";
|
|
88
|
+
/**
|
|
89
|
+
* CSS `grid-template-areas` string used when `pageLayout` is set to
|
|
90
|
+
* `custom-template`. Each quoted row defines a grid row; letters map to
|
|
91
|
+
* slot indices in order of first appearance.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* <bn-layout-page page-layout="custom-template"
|
|
95
|
+
* page-custom-template='"a a" "b c"'></bn-layout-page>
|
|
96
|
+
*/
|
|
15
97
|
this.pageCustomTemplate = '"a b" "c d"';
|
|
98
|
+
/**
|
|
99
|
+
* Gap between grid cells in pixels.
|
|
100
|
+
*/
|
|
16
101
|
this.pageGridGap = "0";
|
|
17
|
-
|
|
102
|
+
/**
|
|
103
|
+
* When `true`, the page body height shrinks to fit its content
|
|
104
|
+
* (`fit-content`). When `false` (default), the body stretches to
|
|
105
|
+
* fill the full page height (`100%`). Width is always `100%`
|
|
106
|
+
* regardless of this setting.
|
|
107
|
+
* <br /><br />
|
|
108
|
+
* Use `false` (default) when the page contains components with
|
|
109
|
+
* auto-scaling (e.g. `unit-scaling="auto"` or `scale="auto"`),
|
|
110
|
+
* because auto-scaling needs a fixed parent height to calculate
|
|
111
|
+
* dimensions.
|
|
112
|
+
*/
|
|
113
|
+
this.pageFitToContent = false;
|
|
18
114
|
this.templateMap = new Map([
|
|
19
115
|
["split-vertical", '"a b"'],
|
|
20
116
|
["split-horizontal", '"a" "b"'],
|
|
@@ -33,27 +129,46 @@ export class LayoutPage {
|
|
|
33
129
|
}
|
|
34
130
|
getCommonStyles() {
|
|
35
131
|
let height = "100%";
|
|
36
|
-
let width = "100%";
|
|
37
132
|
if (this.pageFitToContent === true) {
|
|
38
|
-
width = "fit-content";
|
|
39
133
|
height = "fit-content";
|
|
40
134
|
}
|
|
135
|
+
// Width is always 100% — page width is fixed by page format (XGA, A4, etc.).
|
|
136
|
+
// Using fit-content for width makes the grid indefinite, causing CSS Grid to
|
|
137
|
+
// treat percentage column tracks as "auto" (content-sized), which breaks
|
|
138
|
+
// equal column splits and auto-scaling in child components.
|
|
41
139
|
return {
|
|
42
140
|
display: "grid",
|
|
43
141
|
height: height,
|
|
44
|
-
width:
|
|
142
|
+
width: "100%",
|
|
45
143
|
gap: this.pageGridGap + "px",
|
|
46
144
|
};
|
|
47
145
|
}
|
|
146
|
+
getGridTemplateRows(name) {
|
|
147
|
+
const template = this.getTemplateAreas(name);
|
|
148
|
+
const pattern = /"[\w\d\s.]+"/g;
|
|
149
|
+
const matches = template.match(pattern);
|
|
150
|
+
const rowCount = matches ? matches.length : 1;
|
|
151
|
+
if (this.pageFitToContent) {
|
|
152
|
+
return Array(rowCount).fill("auto").join(" ");
|
|
153
|
+
}
|
|
154
|
+
// minmax(0, 1fr) allows rows to shrink below their content height.
|
|
155
|
+
// Plain 1fr = minmax(auto, 1fr) which grows rows to fit content,
|
|
156
|
+
// breaking overflow:hidden on slot wrappers and causing charts
|
|
157
|
+
// inside cards to push the grid cell beyond its intended share.
|
|
158
|
+
return Array(rowCount).fill("minmax(0, 1fr)").join(" ");
|
|
159
|
+
}
|
|
48
160
|
getLayoutStyle() {
|
|
49
|
-
return Object.assign(Object.assign({}, this.getCommonStyles()), { "grid-template-areas": this.getTemplateAreas(this.pageLayout), "grid-template-columns": this.getGridTemplateColumns(this.pageLayout) });
|
|
161
|
+
return Object.assign(Object.assign({}, this.getCommonStyles()), { "grid-template-areas": this.getTemplateAreas(this.pageLayout), "grid-template-columns": this.getGridTemplateColumns(this.pageLayout), "grid-template-rows": this.getGridTemplateRows(this.pageLayout) });
|
|
50
162
|
}
|
|
51
163
|
createDivAreaStyles(elements) {
|
|
52
164
|
return elements.map((x) => ({
|
|
53
|
-
|
|
165
|
+
// display:flex (row direction) makes slotted children stretch
|
|
166
|
+
// vertically via align-items:stretch (default). This constrains
|
|
167
|
+
// cards/charts to the grid cell height instead of growing to
|
|
168
|
+
// content size. Column direction would only stretch horizontally.
|
|
169
|
+
display: "flex",
|
|
54
170
|
overflow: "hidden",
|
|
55
171
|
"grid-area": x,
|
|
56
|
-
height: "100%",
|
|
57
172
|
}));
|
|
58
173
|
}
|
|
59
174
|
getSlots(slotNames) {
|
|
@@ -81,17 +196,16 @@ export class LayoutPage {
|
|
|
81
196
|
}
|
|
82
197
|
return this.templateMap.get(name);
|
|
83
198
|
}
|
|
84
|
-
|
|
199
|
+
calculateFractions(input) {
|
|
85
200
|
const items = input.trim().split(/\s+/);
|
|
86
201
|
const count = items.length;
|
|
87
202
|
if (count === 0)
|
|
88
|
-
return "
|
|
89
|
-
|
|
90
|
-
return Array(count).fill(percentage).join(" ");
|
|
203
|
+
return "minmax(0, 1fr)";
|
|
204
|
+
return Array(count).fill("minmax(0, 1fr)").join(" ");
|
|
91
205
|
}
|
|
92
206
|
getGridTemplateColumns(name) {
|
|
93
207
|
if (this.templateMap.has(name) === false && name !== "custom-template") {
|
|
94
|
-
return "
|
|
208
|
+
return "1fr";
|
|
95
209
|
}
|
|
96
210
|
let template;
|
|
97
211
|
const pattern = /"[\w\d\s.]+"/g;
|
|
@@ -102,7 +216,7 @@ export class LayoutPage {
|
|
|
102
216
|
template = this.templateMap.get(name);
|
|
103
217
|
}
|
|
104
218
|
const matches = template.match(pattern);
|
|
105
|
-
return this.
|
|
219
|
+
return this.calculateFractions(matches[0]);
|
|
106
220
|
}
|
|
107
221
|
async getNumberOfSlot(name) {
|
|
108
222
|
const template = this.getTemplateAreas(name);
|
|
@@ -127,7 +241,7 @@ export class LayoutPage {
|
|
|
127
241
|
const arrOfSlots = this.extractSlotNames(style["grid-template-areas"]);
|
|
128
242
|
return (
|
|
129
243
|
// @ts-ignore
|
|
130
|
-
h("bn-page", { key: '
|
|
244
|
+
h("bn-page", { key: '958dbce3b000c62d287f6263fed495523786e28d', styles: this.styles, format: this.pageFormat, orientation: this.pageOrientation }, h("bn-message", { key: 'cdb559c63a0466ccaa1cd807d027dd127e3b3efe', text: this.messageText, image: this.messageImage }), h("bn-title", { key: '48fafd3fc8be7d49df4939bd5db63908b36e523f', namespace: this.titleNamespace, "business-unit": this.titleBusinessUnit, scenarios: this.titleScenarios, variances: this.titleVariances, order: this.titleOrder, "order-direction": this.titleOrderDirection, measures: this.titleMeasures, "date-start": this.titleDateStart, "date-end": this.titleDateEnd, "date-format": this.titleDateFormat, "date-link": this.titleDateLink }), h("bn-body", { key: '93c9f7b2c345c8bc6fdb20d35fa406ee919379eb' }, h("div", { key: '64e4db5a7b6265bcd73b700227b5f033c99facdc', style: style }, this.getSlots(arrOfSlots))), h("bn-footer", { key: 'f7b69e9fcfbdde742a2d547f81c50dd78a3ed02f', text: this.footerText, "page-number": this.pageNumber, "display-page-number": this.footerDisplayPageNumber })));
|
|
131
245
|
}
|
|
132
246
|
static get is() { return "bn-layout-page"; }
|
|
133
247
|
static get encapsulation() { return "shadow"; }
|
|
@@ -155,7 +269,7 @@ export class LayoutPage {
|
|
|
155
269
|
"optional": true,
|
|
156
270
|
"docs": {
|
|
157
271
|
"tags": [],
|
|
158
|
-
"text": ""
|
|
272
|
+
"text": "JSON string of component-style overrides passed through to the inner\n`<bn-page>` element. Typically set via a `ComponentStyle` manifest\nrather than directly on the component."
|
|
159
273
|
},
|
|
160
274
|
"getter": false,
|
|
161
275
|
"setter": false,
|
|
@@ -174,7 +288,7 @@ export class LayoutPage {
|
|
|
174
288
|
"optional": false,
|
|
175
289
|
"docs": {
|
|
176
290
|
"tags": [],
|
|
177
|
-
"text": ""
|
|
291
|
+
"text": "Message text displayed in the message row above the title.\nIf empty, the message row is omitted."
|
|
178
292
|
},
|
|
179
293
|
"getter": false,
|
|
180
294
|
"setter": false,
|
|
@@ -193,8 +307,11 @@ export class LayoutPage {
|
|
|
193
307
|
"required": false,
|
|
194
308
|
"optional": false,
|
|
195
309
|
"docs": {
|
|
196
|
-
"tags": [
|
|
197
|
-
|
|
310
|
+
"tags": [{
|
|
311
|
+
"name": "example",
|
|
312
|
+
"text": "<bn-layout-page message-image=\"debug/concordia.png\"></bn-layout-page>"
|
|
313
|
+
}],
|
|
314
|
+
"text": "URL or asset name of the image displayed in the message row.\nIf the value is not an HTTP URL it is looked up in the asset store.\nIf empty, the image is omitted."
|
|
198
315
|
},
|
|
199
316
|
"getter": false,
|
|
200
317
|
"setter": false,
|
|
@@ -213,8 +330,11 @@ export class LayoutPage {
|
|
|
213
330
|
"required": false,
|
|
214
331
|
"optional": false,
|
|
215
332
|
"docs": {
|
|
216
|
-
"tags": [
|
|
217
|
-
|
|
333
|
+
"tags": [{
|
|
334
|
+
"name": "example",
|
|
335
|
+
"text": "<bn-layout-page title-business-unit=\"Group Controlling\"></bn-layout-page>"
|
|
336
|
+
}],
|
|
337
|
+
"text": "Name of the business unit displayed in the title header row.\nIf empty, the business unit row is omitted."
|
|
218
338
|
},
|
|
219
339
|
"getter": false,
|
|
220
340
|
"setter": false,
|
|
@@ -234,7 +354,7 @@ export class LayoutPage {
|
|
|
234
354
|
"optional": true,
|
|
235
355
|
"docs": {
|
|
236
356
|
"tags": [],
|
|
237
|
-
"text": ""
|
|
357
|
+
"text": "List of scenarios displayed in the title header.\n<br /><br />\nComma-separated string or omitted. If empty, the scenarios row is omitted.\n<br /><br />\nvalues:<br />\n```ac // fc // py // pl```"
|
|
238
358
|
},
|
|
239
359
|
"getter": false,
|
|
240
360
|
"setter": false,
|
|
@@ -253,7 +373,7 @@ export class LayoutPage {
|
|
|
253
373
|
"optional": true,
|
|
254
374
|
"docs": {
|
|
255
375
|
"tags": [],
|
|
256
|
-
"text": ""
|
|
376
|
+
"text": "List of variances calculated from the given scenarios.\nThe scenarios used in the variances must also be defined in\nthe `titleScenarios` property. The variance is defined as\n(ScenarioA \u2212 ScenarioB). The pos/neg/neu postfix defines\nwhich direction is considered \"good\".\n<br /><br />\nIf empty, variance indicators are hidden.\n<br /><br />\npattern:<br />\n```d<scenarioB>_<scenarioA>_[pos/neg/neu]```"
|
|
257
377
|
},
|
|
258
378
|
"getter": false,
|
|
259
379
|
"setter": false,
|
|
@@ -272,7 +392,7 @@ export class LayoutPage {
|
|
|
272
392
|
"optional": false,
|
|
273
393
|
"docs": {
|
|
274
394
|
"tags": [],
|
|
275
|
-
"text": ""
|
|
395
|
+
"text": "Primary column on which the order direction is applied.\n<br /><br />\nvalues:<br />\n```category // categoryindex // rowgroup // rowgroupindex // ac // fc // py // pl```"
|
|
276
396
|
},
|
|
277
397
|
"getter": false,
|
|
278
398
|
"setter": false,
|
|
@@ -292,7 +412,7 @@ export class LayoutPage {
|
|
|
292
412
|
"optional": false,
|
|
293
413
|
"docs": {
|
|
294
414
|
"tags": [],
|
|
295
|
-
"text": ""
|
|
415
|
+
"text": "Sorting order direction for the column specified by `titleOrder`.\n<br /><br />\nvalues:<br />\n```asc // desc```"
|
|
296
416
|
},
|
|
297
417
|
"getter": false,
|
|
298
418
|
"setter": false,
|
|
@@ -311,8 +431,11 @@ export class LayoutPage {
|
|
|
311
431
|
"required": false,
|
|
312
432
|
"optional": true,
|
|
313
433
|
"docs": {
|
|
314
|
-
"tags": [
|
|
315
|
-
|
|
434
|
+
"tags": [{
|
|
435
|
+
"name": "example",
|
|
436
|
+
"text": "<bn-layout-page title-measures='[{\"name\":\"Revenue\",\"unit\":\"mEUR\"}]'></bn-layout-page>"
|
|
437
|
+
}],
|
|
438
|
+
"text": "Array of measure objects with `name` and `unit` displayed in the title.\nPassed as a JSON string. If all units are the same, redundant units are\nreduced and names concatenated. If empty, the measure row is omitted."
|
|
316
439
|
},
|
|
317
440
|
"getter": false,
|
|
318
441
|
"setter": false,
|
|
@@ -331,7 +454,7 @@ export class LayoutPage {
|
|
|
331
454
|
"optional": true,
|
|
332
455
|
"docs": {
|
|
333
456
|
"tags": [],
|
|
334
|
-
"text": ""
|
|
457
|
+
"text": "Start date displayed in the title date row.\nAccepts `yyyy-MM-dd` (e.g. `2024-01-01`) or ISO 8601 datetime\n(e.g. `2024-01-01T14:30:00Z`)."
|
|
335
458
|
},
|
|
336
459
|
"getter": false,
|
|
337
460
|
"setter": false,
|
|
@@ -350,7 +473,7 @@ export class LayoutPage {
|
|
|
350
473
|
"optional": true,
|
|
351
474
|
"docs": {
|
|
352
475
|
"tags": [],
|
|
353
|
-
"text": ""
|
|
476
|
+
"text": "End date displayed in the title date row.\nAccepts `yyyy-MM-dd` (e.g. `2024-12-31`) or ISO 8601 datetime\n(e.g. `2024-12-31T23:59:59Z`)."
|
|
354
477
|
},
|
|
355
478
|
"getter": false,
|
|
356
479
|
"setter": false,
|
|
@@ -369,7 +492,7 @@ export class LayoutPage {
|
|
|
369
492
|
"optional": false,
|
|
370
493
|
"docs": {
|
|
371
494
|
"tags": [],
|
|
372
|
-
"text": ""
|
|
495
|
+
"text": "Date display format used in the title row.\n<br /><br />\nvalues:<br />\n```year // quarter // month // week // day // time // auto // none```\n<br /><br />\n`year`: YYYY, `quarter`: Q[Q] YYYY, `month`: MMM YYYY,\n`week`: [KW]WW YYYY, `day`: DD.MM.YYYY, `time`: DD.MM.YYYY HH:mm:ss,\n`auto`: automatic detection, `none`: DD.MM.YYYY."
|
|
373
496
|
},
|
|
374
497
|
"getter": false,
|
|
375
498
|
"setter": false,
|
|
@@ -389,7 +512,7 @@ export class LayoutPage {
|
|
|
389
512
|
"optional": false,
|
|
390
513
|
"docs": {
|
|
391
514
|
"tags": [],
|
|
392
|
-
"text": ""
|
|
515
|
+
"text": "Format in which the start and end dates are linked in the title.\nIf set to `none` a plain date is shown.\n<br /><br />\nvalues:<br />\n```avg // interval // cum // start // end // ytd // ytg // mat // none```\n<br /><br />\n`avg`: \u00D8[DATE], `interval`: [DATE]..[DATE2], `start`: .[DATE],\n`end`: [DATE]., `ytd`: _[DATE], `ytg`: [DATE]_, `cum`: [DATE]_[DATE2],\n`mat`: ~[DATE], `none`: [DATE]."
|
|
393
516
|
},
|
|
394
517
|
"getter": false,
|
|
395
518
|
"setter": false,
|
|
@@ -409,7 +532,7 @@ export class LayoutPage {
|
|
|
409
532
|
"optional": false,
|
|
410
533
|
"docs": {
|
|
411
534
|
"tags": [],
|
|
412
|
-
"text": ""
|
|
535
|
+
"text": "Namespace used for title translations via the internationalization store."
|
|
413
536
|
},
|
|
414
537
|
"getter": false,
|
|
415
538
|
"setter": false,
|
|
@@ -429,7 +552,7 @@ export class LayoutPage {
|
|
|
429
552
|
"optional": true,
|
|
430
553
|
"docs": {
|
|
431
554
|
"tags": [],
|
|
432
|
-
"text": ""
|
|
555
|
+
"text": "Page size format. Determines the pixel dimensions of the rendered page.\n<br /><br />\nvalues:<br />\n```xga // hd // full-hd // 4k // 4k2k // a4 // a3 // a2 // a1 // a0 // letter // legal```"
|
|
433
556
|
},
|
|
434
557
|
"getter": false,
|
|
435
558
|
"setter": false,
|
|
@@ -448,7 +571,7 @@ export class LayoutPage {
|
|
|
448
571
|
"optional": true,
|
|
449
572
|
"docs": {
|
|
450
573
|
"tags": [],
|
|
451
|
-
"text": ""
|
|
574
|
+
"text": "Page orientation. Default depends on the chosen format.\n<br /><br />\nvalues:<br />\n```landscape // portrait```"
|
|
452
575
|
},
|
|
453
576
|
"getter": false,
|
|
454
577
|
"setter": false,
|
|
@@ -467,7 +590,7 @@ export class LayoutPage {
|
|
|
467
590
|
"optional": true,
|
|
468
591
|
"docs": {
|
|
469
592
|
"tags": [],
|
|
470
|
-
"text": ""
|
|
593
|
+
"text": "Page number displayed in the footer. If empty, no page number is shown\n(unless `footerDisplayPageNumber` is also set)."
|
|
471
594
|
},
|
|
472
595
|
"getter": false,
|
|
473
596
|
"setter": false,
|
|
@@ -486,7 +609,7 @@ export class LayoutPage {
|
|
|
486
609
|
"optional": true,
|
|
487
610
|
"docs": {
|
|
488
611
|
"tags": [],
|
|
489
|
-
"text": ""
|
|
612
|
+
"text": "Text displayed in the page footer. If empty, the footer text is omitted."
|
|
490
613
|
},
|
|
491
614
|
"getter": false,
|
|
492
615
|
"setter": false,
|
|
@@ -505,7 +628,7 @@ export class LayoutPage {
|
|
|
505
628
|
"optional": true,
|
|
506
629
|
"docs": {
|
|
507
630
|
"tags": [],
|
|
508
|
-
"text": ""
|
|
631
|
+
"text": "Whether to display the page number in the footer."
|
|
509
632
|
},
|
|
510
633
|
"getter": false,
|
|
511
634
|
"setter": false,
|
|
@@ -524,8 +647,11 @@ export class LayoutPage {
|
|
|
524
647
|
"required": false,
|
|
525
648
|
"optional": false,
|
|
526
649
|
"docs": {
|
|
527
|
-
"tags": [
|
|
528
|
-
|
|
650
|
+
"tags": [{
|
|
651
|
+
"name": "example",
|
|
652
|
+
"text": "<bn-layout-page page-layout=\"2x2\"></bn-layout-page>"
|
|
653
|
+
}],
|
|
654
|
+
"text": "Layout mode that controls how child components are arranged in the\npage body using CSS Grid.\n<br /><br />\nvalues:<br />\n```full // split-vertical // split-horizontal // 2x2 // 3x3 // 4x4 // 1-over-2 // 1-over-3 // 2-over-1 // 3-over-1 // custom-template```\n<br /><br />\n`full`: single slot. `split-vertical`: two side-by-side slots.\n`split-horizontal`: two stacked slots. `NxN`: equal grid.\n`1-over-2`: one full-width slot on top, two below. `custom-template`:\nuses the `pageCustomTemplate` CSS grid-template-areas string."
|
|
529
655
|
},
|
|
530
656
|
"getter": false,
|
|
531
657
|
"setter": false,
|
|
@@ -544,8 +670,11 @@ export class LayoutPage {
|
|
|
544
670
|
"required": false,
|
|
545
671
|
"optional": false,
|
|
546
672
|
"docs": {
|
|
547
|
-
"tags": [
|
|
548
|
-
|
|
673
|
+
"tags": [{
|
|
674
|
+
"name": "example",
|
|
675
|
+
"text": "<bn-layout-page page-layout=\"custom-template\"\n page-custom-template='\"a a\" \"b c\"'></bn-layout-page>"
|
|
676
|
+
}],
|
|
677
|
+
"text": "CSS `grid-template-areas` string used when `pageLayout` is set to\n`custom-template`. Each quoted row defines a grid row; letters map to\nslot indices in order of first appearance."
|
|
549
678
|
},
|
|
550
679
|
"getter": false,
|
|
551
680
|
"setter": false,
|
|
@@ -565,7 +694,7 @@ export class LayoutPage {
|
|
|
565
694
|
"optional": false,
|
|
566
695
|
"docs": {
|
|
567
696
|
"tags": [],
|
|
568
|
-
"text": ""
|
|
697
|
+
"text": "Gap between grid cells in pixels."
|
|
569
698
|
},
|
|
570
699
|
"getter": false,
|
|
571
700
|
"setter": false,
|
|
@@ -585,13 +714,13 @@ export class LayoutPage {
|
|
|
585
714
|
"optional": false,
|
|
586
715
|
"docs": {
|
|
587
716
|
"tags": [],
|
|
588
|
-
"text": ""
|
|
717
|
+
"text": "When `true`, the page body height shrinks to fit its content\n(`fit-content`). When `false` (default), the body stretches to\nfill the full page height (`100%`). Width is always `100%`\nregardless of this setting.\n<br /><br />\nUse `false` (default) when the page contains components with\nauto-scaling (e.g. `unit-scaling=\"auto\"` or `scale=\"auto\"`),\nbecause auto-scaling needs a fixed parent height to calculate\ndimensions."
|
|
589
718
|
},
|
|
590
719
|
"getter": false,
|
|
591
720
|
"setter": false,
|
|
592
721
|
"reflect": false,
|
|
593
722
|
"attribute": "page-fit-to-content",
|
|
594
|
-
"defaultValue": "
|
|
723
|
+
"defaultValue": "false"
|
|
595
724
|
}
|
|
596
725
|
};
|
|
597
726
|
}
|
|
@@ -35,7 +35,7 @@ export class Footer {
|
|
|
35
35
|
return assetsState[value] || value;
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: 'bbe7f6098aa6f3a5495b36557b218a82ec2ccbca', id: this.text || this.image ? "container-page-message" : "container", style: this.getFontStyles() }, h("div", { key: 'd89297da5605b0ee1cc757b1771b6a48525a24e5', id: "message-text" }, this.text != null && this.text !== "" ? h("span", { class: "note" }, this.text) : ""), h("div", { key: '70bc74b0a8a5a39fdd2931cf86faada294142a26', id: "page-image" }, this.image != null && this.image !== "" ? h("img", { class: "image", src: this.prepareAssetUrl(this.image) }) : "")));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "bn-message"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -38,7 +38,7 @@ export class Page {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: 'b4d682a8f6e83f77c58236265eaf9d1327809c6f', format: this.format, orientation: this.orientation, style: this.prepareStyle() }, h("slot", { key: 'ef49c43c1f8926c4c968b752608627adbe330d6c' })));
|
|
42
42
|
}
|
|
43
43
|
prepareStyle() {
|
|
44
44
|
const pageStyle = {
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getStores } from "../../context/context-protocol";
|
|
3
|
+
import withComponentStatus from "../../utils/withComponentStatus";
|
|
4
|
+
import withHasError from "../../utils/withHasError";
|
|
5
|
+
/**
|
|
6
|
+
* Defines a named scaling value that chart and table components can reference
|
|
7
|
+
* via their `unit-scaling` or `percentage-scaling` attributes.
|
|
8
|
+
*
|
|
9
|
+
* Multiple components sharing the same group name will use the same scaling
|
|
10
|
+
* value, allowing synchronized scaling across an entire page or section.
|
|
11
|
+
*
|
|
12
|
+
* The reserved name `"auto"` is not allowed and will be ignored with a warning.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <bn-scaling-group name="revenue" value="0.05"></bn-scaling-group>
|
|
16
|
+
* <bn-chart-structure unit-scaling="revenue" ...></bn-chart-structure>
|
|
17
|
+
* <bn-table unit-scaling="revenue" ...></bn-table>
|
|
18
|
+
*/
|
|
19
|
+
export class ScalingGroup {
|
|
20
|
+
constructor() {
|
|
21
|
+
withComponentStatus(this);
|
|
22
|
+
this.errors = withHasError(this);
|
|
23
|
+
}
|
|
24
|
+
connectedCallback() {
|
|
25
|
+
this.stores = getStores(this.element);
|
|
26
|
+
this.pushToStore();
|
|
27
|
+
}
|
|
28
|
+
onNameChange(newName, oldName) {
|
|
29
|
+
if (oldName && oldName !== newName && this.stores) {
|
|
30
|
+
// Remove old entry — only if it still points to our value
|
|
31
|
+
// (another bn-scaling-group with the same name may have overwritten it)
|
|
32
|
+
const current = this.stores.scalingGroups.state[oldName];
|
|
33
|
+
if (current === this.value) {
|
|
34
|
+
// @ts-ignore – dynamic key
|
|
35
|
+
this.stores.scalingGroups.set(oldName, undefined);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
this.pushToStore();
|
|
39
|
+
}
|
|
40
|
+
onValueChange() {
|
|
41
|
+
this.pushToStore();
|
|
42
|
+
}
|
|
43
|
+
pushToStore() {
|
|
44
|
+
var _a;
|
|
45
|
+
if (!this.stores)
|
|
46
|
+
return;
|
|
47
|
+
const trimmedName = (_a = this.name) === null || _a === void 0 ? void 0 : _a.toString().trim();
|
|
48
|
+
// Validate: "auto" is reserved
|
|
49
|
+
if ((trimmedName === null || trimmedName === void 0 ? void 0 : trimmedName.toLowerCase()) === "auto") {
|
|
50
|
+
this.errors.addOrReplace({
|
|
51
|
+
id: "ERR_reserved_name",
|
|
52
|
+
type: "warning",
|
|
53
|
+
message: `bn-scaling-group: name "auto" is reserved and cannot be used.`,
|
|
54
|
+
});
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
this.errors.remove("ERR_reserved_name");
|
|
58
|
+
if (!trimmedName) {
|
|
59
|
+
this.errors.addOrReplace({
|
|
60
|
+
id: "ERR_empty_name",
|
|
61
|
+
type: "warning",
|
|
62
|
+
message: `bn-scaling-group: name is required.`,
|
|
63
|
+
});
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
this.errors.remove("ERR_empty_name");
|
|
67
|
+
// @ts-ignore – dynamic key
|
|
68
|
+
this.stores.scalingGroups.set(trimmedName, this.value);
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
return h(Host, { key: '5f38a91595cb1494b275d48345bf821fddb9b904' });
|
|
72
|
+
}
|
|
73
|
+
static get is() { return "bn-scaling-group"; }
|
|
74
|
+
static get originalStyleUrls() {
|
|
75
|
+
return {
|
|
76
|
+
"$": ["bn-scaling-group.css"]
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
static get styleUrls() {
|
|
80
|
+
return {
|
|
81
|
+
"$": ["bn-scaling-group.css"]
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
static get properties() {
|
|
85
|
+
return {
|
|
86
|
+
"name": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"mutable": false,
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "string",
|
|
91
|
+
"resolved": "string",
|
|
92
|
+
"references": {}
|
|
93
|
+
},
|
|
94
|
+
"required": true,
|
|
95
|
+
"optional": false,
|
|
96
|
+
"docs": {
|
|
97
|
+
"tags": [],
|
|
98
|
+
"text": "Unique name identifying this scaling group.\nComponents reference this name in their `unit-scaling` or `percentage-scaling` attributes.\n\nThe name `\"auto\"` is reserved and cannot be used."
|
|
99
|
+
},
|
|
100
|
+
"getter": false,
|
|
101
|
+
"setter": false,
|
|
102
|
+
"reflect": false,
|
|
103
|
+
"attribute": "name"
|
|
104
|
+
},
|
|
105
|
+
"value": {
|
|
106
|
+
"type": "number",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "number",
|
|
110
|
+
"resolved": "number",
|
|
111
|
+
"references": {}
|
|
112
|
+
},
|
|
113
|
+
"required": true,
|
|
114
|
+
"optional": false,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": "The scaling value (pixels per data unit or pixels per percentage point,\ndepending on which attribute references this group)."
|
|
118
|
+
},
|
|
119
|
+
"getter": false,
|
|
120
|
+
"setter": false,
|
|
121
|
+
"reflect": false,
|
|
122
|
+
"attribute": "value"
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
static get elementRef() { return "element"; }
|
|
127
|
+
static get watchers() {
|
|
128
|
+
return [{
|
|
129
|
+
"propName": "name",
|
|
130
|
+
"methodName": "onNameChange"
|
|
131
|
+
}, {
|
|
132
|
+
"propName": "value",
|
|
133
|
+
"methodName": "onValueChange"
|
|
134
|
+
}];
|
|
135
|
+
}
|
|
136
|
+
}
|