refactor(charts): split into separate entry point#1073
Conversation
WalkthroughThis PR restructures the charts-ng library's module architecture from a monolithic public API into a modular system with dedicated sub-packages. The base chart component is renamed from Possibly related PRs
Suggested labels
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (4)
🧰 Additional context used🧠 Learnings (5)📓 Common learnings📚 Learning: 2025-12-17T08:58:19.300ZApplied to files:
📚 Learning: 2025-11-25T15:07:09.316ZApplied to files:
📚 Learning: 2025-12-17T04:34:55.597ZApplied to files:
📚 Learning: 2025-12-04T11:54:31.132ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
a70c6af to
77dbc39
Compare
|
Documentation. Coverage Reports: |
7cdd965 to
702b3df
Compare
|
@dr-itz can you provide some feedback. not everything is moved yet. its just the si-chart, common stuff, sankey and sunburst. For si-chart,I need to find a way to import all the chart types from echarts |
49f8ca2 to
34885bd
Compare
|
@dr-itz can you take a look |
90d4626 to
f1cd782
Compare
|
I like it a lot that only the required echarts parts are loaded for each component. That could significantly reduce loading time and memory consumption in actually a lot of cases 💯 |
d1df6c7 to
4c073f1
Compare
c6c913d to
6c9cc88
Compare
|
@dr-itz @spike-rabbit may you take a look again |
|
apart from the conflicts, LGTM 👍 |
45421e2 to
0f38196
Compare
|
@spike-rabbit can you check and merge |
2b29e7b to
faa707d
Compare
|
I guess we need to wait for #1304 for the playwright to pass |
53d9987 to
e1c6e66
Compare
|
@spike-rabbit @dr-itz Can you check and merge. Since this is a big PR, shall we keep the commits as is, or do you want me to squash them? |
|
@akashsonune please squash, then I will merge |
fd5faa9 to
7eda2a8
Compare
Done, please check |
DEPRECATED: `SiChartsNgModule` is deprecated, import individual components instead. Starting with v49, separate entry points are available for each component, allowing applications to import components from specific entry points, which helps reduce the application bundle size.
7eda2a8 to
50dce3e
Compare
SiChartsNgModuleas deprecatedRefactor: Charts Split into Multiple Entry Points
This PR restructures the
@siemens/charts-nglibrary from a monolithic package into a modular architecture with separate entry points for each chart component and shared utilities.Key Changes:
Modular Entry Points:
ng-package.jsonconfigurations:cartesian,circle,chart,gauge,progress,progress-bar,sankey,sunburstcommon,custom-legend,loading-spinnerindex.tsentry pointComponent Architecture:
SiChartComponent→SiChartBaseComponentto a sharedcommonmoduleSiChartBaseComponentinstead of extending each othersi-chart-base.component.*)echarts.use(), enabling per-component code splittingCentralized Exports:
@siemens/charts-ng/commonpublic-api.tsfor backward compatibilityUpdated Imports:
@siemens/charts-ng/sankeyinstead of@siemens/charts-ng)@siemens/charts-ng/*to individual entry pointsangular.jsonsourceRoot updated fromprojects/charts-ng/srctoprojects/charts-ngng-package.jsonentry point changed fromsrc/public-api.tstopublic-api.tsRemoved Legacy Structure:
src/directory removedBenefits: