swoop-common 2.2.205 → 2.2.206
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.
|
@@ -94,6 +94,9 @@ const defaultConverter = (field, stage, omitTitle, isChild) => {
|
|
|
94
94
|
: {};
|
|
95
95
|
let title = omitTitle ? undefined : field.name;
|
|
96
96
|
let isReadonly = !isChild && !field.editableIn.map(Number).includes(stage);
|
|
97
|
+
if (field.fieldType === "operator") {
|
|
98
|
+
return Object.assign(Object.assign({}, (isReadonly && { readOnly: true })), { title, type: "array", "x-type": "operator", items: { type: "string" }, uniqueItems: true });
|
|
99
|
+
}
|
|
97
100
|
if (field.fieldType === "enum" && ((_e = field.enumOptions) === null || _e === void 0 ? void 0 : _e.multiSelect)) {
|
|
98
101
|
return Object.assign(Object.assign(Object.assign({}, (isReadonly && { readOnly: true })), { title, type: "array", "x-type": schema.schema["x-type"], items: {
|
|
99
102
|
type: "string",
|
|
@@ -161,6 +161,7 @@ registerType("person", "Person (Swooper)", { type: "string" }, {
|
|
|
161
161
|
},
|
|
162
162
|
},
|
|
163
163
|
}, false);
|
|
164
|
+
registerType("operator", "Operator", { type: "array", items: { type: "string" }, uniqueItems: true }, {}, false);
|
|
164
165
|
registerType("multiline", "Multiline", { type: "string" }, {}, false);
|
|
165
166
|
registerType("wysiwyg-editor", "WYSIWYG Editor", { type: "string" }, {}, false);
|
|
166
167
|
registerType("inspection", "Inspections", { type: "array" }, {}, false);
|