@ixfx/components 0.17.0 → 0.18.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/bundle/index.d.ts +193 -8
- package/bundle/index.js +153 -152
- package/dist/{checked-select-BmwqpgGr.js → checked-select-DsQ-o9lI.js} +1 -1
- package/dist/checked-select.js +1 -1
- package/dist/{crumb-navigation-D7dAC0H-.js → crumb-navigation-09YFje6W.js} +2 -2
- package/dist/{crumb-navigation-Tm4fnsvN.d.ts → crumb-navigation-DOfOS7li.d.ts} +1 -1
- package/dist/crumbs.d.ts +1 -1
- package/dist/crumbs.js +1 -1
- package/dist/{data-grid-BcO3SMac.js → data-grid-BGmJbMCb.js} +4 -3
- package/dist/{data-grid-vasJtjFP.d.ts → data-grid-BQWmVYg0.d.ts} +8 -2
- package/dist/data-grid.d.ts +2 -2
- package/dist/data-grid.js +1 -1
- package/dist/{detail-list-E9WdMVbE.d.ts → detail-list-CfjoIl2N.d.ts} +9 -3
- package/dist/{detail-list-vPVwE1CP.js → detail-list-CrHASoAx.js} +2 -1
- package/dist/detail-list.d.ts +3 -3
- package/dist/detail-list.js +1 -1
- package/dist/{flat-list-CfutGqKY.d.ts → flat-list-C2z81bK6.d.ts} +5 -3
- package/dist/flat-list.d.ts +1 -1
- package/dist/flat-list.js +4 -2
- package/dist/{grid-list-Dg8hIiKO.d.ts → grid-list-Crv-hFJL.d.ts} +60 -4
- package/dist/{grid-list-BHo9TBxX.js → grid-list-DYU_z2K9.js} +258 -19
- package/dist/grid-list.d.ts +3 -3
- package/dist/grid-list.js +1 -1
- package/dist/incr-search.d.ts +1 -1
- package/dist/{index-CzhYJJsx.d.ts → index-BE0hk8xS.d.ts} +2 -2
- package/dist/{index-88ra6YHP.d.ts → index-BymYKGY-.d.ts} +3 -3
- package/dist/{index-CRLTVAyt.d.ts → index-Db5VGFR1.d.ts} +1 -1
- package/dist/index.d.ts +82 -20
- package/dist/index.js +293 -107
- package/dist/{interaction-8Kbbf6xN.js → interaction-BEcBIY0d.js} +1 -1
- package/dist/{list-native-drag-controller-ByftBooJ.js → list-native-drag-controller-Brk30s5d.js} +3 -0
- package/dist/{list-native-drag-controller-CgXKdmjr.d.ts → list-native-drag-controller-Cs-Tmtaa.d.ts} +1 -1
- package/dist/{menu-C3DhTjHx.js → menu-B6NFqEtm.js} +3 -3
- package/dist/{menu-item-BSxhlWnW.js → menu-item-D0zy1yax.js} +2 -2
- package/dist/menu.js +2 -2
- package/dist/{miller-DqDEaXqT.js → miller-B0qbnWwe.js} +1 -1
- package/dist/miller.d.ts +2 -2
- package/dist/miller.js +1 -1
- package/dist/narrowed-text.js +1 -1
- package/dist/{node-graph-DqEGv5QR.js → node-graph-D9iovxQp.js} +1 -1
- package/dist/node-graph.js +1 -1
- package/dist/{notification-pill-BiHEJk-o.d.ts → notification-pill-BJonE_wo.d.ts} +14 -1
- package/dist/notifier.d.ts +1 -1
- package/dist/select-horiz.js +1 -1
- package/dist/sunburst-tree.d.ts +1 -1
- package/dist/{sunbursttree-list-CsrmVSB8.d.ts → sunbursttree-list-XF7gBKod.d.ts} +2 -2
- package/dist/{tree-BP5fxvEX.js → tree-1CSNgw72.js} +2 -2
- package/dist/{tree-component-DNuzfo6R.d.ts → tree-component-BE7OEIiH.d.ts} +7 -1
- package/dist/tree.d.ts +2 -2
- package/dist/tree.js +1 -1
- package/dist/{vertical-list-B9z1lbjM.js → vertical-list-BNCRA_zy.js} +2 -1
- package/dist/{vertical-list-BzeXehBt.d.ts → vertical-list-Dyc5azxv.d.ts} +8 -2
- package/dist/vertical-list.d.ts +2 -2
- package/dist/vertical-list.js +1 -1
- package/docs-user/grid-list.md +70 -0
- package/docs-user/index.json +2 -2
- package/docs-user/notifier.md +28 -0
- package/package.json +3 -3
package/bundle/index.d.ts
CHANGED
|
@@ -303,7 +303,11 @@ type CommandOptions = Readonly<{
|
|
|
303
303
|
}>;
|
|
304
304
|
type Command<TState = unknown> = Readonly<{
|
|
305
305
|
id: CommandId;
|
|
306
|
-
|
|
306
|
+
/**
|
|
307
|
+
* User-facing label. A plain string, or a function of the state for labels that
|
|
308
|
+
* vary by context. Resolve with `CommandRegistry.getLabel`.
|
|
309
|
+
*/
|
|
310
|
+
label: string | ((state: TState) => string);
|
|
307
311
|
icon?: string;
|
|
308
312
|
description: string;
|
|
309
313
|
enabledWhen?: (state: TState) => boolean;
|
|
@@ -345,6 +349,8 @@ type KeyEventHandler = (commandId: CommandId, modifiers: Modifiers, context: Inp
|
|
|
345
349
|
declare class CommandRegistry<TState = unknown> {
|
|
346
350
|
private commands;
|
|
347
351
|
private invokeListeners;
|
|
352
|
+
private labelOverrides;
|
|
353
|
+
private labelListeners;
|
|
348
354
|
private options;
|
|
349
355
|
/**
|
|
350
356
|
* Creates, with options.
|
|
@@ -363,6 +369,28 @@ declare class CommandRegistry<TState = unknown> {
|
|
|
363
369
|
* @returns _true_ if a command was removed
|
|
364
370
|
*/
|
|
365
371
|
unregister(id: CommandId): boolean;
|
|
372
|
+
/**
|
|
373
|
+
* Overrides a command's label until cleared, without re-registering it.
|
|
374
|
+
* Listeners added with `addOnLabelChangeHandler` are notified if the override changed.
|
|
375
|
+
* @param id - Command ID
|
|
376
|
+
* @param text - New label, or _undefined_ to clear the override and use the command's own label
|
|
377
|
+
* @returns _false_ if the command is not registered
|
|
378
|
+
*/
|
|
379
|
+
setLabel(id: CommandId, text: string | undefined): boolean;
|
|
380
|
+
/**
|
|
381
|
+
* Resolves a command's current label: a `setLabel` override if present,
|
|
382
|
+
* otherwise the command's label (calling it with `state` if it is a function).
|
|
383
|
+
* @param id - Command ID
|
|
384
|
+
* @param state - Current application state, passed to a function label
|
|
385
|
+
* @returns The label, or _undefined_ if the command is not registered
|
|
386
|
+
*/
|
|
387
|
+
getLabel(id: CommandId, state: TState): string | undefined;
|
|
388
|
+
/**
|
|
389
|
+
* Adds a function to call when a label is changed via `setLabel`.
|
|
390
|
+
* @param handler - Receives the command id and new override (_undefined_ if cleared)
|
|
391
|
+
* @returns Function to unsubscribe the handler
|
|
392
|
+
*/
|
|
393
|
+
addOnLabelChangeHandler(handler: (id: CommandId, label: string | undefined) => void): () => void;
|
|
366
394
|
/**
|
|
367
395
|
* Runs a command by its id.
|
|
368
396
|
*
|
|
@@ -3489,6 +3517,12 @@ interface ListDragPreview {
|
|
|
3489
3517
|
readonly canvas?: HTMLCanvasElement;
|
|
3490
3518
|
readonly dispose?: () => void;
|
|
3491
3519
|
}
|
|
3520
|
+
/**
|
|
3521
|
+
* Writes an application payload onto the drag's `DataTransfer` at `dragstart`.
|
|
3522
|
+
* Every list component exposes this as a public `writeDataTransfer` property;
|
|
3523
|
+
* `ListNativeDragController` invokes it after any built-in payload writer.
|
|
3524
|
+
*/
|
|
3525
|
+
type ListDragDataTransferWriter<T> = (dataTransfer: DataTransfer, detail: ListNativeDragStartDetail<T>) => void;
|
|
3492
3526
|
type ListDragPreviewRenderer<T> = (context: ListDragPreviewContext<T>) => ListDragPreview;
|
|
3493
3527
|
type ListDragPreviewSourceResolver<T> = (entry: ListDragEntry<T>) => CanvasImageSource | undefined;
|
|
3494
3528
|
interface ListNativeDragStartDetail<T = unknown> {
|
|
@@ -4472,8 +4506,20 @@ export interface CrumbNavigationElementEventMap extends TreeComponentEventMap {
|
|
|
4472
4506
|
export interface CrumbNavigationElement {
|
|
4473
4507
|
addEventListener: (<K extends keyof CrumbNavigationElementEventMap>(type: K, listener: (this: CrumbNavigationElement, event: CrumbNavigationElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions) => void) & ((type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void);
|
|
4474
4508
|
}
|
|
4509
|
+
/**
|
|
4510
|
+
* A structured path segment. `label` is the displayed text and may contain any
|
|
4511
|
+
* character, including the display separator. `value` is an optional opaque
|
|
4512
|
+
* identity the host can round-trip (e.g. an id) — reported back via the
|
|
4513
|
+
* `segments` field on `navigate` / `change` events.
|
|
4514
|
+
*/
|
|
4515
|
+
export type CrumbPathSegment = {
|
|
4516
|
+
label: string;
|
|
4517
|
+
value?: string;
|
|
4518
|
+
};
|
|
4475
4519
|
export type CrumbSegment = {
|
|
4476
4520
|
label: string;
|
|
4521
|
+
/** Carried onto the matching `CrumbPathSegment` when this sibling is chosen. */
|
|
4522
|
+
value?: string;
|
|
4477
4523
|
icon?: string;
|
|
4478
4524
|
isLeaf?: boolean;
|
|
4479
4525
|
};
|
|
@@ -4484,12 +4530,16 @@ export type CrumbNavNavigateDetail = {
|
|
|
4484
4530
|
label: string;
|
|
4485
4531
|
parentPath: string;
|
|
4486
4532
|
fullPath: string;
|
|
4533
|
+
/** The new structured path (excluding `pathRoot`). Present when the `segments` property is in use. */
|
|
4534
|
+
segments?: CrumbPathSegment[];
|
|
4487
4535
|
};
|
|
4488
4536
|
export type CrumbNavNavigateEvent = CustomEvent<CrumbNavNavigateDetail>;
|
|
4489
4537
|
export type CrumbNavChangeDetail = {
|
|
4490
4538
|
label: string;
|
|
4491
4539
|
parentPath: string;
|
|
4492
4540
|
fullPath: string;
|
|
4541
|
+
/** The new structured path (excluding `pathRoot`). Present when the `segments` property is in use. */
|
|
4542
|
+
segments?: CrumbPathSegment[];
|
|
4493
4543
|
};
|
|
4494
4544
|
export type CrumbNavChangeEvent = CustomEvent<CrumbNavChangeDetail>;
|
|
4495
4545
|
export type CrumbNavExpandDetail = {
|
|
@@ -4547,7 +4597,18 @@ export type CrumbDropDetail = {
|
|
|
4547
4597
|
export type CrumbDropEvent = CustomEvent<CrumbDropDetail>;
|
|
4548
4598
|
export declare class CrumbPathElement extends LitElement {
|
|
4549
4599
|
#private;
|
|
4600
|
+
/**
|
|
4601
|
+
* Text path, split on `separator`. Use `segments` instead when a label may
|
|
4602
|
+
* contain the separator. When `segments` is set it takes precedence and this
|
|
4603
|
+
* property holds the derived display text (labels joined by `separator`).
|
|
4604
|
+
*/
|
|
4550
4605
|
path: string;
|
|
4606
|
+
/**
|
|
4607
|
+
* Structured path (excluding `pathRoot`). Labels may contain any character,
|
|
4608
|
+
* including `separator`. Takes precedence over `path`, which is derived from
|
|
4609
|
+
* it. Set to `undefined` to go back to the text `path`.
|
|
4610
|
+
*/
|
|
4611
|
+
segments: CrumbPathSegment[] | undefined;
|
|
4551
4612
|
separator: string;
|
|
4552
4613
|
pathRoot: string;
|
|
4553
4614
|
siblingLookup: CrumbSiblingLookupFn | undefined;
|
|
@@ -4579,6 +4640,9 @@ export declare class CrumbPathElement extends LitElement {
|
|
|
4579
4640
|
/** Deepest relative-segment path visited, kept so it can be restored via virtual segments. */
|
|
4580
4641
|
private _hintSegments;
|
|
4581
4642
|
protected updated(changedProperties: PropertyValues): void;
|
|
4643
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
4644
|
+
/** Structured segments, or the text path parsed into value-less segments. */
|
|
4645
|
+
getSegments(): CrumbPathSegment[];
|
|
4582
4646
|
setPath(newPath: string): void;
|
|
4583
4647
|
/** Drop cached dropdown siblings (and leaf detection) so they are looked up again. */
|
|
4584
4648
|
invalidateSiblings(): void;
|
|
@@ -5818,6 +5882,12 @@ export declare class DataGridElement extends LitElement {
|
|
|
5818
5882
|
* built-in HTML+canvas preview.
|
|
5819
5883
|
*/
|
|
5820
5884
|
dragPreviewRenderer: ListDragPreviewRenderer<unknown> | undefined;
|
|
5885
|
+
/**
|
|
5886
|
+
* Write an application payload onto the drag's `DataTransfer` (e.g. a custom
|
|
5887
|
+
* MIME type). Called once per drag, synchronously inside `dragstart`, after a
|
|
5888
|
+
* non-cancelled `list-native-drag-start`.
|
|
5889
|
+
*/
|
|
5890
|
+
writeDataTransfer: ListDragDataTransferWriter<unknown> | undefined;
|
|
5821
5891
|
dragPreviewSource: ListDragPreviewSourceResolver<unknown> | undefined;
|
|
5822
5892
|
/**
|
|
5823
5893
|
* Default icon name for column header buttons. Defaults to `ellipsis`.
|
|
@@ -6371,6 +6441,12 @@ export declare class VerticalListElement extends LitElement {
|
|
|
6371
6441
|
* built-in HTML+canvas preview.
|
|
6372
6442
|
*/
|
|
6373
6443
|
dragPreviewRenderer: ListDragPreviewRenderer<Element> | undefined;
|
|
6444
|
+
/**
|
|
6445
|
+
* Write an application payload onto the drag's `DataTransfer` (e.g. a custom
|
|
6446
|
+
* MIME type). Called once per drag, synchronously inside `dragstart`, after a
|
|
6447
|
+
* non-cancelled `list-native-drag-start`.
|
|
6448
|
+
*/
|
|
6449
|
+
writeDataTransfer: ListDragDataTransferWriter<Element> | undefined;
|
|
6374
6450
|
dragPreviewSource: ListDragPreviewSourceResolver<Element> | undefined;
|
|
6375
6451
|
/**
|
|
6376
6452
|
* Object/adapter item mode (mirrors `ixfx-detail-list`). When set, the list
|
|
@@ -6764,6 +6840,12 @@ export declare class DetailListElement extends LitElement {
|
|
|
6764
6840
|
* built-in HTML+canvas preview.
|
|
6765
6841
|
*/
|
|
6766
6842
|
dragPreviewRenderer: ListDragPreviewRenderer<Element> | undefined;
|
|
6843
|
+
/**
|
|
6844
|
+
* Write an application payload onto the drag's `DataTransfer` (e.g. a custom
|
|
6845
|
+
* MIME type). Called once per drag, synchronously inside `dragstart`, after a
|
|
6846
|
+
* non-cancelled `list-native-drag-start`.
|
|
6847
|
+
*/
|
|
6848
|
+
writeDataTransfer: ListDragDataTransferWriter<Element> | undefined;
|
|
6767
6849
|
dragPreviewSource: ListDragPreviewSourceResolver<Element> | undefined;
|
|
6768
6850
|
/**
|
|
6769
6851
|
* Group rows under collapsible headers that flow inline in the columns. A
|
|
@@ -8400,6 +8482,8 @@ export declare class FlatListElement extends LitElement {
|
|
|
8400
8482
|
itemWrap: `stop` | `wrap`;
|
|
8401
8483
|
searchModes: string | undefined;
|
|
8402
8484
|
itemsDraggable: boolean;
|
|
8485
|
+
/** Write an application payload onto the drag's `DataTransfer`. Forwarded to the inner list. */
|
|
8486
|
+
writeDataTransfer: ListDragDataTransferWriter<Element> | undefined;
|
|
8403
8487
|
/** Rows (and empty space) accept native drops. See `flat-list-drop`. */
|
|
8404
8488
|
itemsDroppable: boolean;
|
|
8405
8489
|
/**
|
|
@@ -9473,6 +9557,17 @@ type GridListDataAdapter<T> = {
|
|
|
9473
9557
|
*/
|
|
9474
9558
|
badge?: (item: T, index: number) => unknown;
|
|
9475
9559
|
};
|
|
9560
|
+
/**
|
|
9561
|
+
* One entry of a batched item update — see `GridListElement.updateItems`.
|
|
9562
|
+
*
|
|
9563
|
+
* @typeParam T The type of data item.
|
|
9564
|
+
*/
|
|
9565
|
+
type GridListItemUpdate<T> = {
|
|
9566
|
+
/** Key of the item to replace. Unknown keys are ignored. */
|
|
9567
|
+
readonly key: string;
|
|
9568
|
+
/** The new value for that item. */
|
|
9569
|
+
readonly item: T;
|
|
9570
|
+
};
|
|
9476
9571
|
/**
|
|
9477
9572
|
* Common detail for per-item events (activate, click, tickle), key-first in
|
|
9478
9573
|
* BOTH element and data modes. `item` is the backward-compat field — Element in
|
|
@@ -9675,6 +9770,12 @@ export declare class GridListElement<T = unknown> extends LitElement {
|
|
|
9675
9770
|
* as selection changes. Defaults to the shared built-in preview.
|
|
9676
9771
|
*/
|
|
9677
9772
|
dragPreviewRenderer: ListDragPreviewRenderer<T> | undefined;
|
|
9773
|
+
/**
|
|
9774
|
+
* Write an application payload onto the drag's `DataTransfer` (e.g. a custom
|
|
9775
|
+
* MIME type). Called once per drag, synchronously inside `dragstart`, after a
|
|
9776
|
+
* non-cancelled `list-native-drag-start`.
|
|
9777
|
+
*/
|
|
9778
|
+
writeDataTransfer: ListDragDataTransferWriter<T> | undefined;
|
|
9678
9779
|
/**
|
|
9679
9780
|
* Optional synchronous resolver that supplies an already-loaded
|
|
9680
9781
|
* `CanvasImageSource` for each drag entry's preview thumbnail.
|
|
@@ -9810,8 +9911,47 @@ export declare class GridListElement<T = unknown> extends LitElement {
|
|
|
9810
9911
|
* place (the keyed subtree is kept); an offscreen item shows its new content
|
|
9811
9912
|
* when scrolled into view. Scroll and selection are untouched. Unknown keys
|
|
9812
9913
|
* are ignored.
|
|
9914
|
+
*
|
|
9915
|
+
* Passing the **same object** that is already at `key` is a no-op: the
|
|
9916
|
+
* `items` array is left untouched (same identity) and nothing is emitted.
|
|
9917
|
+
* Use {@link refreshItem} to re-render a cell without changing the data.
|
|
9918
|
+
*
|
|
9919
|
+
* Updating many items one by one? Use {@link updateItems} — it applies them
|
|
9920
|
+
* with a single array copy and a single rebuild.
|
|
9813
9921
|
*/
|
|
9814
9922
|
updateItem(key: string, item: T): void;
|
|
9923
|
+
/**
|
|
9924
|
+
* Data mode: replace several items at once — the batched form of
|
|
9925
|
+
* {@link updateItem}.
|
|
9926
|
+
*
|
|
9927
|
+
* `entries` is an array of `{ key, item }` pairs (a `Map<key, item>` is
|
|
9928
|
+
* accepted too). All the replacements are applied with **one** array copy
|
|
9929
|
+
* and **one** source rebuild, so a host that must refresh n rows does not
|
|
9930
|
+
* pay n copies and n scans.
|
|
9931
|
+
*
|
|
9932
|
+
* Semantics match n sequential {@link updateItem} calls:
|
|
9933
|
+
* - unknown keys are ignored;
|
|
9934
|
+
* - an entry whose `item` is the identical object already at that key is
|
|
9935
|
+
* skipped (it cannot change anything);
|
|
9936
|
+
* - selection, cursor and scroll are untouched;
|
|
9937
|
+
* - if no entry changes anything, `items` is left untouched (same identity)
|
|
9938
|
+
* and nothing is emitted.
|
|
9939
|
+
*/
|
|
9940
|
+
updateItems(entries: Iterable<GridListItemUpdate<T>> | ReadonlyMap<string, T>): void;
|
|
9941
|
+
/**
|
|
9942
|
+
* Data mode: re-render the cell for `key` without touching `items`.
|
|
9943
|
+
*
|
|
9944
|
+
* Use this when the *data* is unchanged but the cell should be redrawn — for
|
|
9945
|
+
* example after mutating something the adapter reads from outside the item
|
|
9946
|
+
* (a thumbnail's load state). The `items` array keeps its identity, so the
|
|
9947
|
+
* collection is not copied and no source rebuild is triggered.
|
|
9948
|
+
*
|
|
9949
|
+
* The adapter's `render` is called again for that cell on the next render,
|
|
9950
|
+
* so the cell picks up the new state. Other cells are left alone.
|
|
9951
|
+
*
|
|
9952
|
+
* Unknown keys are ignored. A no-op in element mode.
|
|
9953
|
+
*/
|
|
9954
|
+
refreshItem(key: string): void;
|
|
9815
9955
|
/**
|
|
9816
9956
|
* Data mode: remove the items carrying these keys. Removed keys leave the
|
|
9817
9957
|
* selection and cursor silently (via the `items` change) and are held as
|
|
@@ -14135,12 +14275,57 @@ export type NotifierOptions = {
|
|
|
14135
14275
|
tapBehaviour?: `none` | `dismiss`;
|
|
14136
14276
|
tapHandlerDefault?: (notification: Notification) => void;
|
|
14137
14277
|
};
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14278
|
+
/** A notification as remembered by a manager's history. */
|
|
14279
|
+
export type NotificationHistoryEntry = Notification & {
|
|
14280
|
+
/** `true` once read: via `markRead`/`markAllRead`, or when the user taps the toast. */
|
|
14281
|
+
readonly read: boolean;
|
|
14282
|
+
/** Set once the toast is no longer visible (timed out, evicted, tapped away or dismissed). */
|
|
14283
|
+
readonly dismissedAt?: number;
|
|
14284
|
+
};
|
|
14285
|
+
export type NotificationHistoryListener = (history: readonly NotificationHistoryEntry[]) => void;
|
|
14286
|
+
/** Options for `createNotificationManager` / `NotificationManager.scope`. */
|
|
14287
|
+
export type NotificationManagerOptions = NotifierOptions & {
|
|
14288
|
+
/** Max history entries kept per manager (oldest dropped first). Default 100. */
|
|
14289
|
+
historyLimit?: number;
|
|
14290
|
+
};
|
|
14291
|
+
/**
|
|
14292
|
+
* An independent notification manager: its own queue, timers, renderer,
|
|
14293
|
+
* options and history. `NotificationManager` is the default, app-wide
|
|
14294
|
+
* instance; create more with `createNotificationManager()` (or
|
|
14295
|
+
* `NotificationManager.scope(name)`) to show toasts next to the component
|
|
14296
|
+
* they concern.
|
|
14297
|
+
*/
|
|
14298
|
+
export type NotificationManagerInstance = {
|
|
14299
|
+
configure: (opts: NotificationManagerOptions) => void;
|
|
14300
|
+
notify: (content: NotificationContent) => string;
|
|
14301
|
+
update: (id: string, content: Partial<NotificationContent>) => void;
|
|
14302
|
+
dismiss: (id: string) => void;
|
|
14303
|
+
dismissAll: () => void;
|
|
14304
|
+
/** Remembered notifications, oldest first. Includes ones no longer visible. */
|
|
14305
|
+
getHistory: () => readonly NotificationHistoryEntry[];
|
|
14306
|
+
/** Number of history entries not yet read. Drives a bell indicator. */
|
|
14307
|
+
readonly unreadCount: number;
|
|
14308
|
+
markRead: (id: string) => void;
|
|
14309
|
+
markAllRead: () => void;
|
|
14310
|
+
clearHistory: () => void;
|
|
14311
|
+
/** Called with the full history whenever it changes (new, updated, read, dismissed, cleared). Returns an unsubscribe function. */
|
|
14312
|
+
subscribe: (listener: NotificationHistoryListener) => () => void;
|
|
14313
|
+
/** Dismiss everything, drop history and listeners, detach the renderer. The instance is unusable afterwards. */
|
|
14314
|
+
destroy: () => void;
|
|
14315
|
+
};
|
|
14316
|
+
export declare function createNotificationManager(initial?: NotificationManagerOptions): NotificationManagerInstance;
|
|
14317
|
+
/**
|
|
14318
|
+
* The default, app-wide manager. Also a registry of named, independent
|
|
14319
|
+
* scopes: `NotificationManager.scope('lister-1', { renderer })`.
|
|
14320
|
+
*/
|
|
14321
|
+
export declare const NotificationManager: NotificationManagerInstance & {
|
|
14322
|
+
/**
|
|
14323
|
+
* Get (creating on first use, with `opts`) the independent manager for `name`.
|
|
14324
|
+
* `opts` are ignored if the scope already exists; call `.configure()` on it instead.
|
|
14325
|
+
*/
|
|
14326
|
+
scope: (name: string, opts?: NotificationManagerOptions) => NotificationManagerInstance;
|
|
14327
|
+
/** Destroy and forget a named scope (e.g. when its component unmounts). */
|
|
14328
|
+
releaseScope: (name: string) => void;
|
|
14144
14329
|
};
|
|
14145
14330
|
export type PillTapDetail = {
|
|
14146
14331
|
readonly id: string;
|
|
@@ -17014,4 +17199,4 @@ export interface XyPad {
|
|
|
17014
17199
|
addEventListener: (<K extends keyof XyPadEventMap>(type: K, listener: (this: XyPad, event: XyPadEventMap[K]) => void, options?: boolean | AddEventListenerOptions) => void) & ((type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void);
|
|
17015
17200
|
}
|
|
17016
17201
|
export declare function init(): void;
|
|
17017
|
-
export { type AcTokenAddDetail, type AcTokenAddEvent, type AcTokenElementEventMap, type AcTokenItem, type AcTokenRemoveDetail, type AcTokenRemoveEvent, type AcTokenStyle, type AcTokenStyleFn, type AcTokenizerFn, type AcTokensChangeDetail, type AcTokensChangeEvent, type AddedNode, type BridgeDeps, type BridgeResult, type BuiltInFormatterName, type BuiltInFormatterOptions, type CheckState, type CheckedSelectItem, type ColourPickerChangeEvent, type ColourPickerEventDetail, type ColourPickerInputEvent, type ComputeHyperbolicLayoutOptions, type ComputeTreemapLayoutOptions, type ContextKind, type ContextTarget, type CrumbNavigationViewState, type CssVars, type DataGridColumn, type DataGridColumnMenu, type DataGridColumnViewState, type DataGridDataType, type DataGridEditability, type DataGridEditorContext, type DataGridEditorFactory, type DataGridEditorType, type DataGridGetRowKey, type DataGridGroupBy, type DataGridGroupLabel, type DataGridInteractionMode, type DataGridRowLook, type DataGridSelectionMode, type DataGridSortDirection, type DataGridSortState, type DataGridViewState, type DataListSearchAdapterOptions, type DataListSearchItem, type DetailFormatter, type DetailGroupBy, type DetailListViewState, type DetailSortComparator, type DetailSortItem, type DetailSortMode, type DockDropZone, type DragSelectRect, type DraggableNode, type ElementIncrSearch, type ElementIncrSearchOptions, type ElementListSearchAdapterOptions, type ElementListSearchHost, type FlatListActivateDetail, type FlatListActivateEvent, type FlatListBranchOrder, type FlatListContextMenuDetail, type FlatListContextMenuEvent, type FlatListDropDetail, type FlatListDropEvent, type FlatListEditCancelDetail, type FlatListEditCancelEvent, type FlatListEditCommitDetail, type FlatListEditCommitEvent, type FlatListElementEventMap, type FlatListNavigateDetail, type FlatListNavigateEvent, type FlatListSelectDetail, type FlatListSelectEvent, type FlatListViewState, type FuzzySearch, type FuzzySearchOptions, type GlobalFormatter, type GridListActivateDetail, type GridListActivateEvent, type GridListCaptionAlign, type GridListCaptionBackdrop, type GridListCaptionPosition, type GridListCaptionStyle, type GridListDataAdapter, type GridListElementEventMap, type GridListFullElementEventMap, type GridListItemClickDetail, type GridListItemClickEvent, type GridListItemEventDetail, type GridListOrientation, type GridListSelectDetail, type GridListSelectEvent, type GridListTickleDetail, type GridListTickleEvent, type GridListViewState, type GridListViewportChangeDetail, type GridListViewportChangeEvent, type GroupedItemListerElementEventMap, type GroupedSelectDetail, type GroupedSelectEvent, type HighlightOptions, type HighlightTarget, type HyperbolicEdgeRenderContext, type HyperbolicEdgeRenderer, type HyperbolicFocusDetail, type HyperbolicFocusEvent, type HyperbolicInteractionMode, type HyperbolicLayoutEdge, type HyperbolicLayoutNode, type HyperbolicNodeShape, type Point as HyperbolicPoint, type HyperbolicTreeListViewState, type IGroupedSubComponent, type IGroupedSubComponentEventMap, type IcicleViewState, type IconChangedDetail, type IconChangedEvent, type IconEntry, type IncrSearch, type IncrSearchChangeCallback, IncrSearchTreeController as IncrSearchMillerController, type IncrSearchTreeOptions as IncrSearchMillerOptions, type IncrSearchTreeOptions, type IncrSearchOptions, type IncrSearchResult, type IncrSearchState, type InputMode, type ItemDisplay, type ItemOrientation, type ListActivateDetail, type ListActivateEvent, type ListContextMenuDetail, type ListContextMenuEvent, type ListDragEntry, type ListDragLeaveDetail, type ListDragLeaveEvent, type ListDragOverEvent, type ListDragPreview, type ListDragPreviewContext, type ListDragPreviewRenderer, type ListDragPreviewSourceResolver, type ListDragSelectControllerConfig, type ListDragSource, type ListDropDetail, type ListDropEvent, type ListEditCancelDetail, type ListEditCancelEvent, type ListEditCommitDetail, type ListEditCommitEvent, type ListElementEventMap, type ListGroupBy, type ListGroupChangeDetail, type ListGroupChangeEvent, type ListGroupEventMap, type ListGroupInfo, type ListGroupLabel, type ListGroupPartition, type ListGroupToggleDetail, type ListGroupToggleEvent, type ListInteractionMode, type ListItemClickDetail, type ListItemClickEvent, type ListItemMotionOptions, type ListItemOutResult, type ListMarqueeMode, type ListNativeDragControllerConfig, type ListNativeDragStartDetail, type ListNativeDragStartEvent, type ListSearchAdapter, type ListSearchControllerOptions, type ListSearchHost, type ListSearchMode, type ListSelectDetail, type ListSelectEvent, type ListSelectIntentDetail, type ListSelectIntentEvent, type ListSelectIntentKind, type ListSelectIntentSource, type ListSelectKeysDetail, type ListSelectionControllerConfig, type ListSelectionGesture, type ListSelectionMode, type ListSelectionModes, type ListTickleDetail, type ListTickleEvent, type ListViewportChangeDetail, type ListViewportChangeEvent, type MarqueeConfig, index_d_exports as Menu, type TreeActivateDetail as MillerActivateDetail, type TreeActivateEvent as MillerActivateEvent, type TreeCollapseDetail as MillerCollapseDetail, type TreeCollapseEvent as MillerCollapseEvent, type TreeExpandDetail as MillerExpandDetail, type TreeExpandEvent as MillerExpandEvent, type TreeItem as MillerItem, type TreeItemClickDetail as MillerItemClickDetail, type TreeItemClickEvent as MillerItemClickEvent, type MillerListViewState, type TreeNode as MillerNode, type TreeSelectDetail as MillerSelectDetail, type TreeSelectEvent as MillerSelectEvent, type TreeTickleDetail as MillerTickleDetail, type TreeTickleEvent as MillerTickleEvent, type MulticolCategory, type MulticolColumnState, type MulticolColumnsChangeReason, type MulticolItem, type MulticolListViewState, type MulticolQuery, type MulticolSelectDetail, type NodeDragConfig, type NodeFactory, type NodeFactoryContext, type OklchValue, type OpenableMenu, type PanZoomConfig, Point$1 as Point, type ProximityPair, type ProximityQuery, type Rect, type RegisterListSearchCommandsOptions, type ScrollHoverGuard, type ScrollHoverGuardConfig, type SortDirection, type SubComponentActivateDetail, type SubComponentActivateEvent, type SubComponentFactory, type SubComponentItemClickDetail, type SubComponentItemClickEvent, type SubComponentSelectDetail, type SubComponentSelectEvent, type SubComponentTickleDetail, type SubComponentTickleEvent, type SunburstViewState, type TickledControllerConfig, type TickledItem, type TreeCheckboxState, type TreeKeyboardNavCallbacks, type TreeKeyboardNavControllerConfig, type TreeKeyboardNavItemId, type TreeListSearchAdapterOptions, type TreeListViewState, type TreemapInteractionMode, type TreemapListViewState, type TreemapRect, type TreemapTilingMethod, type TreemapValueAccessor, type VerticalListViewState, type WheelMode, type WireDragConfig, type WireDragMode, type WireDragPort, type WirePath };
|
|
17202
|
+
export { type AcTokenAddDetail, type AcTokenAddEvent, type AcTokenElementEventMap, type AcTokenItem, type AcTokenRemoveDetail, type AcTokenRemoveEvent, type AcTokenStyle, type AcTokenStyleFn, type AcTokenizerFn, type AcTokensChangeDetail, type AcTokensChangeEvent, type AddedNode, type BridgeDeps, type BridgeResult, type BuiltInFormatterName, type BuiltInFormatterOptions, type CheckState, type CheckedSelectItem, type ColourPickerChangeEvent, type ColourPickerEventDetail, type ColourPickerInputEvent, type ComputeHyperbolicLayoutOptions, type ComputeTreemapLayoutOptions, type ContextKind, type ContextTarget, type CrumbNavigationViewState, type CssVars, type DataGridColumn, type DataGridColumnMenu, type DataGridColumnViewState, type DataGridDataType, type DataGridEditability, type DataGridEditorContext, type DataGridEditorFactory, type DataGridEditorType, type DataGridGetRowKey, type DataGridGroupBy, type DataGridGroupLabel, type DataGridInteractionMode, type DataGridRowLook, type DataGridSelectionMode, type DataGridSortDirection, type DataGridSortState, type DataGridViewState, type DataListSearchAdapterOptions, type DataListSearchItem, type DetailFormatter, type DetailGroupBy, type DetailListViewState, type DetailSortComparator, type DetailSortItem, type DetailSortMode, type DockDropZone, type DragSelectRect, type DraggableNode, type ElementIncrSearch, type ElementIncrSearchOptions, type ElementListSearchAdapterOptions, type ElementListSearchHost, type FlatListActivateDetail, type FlatListActivateEvent, type FlatListBranchOrder, type FlatListContextMenuDetail, type FlatListContextMenuEvent, type FlatListDropDetail, type FlatListDropEvent, type FlatListEditCancelDetail, type FlatListEditCancelEvent, type FlatListEditCommitDetail, type FlatListEditCommitEvent, type FlatListElementEventMap, type FlatListNavigateDetail, type FlatListNavigateEvent, type FlatListSelectDetail, type FlatListSelectEvent, type FlatListViewState, type FuzzySearch, type FuzzySearchOptions, type GlobalFormatter, type GridListActivateDetail, type GridListActivateEvent, type GridListCaptionAlign, type GridListCaptionBackdrop, type GridListCaptionPosition, type GridListCaptionStyle, type GridListDataAdapter, type GridListElementEventMap, type GridListFullElementEventMap, type GridListItemClickDetail, type GridListItemClickEvent, type GridListItemEventDetail, type GridListItemUpdate, type GridListOrientation, type GridListSelectDetail, type GridListSelectEvent, type GridListTickleDetail, type GridListTickleEvent, type GridListViewState, type GridListViewportChangeDetail, type GridListViewportChangeEvent, type GroupedItemListerElementEventMap, type GroupedSelectDetail, type GroupedSelectEvent, type HighlightOptions, type HighlightTarget, type HyperbolicEdgeRenderContext, type HyperbolicEdgeRenderer, type HyperbolicFocusDetail, type HyperbolicFocusEvent, type HyperbolicInteractionMode, type HyperbolicLayoutEdge, type HyperbolicLayoutNode, type HyperbolicNodeShape, type Point as HyperbolicPoint, type HyperbolicTreeListViewState, type IGroupedSubComponent, type IGroupedSubComponentEventMap, type IcicleViewState, type IconChangedDetail, type IconChangedEvent, type IconEntry, type IncrSearch, type IncrSearchChangeCallback, IncrSearchTreeController as IncrSearchMillerController, type IncrSearchTreeOptions as IncrSearchMillerOptions, type IncrSearchTreeOptions, type IncrSearchOptions, type IncrSearchResult, type IncrSearchState, type InputMode, type ItemDisplay, type ItemOrientation, type ListActivateDetail, type ListActivateEvent, type ListContextMenuDetail, type ListContextMenuEvent, type ListDragDataTransferWriter, type ListDragEntry, type ListDragLeaveDetail, type ListDragLeaveEvent, type ListDragOverEvent, type ListDragPreview, type ListDragPreviewContext, type ListDragPreviewRenderer, type ListDragPreviewSourceResolver, type ListDragSelectControllerConfig, type ListDragSource, type ListDropDetail, type ListDropEvent, type ListEditCancelDetail, type ListEditCancelEvent, type ListEditCommitDetail, type ListEditCommitEvent, type ListElementEventMap, type ListGroupBy, type ListGroupChangeDetail, type ListGroupChangeEvent, type ListGroupEventMap, type ListGroupInfo, type ListGroupLabel, type ListGroupPartition, type ListGroupToggleDetail, type ListGroupToggleEvent, type ListInteractionMode, type ListItemClickDetail, type ListItemClickEvent, type ListItemMotionOptions, type ListItemOutResult, type ListMarqueeMode, type ListNativeDragControllerConfig, type ListNativeDragStartDetail, type ListNativeDragStartEvent, type ListSearchAdapter, type ListSearchControllerOptions, type ListSearchHost, type ListSearchMode, type ListSelectDetail, type ListSelectEvent, type ListSelectIntentDetail, type ListSelectIntentEvent, type ListSelectIntentKind, type ListSelectIntentSource, type ListSelectKeysDetail, type ListSelectionControllerConfig, type ListSelectionGesture, type ListSelectionMode, type ListSelectionModes, type ListTickleDetail, type ListTickleEvent, type ListViewportChangeDetail, type ListViewportChangeEvent, type MarqueeConfig, index_d_exports as Menu, type TreeActivateDetail as MillerActivateDetail, type TreeActivateEvent as MillerActivateEvent, type TreeCollapseDetail as MillerCollapseDetail, type TreeCollapseEvent as MillerCollapseEvent, type TreeExpandDetail as MillerExpandDetail, type TreeExpandEvent as MillerExpandEvent, type TreeItem as MillerItem, type TreeItemClickDetail as MillerItemClickDetail, type TreeItemClickEvent as MillerItemClickEvent, type MillerListViewState, type TreeNode as MillerNode, type TreeSelectDetail as MillerSelectDetail, type TreeSelectEvent as MillerSelectEvent, type TreeTickleDetail as MillerTickleDetail, type TreeTickleEvent as MillerTickleEvent, type MulticolCategory, type MulticolColumnState, type MulticolColumnsChangeReason, type MulticolItem, type MulticolListViewState, type MulticolQuery, type MulticolSelectDetail, type NodeDragConfig, type NodeFactory, type NodeFactoryContext, type OklchValue, type OpenableMenu, type PanZoomConfig, Point$1 as Point, type ProximityPair, type ProximityQuery, type Rect, type RegisterListSearchCommandsOptions, type ScrollHoverGuard, type ScrollHoverGuardConfig, type SortDirection, type SubComponentActivateDetail, type SubComponentActivateEvent, type SubComponentFactory, type SubComponentItemClickDetail, type SubComponentItemClickEvent, type SubComponentSelectDetail, type SubComponentSelectEvent, type SubComponentTickleDetail, type SubComponentTickleEvent, type SunburstViewState, type TickledControllerConfig, type TickledItem, type TreeCheckboxState, type TreeKeyboardNavCallbacks, type TreeKeyboardNavControllerConfig, type TreeKeyboardNavItemId, type TreeListSearchAdapterOptions, type TreeListViewState, type TreemapInteractionMode, type TreemapListViewState, type TreemapRect, type TreemapTilingMethod, type TreemapValueAccessor, type VerticalListViewState, type WheelMode, type WireDragConfig, type WireDragMode, type WireDragPort, type WirePath };
|