@besaitech/ng-design-system 0.0.67 → 0.0.69

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/README.md CHANGED
@@ -205,6 +205,19 @@ Import names are the `Sl…` classes; the markup selectors are `sds-…`.
205
205
  | `SdsSidebar` + `SdsNavGroup` + `SdsNavItem` | `<sds-sidebar>` … | Collapsible nav rail; collapse state via root-provided `SidebarStore`; items render `routerLink` or `<button>` |
206
206
 
207
207
  **Charts** (D3 does the maths, Angular renders the SVG, so they are OnPush, SSR-safe and themed by tokens)
208
+ — a **secondary entry point**, `@besaitech/ng-design-system/charts`:
209
+
210
+ ```ts
211
+ import { SdsLineChart, SdsKpi, SdsChartSeries } from '@besaitech/ng-design-system/charts'; // components + chart data types
212
+ import { provideSdsCharts, SdsChartLabels } from '@besaitech/ng-design-system'; // config + strings (root)
213
+ ```
214
+
215
+ The root entry is ONE module: whatever an app uses from it anywhere — even on a lazy route — lands in
216
+ the app's initial chunk. Keeping the charts (and d3) in their own entry lets the bundler leave them in
217
+ the lazy chunk of the page that draws them. The configuration (`provideSdsCharts`, `SDS_CHART_CONFIG`,
218
+ `SdsChartConfig`, `SdsChartLabels`, `SDS_CHART_LABELS_EN` and the label text types) stays in the root —
219
+ it is tiny and d3-free — so `app.config` can provide it eagerly without pulling the charts in. Since
220
+ 0.0.68 the root no longer re-exports the chart components or chart types.
208
221
 
209
222
  | Component | Selector | Notes |
210
223
  | --- | --- | --- |