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
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "json-object-editor",
3
+ "version": "0.9.901",
4
+ "description": "JOE the Json Object Editor | Platform Edition",
5
+ "main": "app.js",
6
+ "scripts": {
7
+ "prestart": "start grunt --gruntfile grunt/Gruntfile.js",
8
+ "start": "node app.js ",
9
+ "stop": "node node_scripts/stop.js .pid",
10
+ "grunt": "start grunt --gruntfile grunt/Gruntfile.js",
11
+ "test": "echo \"Error: no test specified\" && exit 1",
12
+ "babel-wc": "babel web-components -d es5-build/web-components",
13
+ "babel-joe": "babel js/JsonObjectEditor.jquery.craydent.js -d es5-build/js/JsonObjectEditor_es5.jquery.craydent.js"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://craql@bitbucket.org/craydent/jsonobjecteditor.git"
18
+ },
19
+ "keywords": [
20
+ "joe",
21
+ "json",
22
+ "editor"
23
+ ],
24
+ "author": "Corey Hadden",
25
+ "license": "(c) Copyright 2015-2020 corey hadden, all rights reserved",
26
+ "bugs": {
27
+ "url": "https://github.com/craql/JsonObjectEditor/issues"
28
+ },
29
+ "homepage": "http://craydent.com/JsonObjectEditor/docs.html",
30
+ "devDependencies": {
31
+ "@babel/cli": "^7.7.4",
32
+ "@babel/core": "^7.7.4",
33
+ "@babel/preset-env": "^7.7.4",
34
+ "babel-plugin-transform-es2015-template-literals": "^6.22.0",
35
+ "del": "^2.0.1",
36
+ "grunt-traceur": "^0.5.5",
37
+ "gulp": "^3.9.0",
38
+ "gulp-concat": "^2.6.0",
39
+ "gulp-notify": "^2.2.0"
40
+ },
41
+ "dependencies": {
42
+ "JsonObjectEditor": "file:grunt",
43
+ "aws-sdk": "^2.358.0",
44
+ "basic-auth": "^1.0.3",
45
+ "body-parser": "^1.18.3",
46
+ "compression": "^1.7.3",
47
+ "cookie-parser": "^1.4.1",
48
+ "craydent": "^0.8.9",
49
+ "express": "^4.16.4",
50
+ "jwt-decode": "^2.2.0",
51
+ "mailgun": "^0.5.0",
52
+ "mongojs": "^2.3.0",
53
+ "mysql": "^2.16.0",
54
+ "nodemailer": "^2.7.2",
55
+ "nodemailer-ses-transport": "^1.4.0",
56
+ "opener": "^1.4.3",
57
+ "pem": "^1.13.2",
58
+ "plaid": "^3.1.1",
59
+ "renderizer": "^1.1.0",
60
+ "socket.io": "^2.2.0"
61
+ }
62
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-object-editor",
3
- "version": "0.9.89",
3
+ "version": "0.10.000",
4
4
  "description": "JOE the Json Object Editor | Platform Edition",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -27,19 +27,7 @@
27
27
  "url": "https://github.com/craql/JsonObjectEditor/issues"
28
28
  },
29
29
  "homepage": "http://craydent.com/JsonObjectEditor/docs.html",
30
- "devDependencies": {
31
- "@babel/cli": "^7.7.4",
32
- "@babel/core": "^7.7.4",
33
- "@babel/preset-env": "^7.7.4",
34
- "babel-plugin-transform-es2015-template-literals": "^6.22.0",
35
- "del": "^2.0.1",
36
- "grunt-traceur": "^0.5.5",
37
- "gulp": "^3.9.0",
38
- "gulp-concat": "^2.6.0",
39
- "gulp-notify": "^2.2.0"
40
- },
41
30
  "dependencies": {
42
- "JsonObjectEditor": "file:grunt",
43
31
  "aws-sdk": "^2.358.0",
44
32
  "basic-auth": "^1.0.3",
45
33
  "body-parser": "^1.18.3",
@@ -58,5 +46,16 @@
58
46
  "plaid": "^3.1.1",
59
47
  "renderizer": "^1.1.0",
60
48
  "socket.io": "^2.2.0"
49
+ },
50
+ "devDependencies": {
51
+ "@babel/cli": "^7.7.4",
52
+ "@babel/core": "^7.7.4",
53
+ "@babel/preset-env": "^7.7.4",
54
+ "babel-plugin-transform-es2015-template-literals": "^6.22.0",
55
+ "del": "^2.0.1",
56
+ "grunt-traceur": "^0.5.5",
57
+ "gulp": "^3.9.0",
58
+ "gulp-concat": "^2.6.0",
59
+ "gulp-notify": "^2.2.0"
61
60
  }
62
61
  }
@@ -181,15 +181,18 @@ var schema = {
181
181
  var height = 32;
182
182
  var balance = parseFloat(item.starting_balance);
183
183
  var amount;
184
- var html ='<table class="joe-table">'+
185
- '<colgroup>'+
186
- '<col span="1" style="width: 40px;">'+
184
+ var html ='<table class="joe-table ledger-table fixed">'+
185
+ //'<colgroup>'+
186
+ //00ffbf
187
+ '<col span="1" style="width: 4px;">'+
188
+ '<col span="1" style="width: 50px;">'+
189
+ '<col span="1" >'+
187
190
  //'<col span="1" style="width: 40px;">'+
188
- '<col span="1" >\
189
- <col span="1" >\
190
- <col span="1" style="width:120px;">\
191
- <col span="1" >\
192
- </colgroup>'
191
+ '<col span="1" style="width:calc(100%-250px);">\
192
+ <col span="1" style="width:100px;">\
193
+ <col span="1" style="width:100px;">'
194
+
195
+ // +'</colgroup>'
193
196
  +'<tr>'
194
197
  //+'<th width=40></th><th width=40></th>'
195
198
  +'<th colspan="4" align="left">Starting Balance</th><td style="width:75px;">'
@@ -275,6 +278,22 @@ var schema = {
275
278
  transaction.tdate = tdate;
276
279
  transactions.push($.extend({str_tdate:$c.format(new Date(tdate),'Y/m/d')},trans,pretrans,transaction));
277
280
 
281
+ }else if(tdate.isArray()){
282
+ tdate.map((ctd,i)=>{
283
+ let transaction = {};
284
+ //fix transations missing leading 0
285
+ if(ctd.indexOf('/') == 1){
286
+ ctd = '0'+ctd;
287
+ }
288
+ var pretrans = transactionPassthrough(trans,ctd);
289
+ transaction.amount = (trans.transaction_type == 'credit') ? pretrans.amount : -pretrans.amount;
290
+ // if(pretrans.status == 'paid' || pretrans.status == "autopay"){
291
+ // pending += transaction.amount;
292
+ // }
293
+ transaction.tdate = ctd;
294
+ transactions.push($.extend({str_tdate:$c.format(new Date(ctd),'Y/m/d')},trans,pretrans,transaction));
295
+ })
296
+
278
297
  }
279
298
  }
280
299
 
@@ -375,7 +394,7 @@ var schema = {
375
394
 
376
395
 
377
396
  budget_html += '<tr data-budgetid="'+bud._id+'" class="row-divider">'
378
- + '<td colspan="4">'+bud.name+remaining_str+'</td>'
397
+ + '<td colspan="5">'+bud.name+remaining_str+'</td>'
379
398
  //+ '<td>$' + budget_amount + '</td>'
380
399
  +'<td>' + budget_amount + '</td>'
381
400
  +'<td align="right" class="left-border" style="font-weight:500;">' +('$'+balance).replace('$-','-$') + '</td>'
@@ -383,20 +402,23 @@ var schema = {
383
402
  budget_html+= subhtml;
384
403
  });
385
404
  //_bmResponse(bm,'budget loop')
386
- budget_html = '<tr><th colspan="3" align="left">Budgeted Spending <br/><small>total</small></th>'
387
- +'<th colspan="2" align="right">'+('$'+bst).replace('$-','-$')+'</th><td></td></tr>'+budget_html;
405
+ budget_html = '<tr class="budget-header"><th colspan="4" align="left">Budgeted Spending <br/><small>total</small></th>'
406
+ +'<th colspan="2" align="right">'+('$'+bst).replace('$-','-$')
407
+ +'</th>'
408
+ //+'<td></td>'
409
+ +'</tr>'+budget_html;
388
410
 
389
411
  //var ending = _joe.getField('transactions').getEndingTotals();
390
412
  var ending = _joe.schemas.ledger.methods.getEndingTotals(ledger);
391
413
  ledger.ending_balance = balance;
392
414
  var remaining_withdrawals = _joe.Utils.toDollars(ending.pending+ending.unspent);
393
415
  html+=budget_html+
394
- '<tr><th colspan="5" align="left">Ending Balance</th><td align="right"><b>$'+balance+'</b></td></tr>'
395
- +'<tr><td colspan="3"></td><th colspan="2" align="left">Unspent</th><td id="unspent">$'
416
+ '<tr class="end-bal-header"><th colspan="6" align="left">Ending Balance</th><td align="right"><b>$'+balance+'</b></td></tr>'
417
+ +'<tr><td colspan="4"></td><th colspan="2" align="left">Unspent</th><td id="unspent">$'
396
418
  +_joe.Utils.toDollars(ending.unspent)+'</td></tr>'
397
- +'<tr><td colspan="3"></td><th colspan="2" align="left">Pending</th><td id="pending">$'
419
+ +'<tr><td colspan="4"></td><th colspan="2" align="left">Pending</th><td id="pending">$'
398
420
  +_joe.Utils.toDollars(ending.pending)+'</td></tr>'
399
- +'<tr><td colspan="3"></td><th colspan="2" align="left">Remaining Withdrawals</th><td id="total_spending">$'+remaining_withdrawals+'</td></tr>'
421
+ +'<tr><td colspan="4"></td><th colspan="2" align="left">Remaining Withdrawals</th><td id="total_spending">$'+remaining_withdrawals+'</td></tr>'
400
422
 
401
423
  // +'<tr><td colspan="3"></td><th colspan="2" align="left">Total</th><td id="total_spending">$'+ending.total+'</td></tr>'
402
424
  +'</tbody></table>';
@@ -577,6 +599,7 @@ var schema = {
577
599
  }
578
600
  case 'biweekly':
579
601
  var next ='';
602
+ var timesInRange = [];
580
603
  var tdate = new Date(t.transaction_date);
581
604
  if(tdate >= startDate && tdate <= endDate){
582
605
  return (tdate.getMonth()+1)+'/'+("0" + tdate.getDate()).slice(-2)+'/'+tdate.getFullYear();
@@ -585,10 +608,16 @@ var schema = {
585
608
 
586
609
  while(tdate <= endDate) {
587
610
  tdate.setHours(24 * 14);
611
+ // if(tdate >= startDate && tdate <= endDate){
612
+ // return (tdate.getMonth()+1)+'/'+("0" + tdate.getDate()).slice(-2)+'/'+tdate.getFullYear();
613
+ // }
588
614
  if(tdate >= startDate && tdate <= endDate){
589
- return (tdate.getMonth()+1)+'/'+("0" + tdate.getDate()).slice(-2)+'/'+tdate.getFullYear();
615
+ timesInRange.push( (tdate.getMonth()+1)+'/'+("0" + tdate.getDate()).slice(-2)+'/'+tdate.getFullYear());
590
616
  }
591
617
  }
618
+ if(timesInRange.length > 0){
619
+ return timesInRange;
620
+ }
592
621
  return true;
593
622
  }
594
623
  case 'monthly':
@@ -646,6 +675,12 @@ var schema = {
646
675
  var id = (t._id.contains('_'))?(t._id).substr(0,t._id.indexOf('_')):t._id;
647
676
  var specs = specs || {};
648
677
  var bgcolor = (index%2==0)?'#f4f4f4':'transparent';
678
+ var stripeColor = 'transparent';
679
+ if(t.paycheck){
680
+ stripeColor = "#00ffbf";
681
+ }else{
682
+ stripeColor = (t.transaction_type =="credit")?'#00cc0044':'#cc000044';
683
+ }
649
684
  var action = '_joe.getField(\'transactions\').setStatus(\''+t._id+'\')';
650
685
  var trans_action = 'goJoe(_joe.search(\''+id+'\')[0],{schema:\'transaction\'})';
651
686
  var input_action='_joe.getField(\'transactions\').updateAmount(this.value,\''+t._id+'\')';
@@ -667,6 +702,7 @@ var schema = {
667
702
 
668
703
  var html =
669
704
  '<tr data-transid="'+t._id+'" class="'+(specs.trcss||'')+'" style="background-color:'+(t.color||'')+';">'
705
+ +`<td class="trans-stripe" style="background-color:${stripeColor};"></td>`
670
706
  +'<td onclick="'+trans_action+'" class="joe-table-button joe-view-button" title="view">&nbsp;</td>'
671
707
  //+((t.paycheck)?'': '<td onclick="'+action+'" class="joe-table-button joe-submit-button" title="status">&nbsp;</td>')
672
708
  +tname
@@ -26,6 +26,11 @@ class JoeCard extends HTMLElement {
26
26
  padding: 0px 5px 5px 5px;
27
27
  background:#fff;
28
28
  }
29
+ joe-card.w50{
30
+ width: calc(50% - 3px);
31
+
32
+ display: inline-block;
33
+ }
29
34
  `;
30
35
  _joe.Components.appendStyles(styles);
31
36