Publish v5.31.1

This commit is contained in:
jos 2019-03-14 21:22:07 +01:00
parent a01ff4a892
commit 88972a62fc
9 changed files with 240 additions and 220 deletions

View File

@ -3,9 +3,11 @@
https://github.com/josdejong/jsoneditor https://github.com/josdejong/jsoneditor
## not yet publised, version 5.31.1 ## 2019-03-14, version 5.31.1
- Some fixes in the Simplified Chinese translation. Thanks @@adf0001. - Fix IE11 issue.
- Some fixes in the Simplified Chinese translation.
Thanks @@adf0001 and @yuxizhe.
## 2019-03-10, version 5.31.0 ## 2019-03-10, version 5.31.0

View File

@ -24,8 +24,8 @@
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org * Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
* *
* @author Jos de Jong, <wjosdejong@gmail.com> * @author Jos de Jong, <wjosdejong@gmail.com>
* @version 5.31.0 * @version 5.31.1
* @date 2019-03-10 * @date 2019-03-14
*/ */
(function webpackUniversalModuleDefinition(root, factory) { (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object') if(typeof exports === 'object' && typeof module === 'object')
@ -97,7 +97,7 @@ return /******/ (function(modules) { // webpackBootstrap
var VanillaPicker = __webpack_require__(5); // may be undefined in case of minimalist bundle var VanillaPicker = __webpack_require__(5); // may be undefined in case of minimalist bundle
var treemode = __webpack_require__(6); var treemode = __webpack_require__(6);
var textmode = __webpack_require__(28); var textmode = __webpack_require__(29);
var util = __webpack_require__(12); var util = __webpack_require__(12);
if (typeof Promise === 'undefined') { if (typeof Promise === 'undefined') {
@ -1468,16 +1468,16 @@ return /******/ (function(modules) { // webpackBootstrap
var History = __webpack_require__(8); var History = __webpack_require__(8);
var SearchBox = __webpack_require__(9); var SearchBox = __webpack_require__(9);
var ContextMenu = __webpack_require__(10); var ContextMenu = __webpack_require__(10);
var TreePath = __webpack_require__(16); var TreePath = __webpack_require__(17);
var Node = __webpack_require__(17); var Node = __webpack_require__(18);
var ModeSwitcher = __webpack_require__(26); var ModeSwitcher = __webpack_require__(27);
var util = __webpack_require__(12); var util = __webpack_require__(12);
var autocomplete = __webpack_require__(27); var autocomplete = __webpack_require__(28);
var showSortModal = __webpack_require__(22); var showSortModal = __webpack_require__(23);
var showTransformModal = __webpack_require__(24); var showTransformModal = __webpack_require__(25);
var translate = __webpack_require__(15).translate; var translate = __webpack_require__(16).translate;
var setLanguages = __webpack_require__(15).setLanguages; var setLanguages = __webpack_require__(16).setLanguages;
var setLanguage = __webpack_require__(15).setLanguage; var setLanguage = __webpack_require__(16).setLanguage;
var DEFAULT_MODAL_ANCHOR = document.body; // TODO: this constant is defined twice var DEFAULT_MODAL_ANCHOR = document.body; // TODO: this constant is defined twice
@ -4099,7 +4099,7 @@ return /******/ (function(modules) { // webpackBootstrap
var createAbsoluteAnchor = __webpack_require__(11).createAbsoluteAnchor; var createAbsoluteAnchor = __webpack_require__(11).createAbsoluteAnchor;
var util = __webpack_require__(12); var util = __webpack_require__(12);
var translate = __webpack_require__(15).translate; var translate = __webpack_require__(16).translate;
/** /**
* A context menu * A context menu
@ -4624,9 +4624,10 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict'; 'use strict';
var jsonlint = __webpack_require__(13); __webpack_require__(13);
var jsonMap = __webpack_require__(14); var jsonlint = __webpack_require__(14);
var translate = __webpack_require__(15).translate; var jsonMap = __webpack_require__(15);
var translate = __webpack_require__(16).translate;
/** /**
* Parse JSON using the parser built-in in the browser. * Parse JSON using the parser built-in in the browser.
@ -5687,51 +5688,6 @@ return /******/ (function(modules) { // webpackBootstrap
return !!exports.getColorCSS(color); return !!exports.getColorCSS(color);
} }
if (typeof Element !== 'undefined') {
// Polyfill for array remove
(function () {
function polyfill (item) {
if (item.hasOwnProperty('remove')) {
return;
}
Object.defineProperty(item, 'remove', {
configurable: true,
enumerable: true,
writable: true,
value: function remove() {
if (this.parentNode != null)
this.parentNode.removeChild(this);
}
});
}
if (typeof Element !== 'undefined') { polyfill(Element.prototype); }
if (typeof CharacterData !== 'undefined') { polyfill(CharacterData.prototype); }
if (typeof DocumentType !== 'undefined') { polyfill(DocumentType.prototype); }
})();
}
// Polyfill for startsWith
if (!String.prototype.startsWith) {
String.prototype.startsWith = function (searchString, position) {
position = position || 0;
return this.substr(position, searchString.length) === searchString;
};
}
// Polyfill for Array.find
if (!Array.prototype.find) {
Array.prototype.find = function(callback) {
for (var i = 0; i < this.length; i++) {
var element = this[i];
if ( callback.call(this, element, i, this) ) {
return element;
}
}
}
}
/** /**
* Make a tooltip for a field based on the field's schema. * Make a tooltip for a field based on the field's schema.
* @param {object} schema JSON schema * @param {object} schema JSON schema
@ -5771,6 +5727,57 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 13 */ /* 13 */
/***/ function(module, exports) {
if (typeof Element !== 'undefined') {
// Polyfill for array remove
(function () {
function polyfill (item) {
if (item.hasOwnProperty('remove')) {
return;
}
Object.defineProperty(item, 'remove', {
configurable: true,
enumerable: true,
writable: true,
value: function remove() {
if (this.parentNode != null)
this.parentNode.removeChild(this);
}
});
}
if (typeof Element !== 'undefined') { polyfill(Element.prototype); }
if (typeof CharacterData !== 'undefined') { polyfill(CharacterData.prototype); }
if (typeof DocumentType !== 'undefined') { polyfill(DocumentType.prototype); }
})();
}
// Polyfill for startsWith
if (!String.prototype.startsWith) {
String.prototype.startsWith = function (searchString, position) {
position = position || 0;
return this.substr(position, searchString.length) === searchString;
};
}
// Polyfill for Array.find
if (!Array.prototype.find) {
Array.prototype.find = function(callback) {
for (var i = 0; i < this.length; i++) {
var element = this[i];
if ( callback.call(this, element, i, this) ) {
return element;
}
}
}
}
/***/ },
/* 14 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
/* Jison generated parser */ /* Jison generated parser */
@ -6193,7 +6200,7 @@ return /******/ (function(modules) { // webpackBootstrap
} }
/***/ }, /***/ },
/* 14 */ /* 15 */
/***/ function(module, exports) { /***/ function(module, exports) {
'use strict'; 'use strict';
@ -6609,11 +6616,13 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 15 */ /* 16 */
/***/ function(module, exports) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
__webpack_require__(13);
var _locales = ['en', 'pt-BR', 'zh-CN', 'tr']; var _locales = ['en', 'pt-BR', 'zh-CN', 'tr'];
var _defs = { var _defs = {
en: { en: {
@ -6710,10 +6719,10 @@ return /******/ (function(modules) { // webpackBootstrap
ascendingTitle: '升序排列${type}的子节点', ascendingTitle: '升序排列${type}的子节点',
actionsMenu: '点击打开动作菜单(Ctrl+M)', actionsMenu: '点击打开动作菜单(Ctrl+M)',
collapseAll: '缩进所有字段', collapseAll: '缩进所有字段',
descending: '姜旭', descending: '降序',
descendingTitle: '降序排列${type}的子节点', descendingTitle: '降序排列${type}的子节点',
drag: '拖拽移动该节点(Alt+Shift+Arrows)', drag: '拖拽移动该节点(Alt+Shift+Arrows)',
duplicateKey: '键', duplicateKey: '复键',
duplicateText: '复制', duplicateText: '复制',
duplicateTitle: '复制选中字段(Ctrl+D)', duplicateTitle: '复制选中字段(Ctrl+D)',
duplicateField: '复制该字段(Ctrl+D)', duplicateField: '复制该字段(Ctrl+D)',
@ -7021,13 +7030,13 @@ return /******/ (function(modules) { // webpackBootstrap
}; };
/***/ }, /***/ },
/* 16 */ /* 17 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var ContextMenu = __webpack_require__(10); var ContextMenu = __webpack_require__(10);
var translate = __webpack_require__(15).translate; var translate = __webpack_require__(16).translate;
var util = __webpack_require__(12); var util = __webpack_require__(12);
/** /**
@ -7168,21 +7177,21 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = TreePath; module.exports = TreePath;
/***/ }, /***/ },
/* 17 */ /* 18 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var jmespath = __webpack_require__(18); var jmespath = __webpack_require__(19);
var naturalSort = __webpack_require__(19); var naturalSort = __webpack_require__(20);
var createAbsoluteAnchor = __webpack_require__(11).createAbsoluteAnchor; var createAbsoluteAnchor = __webpack_require__(11).createAbsoluteAnchor;
var ContextMenu = __webpack_require__(10); var ContextMenu = __webpack_require__(10);
var appendNodeFactory = __webpack_require__(20); var appendNodeFactory = __webpack_require__(21);
var showMoreNodeFactory = __webpack_require__(21); var showMoreNodeFactory = __webpack_require__(22);
var showSortModal = __webpack_require__(22); var showSortModal = __webpack_require__(23);
var showTransformModal = __webpack_require__(24); var showTransformModal = __webpack_require__(25);
var util = __webpack_require__(12); var util = __webpack_require__(12);
var translate = __webpack_require__(15).translate; var translate = __webpack_require__(16).translate;
var DEFAULT_MODAL_ANCHOR = document.body; // TODO: this constant is defined twice var DEFAULT_MODAL_ANCHOR = document.body; // TODO: this constant is defined twice
@ -11752,7 +11761,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 18 */ /* 19 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
(function(exports) { (function(exports) {
@ -13425,7 +13434,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 19 */ /* 20 */
/***/ function(module, exports) { /***/ function(module, exports) {
/* /*
@ -13476,14 +13485,14 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 20 */ /* 21 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var util = __webpack_require__(12); var util = __webpack_require__(12);
var ContextMenu = __webpack_require__(10); var ContextMenu = __webpack_require__(10);
var translate = __webpack_require__(15).translate; var translate = __webpack_require__(16).translate;
/** /**
* A factory function to create an AppendNode, which depends on a Node * A factory function to create an AppendNode, which depends on a Node
@ -13735,12 +13744,12 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 21 */ /* 22 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var translate = __webpack_require__(15).translate; var translate = __webpack_require__(16).translate;
/** /**
* A factory function to create an ShowMoreNode, which depends on a Node * A factory function to create an ShowMoreNode, which depends on a Node
@ -13898,11 +13907,11 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 22 */ /* 23 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var picoModal = __webpack_require__(23); var picoModal = __webpack_require__(24);
var translate = __webpack_require__(15).translate; var translate = __webpack_require__(16).translate;
/** /**
* Show advanced sorting modal * Show advanced sorting modal
@ -14018,7 +14027,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 23 */ /* 24 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/** var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@ -14627,13 +14636,13 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 24 */ /* 25 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var jmespath = __webpack_require__(18); var jmespath = __webpack_require__(19);
var picoModal = __webpack_require__(23); var picoModal = __webpack_require__(24);
var Selectr = __webpack_require__(25); var Selectr = __webpack_require__(26);
var translate = __webpack_require__(15).translate; var translate = __webpack_require__(16).translate;
var debounce = __webpack_require__(12).debounce; var debounce = __webpack_require__(12).debounce;
var MAX_PREVIEW_LINES = 100; var MAX_PREVIEW_LINES = 100;
@ -14934,7 +14943,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 25 */ /* 26 */
/***/ function(module, exports) { /***/ function(module, exports) {
/*! /*!
@ -17113,13 +17122,13 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 26 */ /* 27 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var ContextMenu = __webpack_require__(10); var ContextMenu = __webpack_require__(10);
var translate = __webpack_require__(15).translate; var translate = __webpack_require__(16).translate;
/** /**
* Create a select box to be used in the editor menu's, which allows to switch mode * Create a select box to be used in the editor menu's, which allows to switch mode
@ -17234,7 +17243,7 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = ModeSwitcher; module.exports = ModeSwitcher;
/***/ }, /***/ },
/* 27 */ /* 28 */
/***/ function(module, exports) { /***/ function(module, exports) {
'use strict'; 'use strict';
@ -17621,13 +17630,13 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = completely; module.exports = completely;
/***/ }, /***/ },
/* 28 */ /* 29 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var ace = __webpack_require__(1); var ace = __webpack_require__(1);
var ModeSwitcher = __webpack_require__(26); var ModeSwitcher = __webpack_require__(27);
var util = __webpack_require__(12); var util = __webpack_require__(12);
// create a mixin with the functions for text mode // create a mixin with the functions for text mode
@ -17702,7 +17711,7 @@ return /******/ (function(modules) { // webpackBootstrap
this.theme = options.theme || DEFAULT_THEME; this.theme = options.theme || DEFAULT_THEME;
if (this.theme === DEFAULT_THEME && _ace) { if (this.theme === DEFAULT_THEME && _ace) {
try { try {
__webpack_require__(29); __webpack_require__(30);
} }
catch (err) { catch (err) {
console.error(err); console.error(err);
@ -18761,7 +18770,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 29 */ /* 30 */
/***/ function(module, exports) { /***/ function(module, exports) {
/* ***** BEGIN LICENSE BLOCK ***** /* ***** BEGIN LICENSE BLOCK *****

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

209
dist/jsoneditor.js vendored
View File

@ -24,8 +24,8 @@
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org * Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
* *
* @author Jos de Jong, <wjosdejong@gmail.com> * @author Jos de Jong, <wjosdejong@gmail.com>
* @version 5.31.0 * @version 5.31.1
* @date 2019-03-10 * @date 2019-03-14
*/ */
(function webpackUniversalModuleDefinition(root, factory) { (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object') if(typeof exports === 'object' && typeof module === 'object')
@ -97,7 +97,7 @@ return /******/ (function(modules) { // webpackBootstrap
var VanillaPicker = __webpack_require__(57); // may be undefined in case of minimalist bundle var VanillaPicker = __webpack_require__(57); // may be undefined in case of minimalist bundle
var treemode = __webpack_require__(59); var treemode = __webpack_require__(59);
var textmode = __webpack_require__(81); var textmode = __webpack_require__(82);
var util = __webpack_require__(65); var util = __webpack_require__(65);
if (typeof Promise === 'undefined') { if (typeof Promise === 'undefined') {
@ -30110,16 +30110,16 @@ return /******/ (function(modules) { // webpackBootstrap
var History = __webpack_require__(61); var History = __webpack_require__(61);
var SearchBox = __webpack_require__(62); var SearchBox = __webpack_require__(62);
var ContextMenu = __webpack_require__(63); var ContextMenu = __webpack_require__(63);
var TreePath = __webpack_require__(69); var TreePath = __webpack_require__(70);
var Node = __webpack_require__(70); var Node = __webpack_require__(71);
var ModeSwitcher = __webpack_require__(79); var ModeSwitcher = __webpack_require__(80);
var util = __webpack_require__(65); var util = __webpack_require__(65);
var autocomplete = __webpack_require__(80); var autocomplete = __webpack_require__(81);
var showSortModal = __webpack_require__(75); var showSortModal = __webpack_require__(76);
var showTransformModal = __webpack_require__(77); var showTransformModal = __webpack_require__(78);
var translate = __webpack_require__(68).translate; var translate = __webpack_require__(69).translate;
var setLanguages = __webpack_require__(68).setLanguages; var setLanguages = __webpack_require__(69).setLanguages;
var setLanguage = __webpack_require__(68).setLanguage; var setLanguage = __webpack_require__(69).setLanguage;
var DEFAULT_MODAL_ANCHOR = document.body; // TODO: this constant is defined twice var DEFAULT_MODAL_ANCHOR = document.body; // TODO: this constant is defined twice
@ -32741,7 +32741,7 @@ return /******/ (function(modules) { // webpackBootstrap
var createAbsoluteAnchor = __webpack_require__(64).createAbsoluteAnchor; var createAbsoluteAnchor = __webpack_require__(64).createAbsoluteAnchor;
var util = __webpack_require__(65); var util = __webpack_require__(65);
var translate = __webpack_require__(68).translate; var translate = __webpack_require__(69).translate;
/** /**
* A context menu * A context menu
@ -33266,9 +33266,10 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict'; 'use strict';
var jsonlint = __webpack_require__(66); __webpack_require__(66);
var jsonMap = __webpack_require__(67); var jsonlint = __webpack_require__(67);
var translate = __webpack_require__(68).translate; var jsonMap = __webpack_require__(68);
var translate = __webpack_require__(69).translate;
/** /**
* Parse JSON using the parser built-in in the browser. * Parse JSON using the parser built-in in the browser.
@ -34329,51 +34330,6 @@ return /******/ (function(modules) { // webpackBootstrap
return !!exports.getColorCSS(color); return !!exports.getColorCSS(color);
} }
if (typeof Element !== 'undefined') {
// Polyfill for array remove
(function () {
function polyfill (item) {
if (item.hasOwnProperty('remove')) {
return;
}
Object.defineProperty(item, 'remove', {
configurable: true,
enumerable: true,
writable: true,
value: function remove() {
if (this.parentNode != null)
this.parentNode.removeChild(this);
}
});
}
if (typeof Element !== 'undefined') { polyfill(Element.prototype); }
if (typeof CharacterData !== 'undefined') { polyfill(CharacterData.prototype); }
if (typeof DocumentType !== 'undefined') { polyfill(DocumentType.prototype); }
})();
}
// Polyfill for startsWith
if (!String.prototype.startsWith) {
String.prototype.startsWith = function (searchString, position) {
position = position || 0;
return this.substr(position, searchString.length) === searchString;
};
}
// Polyfill for Array.find
if (!Array.prototype.find) {
Array.prototype.find = function(callback) {
for (var i = 0; i < this.length; i++) {
var element = this[i];
if ( callback.call(this, element, i, this) ) {
return element;
}
}
}
}
/** /**
* Make a tooltip for a field based on the field's schema. * Make a tooltip for a field based on the field's schema.
* @param {object} schema JSON schema * @param {object} schema JSON schema
@ -34413,6 +34369,57 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 66 */ /* 66 */
/***/ function(module, exports) {
if (typeof Element !== 'undefined') {
// Polyfill for array remove
(function () {
function polyfill (item) {
if (item.hasOwnProperty('remove')) {
return;
}
Object.defineProperty(item, 'remove', {
configurable: true,
enumerable: true,
writable: true,
value: function remove() {
if (this.parentNode != null)
this.parentNode.removeChild(this);
}
});
}
if (typeof Element !== 'undefined') { polyfill(Element.prototype); }
if (typeof CharacterData !== 'undefined') { polyfill(CharacterData.prototype); }
if (typeof DocumentType !== 'undefined') { polyfill(DocumentType.prototype); }
})();
}
// Polyfill for startsWith
if (!String.prototype.startsWith) {
String.prototype.startsWith = function (searchString, position) {
position = position || 0;
return this.substr(position, searchString.length) === searchString;
};
}
// Polyfill for Array.find
if (!Array.prototype.find) {
Array.prototype.find = function(callback) {
for (var i = 0; i < this.length; i++) {
var element = this[i];
if ( callback.call(this, element, i, this) ) {
return element;
}
}
}
}
/***/ },
/* 67 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
/* Jison generated parser */ /* Jison generated parser */
@ -34835,7 +34842,7 @@ return /******/ (function(modules) { // webpackBootstrap
} }
/***/ }, /***/ },
/* 67 */ /* 68 */
/***/ function(module, exports) { /***/ function(module, exports) {
'use strict'; 'use strict';
@ -35251,11 +35258,13 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 68 */ /* 69 */
/***/ function(module, exports) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
__webpack_require__(66);
var _locales = ['en', 'pt-BR', 'zh-CN', 'tr']; var _locales = ['en', 'pt-BR', 'zh-CN', 'tr'];
var _defs = { var _defs = {
en: { en: {
@ -35352,10 +35361,10 @@ return /******/ (function(modules) { // webpackBootstrap
ascendingTitle: '升序排列${type}的子节点', ascendingTitle: '升序排列${type}的子节点',
actionsMenu: '点击打开动作菜单(Ctrl+M)', actionsMenu: '点击打开动作菜单(Ctrl+M)',
collapseAll: '缩进所有字段', collapseAll: '缩进所有字段',
descending: '姜旭', descending: '降序',
descendingTitle: '降序排列${type}的子节点', descendingTitle: '降序排列${type}的子节点',
drag: '拖拽移动该节点(Alt+Shift+Arrows)', drag: '拖拽移动该节点(Alt+Shift+Arrows)',
duplicateKey: '键', duplicateKey: '复键',
duplicateText: '复制', duplicateText: '复制',
duplicateTitle: '复制选中字段(Ctrl+D)', duplicateTitle: '复制选中字段(Ctrl+D)',
duplicateField: '复制该字段(Ctrl+D)', duplicateField: '复制该字段(Ctrl+D)',
@ -35663,13 +35672,13 @@ return /******/ (function(modules) { // webpackBootstrap
}; };
/***/ }, /***/ },
/* 69 */ /* 70 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var ContextMenu = __webpack_require__(63); var ContextMenu = __webpack_require__(63);
var translate = __webpack_require__(68).translate; var translate = __webpack_require__(69).translate;
var util = __webpack_require__(65); var util = __webpack_require__(65);
/** /**
@ -35810,21 +35819,21 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = TreePath; module.exports = TreePath;
/***/ }, /***/ },
/* 70 */ /* 71 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var jmespath = __webpack_require__(71); var jmespath = __webpack_require__(72);
var naturalSort = __webpack_require__(72); var naturalSort = __webpack_require__(73);
var createAbsoluteAnchor = __webpack_require__(64).createAbsoluteAnchor; var createAbsoluteAnchor = __webpack_require__(64).createAbsoluteAnchor;
var ContextMenu = __webpack_require__(63); var ContextMenu = __webpack_require__(63);
var appendNodeFactory = __webpack_require__(73); var appendNodeFactory = __webpack_require__(74);
var showMoreNodeFactory = __webpack_require__(74); var showMoreNodeFactory = __webpack_require__(75);
var showSortModal = __webpack_require__(75); var showSortModal = __webpack_require__(76);
var showTransformModal = __webpack_require__(77); var showTransformModal = __webpack_require__(78);
var util = __webpack_require__(65); var util = __webpack_require__(65);
var translate = __webpack_require__(68).translate; var translate = __webpack_require__(69).translate;
var DEFAULT_MODAL_ANCHOR = document.body; // TODO: this constant is defined twice var DEFAULT_MODAL_ANCHOR = document.body; // TODO: this constant is defined twice
@ -40394,7 +40403,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 71 */ /* 72 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
(function(exports) { (function(exports) {
@ -42067,7 +42076,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 72 */ /* 73 */
/***/ function(module, exports) { /***/ function(module, exports) {
/* /*
@ -42118,14 +42127,14 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 73 */ /* 74 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var util = __webpack_require__(65); var util = __webpack_require__(65);
var ContextMenu = __webpack_require__(63); var ContextMenu = __webpack_require__(63);
var translate = __webpack_require__(68).translate; var translate = __webpack_require__(69).translate;
/** /**
* A factory function to create an AppendNode, which depends on a Node * A factory function to create an AppendNode, which depends on a Node
@ -42377,12 +42386,12 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 74 */ /* 75 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var translate = __webpack_require__(68).translate; var translate = __webpack_require__(69).translate;
/** /**
* A factory function to create an ShowMoreNode, which depends on a Node * A factory function to create an ShowMoreNode, which depends on a Node
@ -42540,11 +42549,11 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 75 */ /* 76 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var picoModal = __webpack_require__(76); var picoModal = __webpack_require__(77);
var translate = __webpack_require__(68).translate; var translate = __webpack_require__(69).translate;
/** /**
* Show advanced sorting modal * Show advanced sorting modal
@ -42660,7 +42669,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 76 */ /* 77 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/** var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@ -43269,13 +43278,13 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 77 */ /* 78 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var jmespath = __webpack_require__(71); var jmespath = __webpack_require__(72);
var picoModal = __webpack_require__(76); var picoModal = __webpack_require__(77);
var Selectr = __webpack_require__(78); var Selectr = __webpack_require__(79);
var translate = __webpack_require__(68).translate; var translate = __webpack_require__(69).translate;
var debounce = __webpack_require__(65).debounce; var debounce = __webpack_require__(65).debounce;
var MAX_PREVIEW_LINES = 100; var MAX_PREVIEW_LINES = 100;
@ -43576,7 +43585,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 78 */ /* 79 */
/***/ function(module, exports) { /***/ function(module, exports) {
/*! /*!
@ -45755,13 +45764,13 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 79 */ /* 80 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var ContextMenu = __webpack_require__(63); var ContextMenu = __webpack_require__(63);
var translate = __webpack_require__(68).translate; var translate = __webpack_require__(69).translate;
/** /**
* Create a select box to be used in the editor menu's, which allows to switch mode * Create a select box to be used in the editor menu's, which allows to switch mode
@ -45876,7 +45885,7 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = ModeSwitcher; module.exports = ModeSwitcher;
/***/ }, /***/ },
/* 80 */ /* 81 */
/***/ function(module, exports) { /***/ function(module, exports) {
'use strict'; 'use strict';
@ -46263,13 +46272,13 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = completely; module.exports = completely;
/***/ }, /***/ },
/* 81 */ /* 82 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
'use strict'; 'use strict';
var ace = __webpack_require__(51); var ace = __webpack_require__(51);
var ModeSwitcher = __webpack_require__(79); var ModeSwitcher = __webpack_require__(80);
var util = __webpack_require__(65); var util = __webpack_require__(65);
// create a mixin with the functions for text mode // create a mixin with the functions for text mode
@ -46344,7 +46353,7 @@ return /******/ (function(modules) { // webpackBootstrap
this.theme = options.theme || DEFAULT_THEME; this.theme = options.theme || DEFAULT_THEME;
if (this.theme === DEFAULT_THEME && _ace) { if (this.theme === DEFAULT_THEME && _ace) {
try { try {
__webpack_require__(82); __webpack_require__(83);
} }
catch (err) { catch (err) {
console.error(err); console.error(err);
@ -47403,7 +47412,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 82 */ /* 83 */
/***/ function(module, exports) { /***/ function(module, exports) {
/* ***** BEGIN LICENSE BLOCK ***** /* ***** BEGIN LICENSE BLOCK *****

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

2
package-lock.json generated
View File

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

View File

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