@kouji-ui/core 0.9.1 → 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.9.1",
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": {
@@ -1215,7 +1215,10 @@ interface KjOverlayTriggerLike {
1215
1215
  * must not inherit the dialog's scroll lock, scrim or `alertdialog` role.
1216
1216
  * A panel whose controller is on its host chain (a builder-launched body,
1217
1217
  * or the root pattern where one directive provides controller and
1218
- * strategies for the whole subtree) reads them from that chain as before.
1218
+ * strategies for the whole subtree) reads them from that chain, minus any
1219
+ * strategy instance an enclosing overlay is already running: a select inside
1220
+ * a service-launched dialog finds the dialog's scrim, focus trap and scroll
1221
+ * lock up the chain, and must not adopt them.
1219
1222
  *
1220
1223
  * A portalled panel whose scope provides a backdrop strategy also gets a
1221
1224
  * real `<kj-backdrop>` scrim (created next to the panel, moved into the
@@ -1264,7 +1267,10 @@ declare class KjOverlayPanel {
1264
1267
  readonly kjFor: _angular_core.InputSignal<KjOverlayTriggerLike | null>;
1265
1268
  /** Whether the bound controller lives outside this panel's host chain — see the class docs. */
1266
1269
  private readonly scoped;
1267
- /** The tokens that apply to this panel. */
1270
+ /**
1271
+ * The tokens that apply to this panel. Inherited ones exclude strategies an
1272
+ * enclosing overlay already runs (see {@link withoutForeign}).
1273
+ */
1268
1274
  private readonly tokens;
1269
1275
  readonly role: _angular_core.Signal<KjPanelRole>;
1270
1276
  readonly isModal: _angular_core.Signal<boolean>;
@@ -12163,6 +12169,32 @@ declare class KjTable<TData extends RowData = unknown> {
12163
12169
  readonly rowCount: _angular_core.Signal<number | null>;
12164
12170
  readonly manualPagination: _angular_core.Signal<boolean>;
12165
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;
12166
12198
  /**
12167
12199
  * Apply a TanStack updater (value or function) to a single state slice.
12168
12200
  *