@dynamatix/cat-shared 0.0.44 → 0.0.46
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.
|
@@ -40,7 +40,7 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
40
40
|
dataType: {
|
|
41
41
|
type: String,
|
|
42
42
|
required: true,
|
|
43
|
-
enum: ['string', 'number', 'boolean-check', 'boolean-radio', 'date', 'array', 'object', 'select', 'radio', 'drop-down', 'sort-code', 'post-code', 'pound', 'lookup', 'multi-select'] // Added common form field types
|
|
43
|
+
enum: ['string', 'number', 'boolean-check', 'boolean-radio', 'percentage', 'date', 'array', 'object', 'select', 'radio', 'drop-down', 'sort-code', 'post-code', 'pound', 'lookup', 'multi-select'] // Added common form field types
|
|
44
44
|
},
|
|
45
45
|
isRequired: {
|
|
46
46
|
type: Boolean,
|
|
@@ -95,7 +95,8 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
95
95
|
default: null
|
|
96
96
|
},
|
|
97
97
|
sourceValue: { type: mongoose.Schema.Types.Mixed },
|
|
98
|
-
listName: { type: String } // The collection name to use when source field has this value
|
|
98
|
+
listName: { type: String }, // The collection name to use when source field has this value
|
|
99
|
+
fixedValue: { type: mongoose.Schema.Types.Mixed } // It's not req , and it can be a number like 0 , or a string etc.
|
|
99
100
|
}]
|
|
100
101
|
}
|
|
101
102
|
},
|
|
@@ -121,6 +122,9 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
121
122
|
default: null,
|
|
122
123
|
min: 0
|
|
123
124
|
},
|
|
125
|
+
maxValue: { // this is not required used only when given else ignore ex- 100% max
|
|
126
|
+
type: Number
|
|
127
|
+
},
|
|
124
128
|
isReadOnly: {
|
|
125
129
|
type: Boolean,
|
|
126
130
|
default: false
|