json-object-editor 0.10.224 → 0.10.225
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 +1 -0
- package/capp/capp.css +2 -2
- package/css/joe-styles.css +4 -0
- package/css/joe.css +4 -0
- package/package.json +1 -1
- package/server/apps/projectboard.js +3 -3
- package/server/schemas/list.js +15 -3
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/package.json
CHANGED
|
@@ -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;
|
|
@@ -157,7 +169,7 @@ var schema = {
|
|
|
157
169
|
];
|
|
158
170
|
},
|
|
159
171
|
idprop : "_id",
|
|
160
|
-
sorter:['date','name','list_type','
|
|
172
|
+
sorter:['!joeUpdated','date','name','list_type','created'],
|
|
161
173
|
report:{
|
|
162
174
|
name:'List',
|
|
163
175
|
info:'basic list view',
|