json-object-editor 0.10.431 → 0.10.432
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 -1
- package/js/JsonObjectEditor.jquery.craydent.js +1 -1
- package/js/joe-full.js +1 -1
- package/js/joe.js +1 -1
- package/package.json +1 -1
- package/server/fields/core.js +10 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
## CHANGELOG
|
|
2
2
|
|
|
3
3
|
### 0.10.400
|
|
4
|
-
|
|
4
|
+
432 - minimal updates
|
|
5
|
+
431 - reloadable, plugin-utils, ai chat beta
|
|
5
6
|
430 - JOE Ai chat functional for alpha experiences.
|
|
6
7
|
424 - fixed formbuilder to explicitly call out jQuery
|
|
7
8
|
423 - added contextual items to chat and flattened them.
|
|
@@ -2992,7 +2992,7 @@ this.renderHTMLContent = function(specs){
|
|
|
2992
2992
|
show = ' no-section ';
|
|
2993
2993
|
hidden=true;
|
|
2994
2994
|
}
|
|
2995
|
-
var secname = fillTemplate((prop.display||prop.section_label||prop.section_start),self.current.object);
|
|
2995
|
+
var secname = fillTemplate(self.propAsFuncOrValue((prop.display||prop.section_label||prop.section_start),self.current.object),self.current.object);
|
|
2996
2996
|
var secID = prop.section_start;
|
|
2997
2997
|
if(!secname || !secID){
|
|
2998
2998
|
return '';
|
package/js/joe-full.js
CHANGED
|
@@ -14297,7 +14297,7 @@ this.renderHTMLContent = function(specs){
|
|
|
14297
14297
|
show = ' no-section ';
|
|
14298
14298
|
hidden=true;
|
|
14299
14299
|
}
|
|
14300
|
-
var secname = fillTemplate((prop.display||prop.section_label||prop.section_start),self.current.object);
|
|
14300
|
+
var secname = fillTemplate(self.propAsFuncOrValue((prop.display||prop.section_label||prop.section_start),self.current.object),self.current.object);
|
|
14301
14301
|
var secID = prop.section_start;
|
|
14302
14302
|
if(!secname || !secID){
|
|
14303
14303
|
return '';
|
package/js/joe.js
CHANGED
|
@@ -2998,7 +2998,7 @@ this.renderHTMLContent = function(specs){
|
|
|
2998
2998
|
show = ' no-section ';
|
|
2999
2999
|
hidden=true;
|
|
3000
3000
|
}
|
|
3001
|
-
var secname = fillTemplate((prop.display||prop.section_label||prop.section_start),self.current.object);
|
|
3001
|
+
var secname = fillTemplate(self.propAsFuncOrValue((prop.display||prop.section_label||prop.section_start),self.current.object),self.current.object);
|
|
3002
3002
|
var secID = prop.section_start;
|
|
3003
3003
|
if(!secname || !secID){
|
|
3004
3004
|
return '';
|
package/package.json
CHANGED
package/server/fields/core.js
CHANGED
|
@@ -70,8 +70,9 @@ var fields = {
|
|
|
70
70
|
'name':{type:'text',onblur:'_joe.TITLE.set()'},
|
|
71
71
|
instructions_format:{type:'select',values:['wysiwyg','code','text',], rerender:'instructions',display:'Instructions Format'},
|
|
72
72
|
instructions:{
|
|
73
|
-
height:'
|
|
73
|
+
height:'500px',
|
|
74
74
|
display:'Instructions',
|
|
75
|
+
default:'code',
|
|
75
76
|
type:function(item){
|
|
76
77
|
if(!item.instructions_format || item.instructions_format == 'text'){
|
|
77
78
|
return 'rendering';
|
|
@@ -182,8 +183,14 @@ var fields = {
|
|
|
182
183
|
return status.color||'';
|
|
183
184
|
}
|
|
184
185
|
},
|
|
185
|
-
tags:{type:'group',icon:'tag',
|
|
186
|
-
|
|
186
|
+
tags:{type:'group',icon:'tag',hidden:function(obj){
|
|
187
|
+
let tags = _joe.Data.tag.filter(function(tag){
|
|
188
|
+
return !(tag.datasets.indexOf(item.itemtype) == -1);
|
|
189
|
+
});
|
|
190
|
+
if(!tags.length){
|
|
191
|
+
return true;
|
|
192
|
+
}
|
|
193
|
+
},
|
|
187
194
|
values:function(item){
|
|
188
195
|
var tags = _joe.Data.tag.filter(function(tag){
|
|
189
196
|
return !(tag.datasets.indexOf(item.itemtype) == -1);
|