@bino-bi/bn-template-engine 1.0.0-next.28 → 1.0.0-next.29
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-12c8c444.entry.js +1 -0
- package/dist/bn-template-engine/p-2cbccbe7.entry.js +1 -0
- package/dist/bn-template-engine/p-5e66d1d0.entry.js +1 -0
- package/dist/bn-template-engine/p-69dfa165.entry.js +1 -0
- package/dist/bn-template-engine/p-Bo7_IopT.js +1 -0
- package/dist/bn-template-engine/p-ByoAF_Qe.js +1 -0
- package/dist/bn-template-engine/p-CCZcKl0Q.js +2 -0
- package/dist/bn-template-engine/p-CsupHyLQ.js +1 -0
- package/dist/bn-template-engine/p-D0qTf1_a.js +1 -0
- package/dist/bn-template-engine/p-b09430b6.entry.js +1 -0
- package/dist/bn-template-engine/p-f10950e8.entry.js +1 -0
- package/dist/bn-template-engine/p-qcLonXCz.js +1 -0
- package/dist/cjs/bn-asset_28.cjs.entry.js +23551 -23726
- package/dist/cjs/bn-grid.cjs.entry.js +11 -63
- package/dist/cjs/bn-image.cjs.entry.js +5 -6
- package/dist/cjs/bn-internationalization.cjs.entry.js +11 -7
- package/dist/cjs/bn-ruleset.cjs.entry.js +7 -8
- package/dist/cjs/bn-template-engine.cjs.js +2 -2
- package/dist/cjs/bn-text.cjs.entry.js +12 -12
- package/dist/cjs/{diagnostics-Cq-qDtXq.js → diagnostics-DMmUPOsm.js} +2 -2
- package/dist/cjs/{index-C1Z9vO7z.js → index-DGis1BzT.js} +0 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{sanitizeHtml-Yx1xn6i_.js → sanitizeHtml-Cr0jVSJ_.js} +52 -33
- package/dist/cjs/{withBodyObserver-CaPUjuC5.js → withBodyObserver-CrSp_FfF.js} +2 -2
- package/dist/cjs/{context-protocol-C0rKepqu.js → withHasError-DpogV-4f.js} +455 -13
- package/dist/cjs/{withStyled-vSfogp9J.js → withStyled-TQ67jCAV.js} +20 -34
- package/dist/collection/collection-manifest.json +9 -11
- package/dist/collection/components/bn-body/bn-body.js +24 -1
- package/dist/collection/components/bn-card/bn-card.js +24 -1
- package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.js → bn-chart-bubble-renderer/bn-chart-bubble-renderer.js} +153 -59
- package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +70 -13
- package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.js → bn-chart-bullet-renderer/bn-chart-bullet-renderer.js} +127 -53
- package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +83 -20
- package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +8 -8
- package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +4 -4
- package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.js → bn-chart-scatter-renderer/bn-chart-scatter-renderer.js} +132 -53
- package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +69 -12
- package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +5 -1
- package/dist/collection/components/bn-chart-structure/{ibcs-chart-structure.js → bn-chart-structure-renderer/bn-chart-structure-renderer.js} +159 -66
- package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +115 -95
- package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +18 -6
- package/dist/collection/components/bn-chart-structure/utils/elements/Axis.js +1 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/Bar.js +1 -1
- package/dist/collection/components/bn-chart-time/{ibcs-chart-time.js → bn-chart-time-renderer/bn-chart-time-renderer.js} +188 -150
- package/dist/collection/components/bn-chart-time/bn-chart-time.js +140 -405
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +27 -13
- package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +6 -3
- package/dist/collection/components/bn-chart-time/utils/factories/ScenarioFactory.js +2 -2
- package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +2 -18
- package/dist/collection/components/bn-component-style/bn-component-style.js +3 -3
- package/dist/collection/components/bn-context/bn-context.js +23 -4
- package/dist/collection/components/bn-dataset/bn-dataset.js +8 -8
- package/dist/collection/components/bn-datasource/bn-datasource.js +8 -8
- package/dist/collection/components/bn-footer/bn-footer.css +1 -15
- package/dist/collection/components/bn-footer/bn-footer.js +17 -34
- package/dist/collection/components/bn-grid/bn-grid.js +38 -71
- package/dist/collection/components/bn-image/bn-image.js +21 -2
- package/dist/collection/components/bn-internationalization/bn-internationalization.js +7 -1
- package/dist/collection/components/bn-layout-card/bn-layout-card.js +3 -32
- package/dist/collection/components/bn-layout-page/bn-layout-page.js +3 -32
- package/dist/collection/components/bn-message/bn-message.js +20 -2
- package/dist/collection/components/bn-page/bn-page.js +22 -3
- package/dist/collection/components/bn-ruleset/bn-ruleset.js +3 -3
- package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +9 -9
- package/dist/collection/components/bn-table/{ibcs-table.js → bn-table-renderer/bn-table-renderer.js} +215 -81
- package/dist/collection/components/bn-table/bn-table.js +134 -157
- package/dist/collection/components/bn-table/utils/Table.js +3 -3
- package/dist/collection/components/bn-table/utils/elements/TableRow.js +1 -1
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
- package/dist/collection/components/bn-table/utils/helper/barColumnGeometry.js +2 -2
- package/dist/collection/components/bn-text/bn-text.js +66 -8
- package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.js → bn-title-renderer/bn-title-renderer.js} +59 -83
- package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.js +2 -2
- package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.js +1 -1
- package/dist/collection/components/bn-title/bn-title.js +58 -14
- package/dist/collection/components/bn-tree/bn-tree.js +30 -28
- package/dist/collection/index.js +0 -1
- package/dist/collection/schemas.js +1 -0
- package/dist/collection/stores/componentStyles.js +6 -6
- package/dist/collection/stores/internationalization.js +10 -6
- package/dist/collection/utils/autoFit.js +2 -2
- package/dist/collection/utils/emptyState.js +1 -1
- package/dist/collection/utils/ibcsRuleSet.js +42 -0
- package/dist/collection/utils/layoutTemplate.js +0 -2
- package/dist/collection/utils/scaling.js +9 -0
- package/dist/collection/utils/validate.js +0 -7
- package/dist/collection/utils/withComponentStyle.js +12 -17
- package/dist/collection/utils/withDataset.js +22 -11
- package/dist/collection/utils/withHasError.js +17 -2
- package/dist/collection/utils/withRuleSet.js +7 -7
- package/dist/collection/utils/withTranslation.js +14 -14
- package/dist/collection/utils/xy/XYFrame.js +13 -3
- package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +8 -9
- package/dist/components/bn-asset.js +1 -1
- package/dist/components/bn-body.js +1 -1
- package/dist/components/bn-card.js +1 -1
- package/dist/components/bn-chart-bubble-renderer.d.ts +11 -0
- package/dist/components/bn-chart-bubble-renderer.js +1 -0
- package/dist/components/bn-chart-bubble.js +1 -1
- package/dist/components/bn-chart-bullet-renderer.d.ts +11 -0
- package/dist/components/bn-chart-bullet-renderer.js +1 -0
- package/dist/components/bn-chart-bullet.js +1 -1
- package/dist/components/bn-chart-scatter-renderer.d.ts +11 -0
- package/dist/components/bn-chart-scatter-renderer.js +1 -0
- package/dist/components/bn-chart-scatter.js +1 -1
- package/dist/components/bn-chart-structure-renderer.d.ts +11 -0
- package/dist/components/bn-chart-structure-renderer.js +1 -0
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/{bn-template.d.ts → bn-chart-time-renderer.d.ts} +4 -4
- package/dist/components/bn-chart-time-renderer.js +1 -0
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-component-style.js +1 -1
- package/dist/components/bn-context.js +1 -1
- package/dist/components/bn-dataset.js +1 -1
- package/dist/components/bn-datasource.js +1 -1
- package/dist/components/bn-footer.js +1 -1
- package/dist/components/bn-grid.js +1 -1
- package/dist/components/bn-image.js +1 -1
- package/dist/components/bn-internationalization.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-message.js +1 -1
- package/dist/components/bn-page.js +1 -1
- package/dist/components/bn-ruleset.js +1 -1
- package/dist/components/bn-scaling-group.js +1 -1
- package/dist/components/{ibcs-chart-bubble.d.ts → bn-table-renderer.d.ts} +4 -4
- package/dist/components/bn-table-renderer.js +1 -0
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/{editor-companion.d.ts → bn-title-renderer.d.ts} +4 -4
- package/dist/components/bn-title-renderer.js +1 -0
- package/dist/components/bn-title.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p--cxUP_so.js +1 -0
- package/dist/components/p-B7GzUuM1.js +1 -0
- package/dist/components/p-BFUNrRAN.js +1 -0
- package/dist/components/p-BI5orga2.js +1 -0
- package/dist/components/p-BN7PtJVV.js +1 -0
- package/dist/components/p-BN8vBcMD.js +1 -0
- package/dist/components/p-BZe4T2ta.js +1 -0
- package/dist/components/p-BbS6qL8Z.js +1 -0
- package/dist/components/p-BcQv74MZ.js +1 -0
- package/dist/components/p-BgWfMdDE.js +1 -0
- package/dist/components/p-BhOssNAI.js +1 -0
- package/dist/components/p-BvuJFY7b.js +1 -0
- package/dist/components/p-C3Lz_w4H.js +1 -0
- package/dist/components/p-CD39zcHF.js +1 -0
- package/dist/components/p-CYurh604.js +1 -0
- package/dist/components/p-CYwd_ZNM.js +1 -0
- package/dist/components/p-CfBqQljd.js +1 -0
- package/dist/components/p-Ci4wYt6s.js +1 -0
- package/dist/components/p-ClvHVwGH.js +1 -0
- package/dist/components/p-Co1dDaxy.js +1 -0
- package/dist/components/p-Cq5MNEMN.js +1 -0
- package/dist/components/p-CtiP8VJ_.js +1 -0
- package/dist/components/p-CwzAQJSz.js +1 -0
- package/dist/components/p-D2Epww9R.js +1 -0
- package/dist/components/p-D413xjVu.js +1 -0
- package/dist/components/p-D4lSYFwX.js +1 -0
- package/dist/components/p-D6YGOYV1.js +2 -0
- package/dist/components/p-DCja-Yov.js +1 -0
- package/dist/components/p-DJijh10F.js +1 -0
- package/dist/components/p-DZ3ub5DV.js +1 -0
- package/dist/components/p-DcfgLtdU.js +1 -0
- package/dist/components/p-Dd6b8E_1.js +1 -0
- package/dist/components/p-Di57x1j-.js +1 -0
- package/dist/components/p-Dq4KMCDU.js +1 -0
- package/dist/components/p-DrN6R99a.js +1 -0
- package/dist/components/p-DtBFwIVs.js +1 -0
- package/dist/components/p-DynTmVfI.js +1 -0
- package/dist/components/p-Igh8PJUo.js +1 -0
- package/dist/components/p-Xb6Ilq8u.js +1 -0
- package/dist/components/p-e6lZYVYf.js +1 -0
- package/dist/components/p-g4dh_F-M.js +1 -0
- package/dist/components/p-iJCxRAmO.js +1 -0
- package/dist/components/p-kGB4WKet.js +1 -0
- package/dist/components/p-pH6_06qq.js +1 -0
- package/dist/components/p-xJ1DeaDY.js +1 -0
- package/dist/esm/bn-asset_28.entry.js +24797 -24972
- package/dist/esm/bn-grid.entry.js +11 -63
- package/dist/esm/bn-image.entry.js +4 -5
- package/dist/esm/bn-internationalization.entry.js +9 -5
- package/dist/esm/bn-ruleset.entry.js +6 -7
- package/dist/esm/bn-template-engine.js +3 -3
- package/dist/esm/bn-text.entry.js +12 -12
- package/dist/esm/{diagnostics-vw6TKMiT.js → diagnostics-BaXhpaAg.js} +1 -1
- package/dist/esm/{index-C5UYpZUU.js → index-CCZcKl0Q.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{sanitizeHtml-C5bFtARM.js → sanitizeHtml-BpBu47OE.js} +48 -30
- package/dist/esm/{withBodyObserver-DD_-r04o.js → withBodyObserver-1IBghfa8.js} +2 -2
- package/dist/esm/{context-protocol-CdTp19uA.js → withHasError-C8f_AGmT.js} +451 -13
- package/dist/esm/{withStyled-BDEyKd_H.js → withStyled-DS6G7yrL.js} +15 -28
- package/dist/schemas/axis.schema.json +52 -0
- package/dist/schemas/i18n.schema.json +31 -0
- package/dist/schemas/partof.schema.json +33 -0
- package/dist/schemas/ruleset.schema.json +59 -0
- package/dist/schemas/stack.schema.json +51 -0
- package/dist/schemas/theme.schema.json +583 -0
- package/dist/schemas/thereof.schema.json +34 -0
- package/dist/types/components/bn-body/bn-body.d.ts +5 -0
- package/dist/types/components/bn-card/bn-card.d.ts +5 -0
- package/dist/types/components/bn-chart-bubble/bn-chart-bubble-renderer/bn-chart-bubble-renderer.d.ts +97 -0
- package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +20 -2
- package/dist/types/components/bn-chart-bullet/bn-chart-bullet-renderer/bn-chart-bullet-renderer.d.ts +81 -0
- package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +21 -3
- package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +2 -2
- package/dist/types/components/bn-chart-scatter/bn-chart-scatter-renderer/bn-chart-scatter-renderer.d.ts +85 -0
- package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +20 -2
- package/dist/types/components/bn-chart-structure/{ibcs-chart-structure.d.ts → bn-chart-structure-renderer/bn-chart-structure-renderer.d.ts} +43 -13
- package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +29 -17
- package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +5 -0
- package/dist/types/components/bn-chart-time/{ibcs-chart-time.d.ts → bn-chart-time-renderer/bn-chart-time-renderer.d.ts} +50 -17
- package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +36 -66
- package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +5 -0
- package/dist/types/components/bn-chart-time/utils/elements/LineSeries.d.ts +5 -1
- package/dist/types/components/bn-chart-time/utils/factories/ScenarioFactory.d.ts +1 -1
- package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +2 -8
- package/dist/types/components/bn-context/bn-context.d.ts +7 -1
- package/dist/types/components/bn-dataset/bn-dataset.d.ts +2 -2
- package/dist/types/components/bn-datasource/bn-datasource.d.ts +2 -2
- package/dist/types/components/bn-footer/bn-footer.d.ts +5 -7
- package/dist/types/components/bn-grid/bn-grid.d.ts +8 -6
- package/dist/types/components/bn-image/bn-image.d.ts +4 -0
- package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +0 -1
- package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +0 -1
- package/dist/types/components/bn-message/bn-message.d.ts +5 -0
- package/dist/types/components/bn-page/bn-page.d.ts +5 -0
- package/dist/types/components/bn-table/{ibcs-table.d.ts → bn-table-renderer/bn-table-renderer.d.ts} +49 -12
- package/dist/types/components/bn-table/bn-table.d.ts +48 -49
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +2 -1
- package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +5 -2
- package/dist/types/components/bn-text/bn-text.d.ts +19 -1
- package/dist/types/components/bn-title/{ibcs-title/ibcs-title.d.ts → bn-title-renderer/bn-title-renderer.d.ts} +15 -4
- package/dist/types/components/bn-title/bn-title.d.ts +15 -3
- package/dist/types/components/bn-tree/bn-tree.d.ts +6 -2
- package/dist/types/components.d.ts +1923 -2433
- package/dist/types/context/scopedDb.d.ts +9 -12
- package/dist/types/index.d.ts +0 -1
- package/dist/types/schemas.d.ts +50 -0
- package/dist/types/stores/internationalization.d.ts +3 -2
- package/dist/types/stores/ruleSets.d.ts +15 -3
- package/dist/types/utils/autoFit.d.ts +2 -2
- package/dist/types/utils/emptyState.d.ts +1 -1
- package/dist/types/utils/ibcsRuleSet.d.ts +16 -0
- package/dist/types/utils/model/ChartStyles.d.ts +2 -1
- package/dist/types/utils/scaling.d.ts +2 -0
- package/dist/types/utils/validate.d.ts +0 -1
- package/dist/types/utils/withComponentStyle.d.ts +4 -4
- package/dist/types/utils/withDataset.d.ts +3 -3
- package/dist/types/utils/withHasError.d.ts +22 -1
- package/dist/types/utils/withRuleSet.d.ts +3 -2
- package/dist/types/utils/withTranslation.d.ts +1 -2
- package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +6 -7
- package/package.json +24 -8
- package/readme.md +12 -8
- package/dist/bn-template-engine/assets/bar.png +0 -0
- package/dist/bn-template-engine/assets/matrix.png +0 -0
- package/dist/bn-template-engine/p-5075771a.entry.js +0 -1
- package/dist/bn-template-engine/p-5d516435.entry.js +0 -1
- package/dist/bn-template-engine/p-5e90e728.entry.js +0 -1
- package/dist/bn-template-engine/p-9ef7e132.entry.js +0 -1
- package/dist/bn-template-engine/p-9f7a1980.entry.js +0 -1
- package/dist/bn-template-engine/p-BeXgxHkW.js +0 -1
- package/dist/bn-template-engine/p-C5UYpZUU.js +0 -2
- package/dist/bn-template-engine/p-CH0bpt_k.js +0 -1
- package/dist/bn-template-engine/p-DFmSrSnf.js +0 -1
- package/dist/bn-template-engine/p-DI3efDSV.js +0 -1
- package/dist/bn-template-engine/p-DXLTTILG.js +0 -1
- package/dist/bn-template-engine/p-DtP4jqG5.js +0 -1
- package/dist/bn-template-engine/p-a8281b71.entry.js +0 -1
- package/dist/bn-template-engine/p-b31277e7.entry.js +0 -1
- package/dist/bn-template-engine/p-b396ac84.entry.js +0 -1
- package/dist/cjs/bn-template.cjs.entry.js +0 -18
- package/dist/cjs/editor-companion.cjs.entry.js +0 -56
- package/dist/cjs/withHasError-qGW_yqIv.js +0 -426
- package/dist/collection/components/bn-footer/assets/bar.png +0 -0
- package/dist/collection/components/bn-footer/assets/matrix.png +0 -0
- package/dist/collection/components/bn-message/assets/bar.png +0 -0
- package/dist/collection/components/bn-message/assets/matrix.png +0 -0
- package/dist/collection/components/bn-template/bn-template.js +0 -38
- package/dist/collection/components/editor-companion/editor-companion.css +0 -3
- package/dist/collection/components/editor-companion/editor-companion.js +0 -137
- package/dist/collection/utils/templateId.js +0 -12
- package/dist/collection/utils/testing/fakeGroup.js +0 -21
- package/dist/collection/utils/testing/hostFont.js +0 -20
- package/dist/collection/utils/testing/mutationObserver.js +0 -44
- package/dist/collection/utils/testing/structureChart.js +0 -26
- package/dist/collection/utils/testing/timeChart.js +0 -28
- package/dist/components/AxisConfig.js +0 -1
- package/dist/components/CompareUtil.js +0 -1
- package/dist/components/DataFormatDigits.js +0 -1
- package/dist/components/DateStringFactory.js +0 -1
- package/dist/components/LabelCollisionManager.js +0 -1
- package/dist/components/Order.js +0 -1
- package/dist/components/SVGStyle.js +0 -1
- package/dist/components/SVGVariancesStyleGroup.js +0 -1
- package/dist/components/StringAdapter.js +0 -1
- package/dist/components/VarianceMeasure.js +0 -1
- package/dist/components/XYChartDataRow.js +0 -1
- package/dist/components/bn-body2.js +0 -1
- package/dist/components/bn-card2.js +0 -1
- package/dist/components/bn-footer2.js +0 -1
- package/dist/components/bn-message2.js +0 -1
- package/dist/components/bn-page2.js +0 -1
- package/dist/components/bn-template.js +0 -1
- package/dist/components/bn-title2.js +0 -1
- package/dist/components/checkXYOverflow.js +0 -1
- package/dist/components/contentDecoder.js +0 -1
- package/dist/components/context-protocol.js +0 -1
- package/dist/components/editor-companion.js +0 -1
- package/dist/components/formatter.js +0 -1
- package/dist/components/geometry.js +0 -1
- package/dist/components/ibcs-chart-bubble.js +0 -1
- package/dist/components/ibcs-chart-bubble2.js +0 -1
- package/dist/components/ibcs-chart-bullet.d.ts +0 -11
- package/dist/components/ibcs-chart-bullet.js +0 -1
- package/dist/components/ibcs-chart-bullet2.js +0 -1
- package/dist/components/ibcs-chart-scatter.d.ts +0 -11
- package/dist/components/ibcs-chart-scatter.js +0 -1
- package/dist/components/ibcs-chart-scatter2.js +0 -1
- package/dist/components/ibcs-chart-structure.d.ts +0 -11
- package/dist/components/ibcs-chart-structure.js +0 -1
- package/dist/components/ibcs-chart-structure2.js +0 -1
- package/dist/components/ibcs-chart-time.d.ts +0 -11
- package/dist/components/ibcs-chart-time.js +0 -1
- package/dist/components/ibcs-chart-time2.js +0 -1
- package/dist/components/ibcs-table.d.ts +0 -11
- package/dist/components/ibcs-table.js +0 -1
- package/dist/components/ibcs-table2.js +0 -1
- package/dist/components/ibcs-title.d.ts +0 -11
- package/dist/components/ibcs-title.js +0 -1
- package/dist/components/ibcs-title2.js +0 -1
- package/dist/components/layoutTemplate.js +0 -1
- package/dist/components/luxon.js +0 -1
- package/dist/components/scaling.js +0 -1
- package/dist/components/svg.esm.js +0 -1
- package/dist/components/svgChartElements.js +0 -1
- package/dist/components/types.js +0 -1
- package/dist/components/validate.js +0 -1
- package/dist/components/withBodyObserver.js +0 -1
- package/dist/components/withComponentStatus.js +0 -1
- package/dist/components/withComponentStyle.js +0 -1
- package/dist/components/withDataset.js +0 -1
- package/dist/components/withHasError.js +0 -1
- package/dist/components/withRuleSet.js +0 -1
- package/dist/components/withScalingGroup.js +0 -1
- package/dist/components/withStyled.js +0 -1
- package/dist/components/withTranslation.js +0 -1
- package/dist/esm/bn-template.entry.js +0 -16
- package/dist/esm/editor-companion.entry.js +0 -54
- package/dist/esm/withHasError-73WV2SP5.js +0 -422
- package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +0 -59
- package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +0 -53
- package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +0 -54
- package/dist/types/components/bn-template/bn-template.d.ts +0 -10
- package/dist/types/components/editor-companion/editor-companion.d.ts +0 -20
- package/dist/types/utils/templateId.d.ts +0 -9
- package/dist/types/utils/testing/fakeGroup.d.ts +0 -8
- package/dist/types/utils/testing/hostFont.d.ts +0 -16
- package/dist/types/utils/testing/mutationObserver.d.ts +0 -5
- package/dist/types/utils/testing/structureChart.d.ts +0 -5
- package/dist/types/utils/testing/timeChart.d.ts +0 -5
- /package/dist/collection/components/bn-chart-bubble/{ibcs-chart-bubble.css → bn-chart-bubble-renderer/bn-chart-bubble-renderer.css} +0 -0
- /package/dist/collection/components/bn-chart-bullet/{ibcs-chart-bullet.css → bn-chart-bullet-renderer/bn-chart-bullet-renderer.css} +0 -0
- /package/dist/collection/components/bn-chart-scatter/{ibcs-chart-scatter.css → bn-chart-scatter-renderer/bn-chart-scatter-renderer.css} +0 -0
- /package/dist/collection/components/bn-chart-time/{ibcs-chart-time.css → bn-chart-time-renderer/bn-chart-time-renderer.css} +0 -0
- /package/dist/collection/components/bn-table/{ibcs-table.css → bn-table-renderer/bn-table-renderer.css} +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title/ibcs-title.css → bn-title-renderer/bn-title-renderer.css} +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.js +0 -0
- /package/dist/collection/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.js +0 -0
- /package/dist/components/{stackColors.js → p-4q8nRcWC.js} +0 -0
- /package/dist/components/{merge.js → p-B2NXsfMz.js} +0 -0
- /package/dist/components/{layoutObserver.js → p-B6kka9sT.js} +0 -0
- /package/dist/components/{NumericScale.js → p-BJmwHV0a.js} +0 -0
- /package/dist/components/{stackLayout.js → p-BTnRaHPb.js} +0 -0
- /package/dist/components/{emotion-hash.esm.js → p-BYBpC0EO.js} +0 -0
- /package/dist/components/{diagnostics.js → p-CckAR27O.js} +0 -0
- /package/dist/components/{SiPrefix.js → p-CeE4_3wQ.js} +0 -0
- /package/dist/components/{queryError.js → p-ClruFZD_.js} +0 -0
- /package/dist/components/{sanitizeHtml.js → p-CyUmrWfW.js} +0 -0
- /package/dist/components/{TableAttribute.js → p-DCPLGEs_.js} +0 -0
- /package/dist/components/{parentDimensions.js → p-DD1zlev_.js} +0 -0
- /package/dist/components/{pageFormats.js → p-DM7fwmH4.js} +0 -0
- /package/dist/components/{emptyState.js → p-DakXa7Dp.js} +0 -0
- /package/dist/components/{relativeVariance.js → p-fCjsrD7I.js} +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/Title.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/TitleDataSetFactory.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/factories/index.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/MeasureEntriy.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TimePeriod.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/TitleConfig.d.ts +0 -0
- /package/dist/types/components/bn-title/{ibcs-title → bn-title-renderer}/utils/model/index.d.ts +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var withStyled = require('./withStyled-vSfogp9J.js');
|
|
3
|
+
var withHasError = require('./withHasError-DpogV-4f.js');
|
|
4
|
+
var index = require('./index-DGis1BzT.js');
|
|
5
|
+
var withStyled = require('./withStyled-TQ67jCAV.js');
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* Returns the available dimensions for a component.
|
|
@@ -170,6 +169,15 @@ function getClippedHeight(element, contentHeight) {
|
|
|
170
169
|
return clipped / scale;
|
|
171
170
|
}
|
|
172
171
|
|
|
172
|
+
/**
|
|
173
|
+
* The four scaling modes a component's `scale` attribute can resolve to:
|
|
174
|
+
* - `"empty"`: attribute absent or blank -- component decides (typically auto)
|
|
175
|
+
* - `"none"`: scaling explicitly disabled (show raw values)
|
|
176
|
+
* - `"auto"`: auto-detect SI prefix from data magnitude
|
|
177
|
+
* - `"factor"`: explicit numeric divisor (e.g. `"1000"` to show values in thousands)
|
|
178
|
+
*/
|
|
179
|
+
/** A stroke width given as a multiple of the font size, in px. Rounded: 0.075 at 13.3333 px is 1, not 0.9999975. */
|
|
180
|
+
const strokeWidthPx = (factor, fontSizePx) => Math.round(factor * fontSizePx * 100) / 100;
|
|
173
181
|
/**
|
|
174
182
|
* Parses the raw `scale` attribute string into a typed {@link ScalingConfig}.
|
|
175
183
|
* Handles null/empty (-> empty), literal `"none"` / `"auto"`, or a positive
|
|
@@ -280,7 +288,7 @@ const partition = (predicate, arr) => {
|
|
|
280
288
|
}
|
|
281
289
|
return [matches, nonMatches];
|
|
282
290
|
};
|
|
283
|
-
const WARN_DATASOURCE_ID = "
|
|
291
|
+
const WARN_DATASOURCE_ID = "WARN_datasets";
|
|
284
292
|
/**
|
|
285
293
|
* Emits a warning via the component's ErrorDispatcher when datasource refs
|
|
286
294
|
* (`$name`) are used directly, nudging consumers toward bn-dataset wrappers
|
|
@@ -306,7 +314,7 @@ const warnIfDatasource = (component, datasources) => {
|
|
|
306
314
|
/**
|
|
307
315
|
* Mixin that subscribes a Stencil component to one or more datasets/datasources.
|
|
308
316
|
*
|
|
309
|
-
* **Naming convention:** The `datasets`
|
|
317
|
+
* **Naming convention:** The `datasets` prop of the component accepts a comma-separated list of names.
|
|
310
318
|
* Names prefixed with `$` (e.g. `$revenue`) read directly from the raw datasource tables;
|
|
311
319
|
* unprefixed names read from datasets (registered as tables/views by `<bn-dataset>`).
|
|
312
320
|
*
|
|
@@ -314,8 +322,8 @@ const warnIfDatasource = (component, datasources) => {
|
|
|
314
322
|
* name is registered with `stores.db.subscribe(...)` and the rows are materialized
|
|
315
323
|
* via `db.exec("SELECT * FROM <name>")` whenever the producer fires `notify(name)`.
|
|
316
324
|
*
|
|
317
|
-
* The
|
|
318
|
-
* bindings
|
|
325
|
+
* The prop reflects to the `datasets` attribute. The mixin watches that attribute with a
|
|
326
|
+
* MutationObserver, so bindings follow a change of the attribute or the property.
|
|
319
327
|
*
|
|
320
328
|
* @param component - The Stencil component instance (must expose a host element via `@Element()`)
|
|
321
329
|
* @param onUpdate - Callback invoked with `(name, data)` whenever a subscribed dataset or datasource changes
|
|
@@ -330,6 +338,20 @@ component, onUpdate, onMetaUpdate) => {
|
|
|
330
338
|
let datasets = [];
|
|
331
339
|
let datasources = [];
|
|
332
340
|
let stores;
|
|
341
|
+
/** The `datasets` value the subscriptions were made for. */
|
|
342
|
+
let bound = "";
|
|
343
|
+
// the prop, not the attribute: a property set before the first render is not reflected yet
|
|
344
|
+
const bind = () => {
|
|
345
|
+
const previous = bound;
|
|
346
|
+
bound = component.datasets || "";
|
|
347
|
+
if (previous !== "" && previous !== bound) {
|
|
348
|
+
// the names changed: start empty, or the component keeps the data of a name that is gone
|
|
349
|
+
onUpdate("", []);
|
|
350
|
+
}
|
|
351
|
+
[datasources, datasets] = partition((s) => s.startsWith("$"), bound.split(","));
|
|
352
|
+
warnIfDatasource(component, datasources);
|
|
353
|
+
rebind();
|
|
354
|
+
};
|
|
333
355
|
/** Materialize the current rows for a subscribed name via the shared db, then deliver. */
|
|
334
356
|
const deliver = (name, isDatasource) => {
|
|
335
357
|
const tableName = isDatasource ? name.substring(1) : name;
|
|
@@ -371,20 +393,17 @@ component, onUpdate, onMetaUpdate) => {
|
|
|
371
393
|
};
|
|
372
394
|
const observer = new MutationObserver((mutations) => {
|
|
373
395
|
mutations.forEach((mutation) => {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
rebind();
|
|
396
|
+
// Stencil writes a reflected attribute again with the same value in the first render
|
|
397
|
+
if (mutation.attributeName === "datasets" && (component.datasets || "") !== bound) {
|
|
398
|
+
bind();
|
|
378
399
|
}
|
|
379
400
|
});
|
|
380
401
|
});
|
|
381
402
|
const connectedCallback = component["connectedCallback"];
|
|
382
403
|
component["connectedCallback"] = () => {
|
|
383
404
|
const element = index.getElement(component);
|
|
384
|
-
stores =
|
|
385
|
-
|
|
386
|
-
warnIfDatasource(component, datasources);
|
|
387
|
-
rebind();
|
|
405
|
+
stores = withHasError.getStores(element);
|
|
406
|
+
bind();
|
|
388
407
|
observer.observe(element, { attributes: true, attributeFilter: ["datasets"] });
|
|
389
408
|
if (onMetaUpdate) {
|
|
390
409
|
subscriptionMeta = stores.datasetsMeta.on("set", (key, newValue) => {
|
|
@@ -401,7 +420,7 @@ component, onUpdate, onMetaUpdate) => {
|
|
|
401
420
|
dbUnsubs.forEach((fn) => fn());
|
|
402
421
|
dbUnsubs = [];
|
|
403
422
|
withHasError.runIfExisits(subscriptionMeta);
|
|
404
|
-
|
|
423
|
+
withHasError.clearStoresCache(index.getElement(component));
|
|
405
424
|
withHasError.runIfExisits(disconnectedCallback, component);
|
|
406
425
|
};
|
|
407
426
|
return (names) => {
|
|
@@ -640,8 +659,7 @@ component, mappings, errors) => {
|
|
|
640
659
|
*
|
|
641
660
|
* **Namespace resolution** (mirrors the ancestor inheritance of `withRuleSet`,
|
|
642
661
|
* but on by default):
|
|
643
|
-
* 1. The
|
|
644
|
-
* `namespace` attribute is honored as a fallback).
|
|
662
|
+
* 1. The component's own `i18nNamespace` prop (attribute `i18n-namespace`).
|
|
645
663
|
* 2. Otherwise the `i18n-namespace` attribute of the nearest ancestor that
|
|
646
664
|
* carries one - a layout card, layout page, tree, grid, or the
|
|
647
665
|
* `bn-context` itself - crossing shadow boundaries. The resolved ancestor
|
|
@@ -667,16 +685,18 @@ component, mappings, errors) => {
|
|
|
667
685
|
const withTranslation = (component) => {
|
|
668
686
|
let subscription;
|
|
669
687
|
let namespace = undefined;
|
|
688
|
+
/** The `i18nNamespace` prop value that `namespace` was resolved for. */
|
|
689
|
+
let ownNamespace = undefined;
|
|
670
690
|
let stores;
|
|
671
691
|
let ancestorObserver = null;
|
|
672
692
|
const resolveNamespace = () => {
|
|
673
|
-
var _a;
|
|
674
693
|
const element = index.getElement(component);
|
|
675
694
|
if (ancestorObserver) {
|
|
676
695
|
ancestorObserver.disconnect();
|
|
677
696
|
ancestorObserver = null;
|
|
678
697
|
}
|
|
679
|
-
|
|
698
|
+
ownNamespace = component.i18nNamespace;
|
|
699
|
+
namespace = ownNamespace;
|
|
680
700
|
if (namespace != null) {
|
|
681
701
|
return;
|
|
682
702
|
}
|
|
@@ -690,19 +710,10 @@ const withTranslation = (component) => {
|
|
|
690
710
|
ancestorObserver.observe(ancestor, { attributes: true, attributeFilter: ["i18n-namespace"] });
|
|
691
711
|
}
|
|
692
712
|
};
|
|
693
|
-
const observer = new MutationObserver((mutations) => {
|
|
694
|
-
mutations.forEach((mutation) => {
|
|
695
|
-
if (mutation.attributeName === "i18n-namespace" || mutation.attributeName === "namespace") {
|
|
696
|
-
resolveNamespace();
|
|
697
|
-
index.forceUpdate(component);
|
|
698
|
-
}
|
|
699
|
-
});
|
|
700
|
-
});
|
|
701
713
|
const connectedCallback = component["connectedCallback"];
|
|
702
714
|
component["connectedCallback"] = () => {
|
|
703
715
|
const element = index.getElement(component);
|
|
704
|
-
stores =
|
|
705
|
-
observer.observe(element, { attributes: true, attributeFilter: ["i18n-namespace", "namespace"] });
|
|
716
|
+
stores = withHasError.getStores(element);
|
|
706
717
|
resolveNamespace();
|
|
707
718
|
subscription = stores.internationalization.on("set", (key, _value) => {
|
|
708
719
|
if (key === namespace || key === "_system") {
|
|
@@ -713,20 +724,27 @@ const withTranslation = (component) => {
|
|
|
713
724
|
};
|
|
714
725
|
const disconnectedCallback = component["disconnectedCallback"];
|
|
715
726
|
component["disconnectedCallback"] = () => {
|
|
716
|
-
observer.disconnect();
|
|
717
727
|
if (ancestorObserver) {
|
|
718
728
|
ancestorObserver.disconnect();
|
|
719
729
|
ancestorObserver = null;
|
|
720
730
|
}
|
|
721
731
|
withHasError.runIfExisits(subscription);
|
|
722
|
-
|
|
732
|
+
withHasError.clearStoresCache(index.getElement(component));
|
|
723
733
|
withHasError.runIfExisits(disconnectedCallback, component);
|
|
724
734
|
};
|
|
725
735
|
const t = (key, data) => {
|
|
726
736
|
var _a, _b, _c, _d, _e;
|
|
737
|
+
// A change of the prop renders the component, and texts are looked up while it renders:
|
|
738
|
+
// compared here, a property write counts like an attribute.
|
|
739
|
+
if (stores !== undefined && component.i18nNamespace !== ownNamespace) {
|
|
740
|
+
resolveNamespace();
|
|
741
|
+
}
|
|
727
742
|
if (key.startsWith(".")) {
|
|
728
743
|
key = index.getElement(component).localName + key;
|
|
729
744
|
}
|
|
745
|
+
if (Object.prototype.hasOwnProperty.call(withHasError.RENAMED_I18N_KEYS, key)) {
|
|
746
|
+
key = withHasError.RENAMED_I18N_KEYS[key];
|
|
747
|
+
}
|
|
730
748
|
const locales = stores.internationalization.state;
|
|
731
749
|
const locale = stores.context.state.locale;
|
|
732
750
|
// Per-key fallback chain: resolved namespace → _system → the key itself.
|
|
@@ -846,6 +864,7 @@ exports.parseScalingValue = parseScalingValue;
|
|
|
846
864
|
exports.readInherited = readInherited;
|
|
847
865
|
exports.resolveScalingValue = resolveScalingValue;
|
|
848
866
|
exports.sanitizeHtml = sanitizeHtml;
|
|
867
|
+
exports.strokeWidthPx = strokeWidthPx;
|
|
849
868
|
exports.withDataset = withDataset;
|
|
850
869
|
exports.withInheritedProps = withInheritedProps;
|
|
851
870
|
exports.withTranslation = withTranslation;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var withHasError = require('./withHasError-
|
|
3
|
+
var index = require('./index-DGis1BzT.js');
|
|
4
|
+
var withHasError = require('./withHasError-DpogV-4f.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Mixin that observes changes to a component's text content.
|