@resolveio/server-lib 4.4.15 → 4.4.17
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
|
@@ -191,7 +191,7 @@ function buildTree(current_root, schemaTree, lookup) {
|
|
|
191
191
|
leafValueType: '',
|
|
192
192
|
leafValueTypes: getLeafValueTypes(schemaTree[key], key),
|
|
193
193
|
leafFormatType: '',
|
|
194
|
-
leafFormatTypes:
|
|
194
|
+
leafFormatTypes: getLeafFormatTypes(schemaTree[key], key)
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
else {
|
|
@@ -255,7 +255,7 @@ function buildTree(current_root, schemaTree, lookup) {
|
|
|
255
255
|
leafValueType: '',
|
|
256
256
|
leafValueTypes: getLeafValueTypes(schemaTree[key], key),
|
|
257
257
|
leafFormatType: '',
|
|
258
|
-
leafFormatTypes:
|
|
258
|
+
leafFormatTypes: getLeafFormatTypes(schemaTree[key], key)
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
else {
|
|
@@ -409,6 +409,10 @@ function getLeafFormatTypes(schemaTree, fieldPath) {
|
|
|
409
409
|
{
|
|
410
410
|
text: 'As Text',
|
|
411
411
|
value: 'String'
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
text: 'As Number',
|
|
415
|
+
value: 'Number'
|
|
412
416
|
}
|
|
413
417
|
];
|
|
414
418
|
}
|
|
@@ -430,6 +434,10 @@ function getLeafFormatTypes(schemaTree, fieldPath) {
|
|
|
430
434
|
}
|
|
431
435
|
else if (schemaTree.rbType === 'Boolean') {
|
|
432
436
|
leafTypes = [
|
|
437
|
+
{
|
|
438
|
+
text: 'As Number',
|
|
439
|
+
value: 'Number'
|
|
440
|
+
},
|
|
433
441
|
{
|
|
434
442
|
text: 'As Boolean (True/False)',
|
|
435
443
|
value: 'Boolean'
|
|
@@ -446,6 +454,10 @@ function getLeafFormatTypes(schemaTree, fieldPath) {
|
|
|
446
454
|
}
|
|
447
455
|
else if (schemaTree.rbType === 'Date') {
|
|
448
456
|
leafTypes = [
|
|
457
|
+
{
|
|
458
|
+
text: 'As Number',
|
|
459
|
+
value: 'Number'
|
|
460
|
+
},
|
|
449
461
|
{
|
|
450
462
|
text: 'As Date (Short Format)',
|
|
451
463
|
value: 'Date'
|