-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: custom rendering with onRenderValue, performance improvements, …
…and fixes * chore: reduce JSONValue to rendering a list with value render components based on conditions * chore: move ajv plugin into plugins/validator * feat: implement `renderValue` callback and use it in `JSONValue` (WIP) * fix: component JSONKey was broken during refactoring * feat: implement `onRenderValue` callback * chore: fix broken import after merge * chore: fix a svelte console warning * docs: create example demonstrating onRenderValue * fix: improve performance by passing a recursive selection object * feat: implement EnumValue and renderJSONSchemaEnum (WIP) * fix: create a `svelte-jsoneditor` alias in the vite config and use that in the examples * fix: handle focus of EnumValue, colorize text * chore: update all dependencies * fix: multiple context menu buttons visible in case of multi select * fix: make custom validation example more robust * chore: improve custom validation example a bit * fix: move selection to value after editing a key
- Loading branch information
Showing
48 changed files
with
1,714 additions
and
347 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
2 changes: 1 addition & 1 deletion
2
...lib/components/modes/treemode/shared.scss → ...omponents/controls/EditableDivShared.scss
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,4 +1,4 @@ | ||
@import '../../../styles'; | ||
@import '../../styles'; | ||
|
||
.value { | ||
&.string { | ||
|
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,5 +1,4 @@ | ||
@import '../../../styles'; | ||
@import 'shared'; | ||
|
||
.key { | ||
display: inline-block; | ||
|
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
Oops, something went wrong.