Publish `v5.28.1`

This commit is contained in:
jos 2019-01-22 20:48:08 +01:00
parent 3f9ea75f20
commit 21ae2180e7
11 changed files with 40 additions and 39 deletions

View File

@ -3,7 +3,7 @@
https://github.com/josdejong/jsoneditor
## not yet released, version 5.28.1
## 2019-01-22, version 5.28.1
- Fix #637: vertical white border left/right from the main menu in some
specific circumstances.

View File

@ -24,8 +24,8 @@
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
*
* @author Jos de Jong, <wjosdejong@gmail.com>
* @version 5.28.0
* @date 2019-01-21
* @version 5.28.1
* @date 2019-01-22
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
@ -6994,7 +6994,7 @@ return /******/ (function(modules) { // webpackBootstrap
this.editor = editor;
this.dom = {};
this.expanded = false;
if(params && (params instanceof Object)) {
this.setField(params.field, params.fieldEditable);
if ('value' in params) {
@ -7011,6 +7011,7 @@ return /******/ (function(modules) { // webpackBootstrap
this._debouncedOnChangeValue = util.debounce(this._onChangeValue.bind(this), Node.prototype.DEBOUNCE_INTERVAL);
this._debouncedOnChangeField = util.debounce(this._onChangeField.bind(this), Node.prototype.DEBOUNCE_INTERVAL);
// starting value for visible children
this.visibleChilds = this.getMaxVisibleChilds();
}
@ -7873,14 +7874,14 @@ return /******/ (function(modules) { // webpackBootstrap
// reset max visible childs
if (!options || options.resetVisibleChilds) {
delete this.visibleChilds;
this.visibleChilds = this.getMaxVisibleChilds();
}
};
/**
* set custom css classes on a node
*/
Node.prototype._updateCssClassName = function () {
Node.prototype._updateCssClassName = function () {
if(this.dom.field
&& this.editor
&& this.editor.options
@ -7888,15 +7889,14 @@ return /******/ (function(modules) { // webpackBootstrap
&& this.dom.tree){
util.removeAllClassNames(this.dom.tree);
const addClasses = this.editor.options.onClassName({ path: this.getPath(), field: this.field, value: this.value }) || "";
util.addClassName(this.dom.tree, "jsoneditor-values " + addClasses);
util.addClassName(this.dom.tree, "jsoneditor-values " + addClasses);
}
}
};
Node.prototype.recursivelyUpdateCssClassesOnNodes = function () {
this._updateCssClassName();
if (this.childs !== 'undefined') {
var i;
for (i in this.childs) {
for (var i = 0; i < this.childs.length; i++) {
this.childs[i].recursivelyUpdateCssClassesOnNodes();
}
}
@ -8636,7 +8636,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
if (this.searchValue) {
classNames.push('jsoneditor-highlight');
}
}
domValue.className = classNames.join(' ');
@ -8807,7 +8807,7 @@ return /******/ (function(modules) { // webpackBootstrap
*/
Node.prototype._updateDomField = function () {
var domField = this.dom.field;
if (domField) {
if (domField) {
// make backgound color lightgray when empty
var isEmpty = (String(this.field) == '' && this.parent.type != 'array');
if (isEmpty) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

3
dist/jsoneditor.css vendored
View File

@ -244,7 +244,8 @@ div.jsoneditor-tree div.jsoneditor-date {
div.jsoneditor {
color: #1A1A1A;
border: 1px solid #3883fa;
border: thin solid #3883fa;
/* we use thin and not 1px to work around an issue in Chrome/IE, see #637 */
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;

24
dist/jsoneditor.js vendored
View File

@ -24,8 +24,8 @@
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
*
* @author Jos de Jong, <wjosdejong@gmail.com>
* @version 5.28.0
* @date 2019-01-21
* @version 5.28.1
* @date 2019-01-22
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
@ -35636,7 +35636,7 @@ return /******/ (function(modules) { // webpackBootstrap
this.editor = editor;
this.dom = {};
this.expanded = false;
if(params && (params instanceof Object)) {
this.setField(params.field, params.fieldEditable);
if ('value' in params) {
@ -35653,6 +35653,7 @@ return /******/ (function(modules) { // webpackBootstrap
this._debouncedOnChangeValue = util.debounce(this._onChangeValue.bind(this), Node.prototype.DEBOUNCE_INTERVAL);
this._debouncedOnChangeField = util.debounce(this._onChangeField.bind(this), Node.prototype.DEBOUNCE_INTERVAL);
// starting value for visible children
this.visibleChilds = this.getMaxVisibleChilds();
}
@ -36515,14 +36516,14 @@ return /******/ (function(modules) { // webpackBootstrap
// reset max visible childs
if (!options || options.resetVisibleChilds) {
delete this.visibleChilds;
this.visibleChilds = this.getMaxVisibleChilds();
}
};
/**
* set custom css classes on a node
*/
Node.prototype._updateCssClassName = function () {
Node.prototype._updateCssClassName = function () {
if(this.dom.field
&& this.editor
&& this.editor.options
@ -36530,15 +36531,14 @@ return /******/ (function(modules) { // webpackBootstrap
&& this.dom.tree){
util.removeAllClassNames(this.dom.tree);
const addClasses = this.editor.options.onClassName({ path: this.getPath(), field: this.field, value: this.value }) || "";
util.addClassName(this.dom.tree, "jsoneditor-values " + addClasses);
util.addClassName(this.dom.tree, "jsoneditor-values " + addClasses);
}
}
};
Node.prototype.recursivelyUpdateCssClassesOnNodes = function () {
this._updateCssClassName();
if (this.childs !== 'undefined') {
var i;
for (i in this.childs) {
for (var i = 0; i < this.childs.length; i++) {
this.childs[i].recursivelyUpdateCssClassesOnNodes();
}
}
@ -37278,7 +37278,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
if (this.searchValue) {
classNames.push('jsoneditor-highlight');
}
}
domValue.className = classNames.join(' ');
@ -37449,7 +37449,7 @@ return /******/ (function(modules) { // webpackBootstrap
*/
Node.prototype._updateDomField = function () {
var domField = this.dom.field;
if (domField) {
if (domField) {
// make backgound color lightgray when empty
var isEmpty = (String(this.field) == '' && this.parent.type != 'array');
if (isEmpty) {

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.28.0",
"version": "5.28.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

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