Released v5.16.0

This commit is contained in:
jos 2018-05-23 09:50:53 +02:00
parent d9babab497
commit f00c837388
12 changed files with 904 additions and 251 deletions

View File

@ -3,14 +3,14 @@
https://github.com/josdejong/jsoneditor
## not yet released, version 5.16.0
## 2018-05-23, version 5.16.0
- Better handling of large JSON documents:
- Only displays the first 100 items of large arrays, with buttons
"show more" and "show all" to render more items.
- Search results are now limited to max 1000 matches.
- Search does no longer expand the paths to all matches, instead
it only expands the path of the current search result.
- Better handling of JSON documents containing large arrays:
- Only displays the first 100 items of large arrays,
with buttons "show more" and "show all" to render more items.
- Search results are now limited to max 1000 matches,
and search does no longer expand the paths to all matches
but only expands the path of the current search result.
- Fixed index numbers of Array items not being updated after sorting.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

29
dist/jsoneditor.css vendored
View File

@ -50,11 +50,11 @@ div.jsoneditor-value {
div.jsoneditor-readonly {
min-width: 16px;
color: gray;
color: #808080;
}
div.jsoneditor-empty {
border-color: lightgray;
border-color: #d3d3d3;
border-style: dashed;
border-radius: 2px;
}
@ -62,7 +62,7 @@ div.jsoneditor-empty {
div.jsoneditor-field.jsoneditor-empty::after,
div.jsoneditor-value.jsoneditor-empty::after {
pointer-events: none;
color: lightgray;
color: #d3d3d3;
font-size: 8pt;
}
@ -94,7 +94,7 @@ a.jsoneditor-value.jsoneditor-url:focus {
div.jsoneditor td.jsoneditor-separator {
padding: 3px 0;
vertical-align: top;
color: gray;
color: #808080;
}
div.jsoneditor-field[contenteditable=true]:focus,
@ -197,6 +197,27 @@ div.jsoneditor-tree button.jsoneditor-invisible {
background: none;
}
div.jsoneditor-tree div.jsoneditor-show-more {
display: inline-block;
padding: 3px 4px;
margin: 2px 0;
background-color: #e5e5e5;
border-radius: 3px;
color: #808080;
font-family: arial, sans-serif;
font-size: 10pt;
}
div.jsoneditor-tree div.jsoneditor-show-more a {
display: inline-block;
color: #808080;
}
div.jsoneditor-tree div.jsoneditor-show-more a:hover,
div.jsoneditor-tree div.jsoneditor-show-more a:focus {
color: #ee422e;
}
div.jsoneditor {
color: #1A1A1A;
border: 1px solid #3883fa;

518
dist/jsoneditor.js vendored

File diff suppressed because one or more lines are too long

2
dist/jsoneditor.map vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "jsoneditor",
"version": "5.15.0",
"version": "5.16.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "jsoneditor",
"version": "5.15.0",
"version": "5.16.0",
"main": "./index",
"description": "A web-based tool to view, edit, format, and validate JSON",
"tags": [

View File

@ -2132,8 +2132,8 @@ Node.prototype.updateDom = function (options) {
this._updateDomIndexes();
}
// update childs recursively
if (options && options.recurse === true) {
// recurse is true or undefined. update childs recursively
if (this.childs) {
this.childs.forEach(function (child) {
child.updateDom(options);