@dynamatix/cat-shared 0.0.54 → 0.0.56
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.
|
@@ -43,7 +43,7 @@ const formfieldSchema = new mongoose.Schema({
|
|
|
43
43
|
dataType: {
|
|
44
44
|
type: String,
|
|
45
45
|
required: true,
|
|
46
|
-
enum: ['text-area', 'string', 'number', 'boolean-check', 'boolean-radio', 'percentage', 'date', 'array', 'object', 'select', 'radio', 'drop-down', 'sort-code', 'post-code', 'pound', 'lookup', 'multi-select'
|
|
46
|
+
enum: ['text-area', 'string', 'number', 'boolean-check', 'boolean-radio', 'percentage', 'date', 'array', 'object', 'select', 'radio', 'drop-down', 'sort-code', 'post-code', 'pound', 'lookup', 'multi-select', 'email', 'phone', 'telephone'] // Added common form field types
|
|
47
47
|
},
|
|
48
48
|
isRequired: {
|
|
49
49
|
type: Boolean,
|
|
@@ -175,6 +175,14 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
175
175
|
type: Boolean,
|
|
176
176
|
default: false
|
|
177
177
|
},
|
|
178
|
+
isTable: {
|
|
179
|
+
type: Boolean,
|
|
180
|
+
default: false
|
|
181
|
+
},
|
|
182
|
+
dataFromSectionName: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
default: false
|
|
185
|
+
},
|
|
178
186
|
fields: [formfieldSchema],
|
|
179
187
|
order: {
|
|
180
188
|
type: Number,
|
|
@@ -198,7 +206,7 @@ const formConfigurationSchema = new mongoose.Schema({
|
|
|
198
206
|
type: Number,
|
|
199
207
|
default: 0
|
|
200
208
|
},
|
|
201
|
-
isTable
|
|
209
|
+
isTable: {
|
|
202
210
|
type: Boolean,
|
|
203
211
|
default: false
|
|
204
212
|
},
|