@kronor/dtv 1.0.0 → 1.2.0

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
@@ -35,7 +35,6 @@ Key props you can pass to `App` (or via `dtv.renderTableView` in `main.tsx`):
35
35
  - `showViewTitle`: Toggle the view title heading (default: `false`).
36
36
  - `showCsvExportButton`: Toggle the "Export page to CSV" button (default: `false`). When enabled, current page rows are exported using PrimeReact's built-in DataTable CSV exporter.
37
37
  - `showPopoutButton`: Toggle the Popout button that opens the table view in a fullscreen overlay (default: `true`). Set to `false` to suppress this UI in embedded contexts.
38
- - `rowsPerPage`: Page size for pagination (default: `20`).
39
38
  - `externalRuntime`: Provide a runtime override for cell renderers / query transforms.
40
39
  - `syncFilterStateToUrl`: Persist applied filter state into the `dtv-filter-state` URL param (default: `false`).
41
40
 
@@ -77,6 +76,18 @@ React and ReactDOM 19 are peer dependencies; ensure they are installed in the ho
77
76
  - Filter expressions are serialized/deserialized using helpers in `src/framework/filters.ts`.
78
77
  - Unified URL Filter Param: Both share links and persistence use a single base64 URL-safe encoded parameter `dtv-filter-state`. Enable syncing by passing `syncFilterStateToUrl: true` to `dtv.renderTableView` (or `?sync-filter-state-to-url=true` in dev). The param is updated only when filters are applied (not on every change). When disabled, a one-off link is consumed (param removed after load).
79
78
 
79
+ ## Features
80
+
81
+ Core runtime capabilities:
82
+
83
+ - Schema-driven column + filter definitions (JSON or TSX view formats).
84
+ - AI assistant to generate filters (`AIAssistantForm`).
85
+ - Cursor-based pagination with Previous / Next navigation.
86
+ - Adjustable page size via "Rows per page" selector (10, 20, 50, 100). Changing the page size resets pagination and refetches from the first page.
87
+ - Saved filters (local persistence + shareable URL encoding).
88
+ - Optional CSV export of current page rows.
89
+ - Popout (fullscreen overlay) rendering of the table view.
90
+
80
91
  ## Development
81
92
 
82
93
  ### Install dependencies
@@ -145,8 +156,3 @@ npm run release -- --allow-dirty # Allow running with uncommitted changes (a
145
156
  7. Publishes to npm (`npm publish --access public`).
146
157
 
147
158
  Use `--dry` first if you want to verify everything without changing the version or publishing.
148
-
149
- ## Examples
150
- - See `src/views/paymentRequest.tsx` for a full-featured view definition.
151
- - See `src/components/AIAssistantForm.tsx` for AI-driven filter generation.
152
- - See `src/framework/filters.ts` for filter schema/type definitions and utilities.