json-object-editor 0.10.443 → 0.10.444

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 (52) hide show
  1. package/css/jif/Read Me.txt +5 -5
  2. package/css/jif/demo-files/demo.css +153 -153
  3. package/css/jif/demo-files/demo.js +30 -30
  4. package/css/jif/demo.html +285 -285
  5. package/css/jif/fonts/joeiconfont.svg +24 -24
  6. package/css/jif/ie7/ie7.css +45 -45
  7. package/css/jif/ie7/ie7.js +46 -46
  8. package/css/jif/selection.json +573 -573
  9. package/css/joe.css +12 -12
  10. package/css/jquery-ui-1.10.4.custom.min.css +5 -5
  11. package/css/jquery-ui.min.css +6 -6
  12. package/css/jquery.timepicker.css +72 -72
  13. package/es5-build/web-components/account-info.js +136 -136
  14. package/es5-build/web-components/capp-components.js +160 -160
  15. package/es5-build/web-components/capp-panel.js +85 -85
  16. package/es5-build/web-components/capp-view.js +73 -73
  17. package/es5-build/web-components/joe-autocomplete.js +149 -149
  18. package/es5-build/web-components/joe-button.js +132 -132
  19. package/es5-build/web-components/joe-card.js +92 -92
  20. package/es5-build/web-components/joe-component.js +74 -74
  21. package/es5-build/web-components/joe-field.js +70 -70
  22. package/es5-build/web-components/joe-list-item.js +176 -176
  23. package/es5-build/web-components/joe-user-cube.js +100 -100
  24. package/es5-build/web-components/report-components.js +133 -133
  25. package/grunt/build +86 -86
  26. package/grunt/package-lock.json +9105 -9105
  27. package/grunt/package.json +47 -47
  28. package/grunt/src +86 -86
  29. package/js/joe.js +10 -10
  30. package/js/leaflet.js +8 -8
  31. package/js/libs/adapter-latest.js +4400 -4400
  32. package/js/libs/craydent-1.9.2.js +11741 -11741
  33. package/js/libs/craydent-upload-2.0.0.js +394 -394
  34. package/js/libs/hammer.min.208.js +6 -6
  35. package/js/libs/jquery-3.5.1.min.js +2 -2
  36. package/js/libs/moment.min.js +6 -6
  37. package/js/native-shim.js +46 -46
  38. package/js/plugins/c3/c3.min.js +5 -5
  39. package/js/plugins/c3/d3.v3.min.js +4 -4
  40. package/js/plugins/threejs/Detector.js +78 -78
  41. package/js/plugins/threejs/LICENSE +21 -21
  42. package/js/plugins/threejs/MTLLoader.js +417 -417
  43. package/js/plugins/threejs/OBJLoader.js +564 -564
  44. package/js/plugins/threejs/OrbitControls.js +1037 -1037
  45. package/js/plugins/threejs/README.md +9 -9
  46. package/js/plugins/threejs/assets/female-croupier-2013-03-26.mtl +3 -3
  47. package/js/plugins/threejs/index.html +178 -178
  48. package/js/plugins/threejs/three.js +41507 -41507
  49. package/package.json +2 -2
  50. package/server/modules/Server.js +21 -1
  51. package/server/plugins/chatgpt-assistants.js +359 -359
  52. package/server/plugins/chatgpt-tools.js +79 -79
@@ -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
+ });