@iyulab/flex-table 0.55.1 → 0.55.2
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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.55.2] - 2026-10-07
|
|
4
|
+
|
|
5
|
+
### Documentation
|
|
6
|
+
|
|
7
|
+
- The Lit examples for `ODataSourceController` and `ArraySourceController` import `LitElement` and type their rows,
|
|
8
|
+
so they compile as written.
|
|
9
|
+
|
|
3
10
|
## [0.55.1] - 2026-10-07
|
|
4
11
|
|
|
5
12
|
### Fixed
|
package/README.md
CHANGED
|
@@ -881,6 +881,7 @@ Changes made in the same tick become one request with the final conditions, so `
|
|
|
881
881
|
For a Lit element, `ODataSourceController` ties a source to the element's lifecycle — it subscribes when the element connects, cancels when it disconnects, and re-renders it on every change:
|
|
882
882
|
|
|
883
883
|
```ts
|
|
884
|
+
import { LitElement, html } from 'lit';
|
|
884
885
|
import { ODataSourceController } from '@iyulab/flex-table/odata';
|
|
885
886
|
|
|
886
887
|
class OrdersPage extends LitElement {
|
|
@@ -944,10 +945,12 @@ members as `createODataSource` — `getState()`, `subscribe()`, `setPage`, `setS
|
|
|
944
945
|
plus `update(rows, options)` when the rows change. `ArraySourceController` binds it to a Lit element:
|
|
945
946
|
|
|
946
947
|
```ts
|
|
948
|
+
import { LitElement } from 'lit';
|
|
949
|
+
import type { DataRow } from '@iyulab/flex-table';
|
|
947
950
|
import { ArraySourceController } from '@iyulab/flex-table/array';
|
|
948
951
|
|
|
949
952
|
class PricesPanel extends LitElement {
|
|
950
|
-
private prices = new ArraySourceController(this, [], { pageSize: 20 });
|
|
953
|
+
private prices = new ArraySourceController<DataRow>(this, [], { pageSize: 20 });
|
|
951
954
|
set rows(rows: DataRow[]) { this.prices.source.update(rows, { pageSize: 20 }); }
|
|
952
955
|
}
|
|
953
956
|
```
|
package/package.json
CHANGED
|
@@ -164,6 +164,7 @@ tick become one request. For Lit, `ODataSourceController` subscribes on connect,
|
|
|
164
164
|
the host:
|
|
165
165
|
|
|
166
166
|
```ts
|
|
167
|
+
import { LitElement, html } from 'lit';
|
|
167
168
|
import { ODataSourceController } from '@iyulab/flex-table/odata';
|
|
168
169
|
|
|
169
170
|
class OrdersPage extends LitElement {
|