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

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 +46 -51
  2. package/main.js.map +1 -1
  3. package/package.json +1 -1
package/main.js CHANGED
@@ -39653,7 +39653,6 @@ var VerificationService = class _VerificationService {
39653
39653
  apiTracingInfo;
39654
39654
  verificationRequestBodyStrategy;
39655
39655
  httpClient;
39656
- sessionData;
39657
39656
  destroyRef = inject(DestroyRef);
39658
39657
  constructor(apiHandlerService, sessionService, apiTracingInfo, verificationRequestBodyStrategy, httpClient) {
39659
39658
  this.apiHandlerService = apiHandlerService;
@@ -39661,7 +39660,6 @@ var VerificationService = class _VerificationService {
39661
39660
  this.apiTracingInfo = apiTracingInfo;
39662
39661
  this.verificationRequestBodyStrategy = verificationRequestBodyStrategy;
39663
39662
  this.httpClient = httpClient;
39664
- this.sessionData = this.sessionService.sessionData;
39665
39663
  }
39666
39664
  runReport(config) {
39667
39665
  const url = this.apiHandlerService.getACSBaseUrl("mm_verification_report");
@@ -57888,6 +57886,7 @@ var AppComponent = class _AppComponent {
57888
57886
  });
57889
57887
  }
57890
57888
  ngOnDestroy() {
57889
+ console.log("this.ctrl-onDestroy", this);
57891
57890
  window.removeEventListener("message", this.reloadListener);
57892
57891
  }
57893
57892
  initializeApp() {
@@ -58332,55 +58331,49 @@ var AppComponent = class _AppComponent {
58332
58331
  }
58333
58332
  reloadListener = (e) => {
58334
58333
  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();
58334
+ console.log("this.ctrl.on-reload", this);
58341
58335
  }
58342
58336
  };
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
- }
58337
+ // private setInitState() {
58338
+ // this.isTemplateSaved.set(true);
58339
+ // this.csvLoading.set(false);
58340
+ // this.templateCsvLoadingConfig.set({ templateId: '', isLoading: false });
58341
+ // this.configureReportModalVisible.set(false);
58342
+ // this.modalVisible.set(false);
58343
+ // this.domainsOverloadVisible.set(false);
58344
+ // this.lookupsSignal.set(undefined);
58345
+ // this.domainLookupsSignal.set(undefined);
58346
+ // this.allFieldsSignal.set(undefined);
58347
+ // this.tableColumns = [];
58348
+ // if (this.filterForm) this.clearFilters();
58349
+ // this.isPanelOpened = true;
58350
+ // this.tableData = [];
58351
+ // this.generalTotal = '';
58352
+ // this.limit.set(100);
58353
+ // this.offset = 0;
58354
+ // this.showReportTable.set(false);
58355
+ // this.tableLoading = false;
58356
+ // this.runState = false;
58357
+ // this.documentsModal = false;
58358
+ // this.isOldTableStyle = false;
58359
+ // this.domainsOverloadSaveMode = true;
58360
+ // this.orderBy = null;
58361
+ // this.orderDirection = null;
58362
+ // this.templateSignal.set(null);
58363
+ // this.templateService.templatesList.set([]);
58364
+ // this.allConfigurationFields = [];
58365
+ // this.scrollHeight = 350;
58366
+ // if (this.gridOptions) {
58367
+ // this.gridOptions.columnDefs = [];
58368
+ // this.gridOptions.data = [];
58369
+ // this.gridOptions.dataLoading = this.tableLoading;
58370
+ // this.gridOptions.isVisible = false;
58371
+ // this.gridOptions.paginationPageSize = this.limit();
58372
+ // this.gridOptions.totalItems = 0;
58373
+ // this.gridOptions.paginationCurrentPage = 1;
58374
+ // this.gridOptions.scrollHeight = 360;
58375
+ // }
58376
+ // }
58384
58377
  clearTemplate() {
58385
58378
  if (this.filterForm)
58386
58379
  this.clearFilters();
@@ -59404,8 +59397,10 @@ var report = "everymatrix-mm-verification-report";
59404
59397
  scriptLoader.loadAngularJsAndUiGridIfNeeded().then(() => {
59405
59398
  platformBrowser().bootstrapModule(AppModule).then(() => {
59406
59399
  const element = document.querySelector(report);
59407
- const shadowRoot = element.shadowRoot;
59408
- const target = shadowRoot.querySelector(`.${report}`);
59400
+ const shadowRoot = element && element.shadowRoot;
59401
+ const target = shadowRoot && shadowRoot.querySelector(`.${report}`);
59402
+ if (!target)
59403
+ return;
59409
59404
  if (!UiGridCommonService.getAngularJsMainModuleName()) {
59410
59405
  if (!UiGridCommonService.isAngularjsModuleDefined(module)) {
59411
59406
  UiGridCommonService.initAngularjsApp(module);