@bino-bi/bn-template-engine 1.0.0-alpha.0 → 1.0.0-alpha.3
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-05a82a77.entry.js +1 -0
- package/dist/bn-template-engine/p-0f1504f3.entry.js +1 -0
- package/dist/bn-template-engine/p-1970906d.entry.js +1 -0
- package/dist/bn-template-engine/p-1dbd339c.entry.js +1 -0
- package/dist/bn-template-engine/p-2e68cf09.entry.js +1 -0
- package/dist/bn-template-engine/p-31cc6a2d.entry.js +1 -0
- package/dist/bn-template-engine/p-37881d05.entry.js +1 -0
- package/dist/bn-template-engine/{p-65f8962a.entry.js → p-3b894997.entry.js} +1 -1
- package/dist/bn-template-engine/p-50e49732.entry.js +1 -0
- package/dist/bn-template-engine/{p-ad94cf63.entry.js → p-6c7c0455.entry.js} +1 -1
- package/dist/bn-template-engine/p-6da93eae.entry.js +1 -0
- package/dist/bn-template-engine/p-701e1578.entry.js +1 -0
- package/dist/bn-template-engine/{p-_LBTIfNN.js → p-8tsCnxIz.js} +1 -1
- package/dist/bn-template-engine/p-997b2fe4.entry.js +1 -0
- package/dist/bn-template-engine/p-B4ySv9KQ.js +1 -0
- package/dist/bn-template-engine/p-BL8gyUwE.js +1 -0
- package/dist/bn-template-engine/p-BSfqOkN_.js +1 -0
- package/dist/bn-template-engine/{p-Cp4MVxCu.js → p-C0yAPzJz.js} +1 -1
- package/dist/bn-template-engine/{p--TeDldm8.js → p-CRLgp9-v.js} +1 -1
- package/dist/bn-template-engine/p-CYjZRKdI.js +1 -0
- package/dist/bn-template-engine/p-DG-1MR_T.js +1 -0
- package/dist/bn-template-engine/{p-CnI71OA9.js → p-DRikHQE-.js} +1 -1
- package/dist/bn-template-engine/p-DVMu6dEy.js +1 -0
- package/dist/bn-template-engine/p-DtdQCMzj.js +1 -0
- package/dist/bn-template-engine/p-JNHhIe7t.js +2 -0
- package/dist/bn-template-engine/p-a90f1cbe.entry.js +1 -0
- package/dist/bn-template-engine/p-b7bec050.entry.js +1 -0
- package/dist/bn-template-engine/p-d7f0cbaf.entry.js +1 -0
- package/dist/bn-template-engine/p-dfb61aa5.entry.js +1 -0
- package/dist/bn-template-engine/p-ece17f84.entry.js +1 -0
- package/dist/bn-template-engine/p-f27995c9.entry.js +1 -0
- package/dist/bn-template-engine/p-fd427179.entry.js +1 -0
- package/dist/bn-template-engine/p-sqjrku2z.js +1 -0
- package/dist/bn-template-engine/{p-CY1RzLjU.js → p-tzFCK9qn.js} +1 -1
- package/dist/cjs/{DataFormatDigits-DmTbhF8q.js → DataFormatDigits-DAmZzqbD.js} +1 -1
- package/dist/cjs/{DateStringFactory-Dn0aRj2Y.js → DateStringFactory-CcluhpGI.js} +4 -5
- package/dist/cjs/{luxon-8hyy5YD7.js → Order-BKoDS21t.js} +310 -0
- package/dist/cjs/{SVGVariancesStyleGroup-Czizhngt.js → SVGVariancesStyleGroup-DYYAU-81.js} +1 -1
- package/dist/cjs/{StringAdapter-0EbYMkR0.js → StringAdapter-Bneo8T4k.js} +1 -1
- package/dist/cjs/bn-asset.cjs.entry.js +5 -6
- package/dist/cjs/{bn-body_3.cjs.entry.js → bn-body_4.cjs.entry.js} +360 -27
- package/dist/cjs/bn-card.cjs.entry.js +5 -6
- package/dist/cjs/bn-chart-structure.cjs.entry.js +17 -22
- package/dist/cjs/bn-chart-time.cjs.entry.js +38 -51
- package/dist/cjs/bn-component-style.cjs.entry.js +5 -6
- package/dist/cjs/bn-context_5.cjs.entry.js +145 -78
- package/dist/cjs/bn-dataset.cjs.entry.js +5 -6
- package/dist/cjs/bn-grid.cjs.entry.js +8 -11
- package/dist/cjs/bn-image.cjs.entry.js +8 -11
- package/dist/cjs/bn-internationalization.cjs.entry.js +5 -6
- package/dist/cjs/bn-layout-card.cjs.entry.js +3 -3
- package/dist/cjs/bn-layout-page.cjs.entry.js +2 -2
- package/dist/cjs/bn-message.cjs.entry.js +6 -7
- package/dist/cjs/bn-template-engine.cjs.js +2 -2
- package/dist/cjs/bn-template.cjs.entry.js +4 -5
- package/dist/cjs/bn-text.cjs.entry.js +12 -16
- package/dist/cjs/bn-tree.cjs.entry.js +8 -11
- package/dist/cjs/{context-protocol-BkYHFkXE.js → context-protocol-CRPmux5D.js} +1 -1
- package/dist/cjs/editor-companion.cjs.entry.js +3 -3
- package/dist/cjs/ibcs-chart-structure.cjs.entry.js +31 -33
- package/dist/cjs/ibcs-chart-time.cjs.entry.js +42 -44
- package/dist/cjs/{index-CScBFiS1.js → index-Cjw0q6gP.js} +1 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{withDataset-ZdN-RRTx.js → scaling-D8sIIKft.js} +68 -3
- package/dist/cjs/{withBodyObserver-B0_W1VOf.js → withBodyObserver-C6gLgq_e.js} +2 -2
- package/dist/cjs/{componentRegister-C17UFNPh.js → withComponentStatus-_x4LQZ0N.js} +43 -6
- package/dist/cjs/{withComponentStyle-C6KHnZHt.js → withComponentStyle-DMtic_9Y.js} +3 -3
- package/dist/cjs/{withHasError-Dspb3lIV.js → withHasError-B8gHkfV2.js} +1 -1
- package/dist/cjs/{withStyled-Bf-stJTR.js → withStyled-CW30Bh6c.js} +18 -63
- package/dist/cjs/{withTranslation-Cz0M5maV.js → withTranslation-CWPAIRjh.js} +3 -3
- package/dist/collection/collection-manifest.json +1 -10
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +2 -3
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +21 -30
- 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-table/bn-table.js +63 -12
- package/dist/collection/components/bn-table/ibcs-table.css +7 -5
- package/dist/collection/components/bn-table/ibcs-table.js +22 -1
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +56 -25
- 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/editor-companion/editor-companion.js +1 -1
- package/dist/collection/utils/DateStringFactory.js +0 -1
- package/dist/collection/utils/constants.js +27 -0
- package/dist/collection/utils/validate.js +4 -1
- 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-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-message2.js +1 -1
- package/dist/components/bn-page2.js +1 -1
- 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/editor-companion.js +1 -1
- package/dist/components/ibcs-chart-structure2.js +1 -1
- package/dist/components/ibcs-chart-time2.js +1 -1
- package/dist/components/ibcs-table2.js +1 -1
- package/dist/components/ibcs-title2.js +1 -1
- package/dist/components/ibcsRuleSet.js +1 -1
- package/dist/components/scaling.js +1 -1
- package/dist/components/validate.js +1 -1
- package/dist/components/withHasError.js +1 -1
- package/dist/esm/{DataFormatDigits-Dt6gpIiZ.js → DataFormatDigits--qIbKvXa.js} +1 -1
- package/dist/esm/{DateStringFactory-_Qiv0IvF.js → DateStringFactory-XWdUjsn8.js} +1 -2
- package/dist/esm/{luxon-DbyXf6dF.js → Order-sqjrku2z.js} +307 -1
- package/dist/esm/{SVGVariancesStyleGroup-DlWgvpzs.js → SVGVariancesStyleGroup-ibg3sLjM.js} +1 -1
- package/dist/esm/{StringAdapter-BLvo1Krl.js → StringAdapter-BCLJpQQ8.js} +1 -1
- package/dist/esm/bn-asset.entry.js +5 -6
- package/dist/esm/{bn-body_3.entry.js → bn-body_4.entry.js} +356 -24
- package/dist/esm/bn-card.entry.js +5 -6
- package/dist/esm/bn-chart-structure.entry.js +12 -17
- package/dist/esm/bn-chart-time.entry.js +31 -44
- package/dist/esm/bn-component-style.entry.js +5 -6
- package/dist/esm/bn-context_5.entry.js +124 -57
- package/dist/esm/bn-dataset.entry.js +5 -6
- package/dist/esm/bn-grid.entry.js +8 -11
- package/dist/esm/bn-image.entry.js +8 -11
- package/dist/esm/bn-internationalization.entry.js +5 -6
- package/dist/esm/bn-layout-card.entry.js +3 -3
- package/dist/esm/bn-layout-page.entry.js +2 -2
- package/dist/esm/bn-message.entry.js +6 -7
- package/dist/esm/bn-template-engine.js +3 -3
- package/dist/esm/bn-template.entry.js +4 -5
- package/dist/esm/bn-text.entry.js +11 -15
- package/dist/esm/bn-tree.entry.js +8 -11
- package/dist/esm/{context-protocol-DzeqZxg6.js → context-protocol-Bz5klD-F.js} +1 -1
- package/dist/esm/editor-companion.entry.js +3 -3
- package/dist/esm/ibcs-chart-structure.entry.js +5 -7
- package/dist/esm/ibcs-chart-time.entry.js +6 -8
- package/dist/esm/{index-B27Ax6P_.js → index-JNHhIe7t.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{withDataset-BT2VQCsG.js → scaling-C6K8FYSF.js} +67 -4
- package/dist/esm/{withBodyObserver-gZpZiEIK.js → withBodyObserver-DczL5ia8.js} +2 -2
- package/dist/esm/{componentRegister-BtVfu16B.js → withComponentStatus-DodoSXe-.js} +36 -1
- package/dist/esm/{withComponentStyle-NaxfakAG.js → withComponentStyle-BerJY64r.js} +3 -3
- package/dist/esm/{withHasError-C48fTE2k.js → withHasError-B3QX2emi.js} +1 -1
- package/dist/esm/{withStyled-CpUTv74m.js → withStyled-D1fAWJ3g.js} +8 -51
- package/dist/esm/{withTranslation-Do4GhleK.js → withTranslation-mimbJdER.js} +3 -3
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +1 -2
- package/dist/types/components/bn-table/bn-table.d.ts +11 -7
- package/dist/types/components/bn-table/ibcs-table.d.ts +1 -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 +3 -0
- package/dist/types/components/bn-title/bn-title.d.ts +0 -1
- package/dist/types/components.d.ts +22 -403
- package/dist/types/utils/constants.d.ts +15 -0
- package/dist/types/utils/validate.d.ts +1 -0
- package/package.json +2 -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-0e7dc113.entry.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-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-BFatTBqh.js +0 -1
- package/dist/bn-template-engine/p-BQp6ZPYW.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-CfWnag33.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-a342cd3c.entry.js +0 -1
- package/dist/bn-template-engine/p-bc37d750.entry.js +0 -1
- package/dist/bn-template-engine/p-c9f050bf.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/Order-B4NIqQWe.js +0 -129
- package/dist/cjs/bn-map.cjs.entry.js +0 -425
- package/dist/cjs/constants-DHqQXSSd.js +0 -158
- 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/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.d.ts +0 -11
- 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/Order-B4fpLe_f.js +0 -125
- package/dist/esm/bn-map.entry.js +0 -423
- package/dist/esm/constants-kMyLevYy.js +0 -158
- 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/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,10 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var DateStringFactory = require('./DateStringFactory-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var withHasError = require('./withHasError-Dspb3lIV.js');
|
|
3
|
+
var Order = require('./Order-BKoDS21t.js');
|
|
4
|
+
var DateStringFactory = require('./DateStringFactory-CcluhpGI.js');
|
|
5
|
+
var index = require('./index-Cjw0q6gP.js');
|
|
6
|
+
var withHasError = require('./withHasError-B8gHkfV2.js');
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* Prop validators for Stencil @Watch handlers.
|
|
@@ -34,7 +33,7 @@ function validateScenarioList(value) {
|
|
|
34
33
|
if (value.trim().toLowerCase() === "auto") {
|
|
35
34
|
return [];
|
|
36
35
|
}
|
|
37
|
-
const invalidScenarios = value === null || value === void 0 ? void 0 : value.split(",").filter((element) => !(element.toUpperCase().trim() in
|
|
36
|
+
const invalidScenarios = value === null || value === void 0 ? void 0 : value.split(",").filter((element) => !(element.toUpperCase().trim() in Order.Scenarios));
|
|
38
37
|
return validateVariancesList(invalidScenarios.toString());
|
|
39
38
|
}
|
|
40
39
|
/**
|
|
@@ -56,9 +55,9 @@ function validateVariancesList(value) {
|
|
|
56
55
|
const scenarioMinuend = (_b = splittedElement[1]) === null || _b === void 0 ? void 0 : _b.toUpperCase().trim();
|
|
57
56
|
const scenarioSentiment = (_c = splittedElement[2]) === null || _c === void 0 ? void 0 : _c.toUpperCase().trim();
|
|
58
57
|
return (splittedElement.length !== 3 ||
|
|
59
|
-
!(scenarioSubtrahend in
|
|
60
|
-
!(scenarioMinuend in
|
|
61
|
-
!(scenarioSentiment in
|
|
58
|
+
!(scenarioSubtrahend in Order.Scenarios) ||
|
|
59
|
+
!(scenarioMinuend in Order.Scenarios) ||
|
|
60
|
+
!(scenarioSentiment in Order.Sentiments));
|
|
62
61
|
});
|
|
63
62
|
return invalidScenarios;
|
|
64
63
|
}
|
|
@@ -94,7 +93,7 @@ function isValidLevel(value) {
|
|
|
94
93
|
if ((value === null || value === void 0 ? void 0 : value.toLowerCase()) === "auto") {
|
|
95
94
|
return true;
|
|
96
95
|
}
|
|
97
|
-
return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in
|
|
96
|
+
return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in Order.AggregationLevel;
|
|
98
97
|
}
|
|
99
98
|
function validateMeasureList(value) {
|
|
100
99
|
if (isBlankInput(value)) {
|
|
@@ -111,51 +110,6 @@ function validateMeasureList(value) {
|
|
|
111
110
|
}
|
|
112
111
|
return ["Invalid JSON structure"];
|
|
113
112
|
}
|
|
114
|
-
function validateMarkerType(value) {
|
|
115
|
-
if (isBlankInput(value)) {
|
|
116
|
-
return [];
|
|
117
|
-
}
|
|
118
|
-
try {
|
|
119
|
-
const newObj = JSON.parse(value);
|
|
120
|
-
if (newObj instanceof Array) {
|
|
121
|
-
return newObj.filter((elem) => !elem.hasOwnProperty("latitude") && !elem.hasOwnProperty("longitude") && !elem.hasOwnProperty("iconUrl"));
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
catch (e) {
|
|
125
|
-
throw e;
|
|
126
|
-
}
|
|
127
|
-
return ["Invalid JSON structure"];
|
|
128
|
-
}
|
|
129
|
-
function validateGpxType(value) {
|
|
130
|
-
if (isBlankInput(value)) {
|
|
131
|
-
return [];
|
|
132
|
-
}
|
|
133
|
-
try {
|
|
134
|
-
const newObj = JSON.parse(value);
|
|
135
|
-
if (newObj instanceof Array) {
|
|
136
|
-
return newObj.filter((elem) => !elem.hasOwnProperty("file"));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e) {
|
|
140
|
-
throw e;
|
|
141
|
-
}
|
|
142
|
-
return ["Invalid JSON structure"];
|
|
143
|
-
}
|
|
144
|
-
function validateGeojsonType(value) {
|
|
145
|
-
if (isBlankInput(value)) {
|
|
146
|
-
return [];
|
|
147
|
-
}
|
|
148
|
-
try {
|
|
149
|
-
const newObj = JSON.parse(value);
|
|
150
|
-
if (newObj instanceof Array) {
|
|
151
|
-
return newObj.filter((elem) => !elem.hasOwnProperty("file"));
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
throw e;
|
|
156
|
-
}
|
|
157
|
-
return ["Invalid JSON structure"];
|
|
158
|
-
}
|
|
159
113
|
function isValidDate(value) {
|
|
160
114
|
const newDate = Date.parse(value);
|
|
161
115
|
return Number.isInteger(newDate);
|
|
@@ -167,13 +121,13 @@ function isValidDateFormat(value) {
|
|
|
167
121
|
return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in DateStringFactory.DateDistance;
|
|
168
122
|
}
|
|
169
123
|
function isValidAxisLabelsMode(value) {
|
|
170
|
-
return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in
|
|
124
|
+
return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in Order.AxisLabelsMode;
|
|
171
125
|
}
|
|
172
126
|
function isValidDataFormat(value) {
|
|
173
127
|
if (isBlankInput(value)) {
|
|
174
128
|
return false;
|
|
175
129
|
}
|
|
176
|
-
return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in
|
|
130
|
+
return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in Order.DataFormat;
|
|
177
131
|
}
|
|
178
132
|
function isValidBoolean(value) {
|
|
179
133
|
if (isBlankInput(value)) {
|
|
@@ -186,7 +140,7 @@ function isValidTableType(value) {
|
|
|
186
140
|
if (isBlankInput(value)) {
|
|
187
141
|
return false;
|
|
188
142
|
}
|
|
189
|
-
return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in
|
|
143
|
+
return (value === null || value === void 0 ? void 0 : value.toUpperCase()) in Order.TableType;
|
|
190
144
|
}
|
|
191
145
|
function validateThereOfJsonStr(value) {
|
|
192
146
|
if (isBlankInput(value)) {
|
|
@@ -221,7 +175,7 @@ function validatePartOfJsonStr(value) {
|
|
|
221
175
|
return ["Invalid JSON structure"];
|
|
222
176
|
}
|
|
223
177
|
function isValidMeasureType(value) {
|
|
224
|
-
return (value === null || value === void 0 ? void 0 : value.trim().toUpperCase()) in
|
|
178
|
+
return (value === null || value === void 0 ? void 0 : value.trim().toUpperCase()) in Order.MeasureType;
|
|
225
179
|
}
|
|
226
180
|
/**
|
|
227
181
|
* Validates a measure-scale attribute value.
|
|
@@ -232,7 +186,10 @@ function isValidMeasureScale(value) {
|
|
|
232
186
|
return (["_", "k", "M", "G", "T", "P", "E", "Z", "Y", "m", "μ", "n", "p", "P", "f", "a", "z", "y"].includes(value === null || value === void 0 ? void 0 : value.trim()) || ["GREATEST", "LEAST"].includes(value === null || value === void 0 ? void 0 : value.trim().toUpperCase()));
|
|
233
187
|
}
|
|
234
188
|
function isTableCategoryWidth(value) {
|
|
235
|
-
return (value === null || value === void 0 ? void 0 : value.toUpperCase().trim()) in
|
|
189
|
+
return (value === null || value === void 0 ? void 0 : value.toUpperCase().trim()) in Order.TableCategoryWidth;
|
|
190
|
+
}
|
|
191
|
+
function isTableBarColumnWidth(value) {
|
|
192
|
+
return (value === null || value === void 0 ? void 0 : value.toUpperCase().trim()) in Order.TableBarColumnWidth;
|
|
236
193
|
}
|
|
237
194
|
function validateColumnThereOfJsonStr(value) {
|
|
238
195
|
if (isBlankInput(value)) {
|
|
@@ -539,6 +496,7 @@ const withStyled = (component) => {
|
|
|
539
496
|
};
|
|
540
497
|
|
|
541
498
|
exports.isBlankInput = isBlankInput;
|
|
499
|
+
exports.isTableBarColumnWidth = isTableBarColumnWidth;
|
|
542
500
|
exports.isTableCategoryWidth = isTableCategoryWidth;
|
|
543
501
|
exports.isValidAxisLabelsMode = isValidAxisLabelsMode;
|
|
544
502
|
exports.isValidBoolean = isValidBoolean;
|
|
@@ -554,9 +512,6 @@ exports.isValidMeasureType = isValidMeasureType;
|
|
|
554
512
|
exports.isValidNumber = isValidNumber;
|
|
555
513
|
exports.isValidTableType = isValidTableType;
|
|
556
514
|
exports.validateColumnThereOfJsonStr = validateColumnThereOfJsonStr;
|
|
557
|
-
exports.validateGeojsonType = validateGeojsonType;
|
|
558
|
-
exports.validateGpxType = validateGpxType;
|
|
559
|
-
exports.validateMarkerType = validateMarkerType;
|
|
560
515
|
exports.validateMeasureList = validateMeasureList;
|
|
561
516
|
exports.validateOrderList = validateOrderList;
|
|
562
517
|
exports.validatePartOfJsonStr = validatePartOfJsonStr;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var contextProtocol = require('./context-protocol-
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var withHasError = require('./withHasError-
|
|
3
|
+
var contextProtocol = require('./context-protocol-CRPmux5D.js');
|
|
4
|
+
var index = require('./index-Cjw0q6gP.js');
|
|
5
|
+
var withHasError = require('./withHasError-B8gHkfV2.js');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Mixin that provides i18n translation support to a Stencil component.
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
"components/bn-internationalization/bn-internationalization.js",
|
|
18
18
|
"components/bn-layout-card/bn-layout-card.js",
|
|
19
19
|
"components/bn-layout-page/bn-layout-page.js",
|
|
20
|
-
"components/bn-map/bn-map.js",
|
|
21
|
-
"components/bn-map/ibcs-map/ibcs-map.js",
|
|
22
20
|
"components/bn-message/bn-message.js",
|
|
23
21
|
"components/bn-page/bn-page.js",
|
|
24
22
|
"components/bn-table/bn-table.js",
|
|
@@ -28,14 +26,7 @@
|
|
|
28
26
|
"components/bn-title/bn-title.js",
|
|
29
27
|
"components/bn-title/ibcs-title/ibcs-title.js",
|
|
30
28
|
"components/bn-tree/bn-tree.js",
|
|
31
|
-
"components/editor-companion/editor-companion.js"
|
|
32
|
-
"test-runner/test-runner-card.js",
|
|
33
|
-
"test-runner/test-runner-chart-time.js",
|
|
34
|
-
"test-runner/test-runner-chart.js",
|
|
35
|
-
"test-runner/test-runner-map.js",
|
|
36
|
-
"test-runner/test-runner-table.js",
|
|
37
|
-
"test-runner/test-runner-time.js",
|
|
38
|
-
"test-runner/test-runner-title.js"
|
|
29
|
+
"components/editor-companion/editor-companion.js"
|
|
39
30
|
],
|
|
40
31
|
"mixins": [],
|
|
41
32
|
"compiler": {
|
|
@@ -439,7 +439,7 @@ export class Chart {
|
|
|
439
439
|
}
|
|
440
440
|
preparePixelPerPercentage() {
|
|
441
441
|
if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
|
|
442
|
-
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
442
|
+
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
443
443
|
}
|
|
444
444
|
return Number(this.percentageScaling) * 100;
|
|
445
445
|
}
|
|
@@ -497,7 +497,6 @@ export class Chart {
|
|
|
497
497
|
};
|
|
498
498
|
return tableOrder;
|
|
499
499
|
}
|
|
500
|
-
// TODO(JHE): consider extracting style preparation into an adapter pattern
|
|
501
500
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
502
501
|
prepareStyle() {
|
|
503
502
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
@@ -658,7 +657,7 @@ export class Chart {
|
|
|
658
657
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
659
658
|
}
|
|
660
659
|
const fontStyles = this.getFontStyles();
|
|
661
|
-
return (h(Host, { key: '
|
|
660
|
+
return (h(Host, { key: 'c8ad939fbe92ab4a01af1e5ce17e097dbb5eab56', style: fontStyles }, h("div", { key: 'd786c49dd808c2dd9093ede7100e16ac52f50689', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
662
661
|
}
|
|
663
662
|
static get is() { return "bn-chart-structure"; }
|
|
664
663
|
static get encapsulation() { return "shadow"; }
|
|
@@ -456,7 +456,7 @@ export class Chart {
|
|
|
456
456
|
*/
|
|
457
457
|
this.measureUnit = "";
|
|
458
458
|
this.pixelPerUnitGroupMap = new Map();
|
|
459
|
-
this.
|
|
459
|
+
this._autoScaleGuard = false;
|
|
460
460
|
withStyled(this);
|
|
461
461
|
withComponentStatus(this);
|
|
462
462
|
withDataset(this, (_name, data) => {
|
|
@@ -496,7 +496,7 @@ export class Chart {
|
|
|
496
496
|
var _a, _b;
|
|
497
497
|
const { mode } = parseScaling(this.scale);
|
|
498
498
|
if (mode !== "auto" && mode !== "empty") {
|
|
499
|
-
this.
|
|
499
|
+
this._autoScaleGuard = false;
|
|
500
500
|
// Keep existing width-based overflow warning for non-auto modes
|
|
501
501
|
const parent = getParentDimensions(this.element);
|
|
502
502
|
const errId = "WARN_overflow";
|
|
@@ -512,51 +512,43 @@ export class Chart {
|
|
|
512
512
|
}
|
|
513
513
|
return;
|
|
514
514
|
}
|
|
515
|
+
if (this._autoScaleGuard) {
|
|
516
|
+
this._autoScaleGuard = false;
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
515
519
|
const host = this.element;
|
|
516
520
|
const { width: parentWidth } = getParentDimensions(host);
|
|
517
521
|
if (parentWidth <= 0)
|
|
518
522
|
return;
|
|
519
|
-
|
|
520
|
-
const currentWidth = (_b = div === null || div === void 0 ? void 0 : div.scrollWidth) !== null && _b !== void 0 ? _b : host.scrollWidth;
|
|
523
|
+
// Measure at base (unscaled) font size to get true content width
|
|
521
524
|
const baseFontSize = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
+
host.style.setProperty("--bn-font-size", `${baseFontSize}px`);
|
|
526
|
+
// Reading scrollWidth forces a synchronous reflow at base size
|
|
527
|
+
const div = (_a = host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".container");
|
|
528
|
+
const unscaledWidth = (_b = div === null || div === void 0 ? void 0 : div.scrollWidth) !== null && _b !== void 0 ? _b : host.scrollWidth;
|
|
529
|
+
if (unscaledWidth <= parentWidth + 1) {
|
|
525
530
|
this.errors.remove("AUTO_scale");
|
|
526
|
-
// If previously scaled but content now fits at base, reset to 1
|
|
527
531
|
if (this.appliedScaleFactor !== 1) {
|
|
528
|
-
|
|
529
|
-
this._autoScaleIterations = 1;
|
|
532
|
+
this._autoScaleGuard = true;
|
|
530
533
|
this.appliedScaleFactor = 1;
|
|
531
|
-
host.style.setProperty("--bn-font-size", `${baseFontSize}px`);
|
|
532
534
|
}
|
|
533
535
|
return;
|
|
534
536
|
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
this._autoScaleIterations = 0;
|
|
538
|
-
return;
|
|
539
|
-
}
|
|
540
|
-
// Content overflows — compute multiplicative correction
|
|
541
|
-
const correction = (parentWidth - 1) / currentWidth;
|
|
542
|
-
const newFactor = this.appliedScaleFactor * correction;
|
|
543
|
-
host.style.setProperty("--bn-font-size", `${baseFontSize * newFactor}px`);
|
|
537
|
+
const computedFactor = (parentWidth - 1) / unscaledWidth;
|
|
538
|
+
host.style.setProperty("--bn-font-size", `${baseFontSize * computedFactor}px`);
|
|
544
539
|
if (mode === "empty") {
|
|
545
540
|
this.errors.addOrReplace({
|
|
546
541
|
id: "AUTO_scale",
|
|
547
542
|
type: "warning",
|
|
548
|
-
message: `Auto-scaled chart by factor ${
|
|
543
|
+
message: `Auto-scaled chart by factor ${computedFactor.toFixed(3)}`,
|
|
549
544
|
});
|
|
550
545
|
}
|
|
551
546
|
else {
|
|
552
547
|
this.errors.remove("AUTO_scale");
|
|
553
548
|
}
|
|
554
|
-
if (Math.abs(
|
|
555
|
-
this.
|
|
556
|
-
this.appliedScaleFactor =
|
|
557
|
-
}
|
|
558
|
-
else {
|
|
559
|
-
this._autoScaleIterations = 0;
|
|
549
|
+
if (Math.abs(computedFactor - this.appliedScaleFactor) > 0.001) {
|
|
550
|
+
this._autoScaleGuard = true;
|
|
551
|
+
this.appliedScaleFactor = computedFactor;
|
|
560
552
|
}
|
|
561
553
|
}
|
|
562
554
|
prepareDimension() {
|
|
@@ -637,7 +629,7 @@ export class Chart {
|
|
|
637
629
|
}
|
|
638
630
|
preparePixelPerPercentage() {
|
|
639
631
|
if (this.pixelPerUnitGroupMap.has(this.percentageScaling)) {
|
|
640
|
-
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
632
|
+
return this.pixelPerUnitGroupMap.get(this.percentageScaling);
|
|
641
633
|
}
|
|
642
634
|
return Number(this.percentageScaling) * 100;
|
|
643
635
|
}
|
|
@@ -915,7 +907,7 @@ export class Chart {
|
|
|
915
907
|
scenariosArray = [...scenariosArray, ...variancesArray];
|
|
916
908
|
}
|
|
917
909
|
const fontStyles = this.getFontStyles();
|
|
918
|
-
return (h(Host, { key: '
|
|
910
|
+
return (h(Host, { key: 'ed9bf10764443d9b4be0bf05dbbcd858d271993a', style: fontStyles }, h("div", { key: 'c2bda702b470a4ddba2da84d81908d96ce893c8e', class: "container" }, scenariosArray.map(this.chartTemplate))));
|
|
919
911
|
}
|
|
920
912
|
static get is() { return "bn-chart-time"; }
|
|
921
913
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1507,4 +1499,3 @@ export class Chart {
|
|
|
1507
1499
|
}];
|
|
1508
1500
|
}
|
|
1509
1501
|
}
|
|
1510
|
-
Chart.MAX_SCALE_ITERATIONS = 3;
|
|
@@ -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 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { isBlankInput, isTableCategoryWidth, isValidBoolean, isValidDataFormat, isValidDirection, isValidInteger, isValidMeasureScale, isValidMeasureType, isValidNumber, isValidTableType, validateColumnThereOfJsonStr, validateOrderList, validatePartOfJsonStr, validateScenarioList, validateThereOfJsonStr, validateVariancesList, } from "../../utils/validate";
|
|
2
|
+
import { isBlankInput, isTableBarColumnWidth, isTableCategoryWidth, isValidBoolean, isValidDataFormat, isValidDirection, isValidInteger, isValidMeasureScale, isValidMeasureType, isValidNumber, isValidTableType, validateColumnThereOfJsonStr, validateOrderList, validatePartOfJsonStr, validateScenarioList, validateThereOfJsonStr, validateVariancesList, } from "../../utils/validate";
|
|
3
3
|
import withDataset from "../../utils/withDataset";
|
|
4
4
|
import withComponentStatus from "../../utils/withComponentStatus";
|
|
5
5
|
import { globalLabelKeys } from "../../stores/internationalization";
|
|
@@ -9,7 +9,7 @@ import withComponentStyle from "../../utils/withComponentStyle";
|
|
|
9
9
|
import withHasError from "../../utils/withHasError";
|
|
10
10
|
import { getParentDimensions } from "../../utils/parentDimensions";
|
|
11
11
|
import { parseScaling } from "../../utils/scaling";
|
|
12
|
-
import { DataFormat, I18nMode, MeasureType, TableCategoryWidth } from "../../utils/constants";
|
|
12
|
+
import { BAR_COLUMN_WIDTH_EM, DataFormat, I18nMode, MeasureType, TableBarColumnWidth, TableCategoryWidth, } from "../../utils/constants";
|
|
13
13
|
import { TableType } from "./utils/model";
|
|
14
14
|
import { OrderColumn, OrderDirection } from "../../utils/model/Order";
|
|
15
15
|
/**
|
|
@@ -57,14 +57,16 @@ export class Table {
|
|
|
57
57
|
*/
|
|
58
58
|
this.measureUnit = "";
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
* Set width of bar chart columns. Controls the max bar/pin width in pixels.
|
|
61
|
+
* <br /><br />
|
|
62
|
+
* values:<br />
|
|
63
|
+
* ``` w5 // w10 // w15 // w20 // w25 // w30 // w40 // w60 // w80 // w100 ```
|
|
64
|
+
*/
|
|
65
|
+
this.barColumnWidth = "w30";
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated Bars now scale proportionally via column statistics. Kept for backward compatibility.
|
|
66
68
|
* <br /><br />
|
|
67
|
-
*
|
|
69
|
+
* Scaling for absolute variance bar charts (ΔPY).
|
|
68
70
|
* <br /><br />
|
|
69
71
|
* Default: 0.01
|
|
70
72
|
*/
|
|
@@ -312,6 +314,19 @@ export class Table {
|
|
|
312
314
|
this.errors.remove(errId);
|
|
313
315
|
}
|
|
314
316
|
}
|
|
317
|
+
validateBarColumnWidth(newValue) {
|
|
318
|
+
const errId = "ERR_barColumnWidth";
|
|
319
|
+
if (!isTableBarColumnWidth(newValue)) {
|
|
320
|
+
this.errors.addOrReplace({
|
|
321
|
+
id: errId,
|
|
322
|
+
type: "warning",
|
|
323
|
+
message: "barColumnWidth: invalid value '" + newValue + "' is not supported.",
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
this.errors.remove(errId);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
315
330
|
validateUnitScaling(newValue) {
|
|
316
331
|
const errId = "ERR_unitScaling";
|
|
317
332
|
if (!isValidNumber(newValue) && !this.pixelPerUnitGroupMap.has(newValue)) {
|
|
@@ -572,6 +587,7 @@ export class Table {
|
|
|
572
587
|
this.validateColumnThereOf(this.columnthereof);
|
|
573
588
|
this.validateShowMeasureScale(this.showMeasureScale);
|
|
574
589
|
this.validateBarColumns(this.barColumns);
|
|
590
|
+
this.validateBarColumnWidth(this.barColumnWidth);
|
|
575
591
|
this.validateUnitScaling(this.unitScaling);
|
|
576
592
|
this.validatePercentageScaling(this.percentageScaling);
|
|
577
593
|
this.validateScaling(this.scale);
|
|
@@ -799,6 +815,15 @@ export class Table {
|
|
|
799
815
|
}
|
|
800
816
|
return this.filter;
|
|
801
817
|
}
|
|
818
|
+
prepareBarColumnWidth() {
|
|
819
|
+
var _a;
|
|
820
|
+
const key = (_a = this.barColumnWidth) === null || _a === void 0 ? void 0 : _a.toUpperCase();
|
|
821
|
+
const preset = TableBarColumnWidth[key];
|
|
822
|
+
if (preset) {
|
|
823
|
+
return BAR_COLUMN_WIDTH_EM[preset];
|
|
824
|
+
}
|
|
825
|
+
return BAR_COLUMN_WIDTH_EM[TableBarColumnWidth.W30];
|
|
826
|
+
}
|
|
802
827
|
prepareBarColumns() {
|
|
803
828
|
if (isBlankInput(this.barColumns)) {
|
|
804
829
|
return [];
|
|
@@ -878,7 +903,7 @@ export class Table {
|
|
|
878
903
|
render() {
|
|
879
904
|
const fontStyles = this.getFontStyles();
|
|
880
905
|
const effectiveFactor = this.getEffectiveScaleFactor();
|
|
881
|
-
return (h(Host, { key: '
|
|
906
|
+
return (h(Host, { key: 'b379c18d4d92805e91404917ffb096e582b9bec2', style: fontStyles }, h("div", { key: 'a45679a84d85b856f0e01615952c0ccfe05108f9' }, h("ibcs-table", { key: '0b375fca9ab9422bc61a4d0ba75eaf30eedfa77d', data: this.data, "table-title": this.prepareTableTitle(), scenarios: this.prepareScenarios(), "scenarios-data-format": this.prepareDataFormat(), grouped: this.prepareGrouped(), limit: this.prepareLimit(), showGroupTitle: this.prepareShowGroupTitle(), thereof: this.prepareThereOf(), partof: this.preparePartOf(), order: this.prepareOrder(), categorythereof: this.prepareColumnThereOf(), type: this.prepareTableType(), "category-width": this.prepareCategoryWidth(), dataFormatDigits: this.prepareDataFormatDigits(), i18n: this.prepareI18n(), "i18n-mode": this.prepareI18nMode(), "measure-scale": this.prepareMeasureScale(), "measure-type": this.prepareMeasureType(), "measure-unit": this.prepareMeasureUnit(), showMeasureScale: this.prepareShowMeasureScale(), filter: this.prepareFilter(), barColumns: this.prepareBarColumns(), barColumnMaxWidth: this.prepareBarColumnWidth(), unitScaling: this.prepareUnitScaling(), percentageScaling: this.preparePercentageScaling(), scaleFactor: effectiveFactor }))));
|
|
882
907
|
}
|
|
883
908
|
static get is() { return "bn-table"; }
|
|
884
909
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1033,6 +1058,26 @@ export class Table {
|
|
|
1033
1058
|
"reflect": false,
|
|
1034
1059
|
"attribute": "bar-columns"
|
|
1035
1060
|
},
|
|
1061
|
+
"barColumnWidth": {
|
|
1062
|
+
"type": "string",
|
|
1063
|
+
"mutable": false,
|
|
1064
|
+
"complexType": {
|
|
1065
|
+
"original": "string",
|
|
1066
|
+
"resolved": "string",
|
|
1067
|
+
"references": {}
|
|
1068
|
+
},
|
|
1069
|
+
"required": false,
|
|
1070
|
+
"optional": false,
|
|
1071
|
+
"docs": {
|
|
1072
|
+
"tags": [],
|
|
1073
|
+
"text": "Set width of bar chart columns. Controls the max bar/pin width in pixels.\n<br /><br />\nvalues:<br />\n``` w5 // w10 // w15 // w20 // w25 // w30 // w40 // w60 // w80 // w100 ```"
|
|
1074
|
+
},
|
|
1075
|
+
"getter": false,
|
|
1076
|
+
"setter": false,
|
|
1077
|
+
"reflect": false,
|
|
1078
|
+
"attribute": "bar-column-width",
|
|
1079
|
+
"defaultValue": "\"w30\""
|
|
1080
|
+
},
|
|
1036
1081
|
"unitScaling": {
|
|
1037
1082
|
"type": "any",
|
|
1038
1083
|
"mutable": false,
|
|
@@ -1044,8 +1089,11 @@ export class Table {
|
|
|
1044
1089
|
"required": false,
|
|
1045
1090
|
"optional": false,
|
|
1046
1091
|
"docs": {
|
|
1047
|
-
"tags": [
|
|
1048
|
-
|
|
1092
|
+
"tags": [{
|
|
1093
|
+
"name": "deprecated",
|
|
1094
|
+
"text": "Bars now scale proportionally via column statistics. Kept for backward compatibility.\n<br /><br />\nScaling for absolute variance bar charts (\u0394PY).\n<br /><br />\nDefault: 0.01"
|
|
1095
|
+
}],
|
|
1096
|
+
"text": ""
|
|
1049
1097
|
},
|
|
1050
1098
|
"getter": false,
|
|
1051
1099
|
"setter": false,
|
|
@@ -1416,6 +1464,9 @@ export class Table {
|
|
|
1416
1464
|
}, {
|
|
1417
1465
|
"propName": "barColumns",
|
|
1418
1466
|
"methodName": "validateBarColumns"
|
|
1467
|
+
}, {
|
|
1468
|
+
"propName": "barColumnWidth",
|
|
1469
|
+
"methodName": "validateBarColumnWidth"
|
|
1419
1470
|
}, {
|
|
1420
1471
|
"propName": "unitScaling",
|
|
1421
1472
|
"methodName": "validateUnitScaling"
|
|
@@ -47,35 +47,38 @@ td.neg_neutral {
|
|
|
47
47
|
text-align: right;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.category-inf {
|
|
51
|
-
max-width: 1000em;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
50
|
.category-w100 {
|
|
51
|
+
min-width: 100em;
|
|
55
52
|
max-width: 100em;
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
.category-w50 {
|
|
56
|
+
min-width: 50em;
|
|
59
57
|
max-width: 50em;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
.category-w25 {
|
|
61
|
+
min-width: 25em;
|
|
63
62
|
max-width: 25em;
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
.category-w20 {
|
|
66
|
+
min-width: 20em;
|
|
67
67
|
max-width: 20em;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.category-w15 {
|
|
71
|
+
min-width: 15em;
|
|
71
72
|
max-width: 15em;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
.category-w10 {
|
|
76
|
+
min-width: 10em;
|
|
75
77
|
max-width: 10em;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
.category-w5 {
|
|
81
|
+
min-width: 5em;
|
|
79
82
|
max-width: 5em;
|
|
80
83
|
}
|
|
81
84
|
|
|
@@ -287,7 +290,6 @@ td {
|
|
|
287
290
|
-webkit-box-sizing: border-box;
|
|
288
291
|
border-top: 0.1em dashed #ddd;
|
|
289
292
|
padding-left: 0.5em;
|
|
290
|
-
max-width: 15em;
|
|
291
293
|
white-space: nowrap;
|
|
292
294
|
overflow: hidden;
|
|
293
295
|
text-overflow: ellipsis;
|
|
@@ -48,6 +48,7 @@ export class IbcsTable {
|
|
|
48
48
|
this.measureType = MeasureType.VOLUME;
|
|
49
49
|
this.filter = "";
|
|
50
50
|
this.barColumns = [];
|
|
51
|
+
this.barColumnMaxWidth = 30;
|
|
51
52
|
this.unitScaling = 0.01;
|
|
52
53
|
this.percentageScaling = 0.5;
|
|
53
54
|
this.scaleFactor = 1;
|
|
@@ -63,7 +64,7 @@ export class IbcsTable {
|
|
|
63
64
|
const errorMsg = this.i18n.get("NO_DATA") || "==No Data==";
|
|
64
65
|
return h("p", { class: "warning" }, errorMsg);
|
|
65
66
|
}
|
|
66
|
-
return (h("table", null, h("thead", null, this.table.getHeader().map((row) => (h("tr", { class: row.cssStyle }, row.getCells().map((cell) => (h("th", { colSpan: cell.colSpan, class: cell.cssStyle }, cell.getAsHeaderList().map((line, i, arr) => (h("span", null, i === arr.length - 1 ? (h("span", { class: line === " " ? "table-footer" : "" }, line, cell.drawPrefix(), " ")) : (h("span", null, line, cell.drawPrefix(), h("br", null))))))))))))), h("tbody", null, this.table.getBody().map((row) => (h("tr", { class: row.cssStyle }, row === null || row === void 0 ? void 0 : row.getCells().map((cell) => (h("td", { colSpan: cell.colSpan, class: cell.
|
|
67
|
+
return (h("table", null, h("thead", null, this.table.getHeader().map((row) => (h("tr", { class: row.cssStyle }, row.getCells().map((cell) => (h("th", { colSpan: cell.colSpan, class: cell.cssStyle }, cell.getAsHeaderList().map((line, i, arr) => (h("span", null, i === arr.length - 1 ? (h("span", { class: line === " " ? "table-footer" : "" }, line, cell.drawPrefix(), " ")) : (h("span", null, line, cell.drawPrefix(), h("br", null))))))))))))), h("tbody", null, this.table.getBody().map((row) => (h("tr", { class: row.cssStyle }, row === null || row === void 0 ? void 0 : row.getCells().map((cell) => (h("td", { colSpan: cell.colSpan, class: cell.type ? `${cell.cssStyle} ${cell.type}` : cell.cssStyle }, cell.prefix != null ? (h("span", { class: cell.cssStyle + " " + cell.prefixStyle }, cell.drawPrefix())) : (""), cell.isBarChart && cell.columnStats ? (h(CellBarChart, { value: cell.value, scenario: cell.key, columnStats: cell.columnStats, height: 18 * this.scaleFactor, isRelative: cell.key.startsWith("dr"), isPositiveGood: cell.key.endsWith("_pos"), measureScale: cell.measureScale, maxBarWidth: this.barColumnMaxWidth, styles: this.barChartStyles })) : (cell.draw(this.componentDataFormatDigits)))))))))));
|
|
67
68
|
};
|
|
68
69
|
return h(Host, null, helper());
|
|
69
70
|
}
|
|
@@ -691,6 +692,26 @@ export class IbcsTable {
|
|
|
691
692
|
"setter": false,
|
|
692
693
|
"defaultValue": "[]"
|
|
693
694
|
},
|
|
695
|
+
"barColumnMaxWidth": {
|
|
696
|
+
"type": "number",
|
|
697
|
+
"mutable": false,
|
|
698
|
+
"complexType": {
|
|
699
|
+
"original": "number",
|
|
700
|
+
"resolved": "number",
|
|
701
|
+
"references": {}
|
|
702
|
+
},
|
|
703
|
+
"required": false,
|
|
704
|
+
"optional": false,
|
|
705
|
+
"docs": {
|
|
706
|
+
"tags": [],
|
|
707
|
+
"text": ""
|
|
708
|
+
},
|
|
709
|
+
"getter": false,
|
|
710
|
+
"setter": false,
|
|
711
|
+
"reflect": false,
|
|
712
|
+
"attribute": "bar-column-max-width",
|
|
713
|
+
"defaultValue": "30"
|
|
714
|
+
},
|
|
694
715
|
"unitScaling": {
|
|
695
716
|
"type": "number",
|
|
696
717
|
"mutable": false,
|