Skip to content

Commit

Permalink
Merge pull request #47 from williamtroup/4.6.2
Browse files Browse the repository at this point in the history
4.6.2
  • Loading branch information
william-troup authored Nov 25, 2024
2 parents 66b3c2a + a950cd4 commit c4d159a
Show file tree
Hide file tree
Showing 82 changed files with 135 additions and 135 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
JsonTree.js

[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=JsonTree.js%2C%20a%20free%20JavaScript%json%20treeview&url=https://github.com/williamtroup/JsonTree.js&hashtags=javascript,treeview,json)
[![npm](https://img.shields.io/badge/npmjs-v4.6.1-blue)](https://www.npmjs.com/package/jjsontree.js)
[![nuget](https://img.shields.io/badge/nuget-v4.6.1-purple)](https://www.nuget.org/packages/jJsonTree.js/)
[![npm](https://img.shields.io/badge/npmjs-v4.6.2-blue)](https://www.npmjs.com/package/jjsontree.js)
[![nuget](https://img.shields.io/badge/nuget-v4.6.2-purple)](https://www.nuget.org/packages/jJsonTree.js/)
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/JsonTree.js/blob/main/LICENSE.txt)
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/JsonTree.js/discussions)
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://william-troup.com/)
</h1>

> <p align="center">🔗 A lightweight JavaScript library that generates customizable tree views to better visualize, and edit, JSON data.</p>
> <p align="center">v4.6.1</p>
> <p align="center">v4.6.2</p>
<br />
![JsonTree.js](docs/images/main.png)
Expand Down Expand Up @@ -173,8 +173,8 @@ Or, you can download the latest zipped up version [here](https://www.william-tro
Or, you can also use the following CDN links:

```markdown
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].1/dist/jsontree.min.js
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].1/dist/jsontree.js.min.css
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].2/dist/jsontree.min.js
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].2/dist/jsontree.js.min.css
```
<br>
<br>
Expand Down
10 changes: 5 additions & 5 deletions README_NUGET.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# JsonTree.js v4.6.1
# JsonTree.js v4.6.2

[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=JsonTree.js%2C%20a%20free%20JavaScript%json%20treeview&url=https://github.com/williamtroup/JsonTree.js&hashtags=javascript,treeview,json)
[![npm](https://img.shields.io/badge/npmjs-v4.6.1-blue)](https://www.npmjs.com/package/jjsontree.js)
[![nuget](https://img.shields.io/badge/nuget-v4.6.1-purple)](https://www.nuget.org/packages/jJsonTree.js/)
[![npm](https://img.shields.io/badge/npmjs-v4.6.2-blue)](https://www.npmjs.com/package/jjsontree.js)
[![nuget](https://img.shields.io/badge/nuget-v4.6.2-purple)](https://www.nuget.org/packages/jJsonTree.js/)
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/JsonTree.js/blob/main/LICENSE.txt)
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/JsonTree.js/discussions)
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://william-troup.com/)
Expand Down Expand Up @@ -152,8 +152,8 @@ Or, you can download the latest zipped up version [here](https://www.william-tro
Or, you can also use the following CDN links:

```markdown
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].1/dist/jsontree.min.js
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].1/dist/jsontree.js.min.css
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].2/dist/jsontree.min.js
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].2/dist/jsontree.js.min.css
```


Expand Down
30 changes: 15 additions & 15 deletions dist/jsontree.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1615,10 +1615,10 @@ var ContextMenu;
}
};
l.onkeydown = t => {
if (t.code === "Escape") {
if (t.key === "Escape") {
t.preventDefault();
l.setAttribute("contenteditable", "false");
} else if (Ce(t) && t.code === "Enter") {
} else if (Ce(t) && t.key === "Enter") {
t.preventDefault();
const o = l.innerText;
const i = Convert2.jsonStringToObject(o, e);
Expand All @@ -1640,7 +1640,7 @@ var ContextMenu;
}
}
l.setAttribute("contenteditable", "false");
} else if (t.code === "Enter") {
} else if (t.key === "Enter") {
t.preventDefault();
document.execCommand("insertLineBreak");
}
Expand Down Expand Up @@ -3034,10 +3034,10 @@ var ContextMenu;
}
};
l.onkeydown = i => {
if (i.code === "Escape") {
if (i.key === "Escape") {
i.preventDefault();
l.setAttribute("contenteditable", "false");
} else if (i.code === "Enter") {
} else if (i.key === "Enter") {
i.preventDefault();
const a = l.innerText;
if (r) {
Expand Down Expand Up @@ -3115,10 +3115,10 @@ var ContextMenu;
}
};
a.onkeydown = t => {
if (t.code === "Escape") {
if (t.key === "Escape") {
t.preventDefault();
a.setAttribute("contenteditable", "false");
} else if (t.code === "Enter") {
} else if (t.key === "Enter") {
t.preventDefault();
const i = a.innerText;
if (i.trim() === "") {
Expand Down Expand Up @@ -3522,25 +3522,25 @@ var ContextMenu;
function Ee(e, l) {
o = Ce(e);
if (l.shortcutKeysEnabled && n === 1 && t.hasOwnProperty(l._currentView.element.id) && !l._currentView.editMode) {
if (Ce(e) && e.code === "KeyC") {
if (Ce(e) && e.key.toLowerCase() === "c") {
e.preventDefault();
I(l, l.data);
} else if (Ce(e) && e.code === "F11") {
} else if (Ce(e) && e.key === "F11") {
e.preventDefault();
E(l);
} else if (e.code === "ArrowLeft") {
} else if (e.key === "ArrowLeft") {
e.preventDefault();
A(l);
} else if (e.code === "ArrowRight") {
} else if (e.key === "ArrowRight") {
e.preventDefault();
O(l);
} else if (e.code === "ArrowUp") {
} else if (e.key === "ArrowUp") {
e.preventDefault();
_(l);
} else if (e.code === "ArrowDown") {
} else if (e.key === "ArrowDown") {
e.preventDefault();
C(l);
} else if (e.code === "Escape") {
} else if (e.key === "Escape") {
e.preventDefault();
if (!j(l) && !o) {
de(l);
Expand Down Expand Up @@ -3743,7 +3743,7 @@ var ContextMenu;
return e;
},
getVersion: function() {
return "4.6.1";
return "4.6.2";
}
};
(() => {
Expand Down
2 changes: 1 addition & 1 deletion dist/jsontree.esm.js.map

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions dist/jsontree.js
Original file line number Diff line number Diff line change
Expand Up @@ -1617,10 +1617,10 @@ var ContextMenu;
}
};
l.onkeydown = t => {
if (t.code === "Escape") {
if (t.key === "Escape") {
t.preventDefault();
l.setAttribute("contenteditable", "false");
} else if (Ce(t) && t.code === "Enter") {
} else if (Ce(t) && t.key === "Enter") {
t.preventDefault();
const o = l.innerText;
const i = Convert2.jsonStringToObject(o, e);
Expand All @@ -1642,7 +1642,7 @@ var ContextMenu;
}
}
l.setAttribute("contenteditable", "false");
} else if (t.code === "Enter") {
} else if (t.key === "Enter") {
t.preventDefault();
document.execCommand("insertLineBreak");
}
Expand Down Expand Up @@ -3036,10 +3036,10 @@ var ContextMenu;
}
};
l.onkeydown = i => {
if (i.code === "Escape") {
if (i.key === "Escape") {
i.preventDefault();
l.setAttribute("contenteditable", "false");
} else if (i.code === "Enter") {
} else if (i.key === "Enter") {
i.preventDefault();
const a = l.innerText;
if (r) {
Expand Down Expand Up @@ -3117,10 +3117,10 @@ var ContextMenu;
}
};
a.onkeydown = t => {
if (t.code === "Escape") {
if (t.key === "Escape") {
t.preventDefault();
a.setAttribute("contenteditable", "false");
} else if (t.code === "Enter") {
} else if (t.key === "Enter") {
t.preventDefault();
const i = a.innerText;
if (i.trim() === "") {
Expand Down Expand Up @@ -3524,25 +3524,25 @@ var ContextMenu;
function Ee(e, l) {
o = Ce(e);
if (l.shortcutKeysEnabled && n === 1 && t.hasOwnProperty(l._currentView.element.id) && !l._currentView.editMode) {
if (Ce(e) && e.code === "KeyC") {
if (Ce(e) && e.key.toLowerCase() === "c") {
e.preventDefault();
I(l, l.data);
} else if (Ce(e) && e.code === "F11") {
} else if (Ce(e) && e.key === "F11") {
e.preventDefault();
E(l);
} else if (e.code === "ArrowLeft") {
} else if (e.key === "ArrowLeft") {
e.preventDefault();
A(l);
} else if (e.code === "ArrowRight") {
} else if (e.key === "ArrowRight") {
e.preventDefault();
O(l);
} else if (e.code === "ArrowUp") {
} else if (e.key === "ArrowUp") {
e.preventDefault();
_(l);
} else if (e.code === "ArrowDown") {
} else if (e.key === "ArrowDown") {
e.preventDefault();
C(l);
} else if (e.code === "Escape") {
} else if (e.key === "Escape") {
e.preventDefault();
if (!j(l) && !o) {
de(l);
Expand Down Expand Up @@ -3745,7 +3745,7 @@ var ContextMenu;
return e;
},
getVersion: function() {
return "4.6.1";
return "4.6.2";
}
};
(() => {
Expand Down
2 changes: 1 addition & 1 deletion dist/jsontree.js.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jsontree.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jsontree.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.af.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Afrikaans | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Afrikaans | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.ar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Arabic | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Arabic | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.be.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Belarusian | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Belarusian | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayHeaderNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.bg.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Bulgarian | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Bulgarian | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.bn.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Bengali | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Bengali | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.da.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Danish | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Danish | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.de.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - German | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - German | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.el.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Greek | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Greek | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.en.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - English | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - English | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.eo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Esperanto | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Esperanto | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.es.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Spanish | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Spanish | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.et.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Estonian | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Estonian | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.fa.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Farsi | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Farsi | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.fi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Finnish | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Finnish | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.fr.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - French | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - French | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.fy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Frisian | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Frisian | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.ga.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Irish | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Irish | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.gl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Galician | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Galician | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.he.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Hebrew | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Hebrew | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.hi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Hindi | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Hindi | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.hu.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Hungarian | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Hungarian | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.hy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Armenian | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Armenian | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.id.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Indonesian | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Indonesian | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.is.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Icelandic | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Icelandic | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.it.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Italian | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Italian | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
2 changes: 1 addition & 1 deletion dist/translations/jsontree.translations.ja.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v4.6.1 - Japanese | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v4.6.2 - Japanese | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down
Loading

0 comments on commit c4d159a

Please sign in to comment.