json-object-editor 0.10.440 → 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 (60) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build.js +61 -0
  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.css +15 -9
  12. package/css/joe.min.css +7 -0
  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/web-components/account-info.js +136 -136
  17. package/es5-build/web-components/capp-components.js +160 -160
  18. package/es5-build/web-components/capp-panel.js +85 -85
  19. package/es5-build/web-components/capp-view.js +73 -73
  20. package/es5-build/web-components/joe-autocomplete.js +149 -149
  21. package/es5-build/web-components/joe-button.js +132 -132
  22. package/es5-build/web-components/joe-card.js +92 -92
  23. package/es5-build/web-components/joe-component.js +74 -74
  24. package/es5-build/web-components/joe-field.js +70 -70
  25. package/es5-build/web-components/joe-list-item.js +176 -176
  26. package/es5-build/web-components/joe-user-cube.js +100 -100
  27. package/es5-build/web-components/report-components.js +133 -133
  28. package/grunt/build +86 -86
  29. package/grunt/package-lock.json +9105 -9105
  30. package/grunt/package.json +47 -47
  31. package/grunt/src +86 -86
  32. package/js/joe.js +12 -8
  33. package/js/joe.min.js +1 -15
  34. package/js/leaflet.js +8 -8
  35. package/js/libs/adapter-latest.js +4400 -4400
  36. package/js/libs/craydent-1.9.2.js +11741 -11741
  37. package/js/libs/craydent-upload-2.0.0.js +394 -394
  38. package/js/libs/hammer.min.208.js +6 -6
  39. package/js/libs/jquery-3.5.1.min.js +2 -2
  40. package/js/libs/moment.min.js +6 -6
  41. package/js/native-shim.js +46 -46
  42. package/js/plugins/c3/c3.min.js +5 -5
  43. package/js/plugins/c3/d3.v3.min.js +4 -4
  44. package/js/plugins/threejs/Detector.js +78 -78
  45. package/js/plugins/threejs/LICENSE +21 -21
  46. package/js/plugins/threejs/MTLLoader.js +417 -417
  47. package/js/plugins/threejs/OBJLoader.js +564 -564
  48. package/js/plugins/threejs/OrbitControls.js +1037 -1037
  49. package/js/plugins/threejs/README.md +9 -9
  50. package/js/plugins/threejs/assets/female-croupier-2013-03-26.mtl +3 -3
  51. package/js/plugins/threejs/index.html +178 -178
  52. package/js/plugins/threejs/three.js +41507 -41507
  53. package/package.json +9 -4
  54. package/server/fields/core.js +1 -1
  55. package/server/modules/Server.js +21 -1
  56. package/server/plugins/chatgpt-assistants.js +359 -359
  57. package/server/plugins/chatgpt-tools.js +79 -79
  58. package/server/plugins/engagementTracker.js +78 -0
  59. package/server/schemas/engagement_event.js +33 -0
  60. package/server/schemas/page.js +18 -1
package/grunt/build CHANGED
@@ -1,86 +1,86 @@
1
- $traceurRuntime.registerModule("build/", [], function() {
2
- "use strict";
3
- var __moduleName = "build/";
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("build/", [], function() {
2
+ "use strict";
3
+ var __moduleName = "build/";
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
+ });