bonsaif-ui 0.1.56 → 0.1.58
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 +14 -0
- package/dist/bonsaif-ui.js +3330 -3256
- package/dist/bonsaif-ui.umd.cjs +10 -10
- package/dist/components/ui/DataTable.d.ts +4 -1
- package/dist/components/ui/DataTable.d.ts.map +1 -1
- package/dist/components/ui/RichTextEditor.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/dataTableConfig.d.ts +18 -0
- package/dist/lib/dataTableConfig.d.ts.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -431,6 +431,20 @@ DataTable renders its rows with CSS Grid instead of the browser's native table l
|
|
|
431
431
|
|
|
432
432
|
DataTable can also expose a table query state for server-backed screens. Enable `enableBql` to show a compact BQL input in the toolbar, listen to `onQueryChange` to receive the current BQL text, column filters, sort, page, page size, and hidden columns, and use `persistState` with `storageKey` when a screen should reopen with saved filters or BQL. The component only emits and stores query state; each app should validate and translate BQL on the server for its own allowed fields.
|
|
433
433
|
|
|
434
|
+
By default, the page-size selector includes `25`, `50`, `100`, `200`, and `500` rows.
|
|
435
|
+
|
|
436
|
+
You can override those defaults globally with `configureBonsaifUI` (used when a table does not pass `pageSizeOptions` directly):
|
|
437
|
+
|
|
438
|
+
```tsx
|
|
439
|
+
import { configureBonsaifUI } from "bonsaif-ui";
|
|
440
|
+
|
|
441
|
+
configureBonsaifUI({
|
|
442
|
+
dataTable: {
|
|
443
|
+
pageSizeOptions: [20, 40, 80, 160, 320],
|
|
444
|
+
},
|
|
445
|
+
});
|
|
446
|
+
```
|
|
447
|
+
|
|
434
448
|
```tsx
|
|
435
449
|
<DataTable
|
|
436
450
|
columns={columns}
|