wt-front-shared 1.0.36 → 1.0.37
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/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +5 -2
- package/fesm2015/wt-front-shared.mjs +6 -3
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +4 -1
- package/fesm2020/wt-front-shared.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7755,6 +7755,7 @@ class FormFieldFileComponent {
|
|
|
7755
7755
|
this.statusChanges$ = this.form.valueChanges;
|
|
7756
7756
|
// If the form reset need to clear the field
|
|
7757
7757
|
this.form.statusChanges
|
|
7758
|
+
.pipe(untilComponentDestroyed(this))
|
|
7758
7759
|
.subscribe(() => {
|
|
7759
7760
|
if (!this.currentPristineValue && this.form.pristine) {
|
|
7760
7761
|
this.clearFile();
|
|
@@ -7765,6 +7766,7 @@ class FormFieldFileComponent {
|
|
|
7765
7766
|
ngOnChanges(changes) {
|
|
7766
7767
|
const field = this.fieldData.field;
|
|
7767
7768
|
if (field && this.form) {
|
|
7769
|
+
console.log("ngOnChanges", this.form.get(field)?.value);
|
|
7768
7770
|
this.imageVersions = this.form.get(field)?.value?.versions || "";
|
|
7769
7771
|
if (this.imageVersions) {
|
|
7770
7772
|
this.inputStatus = "0";
|
|
@@ -7825,9 +7827,10 @@ class FormFieldFileComponent {
|
|
|
7825
7827
|
}
|
|
7826
7828
|
}
|
|
7827
7829
|
clearFile() {
|
|
7830
|
+
console.log("clearFile");
|
|
7828
7831
|
this.input.nativeElement.value = "";
|
|
7829
7832
|
this.imageSource = "";
|
|
7830
|
-
this.imageVersions = null;
|
|
7833
|
+
// this.imageVersions = null;
|
|
7831
7834
|
this.inputStatus = "1";
|
|
7832
7835
|
this.cd.markForCheck();
|
|
7833
7836
|
}
|