json-object-editor 0.9.89 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/app.js +5 -4
  3. package/css/jif/Read Me.txt +5 -5
  4. package/css/jif/demo-files/demo.css +153 -153
  5. package/css/jif/demo-files/demo.js +30 -30
  6. package/css/jif/demo.html +285 -285
  7. package/css/jif/fonts/joeiconfont.svg +24 -24
  8. package/css/jif/ie7/ie7.css +45 -45
  9. package/css/jif/ie7/ie7.js +46 -46
  10. package/css/jif/selection.json +573 -573
  11. package/css/joe-styles.css +5 -1
  12. package/css/joe.css +11 -7
  13. package/css/jquery-ui-1.10.4.custom.min.css +5 -5
  14. package/css/jquery-ui.min.css +6 -6
  15. package/css/jquery.timepicker.css +72 -72
  16. package/es5-build/capp/capp.js +1083 -1083
  17. package/es5-build/js/JsonObjectEditor_es5.jquery.craydent.js +11047 -11047
  18. package/es5-build/web-components/account-info.js +136 -136
  19. package/es5-build/web-components/capp-components.js +160 -160
  20. package/es5-build/web-components/capp-panel.js +85 -85
  21. package/es5-build/web-components/capp-view.js +73 -73
  22. package/es5-build/web-components/joe-autocomplete.js +149 -149
  23. package/es5-build/web-components/joe-button.js +132 -132
  24. package/es5-build/web-components/joe-card.js +92 -92
  25. package/es5-build/web-components/joe-component.js +74 -74
  26. package/es5-build/web-components/joe-field.js +70 -70
  27. package/es5-build/web-components/joe-list-item.js +176 -176
  28. package/es5-build/web-components/joe-user-cube.js +100 -100
  29. package/es5-build/web-components/report-components.js +133 -133
  30. package/grunt/build +86 -86
  31. package/grunt/package-lock.json +6301 -2489
  32. package/grunt/package.json +47 -47
  33. package/grunt/src +86 -86
  34. package/js/JsonObjectEditor.jquery.craydent.js +3 -2
  35. package/js/joe-full.js +11 -10
  36. package/js/joe.js +12 -11
  37. package/js/joe_es5.js +11056 -11056
  38. package/js/jquery.timepicker.min.js +1 -1
  39. package/js/leaflet.js +8 -8
  40. package/js/libs/adapter-latest.js +4400 -4400
  41. package/js/libs/craydent-1.9.2.js +11741 -11741
  42. package/js/libs/craydent-upload-2.0.0.js +394 -394
  43. package/js/libs/hammer.min.208.js +6 -6
  44. package/js/libs/jquery-3.5.1.min.js +2 -2
  45. package/js/libs/moment.min.js +6 -6
  46. package/js/native-shim.js +46 -46
  47. package/js/plugins/c3/c3.min.js +5 -5
  48. package/js/plugins/c3/d3.v3.min.js +4 -4
  49. package/js/plugins/threejs/Detector.js +78 -78
  50. package/js/plugins/threejs/LICENSE +21 -21
  51. package/js/plugins/threejs/MTLLoader.js +417 -417
  52. package/js/plugins/threejs/OBJLoader.js +564 -564
  53. package/js/plugins/threejs/OrbitControls.js +1037 -1037
  54. package/js/plugins/threejs/README.md +9 -9
  55. package/js/plugins/threejs/assets/female-croupier-2013-03-26.mtl +3 -3
  56. package/js/plugins/threejs/index.html +178 -178
  57. package/js/plugins/threejs/three.js +41507 -41507
  58. package/package copy.json +62 -0
  59. package/package.json +12 -13
  60. package/server/schemas/ledger.js +52 -16
  61. package/web-components/joe-card.js +5 -0
  62. package/projectFilesBackup/.idea/workspace.xml +0 -424
@@ -1,47 +1,47 @@
1
- {
2
- "name": "JsonObjectEditor",
3
- "projectName": "JOE",
4
- "version": "1.5.0",
5
- "description": "Visually Edit Objects Using this GUI tool, what you do from there is up to you.",
6
- "main": "Gruntfile.js",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/craql/JsonObjectEditor.git"
13
- },
14
- "keywords": [
15
- "JSON",
16
- "Admin"
17
- ],
18
- "author": {
19
- "name": "Corey Hadden"
20
- },
21
- "license": "none",
22
- "bugs": {
23
- "url": "https://github.com/craql/JsonObjectEditor/issues"
24
- },
25
- "dependencies": {
26
- "grunt-cli": "^1.3.2",
27
- "grunt-traceur": "^0.5.5",
28
- "node-sass": "^4.14.1",
29
- "tinymce": "^4.3.3",
30
- "traceur": "0.0.111"
31
- },
32
- "devDependencies": {
33
- "@babel/core": "^7.7.4",
34
- "grunt": "^0.4.5",
35
- "grunt-babel": "^8.0.0",
36
- "grunt-banner": "^0.3.1",
37
- "grunt-contrib-clean": "^0.6.0",
38
- "grunt-contrib-concat": "^0.5.1",
39
- "grunt-contrib-copy": "^0.7.0",
40
- "grunt-contrib-jshint": "^0.11.2",
41
- "grunt-contrib-uglify": "^0.8.1",
42
- "grunt-contrib-watch": "^0.6.1",
43
- "grunt-istanbul-coverage": "^0.1.1",
44
- "grunt-sass": "^0.18.1",
45
- "load-grunt-tasks": "^3.1.0"
46
- }
47
- }
1
+ {
2
+ "name": "JsonObjectEditor",
3
+ "projectName": "JOE",
4
+ "version": "1.5.0",
5
+ "description": "Visually Edit Objects Using this GUI tool, what you do from there is up to you.",
6
+ "main": "Gruntfile.js",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/craql/JsonObjectEditor.git"
13
+ },
14
+ "keywords": [
15
+ "JSON",
16
+ "Admin"
17
+ ],
18
+ "author": {
19
+ "name": "Corey Hadden"
20
+ },
21
+ "license": "none",
22
+ "bugs": {
23
+ "url": "https://github.com/craql/JsonObjectEditor/issues"
24
+ },
25
+ "dependencies": {
26
+ "grunt-cli": "^1.3.2",
27
+ "grunt-traceur": "^0.5.5",
28
+ "node-sass": "^4.14.1",
29
+ "tinymce": "^4.3.3",
30
+ "traceur": "0.0.111"
31
+ },
32
+ "devDependencies": {
33
+ "@babel/core": "^7.7.4",
34
+ "grunt": "^0.4.5",
35
+ "grunt-babel": "^8.0.0",
36
+ "grunt-banner": "^0.3.1",
37
+ "grunt-contrib-clean": "^0.6.0",
38
+ "grunt-contrib-concat": "^0.5.1",
39
+ "grunt-contrib-copy": "^0.7.0",
40
+ "grunt-contrib-jshint": "^0.11.2",
41
+ "grunt-contrib-uglify": "^0.8.1",
42
+ "grunt-contrib-watch": "^0.6.1",
43
+ "grunt-istanbul-coverage": "^0.1.1",
44
+ "grunt-sass": "^0.18.1",
45
+ "load-grunt-tasks": "^3.1.0"
46
+ }
47
+ }
package/grunt/src CHANGED
@@ -1,86 +1,86 @@
1
- $traceurRuntime.registerModule("src", [], function() {
2
- "use strict";
3
- var __moduleName = "src";
4
- var AccountInfo = function($__super) {
5
- function AccountInfo() {
6
- $traceurRuntime.superConstructor(AccountInfo).call(this);
7
- }
8
- return ($traceurRuntime.createClass)(AccountInfo, {
9
- connectedCallback: function() {
10
- this.plaidid = this.getAttribute('plaid-id');
11
- this.start_date = new Date(this.getAttribute('start-date')).format('Y-m-d');
12
- this.end_date = new Date(this.getAttribute('end-date')).format('Y-m-d');
13
- this.acctName = this.getAttribute('acct-name');
14
- this.acctId = this.getAttribute('acct-id');
15
- this.joe_id = this.getAttribute('joe-id');
16
- this.render();
17
- var styles = "\n account-info {\n display: block;\n padding: 0;\n background: #fff;\n /* border: 1px solid #eee; */\n margin: 5px auto;\n border-bottom: 1px solid #ccc;\n padding-bottom: 5px;\n }\n acct-row {\n display: block;\n font-weight: bold;\n font-size: 14px;\n padding: 4px;\n }\n acct-row.charge{background: rgba(255,0,0,.1);}\n acct-row.payment{background: rgba(0,255,0,.1);}\n acct-row span.trans-count {\n float: right;\n font-weight: normal;\n }\n \n ";
18
- document.getElementById(_joe.Components.styleTag).innerHTML += styles;
19
- },
20
- render: function() {
21
- var self = this;
22
- var data = {
23
- bank: self.plaidid,
24
- start_date: self.start_date,
25
- end_date: self.end_date
26
- };
27
- self.acctId && (data.account_ids = self.acctId);
28
- $.ajax({
29
- url: '/API/plugin/money/transactions?',
30
- data: data,
31
- success: function(data) {
32
- var transUrl = ("/API/plugin/money/transactions?bank=" + self.plaidid + "&start_date=" + self.start_date + "&end_date=" + self.end_date + ((self.acctId && ("&account_ids=" + self.acctId)) || ''));
33
- if (data.error) {
34
- this.innerHTML = data.error;
35
- return;
36
- }
37
- var transactions = data.transactions;
38
- if (self.acctId && self.acctId != "undefined") {
39
- transactions = data.transactions.filter(function(t) {
40
- return t.account_id == self.acctId;
41
- });
42
- }
43
- var summary = {
44
- total: {
45
- count: 0,
46
- sum: 0
47
- },
48
- charge: {
49
- count: 0,
50
- sum: 0
51
- },
52
- payment: {
53
- count: 0,
54
- sum: 0
55
- }
56
- };
57
- transactions.map(function(tran) {
58
- summary.total.count++;
59
- summary.total.sum += tran.amount;
60
- if (tran.amount > 0) {
61
- summary.charge.count++;
62
- summary.charge.sum += tran.amount;
63
- } else {
64
- summary.payment.count++;
65
- summary.payment.sum += tran.amount;
66
- }
67
- });
68
- function renderRow(obj, label) {
69
- var money = ('$' + (summary[obj].sum).toFixed(2)).replace('$-', '-$');
70
- return ("<acct-row class=\"" + obj + "\">" + money + "\n <span class=\"trans-count\">" + summary[obj].count + " " + (label || 'transactions') + "</span>\n </acct-row>");
71
- }
72
- self.innerHTML = ("<joe-subtitle>" + self.acctName + "</joe-subtitle>\n <joe-subtext>" + self.joe_id + "</joe-subtext>\n " + renderRow('charge', 'charges') + "\n " + renderRow('payment', 'payments') + "\n " + renderRow('total', 'transactions') + "\n <a href=\"" + transUrl + "\" target=\"_blank\" class=\"joe-subtext\">view transactions json</a>\n ");
73
- }
74
- });
75
- },
76
- attributeChangedCallback: function(attr, oldValue, newValue) {
77
- this.render();
78
- },
79
- disconnectedCallback: function() {}
80
- }, {get observedAttributes() {
81
- return [];
82
- }}, $__super);
83
- }(HTMLElement);
84
- window.customElements.define("account-info", AccountInfo);
85
- return {};
86
- });
1
+ $traceurRuntime.registerModule("src", [], function() {
2
+ "use strict";
3
+ var __moduleName = "src";
4
+ var AccountInfo = function($__super) {
5
+ function AccountInfo() {
6
+ $traceurRuntime.superConstructor(AccountInfo).call(this);
7
+ }
8
+ return ($traceurRuntime.createClass)(AccountInfo, {
9
+ connectedCallback: function() {
10
+ this.plaidid = this.getAttribute('plaid-id');
11
+ this.start_date = new Date(this.getAttribute('start-date')).format('Y-m-d');
12
+ this.end_date = new Date(this.getAttribute('end-date')).format('Y-m-d');
13
+ this.acctName = this.getAttribute('acct-name');
14
+ this.acctId = this.getAttribute('acct-id');
15
+ this.joe_id = this.getAttribute('joe-id');
16
+ this.render();
17
+ var styles = "\n account-info {\n display: block;\n padding: 0;\n background: #fff;\n /* border: 1px solid #eee; */\n margin: 5px auto;\n border-bottom: 1px solid #ccc;\n padding-bottom: 5px;\n }\n acct-row {\n display: block;\n font-weight: bold;\n font-size: 14px;\n padding: 4px;\n }\n acct-row.charge{background: rgba(255,0,0,.1);}\n acct-row.payment{background: rgba(0,255,0,.1);}\n acct-row span.trans-count {\n float: right;\n font-weight: normal;\n }\n \n ";
18
+ document.getElementById(_joe.Components.styleTag).innerHTML += styles;
19
+ },
20
+ render: function() {
21
+ var self = this;
22
+ var data = {
23
+ bank: self.plaidid,
24
+ start_date: self.start_date,
25
+ end_date: self.end_date
26
+ };
27
+ self.acctId && (data.account_ids = self.acctId);
28
+ $.ajax({
29
+ url: '/API/plugin/money/transactions?',
30
+ data: data,
31
+ success: function(data) {
32
+ var transUrl = ("/API/plugin/money/transactions?bank=" + self.plaidid + "&start_date=" + self.start_date + "&end_date=" + self.end_date + ((self.acctId && ("&account_ids=" + self.acctId)) || ''));
33
+ if (data.error) {
34
+ this.innerHTML = data.error;
35
+ return;
36
+ }
37
+ var transactions = data.transactions;
38
+ if (self.acctId && self.acctId != "undefined") {
39
+ transactions = data.transactions.filter(function(t) {
40
+ return t.account_id == self.acctId;
41
+ });
42
+ }
43
+ var summary = {
44
+ total: {
45
+ count: 0,
46
+ sum: 0
47
+ },
48
+ charge: {
49
+ count: 0,
50
+ sum: 0
51
+ },
52
+ payment: {
53
+ count: 0,
54
+ sum: 0
55
+ }
56
+ };
57
+ transactions.map(function(tran) {
58
+ summary.total.count++;
59
+ summary.total.sum += tran.amount;
60
+ if (tran.amount > 0) {
61
+ summary.charge.count++;
62
+ summary.charge.sum += tran.amount;
63
+ } else {
64
+ summary.payment.count++;
65
+ summary.payment.sum += tran.amount;
66
+ }
67
+ });
68
+ function renderRow(obj, label) {
69
+ var money = ('$' + (summary[obj].sum).toFixed(2)).replace('$-', '-$');
70
+ return ("<acct-row class=\"" + obj + "\">" + money + "\n <span class=\"trans-count\">" + summary[obj].count + " " + (label || 'transactions') + "</span>\n </acct-row>");
71
+ }
72
+ self.innerHTML = ("<joe-subtitle>" + self.acctName + "</joe-subtitle>\n <joe-subtext>" + self.joe_id + "</joe-subtext>\n " + renderRow('charge', 'charges') + "\n " + renderRow('payment', 'payments') + "\n " + renderRow('total', 'transactions') + "\n <a href=\"" + transUrl + "\" target=\"_blank\" class=\"joe-subtext\">view transactions json</a>\n ");
73
+ }
74
+ });
75
+ },
76
+ attributeChangedCallback: function(attr, oldValue, newValue) {
77
+ this.render();
78
+ },
79
+ disconnectedCallback: function() {}
80
+ }, {get observedAttributes() {
81
+ return [];
82
+ }}, $__super);
83
+ }(HTMLElement);
84
+ window.customElements.define("account-info", AccountInfo);
85
+ return {};
86
+ });
@@ -9160,6 +9160,7 @@ logit(intent)
9160
9160
  iceServers: iceServers,
9161
9161
  sdpSemantics:'plan-b'
9162
9162
  };
9163
+ var useRTC = false;
9163
9164
  this.CONNECT = {
9164
9165
  gotStream:function(stream) {
9165
9166
  logit('Received local stream');
@@ -9172,7 +9173,7 @@ logit(intent)
9172
9173
  self.CONNECT.streams.local = stream;
9173
9174
  self.CONNECT.RTC.addStream(self.CONNECT.streams.local);
9174
9175
  },
9175
- RTC:(window.RTCPeerConnection && new RTCPeerConnection(rtcConfig) || null),
9176
+ RTC:(useRTC && window.RTCPeerConnection && new RTCPeerConnection(rtcConfig) || null),
9176
9177
  newConnection:function(){
9177
9178
  self.CONNECT.RTC = new RTCPeerConnection(rtcConfig)
9178
9179
  self.CONNECT.init();
@@ -9330,7 +9331,7 @@ logit(intent)
9330
9331
  });
9331
9332
  }
9332
9333
  }
9333
- window.RTCPeerConnection && this.CONNECT.init();
9334
+ useRTC && window.RTCPeerConnection && this.CONNECT.init();
9334
9335
  /*-------------------------> end CONNECT <--------------------------------------*/
9335
9336
  /*-------------------------> SERVER <--------------------------------------*/
9336
9337
  this.SERVER = {