@angular-bootstrap/ngbootstrap 1.0.0 → 2.0.1
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/CHANGELOG.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.0.1 - 2026-07-05
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Fixed `JsPdfAdapter` runtime loading in browser apps by allowing the bundler to resolve `jspdf` and `jspdf-autotable` from the consuming application.
|
|
8
|
+
|
|
9
|
+
## 2.0.0 - 2026-07-05
|
|
10
|
+
|
|
11
|
+
### Breaking Changes
|
|
12
|
+
|
|
13
|
+
- Removed the previous public spreadsheet adapter export.
|
|
14
|
+
- Replaced the DataGrid default Excel export implementation with `BrowserExcelExportAdapter`.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Added `BrowserExcelExportAdapter`, a dependency-free browser workbook exporter that implements `ExcelExportAdapter`.
|
|
19
|
+
- Added tests for the browser Excel export adapter.
|
|
20
|
+
- Added documentation that explains why Excel export is dependency-free and when to provide a custom adapter.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- DataGrid Excel export no longer depends on an unmaintained spreadsheet writer package.
|
|
25
|
+
- The default Excel export path generates an Excel-compatible SpreadsheetML workbook in the browser.
|
|
26
|
+
- Documentation now calls out the limitations of the default adapter: visible column values and basic scalar cell types only; no formulas, charts, pivot tables, merged cells, multiple sheets, workbook styling, or macro-enabled files.
|
|
27
|
+
|
|
28
|
+
### Migration
|
|
29
|
+
|
|
30
|
+
- Replace imports of the previous spreadsheet adapter with `BrowserExcelExportAdapter`.
|
|
31
|
+
- If your application needs advanced workbook generation, provide your own `ExcelExportAdapter` implementation.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import {
|
|
35
|
+
BrowserExcelExportAdapter,
|
|
36
|
+
ExcelExportAdapter,
|
|
37
|
+
} from '@angular-bootstrap/ngbootstrap';
|
|
38
|
+
|
|
39
|
+
providers: [
|
|
40
|
+
{ provide: ExcelExportAdapter, useClass: BrowserExcelExportAdapter },
|
|
41
|
+
];
|
|
42
|
+
```
|
package/README.md
CHANGED
|
@@ -29,9 +29,15 @@ npm install @angular-bootstrap/ngbootstrap bootstrap bootstrap-icons
|
|
|
29
29
|
Optional integrations are installed only when you use those features:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
npm install chart.js jspdf jspdf-autotable
|
|
32
|
+
npm install chart.js jspdf jspdf-autotable
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
Excel export is dependency-free by default. The built-in `BrowserExcelExportAdapter`
|
|
36
|
+
generates an Excel-compatible workbook in the browser and avoids unmaintained
|
|
37
|
+
spreadsheet writer dependencies. It is intended for visible column values and
|
|
38
|
+
basic scalar cell types; use a custom `ExcelExportAdapter` for formulas, charts,
|
|
39
|
+
multiple sheets, workbook styling, or other advanced workbook features.
|
|
40
|
+
|
|
35
41
|
## Use
|
|
36
42
|
|
|
37
43
|
Import standalone components directly in your Angular component.
|
package/RELEASE_NOTES.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @angular-bootstrap/ngbootstrap 2.0.1
|
|
2
|
+
|
|
3
|
+
This patch fixes PDF export in browser apps.
|
|
4
|
+
|
|
5
|
+
## Fixed
|
|
6
|
+
|
|
7
|
+
- `JsPdfAdapter` no longer leaves `jspdf` and `jspdf-autotable` as bare browser runtime imports.
|
|
8
|
+
- Angular/Webpack can now resolve and bundle those maintained optional PDF integrations from the consuming application.
|
|
9
|
+
|
|
10
|
+
## Notes
|
|
11
|
+
|
|
12
|
+
Applications using PDF export should keep `jspdf` and `jspdf-autotable` installed:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install jspdf jspdf-autotable
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Excel export remains dependency-free through `BrowserExcelExportAdapter`.
|