@stemy/ngx-dynamic-form 19.9.9 → 19.9.10
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.
|
@@ -1049,11 +1049,12 @@ class DynamicFormBuilderService {
|
|
|
1049
1049
|
const idName = String(field.id || field.key || "").replace(/\./, "-");
|
|
1050
1050
|
let baseName = `dynamic-form-fieldset dynamic-form-fieldset-${idName}`;
|
|
1051
1051
|
if (!this.isFieldset(target)) {
|
|
1052
|
+
const labelAlign = target.props?.labelAlign || "before";
|
|
1052
1053
|
const type = String(target.type || "group").replace("formly-", "");
|
|
1053
1054
|
const typeName = ObjectUtils.isConstructor(type)
|
|
1054
1055
|
? `${target.type.name}`.toLowerCase().replace("component", "")
|
|
1055
1056
|
: type;
|
|
1056
|
-
baseName = `dynamic-form-field dynamic-form-field-${target.key} dynamic-form-${typeName}`;
|
|
1057
|
+
baseName = `dynamic-form-field dynamic-form-field-${target.key} dynamic-form-label-${labelAlign} dynamic-form-${typeName}`;
|
|
1057
1058
|
}
|
|
1058
1059
|
const classesName = Array.isArray(classes) ? classes : [classes];
|
|
1059
1060
|
const layoutName = Array.isArray(layout) ? layout : [layout];
|