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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-object-editor",
3
- "version": "0.10.440",
3
+ "version": "0.10.444",
4
4
  "description": "JOE the Json Object Editor | Platform Edition",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -10,7 +10,8 @@
10
10
  "grunt": "start grunt --gruntfile grunt/Gruntfile.js",
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
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"
13
+ "babel-joe": "babel js/JsonObjectEditor.jquery.craydent.js -d es5-build/js/JsonObjectEditor_es5.jquery.craydent.js",
14
+ "build": "node build.js"
14
15
  },
15
16
  "repository": {
16
17
  "type": "git",
@@ -44,7 +45,7 @@
44
45
  "mysql": "^2.16.0",
45
46
  "nodemailer": "^2.7.2",
46
47
  "nodemailer-ses-transport": "^1.4.0",
47
- "openai": "^5.0.1",
48
+ "openai": "^5.22.0",
48
49
  "opener": "^1.4.3",
49
50
  "pem": "^1.13.2",
50
51
  "plaid": "^13.1.0",
@@ -56,10 +57,14 @@
56
57
  "@babel/core": "^7.7.4",
57
58
  "@babel/preset-env": "^7.7.4",
58
59
  "babel-plugin-transform-es2015-template-literals": "^6.22.0",
60
+ "clean-css-cli": "^5.6.3",
61
+ "concat": "^1.0.3",
59
62
  "del": "^2.0.1",
63
+ "fs-extra": "^11.3.0",
60
64
  "grunt-traceur": "^0.5.5",
61
65
  "gulp": "^3.9.0",
62
66
  "gulp-concat": "^2.6.0",
63
- "gulp-notify": "^2.2.0"
67
+ "gulp-notify": "^2.2.0",
68
+ "terser": "^5.43.1"
64
69
  }
65
70
  }
@@ -256,7 +256,7 @@ var fields = {
256
256
  return html;
257
257
  }},
258
258
  milestone:{name:'milestone',width:'100px'},
259
- tasks:{display:'Incomplete Tasks',type:'content',icon:'task',run:function(item){
259
+ tasks:{display:'Incomplete Tasks',type:'content',icon:'task',reloadable:true, run:function(item){
260
260
  var tasks = (_joe.Data.task.where({$and:[{project:item._id},{complete:{$in:[false,'false',undefined]}}]})||[]).sortBy('priority,!due_date,project_phase');
261
261
  var html = '';
262
262
  html+= _joe.renderMenuButtons({display:'view all '+tasks.length+' tasks',
@@ -399,6 +399,19 @@ server.get(['/API/dataset/:names','/API/datasets/:names'],auth,function(req,res,
399
399
  });
400
400
 
401
401
  //SCHEMA
402
+ // GET /API/joe/schemas → ["condition","diagnostic",...]
403
+ server.get('/API/list/schemas', auth, function(req, res){
404
+ try {
405
+ const names =
406
+ (global._joe && _joe.schemas && Object.keys(_joe.schemas)) ||
407
+ (JOE && JOE.Schemas && JOE.Schemas.schema && Object.keys(JOE.Schemas.schema)) ||
408
+ (typeof __collectionNames !== 'undefined' && __collectionNames) ||
409
+ [];
410
+ res.json(names.sort());
411
+ } catch (e) {
412
+ res.status(500).json({ error: e.message || 'Unknown error' });
413
+ }
414
+ });
402
415
  server.get(['/API/schema/:names','/API/schemas/:names'],auth,function(req,res,next){
403
416
  var sBM = new Benchmarker();
404
417
  var schemaname = (req.params.names||'').split(',');
@@ -731,7 +744,14 @@ server.get(['/JOE/','/JOE/:appname'],auth,function(req,res,next){
731
744
 
732
745
  //var collections = [];
733
746
  let uappsObj = [];
734
- USER.apps.map(a=>{
747
+ var users = (JOE.Data && JOE.Data.user) || [];
748
+ var USERAPPS = [];;
749
+ if(!users.length){
750
+ USERAPPS = [{name:'joe',title:'JOE',description:'The JSON Object Editor'}];
751
+ }else if(USER){
752
+ USERAPPS = USER.apps;
753
+ }
754
+ USERAPPS.map(a=>{
735
755
  let aa = Apps[a]||{};
736
756
  uappsObj.push({name:a,title:aa.title,description:aa.description});
737
757
  });