@seniorsistemas/angular-components 16.10.9 → 16.10.11
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 +11 -11
- 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/country-phone-picker/country-phone-picker.component.d.ts +1 -2
- package/components/dynamic-form/{dynamic-field.component.d.ts → components/dynamic-field/dynamic-field.component.d.ts} +2 -5
- package/components/dynamic-form/components/lookup/lookup.component.d.ts +1 -0
- package/esm2015/components/country-phone-picker/country-phone-picker.component.js +4 -8
- package/esm2015/components/dynamic-form/components/dynamic-field/dynamic-field.component.js +36 -0
- package/esm2015/components/dynamic-form/components/lookup/lookup.component.js +8 -2
- package/esm2015/components/dynamic-form/dynamic-form.module.js +2 -2
- package/esm2015/seniorsistemas-angular-components.js +2 -2
- package/esm5/components/country-phone-picker/country-phone-picker.component.js +4 -8
- package/esm5/components/dynamic-form/components/dynamic-field/dynamic-field.component.js +39 -0
- package/esm5/components/dynamic-form/components/lookup/lookup.component.js +8 -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 +11 -27
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +11 -11
- 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
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Component, Input } from "@angular/core";
|
|
3
|
-
let DynamicFieldComponent = class DynamicFieldComponent {
|
|
4
|
-
constructor() { }
|
|
5
|
-
ngOnInit() {
|
|
6
|
-
}
|
|
7
|
-
getErrorMessages(errorMessages) {
|
|
8
|
-
if (errorMessages)
|
|
9
|
-
return this.isFunction(errorMessages)
|
|
10
|
-
? Object.assign(Object.assign({}, this.errorMessages), errorMessages()) : Object.assign(Object.assign({}, this.errorMessages), errorMessages);
|
|
11
|
-
return this.errorMessages;
|
|
12
|
-
}
|
|
13
|
-
isFunction(value) {
|
|
14
|
-
return value instanceof Function;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
__decorate([
|
|
18
|
-
Input()
|
|
19
|
-
], DynamicFieldComponent.prototype, "id", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
Input()
|
|
22
|
-
], DynamicFieldComponent.prototype, "fields", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
Input()
|
|
25
|
-
], DynamicFieldComponent.prototype, "form", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
Input()
|
|
28
|
-
], DynamicFieldComponent.prototype, "errorMessages", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Input()
|
|
31
|
-
], DynamicFieldComponent.prototype, "displayTimeInfoSign", void 0);
|
|
32
|
-
DynamicFieldComponent = __decorate([
|
|
33
|
-
Component({
|
|
34
|
-
selector: "s-dynamic-field",
|
|
35
|
-
template: `
|
|
36
|
-
<div class="ui-fluid" [formGroup]="form">
|
|
37
|
-
<div class="ui-g">
|
|
38
|
-
<ng-container *ngFor="let field of fields">
|
|
39
|
-
<div [ngClass]="field.gridClass" *ngIf="field.visible()">
|
|
40
|
-
<span *ngIf="field.label"><label [for]="field.name"
|
|
41
|
-
[ngClass]="{ 'required': field.required() }" *sInfoSign="field.infoSign; displayTime: displayTimeInfoSign">{{ field.label }}</label></span>
|
|
42
|
-
<ng-container *sDynamicForm="{ id: id, config: field, group: form };"></ng-container>
|
|
43
|
-
<s-control-errors [form]="form" [control]="form.controls[field.name]"
|
|
44
|
-
[errorMessages]="getErrorMessages(field.errorMessages)"></s-control-errors>
|
|
45
|
-
<ng-template *ngIf="field?.bottomTemplate" [ngTemplateOutlet]="field.bottomTemplate"></ng-template>
|
|
46
|
-
</div>
|
|
47
|
-
</ng-container>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
`
|
|
51
|
-
})
|
|
52
|
-
], DynamicFieldComponent);
|
|
53
|
-
export { DynamicFieldComponent };
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac2VuaW9yc2lzdGVtYXMvYW5ndWxhci1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9keW5hbWljLWZvcm0vZHluYW1pYy1maWVsZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBdUJ6RCxJQUFhLHFCQUFxQixHQUFsQyxNQUFhLHFCQUFxQjtJQWdCOUIsZ0JBQWUsQ0FBQztJQUVULFFBQVE7SUFDZixDQUFDO0lBRU0sZ0JBQWdCLENBQUMsYUFBa0I7UUFDdEMsSUFBSSxhQUFhO1lBQ2IsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDLGFBQWEsQ0FBQztnQkFDakMsQ0FBQyxpQ0FBTSxJQUFJLENBQUMsYUFBYSxHQUFLLGFBQWEsRUFBRSxFQUM3QyxDQUFDLGlDQUFNLElBQUksQ0FBQyxhQUFhLEdBQUssYUFBYSxDQUFFLENBQUM7UUFDdEQsT0FBTyxJQUFJLENBQUMsYUFBYSxDQUFDO0lBQzlCLENBQUM7SUFFTSxVQUFVLENBQUMsS0FBVTtRQUN4QixPQUFPLEtBQUssWUFBWSxRQUFRLENBQ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AgIEBJbnB1dCgpXG4gICAgcHVibGljIGlkOiBzdHJpbmc7XG5cbiAgICBASW5wdXQoKVxuICAgIHB1YmxpYyBmaWVsZHM6IEZvcm1GaWVsZFtdO1xuXG4gICAgQElucHV0KClcbiAgICBwdWJsaWMgZm9ybTogRm9ybUdyb3VwO1xuXG4gICAgQElucHV0KClcbiAgICBwdWJsaWMgZXJyb3JNZXNzYWdlcz86IGFueTtcblxuICAgIEBJbnB1dCgpXG4gICAgcHVibGljIGRpc3BsYXlUaW1lSW5mb1NpZ246IG51bWJlcjtcblxuICAgIGNvbnN0cnVjdG9yKCkge31cblxuICAgIHB1YmxpYyBuZ09uSW5pdCgpIHtcbiAgICB9XG5cbiAgICBwdWJsaWMgZ2V0RXJyb3JNZXNzYWdlcyhlcnJvck1lc3NhZ2VzOiBhbnkpIHtcbiAgICAgICAgaWYgKGVycm9yTWVzc2FnZXMpXG4gICAgICAgICAgICByZXR1cm4gdGhpcy5pc0Z1bmN0aW9uKGVycm9yTWVzc2FnZXMpXG4gICAgICAgICAgICAgICAgPyB7IC4uLnRoaXMuZXJyb3JNZXNzYWdlcywgLi4uZXJyb3JNZXNzYWdlcygpIH1cbiAgICAgICAgICAgICAgICA6IHsgLi4udGhpcy5lcnJvck1lc3NhZ2VzLCAuLi5lcnJvck1lc3NhZ2VzIH07XG4gICAgICAgIHJldHVybiB0aGlzLmVycm9yTWVzc2FnZXM7XG4gICAgfVxuXG4gICAgcHVibGljIGlzRnVuY3Rpb24odmFsdWU6IGFueSk6IGJvb2xlYW4ge1xuICAgICAgICByZXR1cm4gdmFsdWUgaW5zdGFuY2VvZiBGdW5jdGlvbjtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { __assign, __decorate } from "tslib";
|
|
2
|
-
import { Component, Input } from "@angular/core";
|
|
3
|
-
var DynamicFieldComponent = /** @class */ (function () {
|
|
4
|
-
function DynamicFieldComponent() {
|
|
5
|
-
}
|
|
6
|
-
DynamicFieldComponent.prototype.ngOnInit = function () {
|
|
7
|
-
};
|
|
8
|
-
DynamicFieldComponent.prototype.getErrorMessages = function (errorMessages) {
|
|
9
|
-
if (errorMessages)
|
|
10
|
-
return this.isFunction(errorMessages)
|
|
11
|
-
? __assign(__assign({}, this.errorMessages), errorMessages()) : __assign(__assign({}, this.errorMessages), errorMessages);
|
|
12
|
-
return this.errorMessages;
|
|
13
|
-
};
|
|
14
|
-
DynamicFieldComponent.prototype.isFunction = function (value) {
|
|
15
|
-
return value instanceof Function;
|
|
16
|
-
};
|
|
17
|
-
__decorate([
|
|
18
|
-
Input()
|
|
19
|
-
], DynamicFieldComponent.prototype, "id", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
Input()
|
|
22
|
-
], DynamicFieldComponent.prototype, "fields", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
Input()
|
|
25
|
-
], DynamicFieldComponent.prototype, "form", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
Input()
|
|
28
|
-
], DynamicFieldComponent.prototype, "errorMessages", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Input()
|
|
31
|
-
], DynamicFieldComponent.prototype, "displayTimeInfoSign", void 0);
|
|
32
|
-
DynamicFieldComponent = __decorate([
|
|
33
|
-
Component({
|
|
34
|
-
selector: "s-dynamic-field",
|
|
35
|
-
template: "\n <div class=\"ui-fluid\" [formGroup]=\"form\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of fields\">\n <div [ngClass]=\"field.gridClass\" *ngIf=\"field.visible()\">\n <span *ngIf=\"field.label\"><label [for]=\"field.name\"\n [ngClass]=\"{ 'required': field.required() }\" *sInfoSign=\"field.infoSign; displayTime: displayTimeInfoSign\">{{ field.label }}</label></span>\n <ng-container *sDynamicForm=\"{ id: id, config: field, group: form };\"></ng-container>\n <s-control-errors [form]=\"form\" [control]=\"form.controls[field.name]\"\n [errorMessages]=\"getErrorMessages(field.errorMessages)\"></s-control-errors>\n <ng-template *ngIf=\"field?.bottomTemplate\" [ngTemplateOutlet]=\"field.bottomTemplate\"></ng-template>\n </div>\n </ng-container>\n </div>\n </div>\n "
|
|
36
|
-
})
|
|
37
|
-
], DynamicFieldComponent);
|
|
38
|
-
return DynamicFieldComponent;
|
|
39
|
-
}());
|
|
40
|
-
export { DynamicFieldComponent };
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac2VuaW9yc2lzdGVtYXMvYW5ndWxhci1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9keW5hbWljLWZvcm0vZHluYW1pYy1maWVsZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBdUJ6RDtJQWdCSTtJQUFlLENBQUM7SUFFVCx3Q0FBUSxHQUFmO0lBQ0EsQ0FBQztJQUVNLGdEQUFnQixHQUF2QixVQUF3QixhQUFrQjtRQUN0QyxJQUFJLGFBQWE7WUFDYixPQUFPLElBQUksQ0FBQyxVQUFVLENBQUMsYUFBYSxDQUFDO2dCQUNqQyxDQUFDLHVCQUFNLElBQUksQ0FBQyxhQUFhLEdBQUssYUFBYSxFQUFFLEVBQzdDLENBQUMsdUJBQU0sSUFBSSxDQUFDLGFBQWEsR0FBSyxhQUFhLENBQUUsQ0FBQztRQUN0RCxPQUFPLElBQUksQ0FBQyxhQUFhLENBQUM7SUFDOUIsQ0FBQztJQUVNLDBDQUFVLEdBQWpCLFVBQWtCLEtBQVU7UUFDeEIsT0FBTyxLQUFLLFlBQVksUUFBUSxDQUFDO0lBQ3JDLENBQUM7SUE3QkQ7UUFEQyxLQUFLLEVBQUU7cURBQ1U7SUFHbEI7UUFEQyxLQUFLLEVBQUU7eUR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