@everymatrix/stage-mm-verification-report 1.0.16 → 1.0.17

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.
Files changed (3) hide show
  1. package/main.js +57 -1
  2. package/main.js.map +1 -1
  3. package/package.json +1 -1
package/main.js CHANGED
@@ -57742,6 +57742,7 @@ var AppComponent = class _AppComponent {
57742
57742
  templateService = inject(TemplateService);
57743
57743
  verificationService = inject(VerificationService);
57744
57744
  sessionService = inject(SessionService);
57745
+ tracingInfoService = inject(TracingInfoService);
57745
57746
  el = inject(ElementRef);
57746
57747
  cdr = inject(ChangeDetectorRef);
57747
57748
  shadowDomStyleInjectorService = inject(ShadowDomStyleInjectorService);
@@ -57869,6 +57870,7 @@ var AppComponent = class _AppComponent {
57869
57870
  this.tableLoading = false;
57870
57871
  this.effectRef.destroy();
57871
57872
  }, { manualCleanup: true });
57873
+ window.addEventListener("message", this.reloadListener);
57872
57874
  }
57873
57875
  ngOnInit() {
57874
57876
  this.initializeApp();
@@ -57885,6 +57887,9 @@ var AppComponent = class _AppComponent {
57885
57887
  this.templateService.savedTemplateSubject.next(null);
57886
57888
  });
57887
57889
  }
57890
+ ngOnDestroy() {
57891
+ window.removeEventListener("message", this.reloadListener);
57892
+ }
57888
57893
  initializeApp() {
57889
57894
  this.sessionService.sessionData$.pipe(takeUntilDestroyed(this.destroyRef), filter((data) => data !== null), take(1), mergeMap(() => combineLatest({
57890
57895
  lookups: this.verificationService.getLookups(),
@@ -58325,6 +58330,57 @@ var AppComponent = class _AppComponent {
58325
58330
  getPageFromOffset(offset, limit) {
58326
58331
  return offset ? Math.floor(offset / limit) + 1 : 1;
58327
58332
  }
58333
+ reloadListener = (e) => {
58334
+ if (e.data?.type === "ReloadReportData") {
58335
+ this.setInitState();
58336
+ this.sessionService.setInitData(null);
58337
+ this.sessionService.getHeaders();
58338
+ this.tracingInfoService.setInitData(null);
58339
+ this.tracingInfoService.getTracingInfo();
58340
+ this.initializeApp();
58341
+ }
58342
+ };
58343
+ setInitState() {
58344
+ this.isTemplateSaved.set(true);
58345
+ this.csvLoading.set(false);
58346
+ this.templateCsvLoadingConfig.set({ templateId: "", isLoading: false });
58347
+ this.configureReportModalVisible.set(false);
58348
+ this.modalVisible.set(false);
58349
+ this.domainsOverloadVisible.set(false);
58350
+ this.lookupsSignal.set(void 0);
58351
+ this.domainLookupsSignal.set(void 0);
58352
+ this.allFieldsSignal.set(void 0);
58353
+ this.tableColumns = [];
58354
+ if (this.filterForm)
58355
+ this.clearFilters();
58356
+ this.isPanelOpened = true;
58357
+ this.tableData = [];
58358
+ this.generalTotal = "";
58359
+ this.limit.set(100);
58360
+ this.offset = 0;
58361
+ this.showReportTable.set(false);
58362
+ this.tableLoading = false;
58363
+ this.runState = false;
58364
+ this.documentsModal = false;
58365
+ this.isOldTableStyle = false;
58366
+ this.domainsOverloadSaveMode = true;
58367
+ this.orderBy = null;
58368
+ this.orderDirection = null;
58369
+ this.templateSignal.set(null);
58370
+ this.templateService.templatesList.set([]);
58371
+ this.allConfigurationFields = [];
58372
+ this.scrollHeight = 350;
58373
+ if (this.gridOptions) {
58374
+ this.gridOptions.columnDefs = [];
58375
+ this.gridOptions.data = [];
58376
+ this.gridOptions.dataLoading = this.tableLoading;
58377
+ this.gridOptions.isVisible = false;
58378
+ this.gridOptions.paginationPageSize = this.limit();
58379
+ this.gridOptions.totalItems = 0;
58380
+ this.gridOptions.paginationCurrentPage = 1;
58381
+ this.gridOptions.scrollHeight = 360;
58382
+ }
58383
+ }
58328
58384
  clearTemplate() {
58329
58385
  if (this.filterForm)
58330
58386
  this.clearFilters();
@@ -58974,7 +59030,7 @@ var AppComponent = class _AppComponent {
58974
59030
  });
58975
59031
  })();
58976
59032
  (() => {
58977
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(AppComponent, { className: "AppComponent", filePath: "apps/reports/moneymatrix/verification/src/app/app.component.ts", lineNumber: 94 });
59033
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(AppComponent, { className: "AppComponent", filePath: "apps/reports/moneymatrix/verification/src/app/app.component.ts", lineNumber: 96 });
58978
59034
  })();
58979
59035
 
58980
59036
  // node_modules/@angular/elements/fesm2022/elements.mjs