@sumaris-net/ngx-components 1.23.32 → 1.23.33
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/sumaris-net.ngx-components.umd.js +9 -0
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/form/editor.class.js +10 -1
- package/fesm2015/sumaris-net.ngx-components.js +9 -0
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -28762,6 +28762,9 @@
|
|
|
28762
28762
|
};
|
|
28763
28763
|
AppEditor.prototype.markAsUntouched = function (opts) {
|
|
28764
28764
|
var _a;
|
|
28765
|
+
if (this.touchedSubject.value !== false) {
|
|
28766
|
+
this.touchedSubject.next(false);
|
|
28767
|
+
}
|
|
28765
28768
|
(_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.markAsUntouched(); });
|
|
28766
28769
|
if (!this.loading && (!opts || opts.emitEvent !== false))
|
|
28767
28770
|
this.markForCheck();
|
|
@@ -28772,12 +28775,18 @@
|
|
|
28772
28775
|
*/
|
|
28773
28776
|
AppEditor.prototype.markAsTouched = function (opts) {
|
|
28774
28777
|
var _a;
|
|
28778
|
+
if (!this.touchedSubject.value !== true) {
|
|
28779
|
+
this.touchedSubject.next(true);
|
|
28780
|
+
}
|
|
28775
28781
|
(_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.markAsTouched(opts); });
|
|
28776
28782
|
if (!this.loading && (!opts || opts.emitEvent !== false))
|
|
28777
28783
|
this.markForCheck();
|
|
28778
28784
|
};
|
|
28779
28785
|
AppEditor.prototype.markAllAsTouched = function (opts) {
|
|
28780
28786
|
var _a;
|
|
28787
|
+
if (this.touchedSubject.value !== true) {
|
|
28788
|
+
this.touchedSubject.next(true);
|
|
28789
|
+
}
|
|
28781
28790
|
(_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.markAllAsTouched(opts); });
|
|
28782
28791
|
if (!this.loading && (!opts || opts.emitEvent !== false))
|
|
28783
28792
|
this.markForCheck();
|