* Extract all data items from Bases query result. * Uses public API: basesView.data.data * * NOTE: This only extracts frontmatter and basic file properties (cheap). * Computed file properties (backlinks, links, etc.) are fetched lazily * via getComputedProperty() during rendering for visib
()
| 37 | * via getComputedProperty() during rendering for visible items only. |
| 38 | */ |
| 39 | extractDataItems(): BasesDataItem[] { |
| 40 | const entries = this.basesView.data.data; |
| 41 | return entries.map((entry) => ({ |
| 42 | key: entry.file.path, |
| 43 | data: entry, |
| 44 | file: entry.file, |
| 45 | path: entry.file.path, |
| 46 | properties: this.extractEntryProperties(entry), |
| 47 | basesData: entry, |
| 48 | })); |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Get grouped data from Bases. |
no test coverage detected