@kouji-ui/core 0.9.2 → 0.10.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kouji-ui/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Headless Angular UI primitives — signal-driven directives with WCAG 2.1 AAA semantics, no CDK, and a handful of opt-in global stylesheets.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/types/kouji-ui-core.d.ts
CHANGED
|
@@ -12169,6 +12169,32 @@ declare class KjTable<TData extends RowData = unknown> {
|
|
|
12169
12169
|
readonly rowCount: _angular_core.Signal<number | null>;
|
|
12170
12170
|
readonly manualPagination: _angular_core.Signal<boolean>;
|
|
12171
12171
|
setRowCount(n: number | null): void;
|
|
12172
|
+
/**
|
|
12173
|
+
* Server-side infinite mode. When on, `kjTableData` is index-aligned with
|
|
12174
|
+
* the server's result set and may hold holes (`undefined` / `null`) for
|
|
12175
|
+
* rows that are not loaded yet: the holes are dropped before the rows reach
|
|
12176
|
+
* TanStack, and {@link sourceIndex} maps each loaded row back to its
|
|
12177
|
+
* position in the full result set. Sorting, filtering and pagination are
|
|
12178
|
+
* left to the server (TanStack's `manual*` flags), so a header click only
|
|
12179
|
+
* changes `state.sorting()` — feed it into your loader's request.
|
|
12180
|
+
*/
|
|
12181
|
+
private readonly _infinite;
|
|
12182
|
+
/** Whether server-side infinite mode is on — see {@link setInfinite}. */
|
|
12183
|
+
readonly infinite: _angular_core.Signal<boolean>;
|
|
12184
|
+
/**
|
|
12185
|
+
* Turn server-side infinite mode on or off.
|
|
12186
|
+
* @param on `true` while the data is a sparse window of a server result set.
|
|
12187
|
+
*/
|
|
12188
|
+
setInfinite(on: boolean): void;
|
|
12189
|
+
/** Rows handed to TanStack plus, in infinite mode, their positions in the full result set. */
|
|
12190
|
+
private readonly compacted;
|
|
12191
|
+
/**
|
|
12192
|
+
* In infinite mode, the result-set position of each loaded top-level row,
|
|
12193
|
+
* indexed by its TanStack `row.index`; `null` otherwise.
|
|
12194
|
+
*/
|
|
12195
|
+
readonly sourceIndex: _angular_core.Signal<readonly number[] | null>;
|
|
12196
|
+
/** Position of a top-level row in the full result set (its `row.index` outside infinite mode). */
|
|
12197
|
+
private sourceIndexOf;
|
|
12172
12198
|
/**
|
|
12173
12199
|
* Apply a TanStack updater (value or function) to a single state slice.
|
|
12174
12200
|
*
|