json-object-editor 0.10.223 → 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 CHANGED
@@ -1,6 +1,8 @@
1
1
  ## CHANGELOG
2
2
 
3
3
  ### 0.10.200
4
+ 225 - fixed list issues, capp toggle
5
+ 224 - manifest.json & capp menu
4
6
  223 - list custom items updated
5
7
  220 - updated user, added ability for manifest.js
6
8
  - updated AWS uploaders
package/capp/capp.css CHANGED
@@ -429,6 +429,7 @@ capp-header capp-menu-panel{
429
429
  }
430
430
  capp-menu-panel > capp-menu-option{
431
431
  padding:0 5px;
432
+ font-size: 16px;
432
433
  }
433
434
  capp-menu-option:after,
434
435
  capp-menu-content:after,
@@ -468,6 +469,7 @@ capp-menu-option-bonus{
468
469
 
469
470
  .capp-retro capp-menu-option.selected {
470
471
  background-color: rgba(0,0,0,.1);
472
+ font-weight:bold;
471
473
  }
472
474
 
473
475
  html.no-touch capp-menu-option-bonus:hover{
@@ -1063,10 +1065,10 @@ capp-toggles > capp-button{
1063
1065
  }
1064
1066
  capp-toggles > capp-button > svg {
1065
1067
  float: left;
1066
- width: 40px;
1068
+ width: 20px;
1067
1069
  fill: #999;
1068
1070
  margin-left: -10px;
1069
- padding-top:2px;
1071
+ padding-top: 12px;
1070
1072
  }
1071
1073
  capp-toggles > capp-button.active{
1072
1074
  background:#f2f2f2;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-object-editor",
3
- "version": "0.10.223",
3
+ "version": "0.10.225",
4
4
  "description": "JOE the Json Object Editor | Platform Edition",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -6,10 +6,10 @@
6
6
  <meta name='viewport' content='initial-scale=1.0, user-scalable=no' >
7
7
  <title> ${this.webconfig.name} > ${APPNAME} </title>
8
8
  <script src="/JsonObjectEditor/js/libs/adapter-latest.js"></script>
9
- <!-- <link rel="shortcut icon" href="/JsonObjectEditor/favicon.ico" type="image/x-icon">
9
+ <link rel="shortcut icon" href="/JsonObjectEditor/favicon.ico" type="image/x-icon">
10
10
  <link rel="icon" href="/JsonObjectEditor/favicon.ico" type="image/x-icon">
11
11
  <link rel="icon" sizes="192x192" href="/JsonObjectEditor/img/ico/android-icon-192x192.png">
12
- <link rel="apple-touch-icon" sizes="144x144" href="/JsonObjectEditor/img/ico/android-icon-144x144.png" /> -->
12
+ <link rel="apple-touch-icon" sizes="144x144" href="/JsonObjectEditor/img/ico/android-icon-144x144.png" />
13
13
 
14
14
  <meta name="joe-notes" content="template.html template" >
15
15
  <meta name="apple-mobile-web-app-capable" content="yes">
@@ -18,6 +18,10 @@
18
18
  <link rel="stylesheet" href="${JOEPATH}js/plugins/c3/c3.min.css"/>
19
19
  <link rel="stylesheet" href="${JOEPATH}capp/capp.css"/>
20
20
  <link href="/JsonObjectEditor/css/joe.css" rel="stylesheet" type="text/css"/>
21
+ <!--manifest.json-->
22
+ <link rel="manifest" href="/manifest.json">
23
+
24
+ <!--this.settings.joe_icons-->
21
25
  ${this.settings.joe_icons}
22
26
  <!--<script src="${JOEPATH}_joeinclude.js"></script>-->
23
27
 
@@ -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+`<big>Projects</big> (`+pcount+`)</capp-button>
136
- <capp-button class="`+active[1]+`" data-toggle="tasks" onclick="capp.Toggle.toggle(\'tasks\')">`+_joe.schemas.task.menuicon+`<big>Tasks</big> (`+tcount+`)</capp-button>
137
- <capp-button class="`+active[2]+`" data-toggle="pending" onclick="capp.Toggle.toggle(\'pending\')">`+_joe.schemas.instance.menuicon+`<big>Pending</big> (`+pending_count+`)</capp-button>
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
 
@@ -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
- +((list.description &&`<joe-content-section>${list.description}</joe-content-section>`) ||'')
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','!joeUpdated','created'],
172
+ sorter:['!joeUpdated','date','name','list_type','created'],
161
173
  report:{
162
174
  name:'List',
163
175
  info:'basic list view',