gbs-add-block 2.0.1 → 2.0.3

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/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "gbs-add-block",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "React Component Library",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "index.cjs",
8
- "source"
8
+ "source",
9
+ ".gbs"
9
10
  ],
10
11
  "engines": {
11
12
  "node": ">=17"
@@ -151,8 +151,8 @@ Methods include `toggleSort`, `setSorting`, `setFilter`, `clearFilters`,
151
151
  `setGlobalFilter`, `setPageIndex`, `setPageSize`, `toggleRowSelected`,
152
152
  `toggleAllRowsSelected`, `getSelectedRows`, `setColumnVisibility`,
153
153
  `setColumnWidth`, `pinColumn`, `moveColumn`, `resetColumns`, `scrollToRow`,
154
- `focusCell`, `startEditing`, `getRows`, `exportCsv`, `exportExcel`, `exportPdf`
155
- and `copyToClipboard`.
154
+ `focusCell`, `startEditing`, `getRows`, `exportCsv`, `exportExcel`, `exportPdf`,
155
+ `print` and `copyToClipboard`.
156
156
 
157
157
  ## Export
158
158
 
@@ -162,7 +162,8 @@ Export code is split into chunks loaded on first use.
162
162
  | --- | --- |
163
163
  | CSV | UTF-8 with BOM (opens correctly in Excel). Cells starting with `= + - @` are prefixed with `'` to prevent formula injection. |
164
164
  | Excel | Real `.xlsx`: typed numbers, booleans and dates, bold frozen header, auto-filter, column widths. Written without a library. |
165
- | PDF | Opens the browser print dialog with a print-formatted table; users choose "Save as PDF". Best for up to a few thousand rows. |
165
+ | PDF | Writes a real `.pdf` and downloads it: chosen paper size and orientation, a repeated header row, page numbers and your own header/footer bands. Uses the standard PDF fonts, so text must be Latin-1. |
166
+ | Print | `api.print()` opens the browser's print dialog instead, for paper or for text the standard fonts cannot encode. |
166
167
 
167
168
  Scopes: `filtered` (default), `all`, `selected`, `page`, or pass `rows`, e.g. a
168
169
  full result set fetched from the server.