@bino-bi/bn-template-engine 1.0.0-next.28 → 1.0.0-next.30
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-132ad556.entry.js +1 -0
- package/dist/bn-template-engine/p-17d71782.entry.js +1 -0
- package/dist/bn-template-engine/p-40ba7f43.entry.js +1 -0
- package/dist/bn-template-engine/p-467871f3.entry.js +1 -0
- package/dist/bn-template-engine/p-64803a42.entry.js +1 -0
- package/dist/bn-template-engine/p-B8AjeKja.js +1 -0
- package/dist/bn-template-engine/p-CCZcKl0Q.js +2 -0
- package/dist/bn-template-engine/p-CrT83eO4.js +1 -0
- package/dist/bn-template-engine/p-D_DzKxRV.js +1 -0
- package/dist/bn-template-engine/p-Z2rUaSh_.js +1 -0
- package/dist/bn-template-engine/p-c41c0a1b.entry.js +1 -0
- package/dist/bn-template-engine/p-yc69rwuH.js +1 -0
- package/dist/cjs/{bn-asset_28.cjs.entry.js → bn-annotation-layer_30.cjs.entry.js} +27566 -26774
- 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 +18 -18
- package/dist/cjs/{diagnostics-Cq-qDtXq.js → diagnostics-C4Ggts3w.js} +50 -2
- package/dist/cjs/{index-C1Z9vO7z.js → index-DGis1BzT.js} +0 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{withBodyObserver-CaPUjuC5.js → withBodyObserver-BK4idxqG.js} +2 -2
- package/dist/cjs/{context-protocol-C0rKepqu.js → withHasError-CqvcS23z.js} +462 -14
- package/dist/cjs/{withStyled-vSfogp9J.js → withStyled-70D4Isgt.js} +22 -35
- package/dist/cjs/{sanitizeHtml-Yx1xn6i_.js → withTranslation-C6Pye2CM.js} +148 -129
- package/dist/collection/collection-manifest.json +11 -11
- package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.css +24 -0
- package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.js +430 -0
- package/dist/collection/components/bn-annotation-layer/utils/marks.js +161 -0
- package/dist/collection/components/bn-annotation-layer/utils/matchPoint.js +25 -0
- package/dist/collection/components/bn-annotation-list/bn-annotation-list.css +46 -0
- package/dist/collection/components/bn-annotation-list/bn-annotation-list.js +112 -0
- package/dist/collection/components/bn-asset/bn-asset.js +1 -1
- 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-bubble/utils/BubbleChart.js +29 -21
- 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 +26 -17
- 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 +26 -14
- 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 +44 -15
- package/dist/collection/components/bn-chart-structure/utils/elements/Axis.js +1 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/Bar.js +6 -2
- package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +11 -0
- package/dist/collection/components/bn-chart-structure/utils/elements/Marker.js +5 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/Needle.js +4 -1
- package/dist/collection/components/bn-chart-structure/utils/elements/StackedBar.js +6 -2
- 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 +55 -15
- package/dist/collection/components/bn-chart-time/utils/elements/Column.js +5 -1
- package/dist/collection/components/bn-chart-time/utils/elements/Label.js +14 -0
- package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +18 -12
- package/dist/collection/components/bn-chart-time/utils/elements/Marker.js +5 -1
- package/dist/collection/components/bn-chart-time/utils/elements/Needle.js +4 -1
- package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +6 -2
- 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 +24 -5
- 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} +230 -83
- 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 +38 -4
- package/dist/collection/components/bn-table/utils/helper/DataQuery.js +3 -1
- 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 +10 -6
- package/dist/collection/stores/createScopedStores.js +3 -1
- package/dist/collection/stores/internationalization.js +10 -6
- package/dist/collection/utils/annotations.js +66 -0
- 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/layoutState/dataPoint.js +59 -0
- package/dist/collection/utils/layoutState/geometry.js +46 -0
- package/dist/collection/utils/layoutState/index.js +1 -0
- package/dist/collection/utils/layoutState/svgChartElements.js +113 -11
- 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 +14 -18
- 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/collection/utils/xy/pointKey.js +10 -0
- package/dist/components/{ibcs-chart-bullet.d.ts → bn-annotation-layer.d.ts} +4 -4
- package/dist/components/bn-annotation-layer.js +1 -0
- package/dist/components/{ibcs-chart-scatter.d.ts → bn-annotation-list.d.ts} +4 -4
- package/dist/components/bn-annotation-list.js +1 -0
- 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-B1nL0yOa.js +1 -0
- package/dist/components/p-B7uwck1J.js +1 -0
- package/dist/components/p-BDS_jiow.js +1 -0
- package/dist/components/p-BIIDTtcR.js +1 -0
- package/dist/components/p-BQMKgvEC.js +1 -0
- package/dist/components/p-BSV_vyqs.js +1 -0
- package/dist/components/p-BVKLCz2k.js +1 -0
- package/dist/components/p-BWBHlztH.js +1 -0
- package/dist/components/p-BXrPfAvP.js +1 -0
- package/dist/components/p-Ba9PUiBp.js +1 -0
- package/dist/components/p-BpCL2bfw.js +1 -0
- package/dist/components/p-BpsXOtoW.js +1 -0
- package/dist/components/p-Bs-YxJEt.js +1 -0
- package/dist/components/p-CGI6XIaK.js +1 -0
- package/dist/components/p-CMM8vtHW.js +1 -0
- package/dist/components/p-COqIkH1M.js +1 -0
- package/dist/components/p-CYwd_ZNM.js +1 -0
- package/dist/components/p-CkW23yp2.js +1 -0
- package/dist/components/p-CtBM3KFY.js +1 -0
- package/dist/{bn-template-engine/p-DFmSrSnf.js → components/p-CurWSJkH.js} +1 -1
- package/dist/components/p-CxPSvrcF.js +1 -0
- package/dist/components/p-D2Epww9R.js +1 -0
- package/dist/components/p-D5-dYgK_.js +1 -0
- package/dist/components/p-D6YGOYV1.js +2 -0
- package/dist/components/p-DEHnizot.js +1 -0
- package/dist/components/p-DIyUaSBg.js +1 -0
- package/dist/components/p-DPLcGhVt.js +1 -0
- package/dist/components/p-DUHp_9X-.js +1 -0
- package/dist/components/p-DYG9FH_u.js +1 -0
- package/dist/components/p-DdGnuNtc.js +1 -0
- package/dist/components/p-Dlb4ncGF.js +1 -0
- package/dist/components/p-Dm55bMs2.js +1 -0
- package/dist/components/p-Dq1AzGKX.js +1 -0
- package/dist/components/p-Dq4KMCDU.js +1 -0
- package/dist/components/p-DsOaqeTN.js +1 -0
- package/dist/components/p-Ds_BSK8v.js +1 -0
- package/dist/components/p-LZ9lAY8T.js +1 -0
- package/dist/components/p-U3zkcEJZ.js +1 -0
- package/dist/components/p-WzaayhTX.js +1 -0
- package/dist/components/p-X9hpquOX.js +1 -0
- package/dist/components/p-Xb6Ilq8u.js +1 -0
- package/dist/components/p-ey23VlID.js +1 -0
- package/dist/components/p-jbp6YiHf.js +1 -0
- package/dist/components/p-oJjMz8JF.js +1 -0
- package/dist/components/p-xhiPDAZa.js +1 -0
- package/dist/components/p-xpguaboj.js +1 -0
- package/dist/esm/{bn-asset_28.entry.js → bn-annotation-layer_30.entry.js} +24689 -23899
- 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-Cyqy1zDT.js} +48 -2
- package/dist/esm/{index-C5UYpZUU.js → index-CCZcKl0Q.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{withBodyObserver-DD_-r04o.js → withBodyObserver-JcRB9OPQ.js} +2 -2
- package/dist/esm/{context-protocol-CdTp19uA.js → withHasError-l3cMN-oP.js} +458 -14
- package/dist/esm/{withStyled-BDEyKd_H.js → withStyled-DGOiR00Q.js} +17 -29
- package/dist/esm/{sanitizeHtml-C5bFtARM.js → withTranslation-BpO8BC5B.js} +144 -126
- 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 +604 -0
- package/dist/schemas/thereof.schema.json +34 -0
- package/dist/types/components/bn-annotation-layer/bn-annotation-layer.d.ts +81 -0
- package/dist/types/components/bn-annotation-layer/utils/marks.d.ts +69 -0
- package/dist/types/components/bn-annotation-layer/utils/matchPoint.d.ts +17 -0
- package/dist/types/components/bn-annotation-list/bn-annotation-list.d.ts +35 -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/BulletChart.d.ts +2 -0
- 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 +7 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Label.d.ts +5 -0
- package/dist/types/components/bn-chart-structure/utils/elements/Marker.d.ts +1 -0
- package/dist/types/components/bn-chart-structure/utils/elements/StackedBar.d.ts +2 -1
- package/dist/types/components/bn-chart-structure/utils/model/DataPoint.d.ts +3 -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 +7 -0
- package/dist/types/components/bn-chart-time/utils/elements/Label.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/elements/Marker.d.ts +1 -0
- package/dist/types/components/bn-chart-time/utils/elements/StackedColumn.d.ts +2 -1
- package/dist/types/components/bn-chart-time/utils/factories/ScenarioFactory.d.ts +1 -1
- package/dist/types/components/bn-chart-time/utils/model/DataPoint.d.ts +3 -0
- 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/Cell.d.ts +2 -0
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +2 -1
- package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +3 -0
- package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +9 -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 +2070 -2406
- package/dist/types/context/context-protocol.d.ts +2 -0
- 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/componentStyles.d.ts +8 -0
- package/dist/types/stores/createScopedStores.d.ts +1 -0
- package/dist/types/stores/internationalization.d.ts +3 -2
- package/dist/types/stores/ruleSets.d.ts +15 -3
- package/dist/types/utils/annotations.d.ts +45 -0
- 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/layoutState/dataPoint.d.ts +13 -0
- package/dist/types/utils/layoutState/geometry.d.ts +12 -0
- package/dist/types/utils/layoutState/index.d.ts +1 -0
- package/dist/types/utils/layoutState/svgChartElements.d.ts +9 -6
- package/dist/types/utils/layoutState/types.d.ts +29 -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/dist/types/utils/xy/pointKey.d.ts +9 -0
- package/package.json +24 -8
- package/readme.md +14 -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-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.js +0 -1
- package/dist/components/ibcs-chart-bullet2.js +0 -1
- 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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DGis1BzT.js');
|
|
4
4
|
|
|
5
5
|
const appendToMap = (map, propName, value) => {
|
|
6
6
|
let refs = map.get(propName);
|
|
@@ -367,8 +367,8 @@ const xyChartStyleDefaults = () => ({
|
|
|
367
367
|
labelToMark: 0.3,
|
|
368
368
|
legendSwatch: 0.9,
|
|
369
369
|
panelGap: 1.6,
|
|
370
|
-
refLineWidth:
|
|
371
|
-
gridLineWidth:
|
|
370
|
+
refLineWidth: 0.075,
|
|
371
|
+
gridLineWidth: 0.075,
|
|
372
372
|
},
|
|
373
373
|
axisStyles: {
|
|
374
374
|
ac: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 1 },
|
|
@@ -418,7 +418,7 @@ const SYSTEM_STYLE_DEFAULTS = {
|
|
|
418
418
|
},
|
|
419
419
|
barStyles: {
|
|
420
420
|
ac: { stroke: "#404040", fill: "#404040", width: 0.1 },
|
|
421
|
-
fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "
|
|
421
|
+
fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "hatched" },
|
|
422
422
|
pp: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 0.1 },
|
|
423
423
|
pl: { stroke: "#404040", fill: "#ffffff", width: 0.1 },
|
|
424
424
|
},
|
|
@@ -461,7 +461,7 @@ const SYSTEM_STYLE_DEFAULTS = {
|
|
|
461
461
|
},
|
|
462
462
|
barStyles: {
|
|
463
463
|
ac: { stroke: "#404040", fill: "#404040", width: 0.1 },
|
|
464
|
-
fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "
|
|
464
|
+
fc: { stroke: "#404040", fill: "#ffffff", width: 0.5, fillpattern: "hatched" },
|
|
465
465
|
pp: { stroke: "#A6A6A6", fill: "#A6A6A6", width: 0.1 },
|
|
466
466
|
pl: { stroke: "#404040", fill: "#ffffff", width: 0.1 },
|
|
467
467
|
},
|
|
@@ -486,8 +486,8 @@ const SYSTEM_STYLE_DEFAULTS = {
|
|
|
486
486
|
barHeight: 0.66,
|
|
487
487
|
varianceHeight: 0.4,
|
|
488
488
|
targetTickHeight: 1.1,
|
|
489
|
-
targetLineWidth:
|
|
490
|
-
axisLineWidth:
|
|
489
|
+
targetLineWidth: 0.15,
|
|
490
|
+
axisLineWidth: 0.075,
|
|
491
491
|
labelToBar: 0.3,
|
|
492
492
|
labelToAxis: 0.3,
|
|
493
493
|
axisTickLength: 0.35,
|
|
@@ -531,6 +531,10 @@ const SYSTEM_STYLE_DEFAULTS = {
|
|
|
531
531
|
borderWidth: 1,
|
|
532
532
|
cellPadding: 4,
|
|
533
533
|
},
|
|
534
|
+
"bn-annotation": {
|
|
535
|
+
color: "#0070c0",
|
|
536
|
+
colors: { negative: "#ff0000", positive: "#008f96" },
|
|
537
|
+
},
|
|
534
538
|
};
|
|
535
539
|
/** `bn-text` keys. All are optional, so the defaults do not list them. */
|
|
536
540
|
const TEXT_STYLE_KEYS = ["fontFamily", "fontSizePx", "fontColor", "fontBackgroundColor", "leading"];
|
|
@@ -707,7 +711,7 @@ const de = flattenObject({
|
|
|
707
711
|
ibcssymbol_delta_generic_relative: "Δ({%})%",
|
|
708
712
|
},
|
|
709
713
|
"bn-title": {
|
|
710
|
-
|
|
714
|
+
SEPARATOR_WS: ", ",
|
|
711
715
|
CONNECTOR_WS: " und ",
|
|
712
716
|
in: "in",
|
|
713
717
|
},
|
|
@@ -734,7 +738,7 @@ const de = flattenObject({
|
|
|
734
738
|
in: "in",
|
|
735
739
|
category: " ",
|
|
736
740
|
operation: " ",
|
|
737
|
-
|
|
741
|
+
thereof: "davon",
|
|
738
742
|
part_of: "in % von",
|
|
739
743
|
SUM_TOTAL: "❖",
|
|
740
744
|
REST: "REST",
|
|
@@ -767,7 +771,7 @@ const en = flattenObject({
|
|
|
767
771
|
ibcssymbol_delta_generic_relative: "Δ({%})%",
|
|
768
772
|
},
|
|
769
773
|
"bn-title": {
|
|
770
|
-
|
|
774
|
+
SEPARATOR_WS: ", ",
|
|
771
775
|
CONNECTOR_WS: " and ",
|
|
772
776
|
in: "in",
|
|
773
777
|
},
|
|
@@ -794,14 +798,18 @@ const en = flattenObject({
|
|
|
794
798
|
in: "in",
|
|
795
799
|
category: " ",
|
|
796
800
|
operation: " ",
|
|
797
|
-
|
|
801
|
+
thereof: "there of",
|
|
798
802
|
part_of: "in % of",
|
|
799
803
|
SUM_TOTAL: "❖",
|
|
800
804
|
REST: "REST",
|
|
801
805
|
"no-data": "No Data",
|
|
802
806
|
},
|
|
803
807
|
});
|
|
804
|
-
|
|
808
|
+
/** Old key names (deprecated) and what they are called now. A text is still found and still read under the old name. */
|
|
809
|
+
const RENAMED_I18N_KEYS = {
|
|
810
|
+
"bn-title.SEPERATOR_WS": "bn-title.SEPARATOR_WS",
|
|
811
|
+
"bn-table.there_of": "bn-table.thereof",
|
|
812
|
+
};
|
|
805
813
|
const SYSTEM_I18N_DEFAULTS = { _system: { de, en } };
|
|
806
814
|
|
|
807
815
|
/**
|
|
@@ -9457,7 +9465,7 @@ function createScopedDb() {
|
|
|
9457
9465
|
}
|
|
9458
9466
|
|
|
9459
9467
|
/**
|
|
9460
|
-
* Factory that creates a fresh set of all
|
|
9468
|
+
* Factory that creates a fresh set of all 8 `@stencil/store` instances.
|
|
9461
9469
|
*
|
|
9462
9470
|
* Called once per `<bn-context>` element so that each context owns isolated
|
|
9463
9471
|
* reactive state. The returned object satisfies the {@link ScopedStores} interface.
|
|
@@ -9477,6 +9485,7 @@ function createScopedStores() {
|
|
|
9477
9485
|
const ruleSets = createStore({
|
|
9478
9486
|
_system: SYSTEM_RULESET_DEFAULTS,
|
|
9479
9487
|
});
|
|
9488
|
+
const annotationsUnplaced = createStore({});
|
|
9480
9489
|
return {
|
|
9481
9490
|
db,
|
|
9482
9491
|
datasetsMeta,
|
|
@@ -9486,6 +9495,7 @@ function createScopedStores() {
|
|
|
9486
9495
|
context,
|
|
9487
9496
|
scalingGroups,
|
|
9488
9497
|
ruleSets,
|
|
9498
|
+
annotationsUnplaced,
|
|
9489
9499
|
};
|
|
9490
9500
|
}
|
|
9491
9501
|
|
|
@@ -9573,8 +9583,442 @@ function clearStoresCache(element) {
|
|
|
9573
9583
|
storesCache.delete(element);
|
|
9574
9584
|
}
|
|
9575
9585
|
|
|
9576
|
-
|
|
9586
|
+
/** Lifecycle state of a tracked component instance. */
|
|
9587
|
+
var ComponentStatus;
|
|
9588
|
+
(function (ComponentStatus) {
|
|
9589
|
+
ComponentStatus[ComponentStatus["RUNNING"] = 0] = "RUNNING";
|
|
9590
|
+
ComponentStatus[ComponentStatus["SUCCESSFUL"] = 1] = "SUCCESSFUL";
|
|
9591
|
+
ComponentStatus[ComponentStatus["ERROR"] = 2] = "ERROR";
|
|
9592
|
+
})(ComponentStatus || (ComponentStatus = {}));
|
|
9593
|
+
/**
|
|
9594
|
+
* Singleton registry that tracks the render status of all bn-* component instances.
|
|
9595
|
+
*
|
|
9596
|
+
* Each component registers itself via {@link withComponentStatus} and reports
|
|
9597
|
+
* `RUNNING` / `SUCCESSFUL` / `ERROR` transitions. After 500 ms of inactivity
|
|
9598
|
+
* (no status updates), the aggregate result is written to
|
|
9599
|
+
* `window.componentRegisterIsRenderedResult` as a boolean, and the failed
|
|
9600
|
+
* components to `window.componentRegisterFailures`. External tools
|
|
9601
|
+
* (e.g. headless screenshot renderers) poll these values to detect when
|
|
9602
|
+
* the entire page has finished rendering.
|
|
9603
|
+
*
|
|
9604
|
+
* A reader sees one of three states: the flag is `true` (all rendered), the
|
|
9605
|
+
* failures list is not empty (settled, but a component failed), or neither
|
|
9606
|
+
* (still working).
|
|
9607
|
+
*
|
|
9608
|
+
* The 500 ms debounce prevents premature "rendered" signals during rapid
|
|
9609
|
+
* successive re-renders.
|
|
9610
|
+
*
|
|
9611
|
+
* Status counts are maintained incrementally - `updateStatus` adjusts running
|
|
9612
|
+
* counters instead of iterating all entries, making it O(1) per update.
|
|
9613
|
+
*/
|
|
9614
|
+
exports.ComponentRegister = void 0;
|
|
9615
|
+
(function (ComponentRegister) {
|
|
9616
|
+
let currentTimeOutId = undefined;
|
|
9617
|
+
const componentRegister = new Map();
|
|
9618
|
+
const failures = new Map();
|
|
9619
|
+
const statusCounts = { running: 0, successful: 0, error: 0 };
|
|
9620
|
+
const countKey = (status) => {
|
|
9621
|
+
switch (status) {
|
|
9622
|
+
case ComponentStatus.RUNNING:
|
|
9623
|
+
return "running";
|
|
9624
|
+
case ComponentStatus.SUCCESSFUL:
|
|
9625
|
+
return "successful";
|
|
9626
|
+
default:
|
|
9627
|
+
return "error";
|
|
9628
|
+
}
|
|
9629
|
+
};
|
|
9630
|
+
const publish = () => {
|
|
9631
|
+
// @ts-ignore
|
|
9632
|
+
window.componentRegisterFailures = ComponentRegister.componentRegisterFailures();
|
|
9633
|
+
// @ts-ignore
|
|
9634
|
+
window.componentRegisterIsRenderedResult = ComponentRegister.componentRegisterIsRendered();
|
|
9635
|
+
// @ts-ignore
|
|
9636
|
+
// eslint-disable-next-line no-console
|
|
9637
|
+
console.log("componentRegisterIsRendered:", window.componentRegisterIsRenderedResult);
|
|
9638
|
+
};
|
|
9639
|
+
/** Restarts the 500 ms quiet period that ends with the published result. */
|
|
9640
|
+
const schedule = () => {
|
|
9641
|
+
if (currentTimeOutId) {
|
|
9642
|
+
window.clearTimeout(currentTimeOutId);
|
|
9643
|
+
}
|
|
9644
|
+
// window.setTimeout, not the bare global: in spec tests this is the timer the test window clears when a test ends
|
|
9645
|
+
currentTimeOutId = window.setTimeout(() => {
|
|
9646
|
+
const fonts = document.fonts;
|
|
9647
|
+
if ((fonts === null || fonts === void 0 ? void 0 : fonts.status) === "loading") {
|
|
9648
|
+
// text is measured again once the fonts are there: wait for them, then for a new quiet period
|
|
9649
|
+
fonts.ready.then(schedule);
|
|
9650
|
+
return;
|
|
9651
|
+
}
|
|
9652
|
+
publish();
|
|
9653
|
+
}, 500);
|
|
9654
|
+
};
|
|
9655
|
+
/**
|
|
9656
|
+
* Records a status change for the component identified by `uuid` and
|
|
9657
|
+
* resets the 500 ms debounce timer. When the timer fires, the aggregate
|
|
9658
|
+
* "all rendered" boolean is published to `window.componentRegisterIsRenderedResult`.
|
|
9659
|
+
* `failure` describes an `ERROR` status.
|
|
9660
|
+
*/
|
|
9661
|
+
ComponentRegister.updateStatus = (uuid, status, failure) => {
|
|
9662
|
+
const prev = componentRegister.get(uuid);
|
|
9663
|
+
if (prev !== undefined) {
|
|
9664
|
+
statusCounts[countKey(prev)]--;
|
|
9665
|
+
}
|
|
9666
|
+
statusCounts[countKey(status)]++;
|
|
9667
|
+
componentRegister.set(uuid, status);
|
|
9668
|
+
if (status === ComponentStatus.ERROR && failure) {
|
|
9669
|
+
failures.set(uuid, failure);
|
|
9670
|
+
}
|
|
9671
|
+
else {
|
|
9672
|
+
failures.delete(uuid);
|
|
9673
|
+
}
|
|
9674
|
+
schedule();
|
|
9675
|
+
};
|
|
9676
|
+
/** Forgets a component that left the document. */
|
|
9677
|
+
ComponentRegister.remove = (uuid) => {
|
|
9678
|
+
const prev = componentRegister.get(uuid);
|
|
9679
|
+
if (prev === undefined) {
|
|
9680
|
+
return;
|
|
9681
|
+
}
|
|
9682
|
+
statusCounts[countKey(prev)]--;
|
|
9683
|
+
componentRegister.delete(uuid);
|
|
9684
|
+
failures.delete(uuid);
|
|
9685
|
+
schedule();
|
|
9686
|
+
};
|
|
9687
|
+
/** Returns `true` when no component is in `RUNNING` or `ERROR` state. */
|
|
9688
|
+
ComponentRegister.componentRegisterIsRendered = () => {
|
|
9689
|
+
return statusCounts.running === 0 && statusCounts.error === 0;
|
|
9690
|
+
};
|
|
9691
|
+
/** The failed components. Empty while a component is still running: only a settled page has a final list. */
|
|
9692
|
+
ComponentRegister.componentRegisterFailures = () => {
|
|
9693
|
+
return statusCounts.running === 0 ? [...failures.values()] : [];
|
|
9694
|
+
};
|
|
9695
|
+
/** Returns a summary count of components in each status category. */
|
|
9696
|
+
ComponentRegister.componentRegisterStatus = () => {
|
|
9697
|
+
return Object.assign({}, statusCounts);
|
|
9698
|
+
};
|
|
9699
|
+
})(exports.ComponentRegister || (exports.ComponentRegister = {}));
|
|
9700
|
+
|
|
9701
|
+
/** Concatenates name parts with spaces, skipping falsy segments. */
|
|
9702
|
+
/**
|
|
9703
|
+
* Safely invokes `fn` if it is a function; otherwise does nothing.
|
|
9704
|
+
*
|
|
9705
|
+
* Used by every mixin to call the original lifecycle hook (e.g. `connectedCallback`)
|
|
9706
|
+
* that may or may not exist on the component before the mixin wrapped it.
|
|
9707
|
+
*
|
|
9708
|
+
* @param fn - The value to invoke (only called if `typeof fn === 'function'`)
|
|
9709
|
+
* @param context - Optional `this` context to bind before invocation
|
|
9710
|
+
*/
|
|
9711
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9712
|
+
const runIfExisits = (fn, context = undefined) => {
|
|
9713
|
+
if (typeof fn === "function") {
|
|
9714
|
+
if (context) {
|
|
9715
|
+
fn.bind(context)();
|
|
9716
|
+
}
|
|
9717
|
+
else {
|
|
9718
|
+
fn();
|
|
9719
|
+
}
|
|
9720
|
+
}
|
|
9721
|
+
};
|
|
9722
|
+
/**
|
|
9723
|
+
* Generates a v4-style UUID using a combination of `Date.now()` and
|
|
9724
|
+
* `performance.now()` for entropy. Used by {@link withComponentStatus}
|
|
9725
|
+
* to assign a stable identifier to each component instance.
|
|
9726
|
+
*/
|
|
9727
|
+
function generateUUID() {
|
|
9728
|
+
let d = new Date().getTime(), d2 = (performance && performance.now && performance.now() * 1000) || 0;
|
|
9729
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
9730
|
+
let r = Math.random() * 16;
|
|
9731
|
+
if (d > 0) {
|
|
9732
|
+
r = ((d + r) % 16) | 0;
|
|
9733
|
+
d = Math.floor(d / 16);
|
|
9734
|
+
}
|
|
9735
|
+
else {
|
|
9736
|
+
r = ((d2 + r) % 16) | 0;
|
|
9737
|
+
d2 = Math.floor(d2 / 16);
|
|
9738
|
+
}
|
|
9739
|
+
return (c === "x" ? r : (r & 0x7) | 0x8).toString(16);
|
|
9740
|
+
});
|
|
9741
|
+
}
|
|
9742
|
+
/**
|
|
9743
|
+
* Creates a reactive reference -- a lightweight value holder that fires an
|
|
9744
|
+
* `onChange` callback whenever the stored value changes (by reference equality).
|
|
9745
|
+
*
|
|
9746
|
+
* Provides `get`, `set`, `modify` (read-modify-write), and `getAndSet` (swap)
|
|
9747
|
+
* accessors. Used by {@link withHasError} to keep the host element's `has-error`
|
|
9748
|
+
* attribute in sync with the internal error list.
|
|
9749
|
+
*
|
|
9750
|
+
* @param value - The initial value
|
|
9751
|
+
* @param onChange - Callback fired after each change with the new value
|
|
9752
|
+
*/
|
|
9753
|
+
const ref = (value, onChange) => {
|
|
9754
|
+
let current = value;
|
|
9755
|
+
const get = () => current;
|
|
9756
|
+
const set = (value) => {
|
|
9757
|
+
const old = current;
|
|
9758
|
+
current = value;
|
|
9759
|
+
if (old !== value)
|
|
9760
|
+
onChange(current);
|
|
9761
|
+
};
|
|
9762
|
+
const setAndGet = (value) => {
|
|
9763
|
+
set(value);
|
|
9764
|
+
};
|
|
9765
|
+
const getAndSet = (value) => {
|
|
9766
|
+
const old = get();
|
|
9767
|
+
set(value);
|
|
9768
|
+
return old;
|
|
9769
|
+
};
|
|
9770
|
+
const modify = (handler) => {
|
|
9771
|
+
set(handler(get()));
|
|
9772
|
+
};
|
|
9773
|
+
return {
|
|
9774
|
+
get,
|
|
9775
|
+
set,
|
|
9776
|
+
setAndGet,
|
|
9777
|
+
getAndSet,
|
|
9778
|
+
modify,
|
|
9779
|
+
};
|
|
9780
|
+
};
|
|
9781
|
+
|
|
9782
|
+
// Stencil calls these once per instance, so a failure in them is never repaired by a later render.
|
|
9783
|
+
const LOAD_HOOKS = ["componentWillLoad", "componentDidLoad"];
|
|
9784
|
+
// The hooks of every render cycle. componentWillUpdate is the first one of an update.
|
|
9785
|
+
const CYCLE_HOOKS = [
|
|
9786
|
+
"componentWillUpdate",
|
|
9787
|
+
"componentWillRender",
|
|
9788
|
+
"render",
|
|
9789
|
+
"componentDidRender",
|
|
9790
|
+
"componentDidUpdate",
|
|
9791
|
+
];
|
|
9792
|
+
// The hooks a cycle starts with: the component is rendering from here on.
|
|
9793
|
+
const START_HOOKS = ["componentWillLoad", "componentWillUpdate", "componentWillRender"];
|
|
9794
|
+
const describeFailure = (element, message) => {
|
|
9795
|
+
var _a, _b, _c, _d;
|
|
9796
|
+
return ({
|
|
9797
|
+
tag: (_a = element === null || element === void 0 ? void 0 : element.localName) !== null && _a !== void 0 ? _a : "",
|
|
9798
|
+
// an inner renderer has no id of its own: name the component it is drawn for
|
|
9799
|
+
id: (element === null || element === void 0 ? void 0 : element.id) || ((_d = (_c = (_b = element === null || element === void 0 ? void 0 : element.getRootNode) === null || _b === void 0 ? void 0 : _b.call(element)) === null || _c === void 0 ? void 0 : _c.host) === null || _d === void 0 ? void 0 : _d.id) || "",
|
|
9800
|
+
message,
|
|
9801
|
+
});
|
|
9802
|
+
};
|
|
9803
|
+
/**
|
|
9804
|
+
* Mixin that tracks a component's render lifecycle in the global {@link ComponentRegister}.
|
|
9805
|
+
*
|
|
9806
|
+
* Assigns a stable UUID to the component instance and reports status transitions:
|
|
9807
|
+
* - `RUNNING` from `connectedCallback` (only before the first render: a re-attach does not render again)
|
|
9808
|
+
* or from the first hook of a render cycle, until `componentDidRender`
|
|
9809
|
+
* - `ERROR` when `render`, a lifecycle hook or `connectedCallback` threw. Stencil catches such
|
|
9810
|
+
* an exception and goes on, so without this the component would count as rendered.
|
|
9811
|
+
* - `SUCCESSFUL` otherwise
|
|
9812
|
+
*
|
|
9813
|
+
* A component that leaves the document is removed from the register.
|
|
9814
|
+
*
|
|
9815
|
+
* Returns a hold function: the component stays `RUNNING` until the promise
|
|
9816
|
+
* passed to it has settled, whatever the outcome.
|
|
9817
|
+
*
|
|
9818
|
+
* External tools (e.g. screenshot/PDF renderers) poll
|
|
9819
|
+
* `window.componentRegisterIsRenderedResult` to determine when all components
|
|
9820
|
+
* have finished rendering.
|
|
9821
|
+
*
|
|
9822
|
+
* @param component - The Stencil component instance
|
|
9823
|
+
*/
|
|
9824
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9825
|
+
const withComponentStatus = (component) => {
|
|
9826
|
+
const uuid = generateUUID();
|
|
9827
|
+
let pending = 0;
|
|
9828
|
+
let rendered = false;
|
|
9829
|
+
let rendering = false;
|
|
9830
|
+
let loadFailure;
|
|
9831
|
+
let cycleFailure;
|
|
9832
|
+
let connectFailure;
|
|
9833
|
+
const publish = () => {
|
|
9834
|
+
var _a;
|
|
9835
|
+
// read here, not tracked in connectedCallback: not every build calls that wrapper
|
|
9836
|
+
const element = index.getElement(component);
|
|
9837
|
+
if (element && !element.isConnected)
|
|
9838
|
+
return;
|
|
9839
|
+
const message = (_a = connectFailure !== null && connectFailure !== void 0 ? connectFailure : loadFailure) !== null && _a !== void 0 ? _a : cycleFailure;
|
|
9840
|
+
if (rendering || pending > 0) {
|
|
9841
|
+
exports.ComponentRegister.updateStatus(uuid, ComponentStatus.RUNNING);
|
|
9842
|
+
}
|
|
9843
|
+
else if (message !== undefined) {
|
|
9844
|
+
exports.ComponentRegister.updateStatus(uuid, ComponentStatus.ERROR, describeFailure(element, message));
|
|
9845
|
+
}
|
|
9846
|
+
else {
|
|
9847
|
+
exports.ComponentRegister.updateStatus(uuid, ComponentStatus.SUCCESSFUL);
|
|
9848
|
+
}
|
|
9849
|
+
};
|
|
9850
|
+
const fail = (hook, e) => {
|
|
9851
|
+
const message = e instanceof Error ? e.message : String(e);
|
|
9852
|
+
if (LOAD_HOOKS.includes(hook)) {
|
|
9853
|
+
loadFailure = message;
|
|
9854
|
+
}
|
|
9855
|
+
else {
|
|
9856
|
+
cycleFailure = message;
|
|
9857
|
+
}
|
|
9858
|
+
publish();
|
|
9859
|
+
};
|
|
9860
|
+
const connectedCallback = component["connectedCallback"];
|
|
9861
|
+
let connect = () => {
|
|
9862
|
+
if (!rendered)
|
|
9863
|
+
rendering = true;
|
|
9864
|
+
publish();
|
|
9865
|
+
runIfExisits(connectedCallback, component);
|
|
9866
|
+
};
|
|
9867
|
+
// The mixins that are applied after this one wrap connectedCallback again, outside of the wrapper above.
|
|
9868
|
+
// The accessor keeps a guard around whatever they assign, so a throw in any of them is seen here too.
|
|
9869
|
+
const guarded = (fn) => () => {
|
|
9870
|
+
connectFailure = undefined;
|
|
9871
|
+
try {
|
|
9872
|
+
fn();
|
|
9873
|
+
}
|
|
9874
|
+
catch (e) {
|
|
9875
|
+
connectFailure = e instanceof Error ? e.message : String(e);
|
|
9876
|
+
publish();
|
|
9877
|
+
// Stencil logs it and goes on with the first render
|
|
9878
|
+
throw e;
|
|
9879
|
+
}
|
|
9880
|
+
};
|
|
9881
|
+
Object.defineProperty(component, "connectedCallback", {
|
|
9882
|
+
configurable: true,
|
|
9883
|
+
enumerable: true,
|
|
9884
|
+
get: () => guarded(connect),
|
|
9885
|
+
set: (fn) => {
|
|
9886
|
+
connect = fn;
|
|
9887
|
+
},
|
|
9888
|
+
});
|
|
9889
|
+
const disconnectedCallback = component["disconnectedCallback"];
|
|
9890
|
+
component["disconnectedCallback"] = () => {
|
|
9891
|
+
exports.ComponentRegister.remove(uuid);
|
|
9892
|
+
runIfExisits(disconnectedCallback, component);
|
|
9893
|
+
};
|
|
9894
|
+
for (const hook of [...LOAD_HOOKS, ...CYCLE_HOOKS]) {
|
|
9895
|
+
const original = component[hook];
|
|
9896
|
+
component[hook] = (...args) => {
|
|
9897
|
+
if (hook === "componentWillUpdate")
|
|
9898
|
+
cycleFailure = undefined;
|
|
9899
|
+
if (START_HOOKS.includes(hook)) {
|
|
9900
|
+
rendering = true;
|
|
9901
|
+
publish();
|
|
9902
|
+
}
|
|
9903
|
+
try {
|
|
9904
|
+
const result = typeof original === "function" ? original.apply(component, args) : undefined;
|
|
9905
|
+
if (typeof (result === null || result === void 0 ? void 0 : result.then) === "function") {
|
|
9906
|
+
// an async hook: Stencil waits for the returned promise, so the failure must stay in it
|
|
9907
|
+
return result.then((value) => value, (e) => {
|
|
9908
|
+
fail(hook, e);
|
|
9909
|
+
throw e;
|
|
9910
|
+
});
|
|
9911
|
+
}
|
|
9912
|
+
return result;
|
|
9913
|
+
}
|
|
9914
|
+
catch (e) {
|
|
9915
|
+
fail(hook, e);
|
|
9916
|
+
// Stencil logs it and goes on with the next hook
|
|
9917
|
+
throw e;
|
|
9918
|
+
}
|
|
9919
|
+
finally {
|
|
9920
|
+
if (hook === "componentDidRender") {
|
|
9921
|
+
rendered = true;
|
|
9922
|
+
rendering = false;
|
|
9923
|
+
publish();
|
|
9924
|
+
}
|
|
9925
|
+
}
|
|
9926
|
+
};
|
|
9927
|
+
}
|
|
9928
|
+
return (work) => {
|
|
9929
|
+
pending++;
|
|
9930
|
+
publish();
|
|
9931
|
+
const done = () => {
|
|
9932
|
+
pending--;
|
|
9933
|
+
publish();
|
|
9934
|
+
};
|
|
9935
|
+
work.then(done, done);
|
|
9936
|
+
};
|
|
9937
|
+
};
|
|
9938
|
+
|
|
9939
|
+
const urlAlphabet =
|
|
9940
|
+
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
9941
|
+
|
|
9942
|
+
/* @ts-self-types="./index.d.ts" */
|
|
9943
|
+
let nanoid = (size = 21) => {
|
|
9944
|
+
let id = '';
|
|
9945
|
+
let bytes = crypto.getRandomValues(new Uint8Array((size |= 0)));
|
|
9946
|
+
while (size--) {
|
|
9947
|
+
id += urlAlphabet[bytes[size] & 63];
|
|
9948
|
+
}
|
|
9949
|
+
return id
|
|
9950
|
+
};
|
|
9951
|
+
|
|
9952
|
+
/**
|
|
9953
|
+
* Reports content that does not fit: `ERR_overflow` when the author fixed the
|
|
9954
|
+
* size, `WARN_overflow` otherwise. The id carries the type, so the other id is
|
|
9955
|
+
* cleared. `message` null clears both.
|
|
9956
|
+
*/
|
|
9957
|
+
function reportOverflow(errors, message, fixedSize = false) {
|
|
9958
|
+
errors.remove(message !== null && fixedSize ? "WARN_overflow" : "ERR_overflow");
|
|
9959
|
+
if (message === null) {
|
|
9960
|
+
errors.remove("WARN_overflow");
|
|
9961
|
+
}
|
|
9962
|
+
else if (fixedSize) {
|
|
9963
|
+
errors.addOrReplace({ id: "ERR_overflow", type: "error", message });
|
|
9964
|
+
}
|
|
9965
|
+
else {
|
|
9966
|
+
errors.addOrReplace({ id: "WARN_overflow", type: "warning", message });
|
|
9967
|
+
}
|
|
9968
|
+
}
|
|
9969
|
+
/**
|
|
9970
|
+
* Mixin that provides an {@link ErrorDispatcher} for managing validation
|
|
9971
|
+
* errors and warnings on a component.
|
|
9972
|
+
*
|
|
9973
|
+
* Errors are stored internally via a reactive {@link ref}. On every change,
|
|
9974
|
+
* the host element's `has-error` attribute is updated with a JSON-serialized
|
|
9975
|
+
* array of {@link ErrorItem}s (or removed when empty). This allows external
|
|
9976
|
+
* CSS selectors and parent components to detect error states declaratively.
|
|
9977
|
+
*
|
|
9978
|
+
* @param component - The Stencil component instance
|
|
9979
|
+
* @returns An {@link ErrorDispatcher} for adding, replacing, and removing errors
|
|
9980
|
+
*/
|
|
9981
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9982
|
+
const withHasError = (component) => {
|
|
9983
|
+
const { set, modify } = ref([], (items) => {
|
|
9984
|
+
const elm = index.getElement(component);
|
|
9985
|
+
if (items.length === 0) {
|
|
9986
|
+
elm.removeAttribute("has-error");
|
|
9987
|
+
}
|
|
9988
|
+
else {
|
|
9989
|
+
elm.setAttribute("has-error", JSON.stringify(items));
|
|
9990
|
+
}
|
|
9991
|
+
});
|
|
9992
|
+
return {
|
|
9993
|
+
clear: () => {
|
|
9994
|
+
set([]);
|
|
9995
|
+
},
|
|
9996
|
+
replace: (errors) => {
|
|
9997
|
+
set(errors.map((item) => {
|
|
9998
|
+
if (!item.id) {
|
|
9999
|
+
item.id = nanoid();
|
|
10000
|
+
}
|
|
10001
|
+
return item;
|
|
10002
|
+
}));
|
|
10003
|
+
},
|
|
10004
|
+
add: (error) => {
|
|
10005
|
+
if (!error.id)
|
|
10006
|
+
error.id = nanoid();
|
|
10007
|
+
modify((current) => [...current, error]);
|
|
10008
|
+
return error.id;
|
|
10009
|
+
},
|
|
10010
|
+
addOrReplace: (error) => {
|
|
10011
|
+
modify((current) => [...current.filter((item) => item.id !== error.id), error]);
|
|
10012
|
+
return error.id;
|
|
10013
|
+
},
|
|
10014
|
+
remove: (id) => {
|
|
10015
|
+
modify((current) => current.filter((item) => item.id !== id));
|
|
10016
|
+
},
|
|
10017
|
+
};
|
|
10018
|
+
};
|
|
10019
|
+
|
|
9577
10020
|
exports.DateTime = DateTime;
|
|
10021
|
+
exports.RENAMED_I18N_KEYS = RENAMED_I18N_KEYS;
|
|
9578
10022
|
exports.SYSTEM_RULESET_DEFAULTS = SYSTEM_RULESET_DEFAULTS;
|
|
9579
10023
|
exports.SYSTEM_STYLE_DEFAULTS = SYSTEM_STYLE_DEFAULTS;
|
|
9580
10024
|
exports.XY_SERIES_PALETTE = XY_SERIES_PALETTE;
|
|
@@ -9587,7 +10031,11 @@ exports.getStores = getStores;
|
|
|
9587
10031
|
exports.globalLabelKeys = globalLabelKeys;
|
|
9588
10032
|
exports.hasInlineJs = hasInlineJs;
|
|
9589
10033
|
exports.markTreatment = markTreatment;
|
|
10034
|
+
exports.reportOverflow = reportOverflow;
|
|
9590
10035
|
exports.resolveSeriesColor = resolveSeriesColor;
|
|
10036
|
+
exports.runIfExisits = runIfExisits;
|
|
9591
10037
|
exports.shade = shade;
|
|
9592
10038
|
exports.sourceExpr = sourceExpr;
|
|
9593
10039
|
exports.unknownStyleKeys = unknownStyleKeys;
|
|
10040
|
+
exports.withComponentStatus = withComponentStatus;
|
|
10041
|
+
exports.withHasError = withHasError;
|