json-object-editor 0.10.639 → 0.10.641

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-object-editor",
3
- "version": "0.10.639",
3
+ "version": "0.10.641",
4
4
  "description": "JOE the Json Object Editor | Platform Edition",
5
5
  "main": "app.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -59,7 +59,7 @@ JOE is software that allows you to manage data models via JSON objects. There ar
59
59
  - `saveObject({ object })`
60
60
  - `saveObjects({ objects, stopOnError?, concurrency? })`
61
61
  - Batch save with per-item history/events. Defaults: `stopOnError=false`, `concurrency=5`.
62
- - Each object must include `itemtype`; `_id` and `joeUpdated` are set when omitted.
62
+ - Each object must include `itemtype`; `_id` and `joeUpdated` are set when omitted. `created` is set on first save when missing.
63
63
  - Return shape: `{ results, errors, saved, failed }`.
64
64
 
65
65
  - Quick tests (PowerShell)
@@ -7,7 +7,7 @@ var question ={
7
7
  purpose:'Questions define form field types (text, select, boolean, etc.) and can be organized into forms. Questions can reference datasets for select/multiple types, can be marked as usable for visitor ID or submission date tracking, and are categorized with tags. Questions are used in the Questionnaire and Church apps.',
8
8
  labelField:'name',
9
9
  defaultSort:{ field:'joeUpdated', dir:'desc' },
10
- searchableFields:['name','info','title','fieldname','_id'],
10
+ searchableFields:['name','info','description','title','fieldname','_id'],
11
11
  allowedSorts:['joeUpdated','created','name','question_type'],
12
12
  relationships:{
13
13
  outbound:[
@@ -21,6 +21,7 @@ var question ={
21
21
  { name:'itemtype', type:'string', required:true, const:'question' },
22
22
  { name:'name', type:'string', required:true },
23
23
  { name:'info', type:'string' },
24
+ { name:'description', type:'string' },
24
25
  { name:'title', type:'string' },
25
26
  { name:'fieldname', type:'string' },
26
27
  { name:'question_type', type:'string', enumValues:['oneline','textarea','select','boolean','multiple','content','password','number'] },
@@ -61,6 +62,7 @@ var question ={
61
62
  'name',
62
63
 
63
64
  {name:'info',width:'50%'},
65
+ {extend:'description',specs:{comment:'description of question background and purpose.'}},
64
66
  {name:'title',width:'50%'},
65
67
 
66
68
  {name:'fieldname',comment:'used for database storage instead of name field'},