cat-qw-lib 0.43.46 → 0.43.48
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/fesm2022/cat-qw-lib.mjs
CHANGED
|
@@ -613,7 +613,7 @@ class FormStateService {
|
|
|
613
613
|
this.isFormNavigating$.next(isNavigation);
|
|
614
614
|
}
|
|
615
615
|
setIsBrowserEvent(isNavigation) {
|
|
616
|
-
this.
|
|
616
|
+
this.isBrowserEvent$.next(isNavigation);
|
|
617
617
|
}
|
|
618
618
|
getIsBrowserEvent() {
|
|
619
619
|
return this.isBrowserEvent$.getValue();
|
|
@@ -831,6 +831,7 @@ class BaseControlComponent {
|
|
|
831
831
|
checkUnsavedChanges(isBrowserEvent) {
|
|
832
832
|
this.formStateService.selectInitialRecord().subscribe((res) => {
|
|
833
833
|
if (res) {
|
|
834
|
+
console.log("1 basecontrol=>", this.record);
|
|
834
835
|
this.unsavedChangesService.checkUnsavedChanges(res, this.record, isBrowserEvent);
|
|
835
836
|
}
|
|
836
837
|
});
|
|
@@ -838,6 +839,8 @@ class BaseControlComponent {
|
|
|
838
839
|
ngOnDestroy() {
|
|
839
840
|
this.destroy$.next();
|
|
840
841
|
this.destroy$.complete();
|
|
842
|
+
this.formStateService.setInitialRecord({});
|
|
843
|
+
this.record = {};
|
|
841
844
|
}
|
|
842
845
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: BaseControlComponent, deps: [{ token: BaseStore }, { token: BaseQuery }, { token: FormStateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
843
846
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.4", type: BaseControlComponent, isStandalone: true, selector: "app-base-control", inputs: { store: "store", record: "record", attributeModel: "attributeModel", error: "error" }, outputs: { onInput: "onInput", onEnterKeydown: "onEnterKeydown", onBtnClick: "onBtnClick", hasChanges: "hasChanges" }, providers: [BaseStore], viewQueries: [{ propertyName: "textboxField", first: true, predicate: ["textboxField"], descendants: true }, { propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true }, { propertyName: "textArea", first: true, predicate: ["textArea"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<p>base-control works!</p>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|