mindoodb 0.0.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/README.md +263 -0
- package/dist/appendonlystores/InMemoryContentAddressedStoreFactory.d.ts +5 -0
- package/dist/appendonlystores/InMemoryContentAddressedStoreFactory.d.ts.map +1 -0
- package/dist/appendonlystores/InMemoryContentAddressedStoreFactory.js +17 -0
- package/dist/appendonlystores/InMemoryContentAddressedStoreFactory.js.map +1 -0
- package/dist/appendonlystores/network/ClientNetworkContentAddressedStore.d.ts +111 -0
- package/dist/appendonlystores/network/ClientNetworkContentAddressedStore.d.ts.map +1 -0
- package/dist/appendonlystores/network/ClientNetworkContentAddressedStore.js +237 -0
- package/dist/appendonlystores/network/ClientNetworkContentAddressedStore.js.map +1 -0
- package/dist/appendonlystores/network/HttpTransport.d.ts +78 -0
- package/dist/appendonlystores/network/HttpTransport.d.ts.map +1 -0
- package/dist/appendonlystores/network/HttpTransport.js +356 -0
- package/dist/appendonlystores/network/HttpTransport.js.map +1 -0
- package/dist/appendonlystores/network/ServerNetworkContentAddressedStore.d.ts +131 -0
- package/dist/appendonlystores/network/ServerNetworkContentAddressedStore.d.ts.map +1 -0
- package/dist/appendonlystores/network/ServerNetworkContentAddressedStore.js +248 -0
- package/dist/appendonlystores/network/ServerNetworkContentAddressedStore.js.map +1 -0
- package/dist/appendonlystores/network/index.d.ts +8 -0
- package/dist/appendonlystores/network/index.d.ts.map +1 -0
- package/dist/appendonlystores/network/index.js +21 -0
- package/dist/appendonlystores/network/index.js.map +1 -0
- package/dist/browser/crypto/BrowserCryptoAdapter.d.ts +14 -0
- package/dist/browser/crypto/BrowserCryptoAdapter.d.ts.map +1 -0
- package/dist/browser/crypto/BrowserCryptoAdapter.js +30 -0
- package/dist/browser/crypto/BrowserCryptoAdapter.js.map +1 -0
- package/dist/browser/index.d.ts +3 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +26 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/core/BaseMindooDB.d.ts +182 -0
- package/dist/core/BaseMindooDB.d.ts.map +1 -0
- package/dist/core/BaseMindooDB.js +1701 -0
- package/dist/core/BaseMindooDB.js.map +1 -0
- package/dist/core/BaseMindooTenant.d.ts +155 -0
- package/dist/core/BaseMindooTenant.d.ts.map +1 -0
- package/dist/core/BaseMindooTenant.js +673 -0
- package/dist/core/BaseMindooTenant.js.map +1 -0
- package/dist/core/BaseMindooTenantDirectory.d.ts +99 -0
- package/dist/core/BaseMindooTenantDirectory.d.ts.map +1 -0
- package/dist/core/BaseMindooTenantDirectory.js +776 -0
- package/dist/core/BaseMindooTenantDirectory.js.map +1 -0
- package/dist/core/BaseMindooTenantFactory.d.ts +91 -0
- package/dist/core/BaseMindooTenantFactory.d.ts.map +1 -0
- package/dist/core/BaseMindooTenantFactory.js +297 -0
- package/dist/core/BaseMindooTenantFactory.js.map +1 -0
- package/dist/core/appendonlystores/InMemoryContentAddressedStore.d.ts +111 -0
- package/dist/core/appendonlystores/InMemoryContentAddressedStore.d.ts.map +1 -0
- package/dist/core/appendonlystores/InMemoryContentAddressedStore.js +293 -0
- package/dist/core/appendonlystores/InMemoryContentAddressedStore.js.map +1 -0
- package/dist/core/appendonlystores/network/AuthenticationService.d.ts +78 -0
- package/dist/core/appendonlystores/network/AuthenticationService.d.ts.map +1 -0
- package/dist/core/appendonlystores/network/AuthenticationService.js +297 -0
- package/dist/core/appendonlystores/network/AuthenticationService.js.map +1 -0
- package/dist/core/appendonlystores/network/NetworkTransport.d.ts +174 -0
- package/dist/core/appendonlystores/network/NetworkTransport.d.ts.map +1 -0
- package/dist/core/appendonlystores/network/NetworkTransport.js +3 -0
- package/dist/core/appendonlystores/network/NetworkTransport.js.map +1 -0
- package/dist/core/appendonlystores/network/types.d.ts +135 -0
- package/dist/core/appendonlystores/network/types.d.ts.map +1 -0
- package/dist/core/appendonlystores/network/types.js +35 -0
- package/dist/core/appendonlystores/network/types.js.map +1 -0
- package/dist/core/appendonlystores/types.d.ts +157 -0
- package/dist/core/appendonlystores/types.d.ts.map +1 -0
- package/dist/core/appendonlystores/types.js +3 -0
- package/dist/core/appendonlystores/types.js.map +1 -0
- package/dist/core/crypto/CryptoAdapter.d.ts +19 -0
- package/dist/core/crypto/CryptoAdapter.d.ts.map +1 -0
- package/dist/core/crypto/CryptoAdapter.js +3 -0
- package/dist/core/crypto/CryptoAdapter.js.map +1 -0
- package/dist/core/crypto/MindooDocSigner.d.ts +106 -0
- package/dist/core/crypto/MindooDocSigner.d.ts.map +1 -0
- package/dist/core/crypto/MindooDocSigner.js +192 -0
- package/dist/core/crypto/MindooDocSigner.js.map +1 -0
- package/dist/core/crypto/RSAEncryption.d.ts +62 -0
- package/dist/core/crypto/RSAEncryption.d.ts.map +1 -0
- package/dist/core/crypto/RSAEncryption.js +167 -0
- package/dist/core/crypto/RSAEncryption.js.map +1 -0
- package/dist/core/errors.d.ts +10 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +17 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/index.d.ts +14 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +53 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/indexing/virtualviews/IViewEntryAccessCheck.d.ts +33 -0
- package/dist/core/indexing/virtualviews/IViewEntryAccessCheck.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/IViewEntryAccessCheck.js +27 -0
- package/dist/core/indexing/virtualviews/IViewEntryAccessCheck.js.map +1 -0
- package/dist/core/indexing/virtualviews/IVirtualViewDataProvider.d.ts +31 -0
- package/dist/core/indexing/virtualviews/IVirtualViewDataProvider.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/IVirtualViewDataProvider.js +3 -0
- package/dist/core/indexing/virtualviews/IVirtualViewDataProvider.js.map +1 -0
- package/dist/core/indexing/virtualviews/MindooDBVirtualViewDataProvider.d.ts +52 -0
- package/dist/core/indexing/virtualviews/MindooDBVirtualViewDataProvider.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/MindooDBVirtualViewDataProvider.js +106 -0
- package/dist/core/indexing/virtualviews/MindooDBVirtualViewDataProvider.js.map +1 -0
- package/dist/core/indexing/virtualviews/ViewEntrySortKey.d.ts +44 -0
- package/dist/core/indexing/virtualviews/ViewEntrySortKey.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/ViewEntrySortKey.js +107 -0
- package/dist/core/indexing/virtualviews/ViewEntrySortKey.js.map +1 -0
- package/dist/core/indexing/virtualviews/ViewEntrySortKeyComparator.d.ts +28 -0
- package/dist/core/indexing/virtualviews/ViewEntrySortKeyComparator.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/ViewEntrySortKeyComparator.js +133 -0
- package/dist/core/indexing/virtualviews/ViewEntrySortKeyComparator.js.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualView.d.ts +109 -0
- package/dist/core/indexing/virtualviews/VirtualView.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualView.js +504 -0
- package/dist/core/indexing/virtualviews/VirtualView.js.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualViewColumn.d.ts +59 -0
- package/dist/core/indexing/virtualviews/VirtualViewColumn.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualViewColumn.js +70 -0
- package/dist/core/indexing/virtualviews/VirtualViewColumn.js.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualViewDataChange.d.ts +49 -0
- package/dist/core/indexing/virtualviews/VirtualViewDataChange.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualViewDataChange.js +69 -0
- package/dist/core/indexing/virtualviews/VirtualViewDataChange.js.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualViewEntryData.d.ts +121 -0
- package/dist/core/indexing/virtualviews/VirtualViewEntryData.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualViewEntryData.js +365 -0
- package/dist/core/indexing/virtualviews/VirtualViewEntryData.js.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualViewFactory.d.ts +131 -0
- package/dist/core/indexing/virtualviews/VirtualViewFactory.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualViewFactory.js +236 -0
- package/dist/core/indexing/virtualviews/VirtualViewFactory.js.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualViewNavigator.d.ts +330 -0
- package/dist/core/indexing/virtualviews/VirtualViewNavigator.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/VirtualViewNavigator.js +1010 -0
- package/dist/core/indexing/virtualviews/VirtualViewNavigator.js.map +1 -0
- package/dist/core/indexing/virtualviews/index.d.ts +53 -0
- package/dist/core/indexing/virtualviews/index.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/index.js +89 -0
- package/dist/core/indexing/virtualviews/index.js.map +1 -0
- package/dist/core/indexing/virtualviews/types.d.ts +115 -0
- package/dist/core/indexing/virtualviews/types.d.ts.map +1 -0
- package/dist/core/indexing/virtualviews/types.js +175 -0
- package/dist/core/indexing/virtualviews/types.js.map +1 -0
- package/dist/core/keys/KeyBag.d.ts +122 -0
- package/dist/core/keys/KeyBag.d.ts.map +1 -0
- package/dist/core/keys/KeyBag.js +401 -0
- package/dist/core/keys/KeyBag.js.map +1 -0
- package/dist/core/types.d.ts +1004 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +10 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/userid/index.d.ts +53 -0
- package/dist/core/userid/index.d.ts.map +1 -0
- package/dist/core/userid/index.js +3 -0
- package/dist/core/userid/index.js.map +1 -0
- package/dist/core/utils/idGeneration.d.ts +109 -0
- package/dist/core/utils/idGeneration.d.ts.map +1 -0
- package/dist/core/utils/idGeneration.js +182 -0
- package/dist/core/utils/idGeneration.js.map +1 -0
- package/dist/core/utils/index.d.ts +5 -0
- package/dist/core/utils/index.d.ts.map +1 -0
- package/dist/core/utils/index.js +19 -0
- package/dist/core/utils/index.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/node/crypto/NodeCryptoAdapter.d.ts +16 -0
- package/dist/node/crypto/NodeCryptoAdapter.d.ts.map +1 -0
- package/dist/node/crypto/NodeCryptoAdapter.js +53 -0
- package/dist/node/crypto/NodeCryptoAdapter.js.map +1 -0
- package/dist/node/index.d.ts +3 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +26 -0
- package/dist/node/index.js.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import type { VirtualView } from "./VirtualView";
|
|
2
|
+
import type { VirtualViewEntryData } from "./VirtualViewEntryData";
|
|
3
|
+
import type { IViewEntryAccessCheck } from "./IViewEntryAccessCheck";
|
|
4
|
+
import { WithCategories, WithDocuments, SelectedOnly, ScopedDocId } from "./types";
|
|
5
|
+
/**
|
|
6
|
+
* Navigator for traversing a VirtualView tree structure.
|
|
7
|
+
* Handles expanded/collapsed states, selection, and access control.
|
|
8
|
+
*/
|
|
9
|
+
export declare class VirtualViewNavigator {
|
|
10
|
+
private readonly view;
|
|
11
|
+
private topEntry;
|
|
12
|
+
private readonly withCategories;
|
|
13
|
+
private readonly withDocuments;
|
|
14
|
+
private readonly accessCheck;
|
|
15
|
+
private readonly dontShowEmptyCategories;
|
|
16
|
+
/** Stack of traversal states for navigation */
|
|
17
|
+
private currentEntryStack;
|
|
18
|
+
/** Selection state - if selectAll is true, this is a deselection list */
|
|
19
|
+
private selectedOrDeselectedEntries;
|
|
20
|
+
private selectAll;
|
|
21
|
+
/** Expansion state - if expandAllByDefault is true, this is a collapse list */
|
|
22
|
+
private expandedOrCollapsedEntries;
|
|
23
|
+
private expandAllByDefault;
|
|
24
|
+
private expandLevel;
|
|
25
|
+
constructor(view: VirtualView, topEntry: VirtualViewEntryData, withCategories: WithCategories, withDocuments: WithDocuments, accessCheck?: IViewEntryAccessCheck | null, dontShowEmptyCategories?: boolean);
|
|
26
|
+
private initializeTraversal;
|
|
27
|
+
private createTraversalInfo;
|
|
28
|
+
getView(): VirtualView;
|
|
29
|
+
isDontShowEmptyCategories(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Set a new root for navigation (restrict to subtree)
|
|
32
|
+
*/
|
|
33
|
+
setRoot(newRoot: VirtualViewEntryData): this;
|
|
34
|
+
/**
|
|
35
|
+
* Get the current entry at the cursor position
|
|
36
|
+
*/
|
|
37
|
+
getCurrentEntry(): VirtualViewEntryData | null;
|
|
38
|
+
/**
|
|
39
|
+
* Move to the first entry
|
|
40
|
+
*/
|
|
41
|
+
gotoFirst(): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Move to the last entry (taking expansion into account)
|
|
44
|
+
*/
|
|
45
|
+
gotoLast(): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Move to the next entry (respecting expand states)
|
|
48
|
+
*/
|
|
49
|
+
gotoNext(): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Get the current entry without type filtering (for internal navigation)
|
|
52
|
+
*/
|
|
53
|
+
private getCurrentEntryRaw;
|
|
54
|
+
/**
|
|
55
|
+
* Check visibility without type filtering
|
|
56
|
+
*/
|
|
57
|
+
private isVisibleRaw;
|
|
58
|
+
/**
|
|
59
|
+
* Move to next sibling without checking type filter
|
|
60
|
+
*/
|
|
61
|
+
private gotoNextSiblingRaw;
|
|
62
|
+
/**
|
|
63
|
+
* Move to the previous entry (respecting expand states)
|
|
64
|
+
*/
|
|
65
|
+
gotoPrev(): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Move to the next sibling
|
|
68
|
+
*/
|
|
69
|
+
gotoNextSibling(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Move to the previous sibling
|
|
72
|
+
*/
|
|
73
|
+
gotoPrevSibling(): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Move to the parent entry
|
|
76
|
+
*/
|
|
77
|
+
gotoParent(): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Move to the first child of current entry
|
|
80
|
+
*/
|
|
81
|
+
gotoFirstChild(): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Move to the last child of current entry
|
|
84
|
+
*/
|
|
85
|
+
gotoLastChild(): boolean;
|
|
86
|
+
private gotoDeepestExpandedDescendant;
|
|
87
|
+
/**
|
|
88
|
+
* Move to a specific position (e.g., "1.2.3")
|
|
89
|
+
*/
|
|
90
|
+
gotoPos(posStr: string): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Move to a specific position array (e.g., [1, 2, 3])
|
|
93
|
+
*/
|
|
94
|
+
gotoPosArray(pos: number[]): boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Get the entry at a specific position without moving the cursor
|
|
97
|
+
*
|
|
98
|
+
* @param posStr Position string e.g. "1.2.3"
|
|
99
|
+
* @returns The entry at the position or null if not found
|
|
100
|
+
*/
|
|
101
|
+
getPos(posStr: string): VirtualViewEntryData | null;
|
|
102
|
+
/**
|
|
103
|
+
* Get the entry at a specific position array without moving the cursor
|
|
104
|
+
*
|
|
105
|
+
* @param pos Position array e.g. [1, 2, 3]
|
|
106
|
+
* @returns The entry at the position or null if not found
|
|
107
|
+
*/
|
|
108
|
+
getPosArray(pos: number[]): VirtualViewEntryData | null;
|
|
109
|
+
/**
|
|
110
|
+
* Find a category entry by path string (e.g., "Category1\\Category1.1")
|
|
111
|
+
* Navigates through the category tree from the top entry.
|
|
112
|
+
*
|
|
113
|
+
* @param category Category path with backslash separators
|
|
114
|
+
* @returns The category entry or null if not found
|
|
115
|
+
*/
|
|
116
|
+
findCategoryEntry(category: string): VirtualViewEntryData | null;
|
|
117
|
+
/**
|
|
118
|
+
* Find a category entry by array of category parts
|
|
119
|
+
* Navigates through the category tree from the top entry.
|
|
120
|
+
*
|
|
121
|
+
* @param categoryParts Array of category values e.g. ["Category1", "Category1.1"]
|
|
122
|
+
* @returns The category entry or null if not found
|
|
123
|
+
*/
|
|
124
|
+
findCategoryEntryByParts(categoryParts: unknown[]): VirtualViewEntryData | null;
|
|
125
|
+
/**
|
|
126
|
+
* Iterate forward through entries
|
|
127
|
+
*/
|
|
128
|
+
entriesForward(selectedOnly?: SelectedOnly): AsyncGenerator<VirtualViewEntryData>;
|
|
129
|
+
/**
|
|
130
|
+
* Iterate forward through entries starting from a specific position
|
|
131
|
+
*
|
|
132
|
+
* @param startPos Starting position string e.g. "1.2.3"
|
|
133
|
+
* @param selectedOnly Whether to only yield selected entries
|
|
134
|
+
*/
|
|
135
|
+
entriesForwardFromPosition(startPos: string, selectedOnly?: SelectedOnly): AsyncGenerator<VirtualViewEntryData>;
|
|
136
|
+
/**
|
|
137
|
+
* Iterate backward through entries
|
|
138
|
+
*/
|
|
139
|
+
entriesBackward(selectedOnly?: SelectedOnly): AsyncGenerator<VirtualViewEntryData>;
|
|
140
|
+
/**
|
|
141
|
+
* Move to next selected entry
|
|
142
|
+
*/
|
|
143
|
+
gotoNextSelected(): boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Move to previous selected entry
|
|
146
|
+
*/
|
|
147
|
+
gotoPrevSelected(): boolean;
|
|
148
|
+
private isVisible;
|
|
149
|
+
/**
|
|
150
|
+
* Select an entry
|
|
151
|
+
*/
|
|
152
|
+
select(origin: string, docId: string, selectParentCategories?: boolean): this;
|
|
153
|
+
/**
|
|
154
|
+
* Deselect an entry
|
|
155
|
+
*/
|
|
156
|
+
deselect(origin: string, docId: string): this;
|
|
157
|
+
/**
|
|
158
|
+
* Select all entries
|
|
159
|
+
*/
|
|
160
|
+
selectAllEntries(): this;
|
|
161
|
+
/**
|
|
162
|
+
* Deselect all entries
|
|
163
|
+
*/
|
|
164
|
+
deselectAllEntries(): this;
|
|
165
|
+
/**
|
|
166
|
+
* Check if an entry is selected
|
|
167
|
+
*/
|
|
168
|
+
isSelected(origin: string, docId: string): boolean;
|
|
169
|
+
isSelectAllByDefault(): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Returns whether all entries are deselected by default
|
|
172
|
+
*/
|
|
173
|
+
isDeselectAllByDefault(): boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Expand an entry
|
|
176
|
+
*/
|
|
177
|
+
expand(origin: string, docId: string): this;
|
|
178
|
+
/**
|
|
179
|
+
* Collapse an entry
|
|
180
|
+
*/
|
|
181
|
+
collapse(origin: string, docId: string): this;
|
|
182
|
+
/**
|
|
183
|
+
* Expand by position string
|
|
184
|
+
*/
|
|
185
|
+
expandPos(posStr: string): this;
|
|
186
|
+
/**
|
|
187
|
+
* Collapse by position string
|
|
188
|
+
*/
|
|
189
|
+
collapsePos(posStr: string): this;
|
|
190
|
+
/**
|
|
191
|
+
* Expand by position array
|
|
192
|
+
*
|
|
193
|
+
* @param pos Position array e.g. [1, 2, 3]
|
|
194
|
+
*/
|
|
195
|
+
expandPosArray(pos: number[]): this;
|
|
196
|
+
/**
|
|
197
|
+
* Collapse by position array
|
|
198
|
+
*
|
|
199
|
+
* @param pos Position array e.g. [1, 2, 3]
|
|
200
|
+
*/
|
|
201
|
+
collapsePosArray(pos: number[]): this;
|
|
202
|
+
private getEntryAtPos;
|
|
203
|
+
/**
|
|
204
|
+
* Collapse all entries
|
|
205
|
+
*/
|
|
206
|
+
collapseAll(): this;
|
|
207
|
+
/**
|
|
208
|
+
* Expand all entries
|
|
209
|
+
*/
|
|
210
|
+
expandAll(): this;
|
|
211
|
+
/**
|
|
212
|
+
* Expand entries up to a specific level
|
|
213
|
+
*/
|
|
214
|
+
expandToLevel(level: number): this;
|
|
215
|
+
/**
|
|
216
|
+
* Check if an entry is expanded
|
|
217
|
+
*/
|
|
218
|
+
isExpanded(entry: VirtualViewEntryData): boolean;
|
|
219
|
+
/**
|
|
220
|
+
* Check if an entry is expanded by origin and docId
|
|
221
|
+
* Does not check expandLevel - only checks the expand/collapse state
|
|
222
|
+
*
|
|
223
|
+
* @param origin Origin of the entry
|
|
224
|
+
* @param docId Document ID of the entry
|
|
225
|
+
* @returns true if expanded
|
|
226
|
+
*/
|
|
227
|
+
isExpandedByDocId(origin: string, docId: string): boolean;
|
|
228
|
+
isExpandAllByDefault(): boolean;
|
|
229
|
+
isCollapseAllByDefault(): boolean;
|
|
230
|
+
getExpandLevel(): number;
|
|
231
|
+
getSelectedOrDeselectedEntries(): Set<string>;
|
|
232
|
+
setSelectedOrDeselectedEntries(entries: Set<string>): this;
|
|
233
|
+
getExpandedOrCollapsedEntries(): Set<string>;
|
|
234
|
+
setExpandedOrCollapsedEntries(entries: Set<string>): this;
|
|
235
|
+
/**
|
|
236
|
+
* Get child documents of an entry
|
|
237
|
+
*/
|
|
238
|
+
childDocuments(entry: VirtualViewEntryData, descending?: boolean): VirtualViewEntryData[];
|
|
239
|
+
/**
|
|
240
|
+
* Get child categories of an entry
|
|
241
|
+
*/
|
|
242
|
+
childCategories(entry: VirtualViewEntryData, descending?: boolean): VirtualViewEntryData[];
|
|
243
|
+
/**
|
|
244
|
+
* Get all child entries of an entry
|
|
245
|
+
*/
|
|
246
|
+
childEntries(entry: VirtualViewEntryData, descending?: boolean): VirtualViewEntryData[];
|
|
247
|
+
/**
|
|
248
|
+
* Get child documents within a key range (inclusive)
|
|
249
|
+
*
|
|
250
|
+
* @param entry Parent entry
|
|
251
|
+
* @param startKey Start key value
|
|
252
|
+
* @param endKey End key value
|
|
253
|
+
* @param descending Whether to return in descending order
|
|
254
|
+
* @returns Filtered child documents within the range
|
|
255
|
+
*/
|
|
256
|
+
childDocumentsBetween(entry: VirtualViewEntryData, startKey: unknown, endKey: unknown, descending?: boolean): VirtualViewEntryData[];
|
|
257
|
+
/**
|
|
258
|
+
* Get child documents by key (exact or prefix match)
|
|
259
|
+
*
|
|
260
|
+
* @param entry Parent entry
|
|
261
|
+
* @param key Key value to search for
|
|
262
|
+
* @param isExact Whether to match exactly or by prefix
|
|
263
|
+
* @param descending Whether to return in descending order
|
|
264
|
+
* @returns Matching child documents
|
|
265
|
+
*/
|
|
266
|
+
childDocumentsByKey(entry: VirtualViewEntryData, key: string, isExact: boolean, descending?: boolean): VirtualViewEntryData[];
|
|
267
|
+
/**
|
|
268
|
+
* Get child categories within a key range (inclusive)
|
|
269
|
+
*
|
|
270
|
+
* @param entry Parent entry
|
|
271
|
+
* @param startKey Start key value
|
|
272
|
+
* @param endKey End key value
|
|
273
|
+
* @param descending Whether to return in descending order
|
|
274
|
+
* @returns Filtered child categories within the range
|
|
275
|
+
*/
|
|
276
|
+
childCategoriesBetween(entry: VirtualViewEntryData, startKey: unknown, endKey: unknown, descending?: boolean): VirtualViewEntryData[];
|
|
277
|
+
/**
|
|
278
|
+
* Get child categories by key (exact or prefix match)
|
|
279
|
+
*
|
|
280
|
+
* @param entry Parent entry
|
|
281
|
+
* @param key Key value to search for
|
|
282
|
+
* @param isExact Whether to match exactly or by prefix
|
|
283
|
+
* @param descending Whether to return in descending order
|
|
284
|
+
* @returns Matching child categories
|
|
285
|
+
*/
|
|
286
|
+
childCategoriesByKey(entry: VirtualViewEntryData, key: string, isExact: boolean, descending?: boolean): VirtualViewEntryData[];
|
|
287
|
+
/**
|
|
288
|
+
* Compare two position arrays for sorting
|
|
289
|
+
*/
|
|
290
|
+
private static comparePositions;
|
|
291
|
+
/**
|
|
292
|
+
* Get all occurrences of a document in the view, sorted by position
|
|
293
|
+
*
|
|
294
|
+
* @param origin Origin of the document
|
|
295
|
+
* @param docId Document ID
|
|
296
|
+
* @returns Array of entries sorted by position
|
|
297
|
+
*/
|
|
298
|
+
getSortedEntries(origin: string, docId: string): VirtualViewEntryData[];
|
|
299
|
+
/**
|
|
300
|
+
* Get all occurrences of multiple documents in the view, sorted by position
|
|
301
|
+
*
|
|
302
|
+
* @param origin Origin of the documents
|
|
303
|
+
* @param docIds Set of document IDs
|
|
304
|
+
* @returns Array of entries sorted by position
|
|
305
|
+
*/
|
|
306
|
+
getSortedEntriesMultiple(origin: string, docIds: Set<string>): VirtualViewEntryData[];
|
|
307
|
+
/**
|
|
308
|
+
* Get all occurrences of scoped document IDs in the view, sorted by position
|
|
309
|
+
*
|
|
310
|
+
* @param scopedDocIds Set of scoped document IDs (origin + docId)
|
|
311
|
+
* @returns Array of entries sorted by position
|
|
312
|
+
*/
|
|
313
|
+
getSortedEntriesScoped(scopedDocIds: Set<ScopedDocId>): VirtualViewEntryData[];
|
|
314
|
+
/**
|
|
315
|
+
* Get document IDs sorted by their position in the view
|
|
316
|
+
*
|
|
317
|
+
* @param origin Origin of the documents
|
|
318
|
+
* @param docIds Set of document IDs
|
|
319
|
+
* @returns Array of document IDs sorted by their position in the view
|
|
320
|
+
*/
|
|
321
|
+
getSortedDocIds(origin: string, docIds: Set<string>): string[];
|
|
322
|
+
/**
|
|
323
|
+
* Get scoped document IDs sorted by their position in the view
|
|
324
|
+
*
|
|
325
|
+
* @param scopedDocIds Set of scoped document IDs
|
|
326
|
+
* @returns Array of scoped document IDs sorted by their position in the view
|
|
327
|
+
*/
|
|
328
|
+
getSortedDocIdsScoped(scopedDocIds: Set<ScopedDocId>): ScopedDocId[];
|
|
329
|
+
}
|
|
330
|
+
//# sourceMappingURL=VirtualViewNavigator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VirtualViewNavigator.d.ts","sourceRoot":"","sources":["../../../../src/core/indexing/virtualviews/VirtualViewNavigator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EACL,cAAc,EACd,aAAa,EACb,YAAY,EAIZ,WAAW,EAEZ,MAAM,SAAS,CAAC;AAajB;;;GAGG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAc;IACnC,OAAO,CAAC,QAAQ,CAAuB;IACvC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAU;IACzC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAU;IACxC,OAAO,CA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