@ixfx/components 0.15.5 → 0.16.1
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 +986 -49
- package/bundle/index.js +765 -729
- package/dist/ac-token.js +1 -1
- package/dist/crumb-navigation-BbqfmkYs.d.ts +147 -0
- package/dist/crumb-navigation-YnFVFqrx.js +1290 -0
- package/dist/crumbs.d.ts +2 -115
- package/dist/crumbs.js +1 -1179
- package/dist/{data-grid-C1sZX6n9.js → data-grid-Cqxuwgbb.js} +615 -210
- package/dist/{data-grid-D7qzmMMp.d.ts → data-grid-Csh5EJW9.d.ts} +55 -4
- package/dist/data-grid.d.ts +3 -3
- package/dist/data-grid.js +1 -1
- package/dist/{detail-list-q8bs67BM.js → detail-list-Bo5ze3SN.js} +234 -9
- package/dist/{detail-list-CKIKlszv.d.ts → detail-list-DSZ1DDor.d.ts} +48 -4
- package/dist/detail-list.d.ts +4 -4
- package/dist/detail-list.js +1 -1
- package/dist/{flat-list-DXMyDiSH.d.ts → flat-list-CT9kX3TQ.d.ts} +27 -4
- package/dist/flat-list.d.ts +2 -2
- package/dist/flat-list.js +123 -4
- package/dist/{grid-list-y6dWJYu3.js → grid-list-D0dJNVEF.js} +278 -76
- package/dist/{grid-list-0e7snW6t.d.ts → grid-list-DDLrWRxm.d.ts} +128 -22
- package/dist/grid-list.d.ts +3 -3
- package/dist/grid-list.js +1 -1
- package/dist/{incr-search-JIhwB49y.js → incr-search-CgbL-OlS.js} +140 -10
- package/dist/incr-search.d.ts +1 -1
- package/dist/incr-search.js +1 -1
- package/dist/index-9ttcdwlL.d.ts +71 -0
- package/dist/index-Bnm-kKGC.d.ts +475 -0
- package/dist/{index-KN2MW_xD.d.ts → index-CUErGhCg.d.ts} +31 -4
- package/dist/{index-DEVyVIn8.d.ts → index-D-lZNlHa.d.ts} +52 -6
- package/dist/index.d.ts +341 -21
- package/dist/index.js +2286 -884
- package/dist/{list-native-drag-controller-O2Nruqpi.d.ts → list-native-drag-controller-D_UrXipS.d.ts} +1 -1
- package/dist/{list-selection-controller-BeE70lbB.js → list-selection-controller-5L0Nj9tR.js} +87 -2
- package/dist/miller-DUqiUAWQ.js +2230 -0
- package/dist/miller.d.ts +4 -437
- package/dist/miller.js +1 -1815
- package/dist/narrowed-text.js +1 -1
- package/dist/pending-BGidHppL.js +91 -0
- package/dist/scroll-hover-guard-Cjw6179Q.js +35 -0
- package/dist/{split-layout-JK3xWVX2.d.ts → split-layout-CophkNeU.d.ts} +41 -3
- package/dist/{split-layout-Deoxy47d.js → split-layout-DTY4PJRp.js} +251 -19
- package/dist/split-layout.d.ts +1 -1
- package/dist/split-layout.js +1 -1
- package/dist/sunburst-tree.d.ts +2 -2
- package/dist/sunburst-tree.js +1 -1
- package/dist/{sunbursttree-list-yXwS-uEI.js → sunbursttree-list-B_M0YTEA.js} +299 -80
- package/dist/{sunbursttree-list--Z0uyh8O.d.ts → sunbursttree-list-DePuFYlU.d.ts} +40 -3
- package/dist/tree-CftHwtEb.js +146 -0
- package/dist/{tree-D8VxvR9u.js → tree-DAlgvaHB.js} +276 -48
- package/dist/{tree-component-C6UHO-w9.d.ts → tree-component-DgfkxmVY.d.ts} +19 -8
- package/dist/tree.d.ts +3 -3
- package/dist/tree.js +1 -1
- package/dist/types-LU1u0CB8.d.ts +87 -0
- package/dist/vertical-list-DyKPKGxK.js +1993 -0
- package/dist/{vertical-list-D8MksoTp.d.ts → vertical-list-SAx56U-l.d.ts} +31 -3
- package/dist/vertical-list.d.ts +3 -3
- package/dist/vertical-list.js +1 -1789
- package/dist/view-state-controller-BdyXWUUM.js +305 -0
- package/docs-user/README.md +2 -0
- package/docs-user/crumbs.md +27 -0
- package/docs-user/data-grid.md +79 -5
- package/docs-user/detail-list.md +69 -0
- package/docs-user/dock.md +63 -12
- package/docs-user/flat-list.md +27 -0
- package/docs-user/grid-list.md +69 -13
- package/docs-user/hyperbolic-tree.md +31 -4
- package/docs-user/icicle-tree.md +36 -0
- package/docs-user/index.json +12 -2
- package/docs-user/llms.txt +2 -0
- package/docs-user/miller.md +52 -21
- package/docs-user/multicol-list.md +50 -8
- package/docs-user/split-layout.md +45 -17
- package/docs-user/sunburst-tree.md +32 -2
- package/docs-user/tree.md +45 -6
- package/docs-user/treemap.md +32 -0
- package/docs-user/twosplit-layout.md +22 -0
- package/docs-user/user-catalog.md +1 -1
- package/docs-user/vertical-list.md +55 -7
- package/llms.txt +2 -0
- package/package.json +2 -2
package/dist/ac-token.js
CHANGED
|
@@ -4,7 +4,7 @@ import { t as themeFallbacks } from "./fallbacks-DQ_5OsmR.js";
|
|
|
4
4
|
import { n as safeCustomElement, t as __decorate } from "./decorate-VRK8rslU.js";
|
|
5
5
|
import "./icon-1gpwtPx8.js";
|
|
6
6
|
import { t as DataController } from "./data-controller-DOlmqNKb.js";
|
|
7
|
-
import { m as createAcCompletionProvider } from "./incr-search-
|
|
7
|
+
import { m as createAcCompletionProvider } from "./incr-search-CgbL-OlS.js";
|
|
8
8
|
import { LitElement, css, html, nothing } from "lit";
|
|
9
9
|
import { property, state } from "lit/decorators.js";
|
|
10
10
|
import { styleMap } from "lit/directives/style-map.js";
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { M as TreeDataModel, a as TreeComponent, j as TreeTickleEvent, k as TreeSelectEvent, n as TreeActivateEvent, o as TreeComponentEventMap, x as TreeItemClickEvent, y as TreeExpandEvent } from "./tree-component-DgfkxmVY.js";
|
|
2
|
+
import { n as TreeExclusivity, o as TreeNode, r as TreeFilterPredicate, s as TreeSelectionFilter, t as LoadChildrenCallback } from "./types-Jky6oNAp.js";
|
|
3
|
+
import { a as ViewStateBase, t as GetViewStateOptions } from "./types-LU1u0CB8.js";
|
|
4
|
+
import "./index-9ttcdwlL.js";
|
|
5
|
+
import "./menu-item-bF6narIz.js";
|
|
6
|
+
import "./index-o-CWDt11.js";
|
|
7
|
+
import { LitElement, PropertyValues } from "lit";
|
|
8
|
+
//#region src/crumbs/crumb-view-state.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Pure view-state helpers for `ixfx-crumb-navigation` (also used by
|
|
11
|
+
* `ixfx-flat-list`, whose location is the same kind of key path).
|
|
12
|
+
* See docs/infra-view-state.md.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* `ixfx-crumb-navigation` view state. The location *is* the selection (one
|
|
16
|
+
* node), so it is stored once, as the key path that reaches it — a path, not
|
|
17
|
+
* a lone key, so a saved location deep in a lazy tree can be loaded down to.
|
|
18
|
+
*/
|
|
19
|
+
type CrumbNavigationViewState = ViewStateBase & {
|
|
20
|
+
/** Keys from the root (excluded) down to the current location. `[]` = the root. */
|
|
21
|
+
readonly path?: readonly string[];
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/crumbs/crumb-navigation.d.ts
|
|
25
|
+
/** @deprecated Use TreeSelectDetail from src/common/tree-component.ts */
|
|
26
|
+
type CrumbNavigationChangeDetail = {
|
|
27
|
+
readonly selected: TreeNode;
|
|
28
|
+
readonly previous: TreeNode | undefined;
|
|
29
|
+
};
|
|
30
|
+
type CrumbNavigationChangeEvent = CustomEvent<CrumbNavigationChangeDetail>;
|
|
31
|
+
type CrumbNavigationItemClickDetail = {
|
|
32
|
+
node: TreeNode;
|
|
33
|
+
depth: number;
|
|
34
|
+
};
|
|
35
|
+
type CrumbNavigationItemClickEvent = CustomEvent<CrumbNavigationItemClickDetail>;
|
|
36
|
+
type CrumbNavigationExpandDetail = {
|
|
37
|
+
node: TreeNode;
|
|
38
|
+
depth: number;
|
|
39
|
+
};
|
|
40
|
+
type CrumbNavigationExpandEvent = CustomEvent<CrumbNavigationExpandDetail>;
|
|
41
|
+
/**
|
|
42
|
+
* Breadcrumb navigation with lazy-loading support.
|
|
43
|
+
*
|
|
44
|
+
* Uses the same `TreeNode` / `TreeItem` data model as `ixfx-tree-list`,
|
|
45
|
+
* so the two components can be swapped with minimal code changes.
|
|
46
|
+
*
|
|
47
|
+
* Events
|
|
48
|
+
* - `navigate`: fired when user clicks a breadcrumb label. detail: `{ node: TreeNode }`
|
|
49
|
+
* - `change`: fired when selected node changes. detail: `{ selected: TreeNode, previous: TreeNode | undefined }`
|
|
50
|
+
* - `expand`: fired when user clicks a caret whose node has no children yet.
|
|
51
|
+
* detail: `{ node: TreeNode, depth: number, signal: AbortSignal }`
|
|
52
|
+
* Populate `node.children` then call `requestUpdate()` on the element.
|
|
53
|
+
*
|
|
54
|
+
* CSS variables
|
|
55
|
+
* --crumb-item-bg: var(--item-bg, transparent); // item background
|
|
56
|
+
* --crumb-item-bg-tickled: var(--item-bg-tickled); // item background on hover
|
|
57
|
+
* --crumb-item-text-tickled: var(--item-text-tickled); // text color on hover
|
|
58
|
+
* --crumb-item-border: var(--item-border); // item border
|
|
59
|
+
* --crumb-item-border-tickled: var(--item-border-tickled); // border color on hover
|
|
60
|
+
* --crumb-item-padding: var(--item-padding, var(--space-xs)); // item padding
|
|
61
|
+
* --crumb-item-border-radius: var(--item-border-radius); // item border radius
|
|
62
|
+
* --crumb-item-gap: var(--item-gap, var(--space-xs)); // gap between items
|
|
63
|
+
* --crumb-separator: var(--surface-muted-text); // separator/caret color
|
|
64
|
+
* --crumb-truncate-min-width: 5ch; // minimum width for truncatable segments
|
|
65
|
+
*/
|
|
66
|
+
declare class CrumbNavigationElement extends LitElement implements TreeComponent {
|
|
67
|
+
#private;
|
|
68
|
+
root: TreeNode | undefined;
|
|
69
|
+
model: TreeDataModel | undefined;
|
|
70
|
+
selectedNode: TreeNode | undefined;
|
|
71
|
+
private _selectedNodes;
|
|
72
|
+
get selectedNodes(): ReadonlySet<TreeNode>;
|
|
73
|
+
/** Callback to lazily load children for a node. When set, replaces event-based lazy loading. */
|
|
74
|
+
loadChildren: LoadChildrenCallback | undefined;
|
|
75
|
+
filterPredicate: TreeFilterPredicate | undefined;
|
|
76
|
+
exclusivity: TreeExclusivity;
|
|
77
|
+
selectionFilter: TreeSelectionFilter;
|
|
78
|
+
private _openIdx;
|
|
79
|
+
private _isFocused;
|
|
80
|
+
private _menuOpen;
|
|
81
|
+
private _focusOnNarrowedText;
|
|
82
|
+
inputMode: string;
|
|
83
|
+
noTruncate: boolean;
|
|
84
|
+
showSuggestions: boolean;
|
|
85
|
+
leadingCaret: boolean;
|
|
86
|
+
caretEmbedded: boolean;
|
|
87
|
+
hideRoot: boolean;
|
|
88
|
+
padEnding: boolean;
|
|
89
|
+
withUp: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Whether restoring view state may call `loadChildren` to reach a saved
|
|
92
|
+
* location through unloaded branches (one load at a time). Default `true`.
|
|
93
|
+
*/
|
|
94
|
+
restoreLoads: boolean;
|
|
95
|
+
private tickled;
|
|
96
|
+
select(node: TreeNode): void;
|
|
97
|
+
deselect(_node: TreeNode): void;
|
|
98
|
+
clearSelection(): void;
|
|
99
|
+
/** Not implemented on crumb-navigation. */
|
|
100
|
+
selectAll(): void;
|
|
101
|
+
/** Not implemented on crumb-navigation. */
|
|
102
|
+
deselectAll(): void;
|
|
103
|
+
getNodes(): ReadonlyArray<{
|
|
104
|
+
node: TreeNode;
|
|
105
|
+
depth: number;
|
|
106
|
+
}>;
|
|
107
|
+
/** Snapshot the location as a key path. Includes a saved location not reached yet. */
|
|
108
|
+
getViewState(options?: GetViewStateOptions<CrumbNavigationViewState>): CrumbNavigationViewState;
|
|
109
|
+
/**
|
|
110
|
+
* Go to a saved location. Keys not loaded yet are reached as they appear —
|
|
111
|
+
* via `loadChildren` when `restoreLoads` — moving through each loaded ancestor.
|
|
112
|
+
*/
|
|
113
|
+
setViewState(state: Partial<CrumbNavigationViewState>): void;
|
|
114
|
+
clearPendingViewState(): void;
|
|
115
|
+
willUpdate(changedProps: PropertyValues): void;
|
|
116
|
+
updated(changedProps: PropertyValues): void;
|
|
117
|
+
connectedCallback(): void;
|
|
118
|
+
disconnectedCallback(): void;
|
|
119
|
+
firstUpdated(): void;
|
|
120
|
+
/** Navigate to a node by key path. Returns false if any key is not found in already-loaded children. */
|
|
121
|
+
navigateTo(keys: readonly string[]): boolean;
|
|
122
|
+
/** Navigate to the first node matching the predicate. Returns false if not found. */
|
|
123
|
+
navigateToNode(predicate: (node: TreeNode) => boolean): boolean;
|
|
124
|
+
/** `TreeComponent` parity — a crumb path always follows the selection, so this just navigates to `key`. */
|
|
125
|
+
revealKey(key: string): boolean;
|
|
126
|
+
/** `TreeComponent` parity — a crumb path is a single selection, so only the last node is kept. */
|
|
127
|
+
selectMany(nodes: Iterable<TreeNode>): void;
|
|
128
|
+
render(): import("lit").TemplateResult<1>;
|
|
129
|
+
static styles: import("lit").CSSResult[];
|
|
130
|
+
}
|
|
131
|
+
declare global {
|
|
132
|
+
interface HTMLElementTagNameMap {
|
|
133
|
+
"ixfx-crumb-navigation": CrumbNavigationElement;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
interface CrumbNavigationElementEventMap extends TreeComponentEventMap {
|
|
137
|
+
'item-click': TreeItemClickEvent;
|
|
138
|
+
'expand': TreeExpandEvent;
|
|
139
|
+
'select': TreeSelectEvent;
|
|
140
|
+
'tickle': TreeTickleEvent;
|
|
141
|
+
'activate': TreeActivateEvent;
|
|
142
|
+
}
|
|
143
|
+
interface CrumbNavigationElement {
|
|
144
|
+
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);
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
147
|
+
export { CrumbNavigationExpandDetail as a, CrumbNavigationItemClickEvent as c, CrumbNavigationElementEventMap as i, CrumbNavigationViewState as l, CrumbNavigationChangeEvent as n, CrumbNavigationExpandEvent as o, CrumbNavigationElement as r, CrumbNavigationItemClickDetail as s, CrumbNavigationChangeDetail as t };
|