impaktapps-ui-builder 0.0.393-alpha.2 → 0.0.393-alpha.20
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/dist/impaktapps-ui-builder.es.js +9 -5
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +37 -5
- package/src/impaktapps-ui-builder/runtime/services/service.ts +32 -7
|
@@ -8613,7 +8613,12 @@ var service = (funcParams) => {
|
|
|
8613
8613
|
eventGroups
|
|
8614
8614
|
};
|
|
8615
8615
|
funcParams.store.setSchema(
|
|
8616
|
-
|
|
8616
|
+
(pre) => {
|
|
8617
|
+
return {
|
|
8618
|
+
...funcParams.schema,
|
|
8619
|
+
properties: { ...pre.properties, ...funcParams.schema.properties }
|
|
8620
|
+
};
|
|
8621
|
+
}
|
|
8617
8622
|
);
|
|
8618
8623
|
funcParams.uiSchema.elements.push(notifyUiSchema);
|
|
8619
8624
|
funcParams.store.setUiSchema(funcParams.uiSchema);
|
|
@@ -10601,12 +10606,11 @@ function buildRule(configObj, tableName, arrayHolderName) {
|
|
|
10601
10606
|
}
|
|
10602
10607
|
}
|
|
10603
10608
|
}
|
|
10604
|
-
} else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && ((_j = configObj.value) == null ? void 0 : _j.length)
|
|
10609
|
+
} else if ((configObj.type === "Select" || configObj.type === "MultipleSelect") && ((_j = configObj.value) == null ? void 0 : _j.length) >= 0) {
|
|
10605
10610
|
if (configObj.type === "Select") {
|
|
10611
|
+
let oneOfOptions = configObj.value && configObj.value.length > 0 ? configObj.value.map((e) => ({ const: e.value, title: e.label })) : [{ const: "", title: "No options available" }];
|
|
10606
10612
|
schema.properties[configObj.name] = {
|
|
10607
|
-
oneOf:
|
|
10608
|
-
return { const: e.value, title: e.label };
|
|
10609
|
-
})
|
|
10613
|
+
oneOf: oneOfOptions
|
|
10610
10614
|
};
|
|
10611
10615
|
} else if (configObj.type === "MultipleSelect") {
|
|
10612
10616
|
schema.properties[configObj.name] = {
|