-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* json table functioning again * json and tree tables * improve keyboard navigation in treed table * fix behaviour broken by fix to aria row and cell index * keyboard navigation within table group headers * fix tests
- Loading branch information
Showing
77 changed files
with
1,722 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from "./array-data-source/array-data-source"; | ||
export * from "./json-data-source/json-data-source"; | ||
export * from "./json-data-source/JsonDataSource"; | ||
export * from "./tree-data-source/TreeDataSource"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
vuu-ui/packages/vuu-data-local/src/tree-data-source/IconProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { DataSourceRow } from "@finos/vuu-data-types"; | ||
import { metadataKeys } from "@finos/vuu-utils"; | ||
|
||
const { KEY } = metadataKeys; | ||
|
||
export class IconProvider { | ||
#iconMap: Record<string, string> = {}; | ||
getIcon = (row: DataSourceRow) => { | ||
const key = row[KEY]; | ||
return this.#iconMap[key]; | ||
}; | ||
setIcon(key: string, icon: string) { | ||
this.#iconMap[key] = icon; | ||
} | ||
} |
Oops, something went wrong.