@seniorsistemas/angular-components 16.10.10 → 16.10.12
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/bundles/seniorsistemas-angular-components.umd.js +2 -4
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/dynamic-form/{dynamic-field.component.d.ts → components/dynamic-field/dynamic-field.component.d.ts} +2 -5
- package/esm2015/components/dynamic-form/components/dynamic-field/dynamic-field.component.js +36 -0
- package/esm2015/components/dynamic-form/components/structure/section/section.component.js +2 -2
- package/esm2015/components/dynamic-form/dynamic-form.module.js +2 -2
- package/esm2015/seniorsistemas-angular-components.js +2 -2
- package/esm5/components/dynamic-form/components/dynamic-field/dynamic-field.component.js +39 -0
- package/esm5/components/dynamic-form/components/structure/section/section.component.js +2 -2
- package/esm5/components/dynamic-form/dynamic-form.module.js +2 -2
- package/esm5/seniorsistemas-angular-components.js +2 -2
- package/fesm2015/seniorsistemas-angular-components.js +2 -20
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +2 -4
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
- package/esm2015/components/dynamic-form/dynamic-field.component.js +0 -54
- package/esm5/components/dynamic-form/dynamic-field.component.js +0 -41
|
@@ -6803,7 +6803,7 @@
|
|
|
6803
6803
|
], SectionComponent.prototype, "errorMessages", void 0);
|
|
6804
6804
|
SectionComponent = __decorate([
|
|
6805
6805
|
core.Component({
|
|
6806
|
-
template: "\n <h3 class=\"sds-section-title\">{{config.header}}</h3>\n <ng-container *ngFor=\"let conf of config.configs\">\n <ng-container *sDynamicForm=\"{ id: id, config: conf, group: group, errorMessages: errorMessages }\"></ng-container>\n </ng-container>\n "
|
|
6806
|
+
template: "\n <h3 *ngIf=\"config?.header\" class=\"sds-section-title\">{{config.header}}</h3>\n <ng-container *ngFor=\"let conf of config.configs\">\n <ng-container *sDynamicForm=\"{ id: id, config: conf, group: group, errorMessages: errorMessages }\"></ng-container>\n </ng-container>\n "
|
|
6807
6807
|
})
|
|
6808
6808
|
], SectionComponent);
|
|
6809
6809
|
return SectionComponent;
|
|
@@ -6812,8 +6812,6 @@
|
|
|
6812
6812
|
var DynamicFieldComponent = /** @class */ (function () {
|
|
6813
6813
|
function DynamicFieldComponent() {
|
|
6814
6814
|
}
|
|
6815
|
-
DynamicFieldComponent.prototype.ngOnInit = function () {
|
|
6816
|
-
};
|
|
6817
6815
|
DynamicFieldComponent.prototype.getErrorMessages = function (errorMessages) {
|
|
6818
6816
|
if (errorMessages)
|
|
6819
6817
|
return this.isFunction(errorMessages)
|
|
@@ -6841,7 +6839,7 @@
|
|
|
6841
6839
|
DynamicFieldComponent = __decorate([
|
|
6842
6840
|
core.Component({
|
|
6843
6841
|
selector: "s-dynamic-field",
|
|
6844
|
-
template: "
|
|
6842
|
+
template: "<div class=\"ui-fluid\" [formGroup]=\"form\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of fields\">\n <div\n *ngIf=\"!field.visible || field.visible()\"\n [ngClass]=\"field.gridClass\">\n <span *ngIf=\"field.label\">\n <label\n *sInfoSign=\"field.infoSign; displayTime: displayTimeInfoSign\"\n [for]=\"field.name\"\n [ngClass]=\"{ 'required': field.required() }\">\n {{ field.label }}\n </label>\n </span>\n <ng-container *sDynamicForm=\"{\n id: id,\n config: field,\n group: form\n }\">\n </ng-container>\n <s-control-errors\n [form]=\"form\"\n [control]=\"form.controls[field.name]\"\n [errorMessages]=\"getErrorMessages(field.errorMessages)\">\n </s-control-errors>\n <ng-template\n *ngIf=\"field?.bottomTemplate\"\n [ngTemplateOutlet]=\"field.bottomTemplate\">\n </ng-template>\n </div>\n </ng-container>\n </div>\n</div>"
|
|
6845
6843
|
})
|
|
6846
6844
|
], DynamicFieldComponent);
|
|
6847
6845
|
return DynamicFieldComponent;
|