tuain-ng-forms-lib 12.0.17 → 12.0.21
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/README.md +1 -1
- package/bundles/tuain-ng-forms-lib.umd.js +14 -7
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/components/elements/field.component.js +8 -1
- package/esm2015/lib/components/elements/layout/element.component.js +8 -8
- package/fesm2015/tuain-ng-forms-lib.js +14 -7
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/components/elements/field.component.d.ts +2 -0
- package/lib/components/elements/layout/element.component.d.ts +2 -2
- package/package.json +1 -1
- package/tuain-ng-forms-lib.metadata.json +1 -1
package/README.md
CHANGED
|
@@ -423,8 +423,15 @@
|
|
|
423
423
|
FieldComponent.prototype.focus = function () { };
|
|
424
424
|
FieldComponent.prototype.updateObject = function () {
|
|
425
425
|
this.field._fieldValue = this.value;
|
|
426
|
+
};
|
|
427
|
+
FieldComponent.prototype.inputChanged = function () {
|
|
428
|
+
this.field._fieldValue = this.value;
|
|
426
429
|
this.onChangeContent();
|
|
427
430
|
};
|
|
431
|
+
FieldComponent.prototype.inputTyped = function () {
|
|
432
|
+
this.field._fieldValue = this.value;
|
|
433
|
+
this.onInputChange();
|
|
434
|
+
};
|
|
428
435
|
FieldComponent.prototype.updateValue = function () {
|
|
429
436
|
this.value = this.field._fieldValue;
|
|
430
437
|
};
|
|
@@ -478,22 +485,22 @@
|
|
|
478
485
|
}
|
|
479
486
|
ElementComponent.prototype.ngOnInit = function () {
|
|
480
487
|
var _a;
|
|
481
|
-
this.formConfig = (_a = this.
|
|
488
|
+
this.formConfig = (_a = this.element) === null || _a === void 0 ? void 0 : _a._formConfig;
|
|
482
489
|
this.start();
|
|
483
490
|
};
|
|
484
491
|
ElementComponent.prototype.start = function () { };
|
|
485
492
|
Object.defineProperty(ElementComponent.prototype, "visible", {
|
|
486
493
|
get: function () {
|
|
487
|
-
var _a
|
|
488
|
-
return (_a = this.
|
|
494
|
+
var _a;
|
|
495
|
+
return (_a = this.element) === null || _a === void 0 ? void 0 : _a.visibleOn(this.currentState);
|
|
489
496
|
},
|
|
490
497
|
enumerable: false,
|
|
491
498
|
configurable: true
|
|
492
499
|
});
|
|
493
500
|
Object.defineProperty(ElementComponent.prototype, "disabled", {
|
|
494
501
|
get: function () {
|
|
495
|
-
var _a
|
|
496
|
-
return !((_a = this.
|
|
502
|
+
var _a;
|
|
503
|
+
return !((_a = this.element) === null || _a === void 0 ? void 0 : _a.enabledOn(this.currentState));
|
|
497
504
|
},
|
|
498
505
|
enumerable: false,
|
|
499
506
|
configurable: true
|
|
@@ -507,8 +514,8 @@
|
|
|
507
514
|
},] }
|
|
508
515
|
];
|
|
509
516
|
ElementComponent.propDecorators = {
|
|
510
|
-
|
|
511
|
-
|
|
517
|
+
element: [{ type: core.Input }],
|
|
518
|
+
currentState: [{ type: core.Input }]
|
|
512
519
|
};
|
|
513
520
|
|
|
514
521
|
var FormErrorComponent = /** @class */ (function () {
|