json-object-editor 0.10.224 → 0.10.226
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.
- package/CHANGELOG.md +2 -0
- package/capp/capp.css +2 -2
- package/css/joe-styles.css +4 -0
- package/css/joe.css +4 -0
- package/js/joe-full.js +2 -1
- package/js/joe.js +2 -4
- package/package.json +2 -1
- package/server/apps/projectboard.js +3 -3
- package/server/schemas/list.js +34 -4
package/CHANGELOG.md
CHANGED
package/capp/capp.css
CHANGED
|
@@ -1065,10 +1065,10 @@ capp-toggles > capp-button{
|
|
|
1065
1065
|
}
|
|
1066
1066
|
capp-toggles > capp-button > svg {
|
|
1067
1067
|
float: left;
|
|
1068
|
-
width:
|
|
1068
|
+
width: 20px;
|
|
1069
1069
|
fill: #999;
|
|
1070
1070
|
margin-left: -10px;
|
|
1071
|
-
padding-top:
|
|
1071
|
+
padding-top: 12px;
|
|
1072
1072
|
}
|
|
1073
1073
|
capp-toggles > capp-button.active{
|
|
1074
1074
|
background:#f2f2f2;
|
package/css/joe-styles.css
CHANGED
|
@@ -2006,6 +2006,10 @@ joe-list-item.deletable {
|
|
|
2006
2006
|
position: relative;
|
|
2007
2007
|
border-bottom:1px solid #eee;
|
|
2008
2008
|
}
|
|
2009
|
+
.joe-panel-content-option-expander joe-list-item.custom-item {
|
|
2010
|
+
padding: 10px;
|
|
2011
|
+
margin: 10px 0;
|
|
2012
|
+
}
|
|
2009
2013
|
swipe-option{
|
|
2010
2014
|
position:absolute;
|
|
2011
2015
|
top:0;
|
package/css/joe.css
CHANGED
|
@@ -2492,6 +2492,10 @@ joe-list-item.deletable {
|
|
|
2492
2492
|
position: relative;
|
|
2493
2493
|
border-bottom:1px solid #eee;
|
|
2494
2494
|
}
|
|
2495
|
+
.joe-panel-content-option-expander joe-list-item.custom-item {
|
|
2496
|
+
padding: 10px;
|
|
2497
|
+
margin: 10px 0;
|
|
2498
|
+
}
|
|
2495
2499
|
swipe-option{
|
|
2496
2500
|
position:absolute;
|
|
2497
2501
|
top:0;
|
package/js/joe-full.js
CHANGED
|
@@ -2560,7 +2560,8 @@ if (__thisIsNewer) {
|
|
|
2560
2560
|
error('Queue', e);
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
2563
|
-
function Set (records) {
|
|
2563
|
+
/*function Set (records) {*/
|
|
2564
|
+
window.Set = function(records) {
|
|
2564
2565
|
/*|{
|
|
2565
2566
|
"info": "Collection class that filters out duplicate values",
|
|
2566
2567
|
"category": "Global",
|
package/js/joe.js
CHANGED
|
@@ -9382,7 +9382,7 @@ logit(intent)
|
|
|
9382
9382
|
logit(response);
|
|
9383
9383
|
var bucket = response.bucket || (_joe.Data.setting.where({name:'AWS_BUCKETNAME'})[0] || {value:''}).value;
|
|
9384
9384
|
var region = (_joe.Utils.Settings('AWS_S3CONFIG') ||{}).region;
|
|
9385
|
-
var prefix =
|
|
9385
|
+
var prefix = 'https://s3.'+((region && region +'.')||'')+'amazonaws.com/'+bucket+'/';
|
|
9386
9386
|
var url = prefix+response.Key;
|
|
9387
9387
|
var filename = response.Key.replace(self.current.object._id+'/','');
|
|
9388
9388
|
//TODO: change file status in list.
|
|
@@ -9421,9 +9421,7 @@ logit(intent)
|
|
|
9421
9421
|
logit(data);
|
|
9422
9422
|
var bucket = data.bucket || (_joe.Data.setting.where({name:'AWS_BUCKETNAME'})[0] || {value:''}).value;
|
|
9423
9423
|
|
|
9424
|
-
|
|
9425
|
-
var prefix = (_joe.Data.setting.where({name:'AWS_S3PREFIX'})[0] || {value:''}).value || 'https://s3.'+((region && region +'.')||'')+'amazonaws.com/'+bucket+'/';
|
|
9426
|
-
|
|
9424
|
+
var prefix = 'https://s3.amazonaws.com/'+bucket+'/';
|
|
9427
9425
|
var url = prefix+data.Key;
|
|
9428
9426
|
if(field.url_field){
|
|
9429
9427
|
var nprop = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "json-object-editor",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.226",
|
|
4
4
|
"description": "JOE the Json Object Editor | Platform Edition",
|
|
5
5
|
"main": "app.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"keywords": [
|
|
20
20
|
"joe",
|
|
21
21
|
"json",
|
|
22
|
+
"object",
|
|
22
23
|
"editor"
|
|
23
24
|
],
|
|
24
25
|
"author": "Corey Hadden",
|
|
@@ -132,9 +132,9 @@ var ProjectBoard = function(){
|
|
|
132
132
|
}
|
|
133
133
|
var togglers =
|
|
134
134
|
`<capp-toggles>
|
|
135
|
-
<capp-button class="`+active[0]+`" data-toggle="projects" onclick="capp.Toggle.toggle(\'projects\')">`+_joe.schemas.project.menuicon
|
|
136
|
-
<capp-button class="`+active[1]+`" data-toggle="tasks" onclick="capp.Toggle.toggle(\'tasks\')">`+_joe.schemas.task.menuicon
|
|
137
|
-
<capp-button class="`+active[2]+`" data-toggle="pending" onclick="capp.Toggle.toggle(\'pending\')">`+_joe.schemas.instance.menuicon
|
|
135
|
+
<capp-button class="`+active[0]+`" data-toggle="projects" onclick="capp.Toggle.toggle(\'projects\')">`+_joe.schemas.project.menuicon+`Projects <small>(`+pcount+`)</small></capp-button>
|
|
136
|
+
<capp-button class="`+active[1]+`" data-toggle="tasks" onclick="capp.Toggle.toggle(\'tasks\')">`+_joe.schemas.task.menuicon+`Tasks <small>(`+tcount+`)</small></capp-button>
|
|
137
|
+
<capp-button class="`+active[2]+`" data-toggle="pending" onclick="capp.Toggle.toggle(\'pending\')">`+_joe.schemas.instance.menuicon+`Pending <small>(`+pending_count+`)</small></capp-button>
|
|
138
138
|
</capp-toggles>`;
|
|
139
139
|
|
|
140
140
|
|
package/server/schemas/list.js
CHANGED
|
@@ -43,8 +43,20 @@ var schema = {
|
|
|
43
43
|
let itemObj = $J.get(item);
|
|
44
44
|
return _joe.renderFieldListItem(itemObj,'',itemObj.itemType);
|
|
45
45
|
}).join('')
|
|
46
|
-
+'</joe-content-section>'
|
|
47
|
-
|
|
46
|
+
+'</joe-content-section>';
|
|
47
|
+
if(list.custom_items && list.custom_items.length){
|
|
48
|
+
h+=`<joe-content-section class="no-padding">${
|
|
49
|
+
list.custom_items.map(ci=>{
|
|
50
|
+
var done = (ci.sub_complete)?'joe-strike':'';
|
|
51
|
+
return`<joe-list-item class="custom-item"><joe-subtext>${ci.type ||''}</joe-subtext>
|
|
52
|
+
<joe-title class="${done}">${ci.name}</joe-title></joe-list-item>`;
|
|
53
|
+
}).join(' ')
|
|
54
|
+
}</joe-content-section>` ;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
h+=((list.description &&`<joe-content-section>${list.description}</joe-content-section>`) ||'')
|
|
48
60
|
+`<joe-subtext class="fright">created <b>${_joe.Utils.toDateString(list.created)}</b></joe-subtext>`;
|
|
49
61
|
|
|
50
62
|
return h;
|
|
@@ -53,7 +65,24 @@ var schema = {
|
|
|
53
65
|
// return [{name:'view',action:'window.open(\'/API/plugin/reportbuilder/standard?itemid=${_id}\')'}];
|
|
54
66
|
// },
|
|
55
67
|
subsets:function(){
|
|
56
|
-
var filters = [
|
|
68
|
+
var filters = [
|
|
69
|
+
{name:'ACTIVE',default:true,filter:
|
|
70
|
+
function(){
|
|
71
|
+
|
|
72
|
+
if(!this.status){
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
else{
|
|
76
|
+
var s = _joe.Cache.get(this.status);
|
|
77
|
+
//var s = $.get(this.status);
|
|
78
|
+
if(s.inactive || s.terminal || s.default){
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
];
|
|
57
86
|
var tags = _joe.Data.tag.filter(function(tag){
|
|
58
87
|
if(tag.datasets.indexOf(_joe.current.schema.__schemaname) != -1){
|
|
59
88
|
filters.push({name:tag.name,
|
|
@@ -61,6 +90,7 @@ var schema = {
|
|
|
61
90
|
});
|
|
62
91
|
}
|
|
63
92
|
});
|
|
93
|
+
|
|
64
94
|
filters.push({name:'untagged',
|
|
65
95
|
filter:{$or:[{tags:{$size:0}},{tags:{$exists:false}}]}
|
|
66
96
|
})
|
|
@@ -157,7 +187,7 @@ var schema = {
|
|
|
157
187
|
];
|
|
158
188
|
},
|
|
159
189
|
idprop : "_id",
|
|
160
|
-
sorter:['date','name','list_type','
|
|
190
|
+
sorter:['!joeUpdated','date','name','list_type','created'],
|
|
161
191
|
report:{
|
|
162
192
|
name:'List',
|
|
163
193
|
info:'basic list view',
|