cat-qw-lib 0.44.0 → 0.44.2

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.
@@ -2916,12 +2916,23 @@ class QueueAdminFormComponent extends BaseFormComponent {
2916
2916
  this.getApiProperties(res?.apiConfigId, res);
2917
2917
  this.query = res.rules ? structuredClone(res.rules) : { condition: SHARED.AND, rules: [] };
2918
2918
  this.fetchedProperties = res.properties;
2919
+ this.initialRecord = JSON.parse(JSON.stringify(res));
2919
2920
  if (this.fetchedProperties) {
2920
2921
  this.setupQueryBuilderConfig(this.fetchedProperties);
2921
2922
  }
2922
2923
  }
2924
+ else {
2925
+ this.initialRecord = structuredClone(this.record);
2926
+ }
2923
2927
  });
2924
2928
  }
2929
+ this.formStateService.selectIsFormNavigating()
2930
+ .pipe(takeUntil(this.destroy$))
2931
+ .subscribe((res) => {
2932
+ if (res) {
2933
+ this.checkUnsavedChanges();
2934
+ }
2935
+ });
2925
2936
  }
2926
2937
  getApiProperties(id, res) {
2927
2938
  this.fetchApiProperties(id, { setValidated: false, showToast: false }, res);
@@ -4135,11 +4146,11 @@ class WidgetFooterComponent {
4135
4146
  }
4136
4147
  }
4137
4148
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: WidgetFooterComponent, deps: [{ token: WidgetStore }], target: i0.ɵɵFactoryTarget.Component });
4138
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.4", type: WidgetFooterComponent, isStandalone: false, selector: "lib-widget-footer", inputs: { widget: "widget" }, ngImport: i0, template: "<div\r\n class=\"col-12 p-0 mt-3 flex justify-content-center\"\r\n >\r\n <a\r\n *ngIf=\"widget?.predefinedName === 'ApplicantWidget'\"\r\n class=\"p-button p-button-link text-primary-500\"\r\n >\r\n <span class=\"underline font-semibold\" \r\n [permission]=\"PERMISSION.WIDGETS_EVALUATE\"\r\n \r\n (click)=\"viewAllDetails($event)\">View All Details</span>\r\n <i class=\"pi pi-arrow-up-right arrow-up-icon ml-2\"></i>\r\n </a>\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HasPermissionDirective, selector: "[permission]", inputs: ["permission"] }] });
4149
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.4", type: WidgetFooterComponent, isStandalone: false, selector: "lib-widget-footer", inputs: { widget: "widget" }, ngImport: i0, template: "<div\r\n class=\"col-12 p-0 mt-3 flex justify-content-center\"\r\n >\r\n <a\r\n *ngIf=\"widget?.predefinedName === 'ApplicantWidget' || widget?.predefinedName === 'PropertyWidget'\"\r\n class=\"p-button p-button-link text-primary-500\"\r\n >\r\n <span class=\"underline font-semibold\" \r\n [permission]=\"PERMISSION.WIDGETS_EVALUATE\"\r\n \r\n (click)=\"viewAllDetails($event)\">View All Details</span>\r\n <i class=\"pi pi-arrow-up-right arrow-up-icon ml-2\"></i>\r\n </a>\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: HasPermissionDirective, selector: "[permission]", inputs: ["permission"] }] });
4139
4150
  }
4140
4151
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: WidgetFooterComponent, decorators: [{
4141
4152
  type: Component,
4142
- args: [{ selector: 'lib-widget-footer', standalone: false, template: "<div\r\n class=\"col-12 p-0 mt-3 flex justify-content-center\"\r\n >\r\n <a\r\n *ngIf=\"widget?.predefinedName === 'ApplicantWidget'\"\r\n class=\"p-button p-button-link text-primary-500\"\r\n >\r\n <span class=\"underline font-semibold\" \r\n [permission]=\"PERMISSION.WIDGETS_EVALUATE\"\r\n \r\n (click)=\"viewAllDetails($event)\">View All Details</span>\r\n <i class=\"pi pi-arrow-up-right arrow-up-icon ml-2\"></i>\r\n </a>\r\n</div>" }]
4153
+ args: [{ selector: 'lib-widget-footer', standalone: false, template: "<div\r\n class=\"col-12 p-0 mt-3 flex justify-content-center\"\r\n >\r\n <a\r\n *ngIf=\"widget?.predefinedName === 'ApplicantWidget' || widget?.predefinedName === 'PropertyWidget'\"\r\n class=\"p-button p-button-link text-primary-500\"\r\n >\r\n <span class=\"underline font-semibold\" \r\n [permission]=\"PERMISSION.WIDGETS_EVALUATE\"\r\n \r\n (click)=\"viewAllDetails($event)\">View All Details</span>\r\n <i class=\"pi pi-arrow-up-right arrow-up-icon ml-2\"></i>\r\n </a>\r\n</div>" }]
4143
4154
  }], ctorParameters: () => [{ type: WidgetStore }], propDecorators: { widget: [{
4144
4155
  type: Input
4145
4156
  }] } });