sf-i-events 1.0.767 → 1.0.769

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/dev/index.html CHANGED
@@ -628,10 +628,7 @@
628
628
  </style>
629
629
  </head>
630
630
  <body>
631
- <!-- <sf-i-events projectid="c7d18a84-c2df-4dc2-b75f-5820549f5e5c" projectname="Chitale" mode="onboarding" locations="{&quot;India&quot;:{&quot;Maharashtra&quot;:[&quot;Reg_Offce&quot;,&quot;SHRIKRISHNA&quot;,&quot;SHEDNO25&quot;,&quot;SHEDNO31&quot;,&quot;SHEDNO44&quot;,&quot;CBM_SADAN&quot;,&quot;RANJE_CBM&quot;,&quot;ISHITA_TOWER&quot;,&quot;CBM_ANAND&quot;,&quot;CBM_SADAN_WH&quot;,&quot;CBM_ANAND_SHED25&quot;,&quot;CBM_KATRAJ&quot;,&quot;CBM_KHADKI&quot;,&quot;CBM_PANVEL&quot;,&quot;CBM_NAGPUR&quot;,&quot;CBM_ISHITA&quot;,&quot;Dugdhalaya&quot;,&quot;ExpressStores_MH&quot;,&quot;FranchiseStore_MH&quot;],&quot;Goa&quot;:[&quot;ExpressStores_Goa&quot;]},&quot;United States of America&quot;:{&quot;USA&quot;:[&quot;North_Carolina&quot;]}}" contractstartdate="01/04/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
632
-
633
- </sf-i-events> -->
634
- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
631
+ <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="58c90fb5-9d1d-46bc-9b1a-2cf3e353eed0" myrole="reporter" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
635
632
 
636
633
  <div slot="uploader">
637
634
  <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
@@ -641,6 +638,16 @@
641
638
  </div>
642
639
 
643
640
  </sf-i-events>
641
+ <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
642
+
643
+ <div slot="uploader">
644
+ <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
645
+ </div>
646
+ <div slot="reporting">
647
+ <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
648
+ </div>
649
+
650
+ </sf-i-events> -->
644
651
  <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Viewer J1" userprofileid="344c84d2-5976-47ff-949b-49f6fa9627eb" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="58c90fb5-9d1d-46bc-9b1a-2cf3e353eed0" myrole="viewer" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
645
652
 
646
653
  <div slot="uploader">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.767",
4
+ "version": "1.0.769",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.d.ts CHANGED
@@ -714,7 +714,7 @@ export declare class SfIEvents extends LitElement {
714
714
  uploadReportsReviewsBulk: (bulkBody: any) => Promise<void>;
715
715
  uploadReviewsBulk: (bulkBody: any) => Promise<void>;
716
716
  uploadReport: (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues?: string, reportformatschema?: string, module?: string) => Promise<void>;
717
- uploadReportsBulk: (bulkBody: any) => Promise<void>;
717
+ uploadReportsBulk: (bulkBody: any, showSuccess?: boolean) => Promise<void>;
718
718
  uploadMapping: () => Promise<void>;
719
719
  uploadEvents: () => Promise<void>;
720
720
  uploadReprogramTrigger: (eventid: string, timestamp: string) => Promise<void>;
package/sf-i-events.js CHANGED
@@ -3497,7 +3497,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3497
3497
  // await this.uploadReportsBulk(bulkBody);
3498
3498
  // await this.fetchBulkReportingData();
3499
3499
  if (bulkBody.length > 0) {
3500
- await this.uploadReportsBulk(bulkBody);
3500
+ await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
3501
3501
  }
3502
3502
  if (bulkBodyReview.length > 0) {
3503
3503
  await this.uploadReportsReviewsBulk(bulkBodyReview);
@@ -5474,8 +5474,8 @@ let SfIEvents = class SfIEvents extends LitElement {
5474
5474
  const mappedCompliances = await this.fetchMappedCompliances();
5475
5475
  // const mappedStatutes = await this.fetchMappedStatutes();
5476
5476
  //console.log('countriesJobs', countriesJobs);
5477
- //console.log('mappedCompliances', mappedCompliances);
5478
- //console.log('mappedCountries', mappedCountries);
5477
+ console.log('mappedCompliances', mappedCompliances);
5478
+ console.log('mappedCountries', mappedCountries);
5479
5479
  for (var i = 0; i < mappedCompliances.data.mappings.mappings.length; i++) {
5480
5480
  if (mappedCompliances.data.mappings.mappings[i].id == "33a0deab-e93e-41b7-831a-473f9ea3eea2") {
5481
5481
  //console.log('uniqcol zero', mappedCompliances.data.mappings.mappings[i]);
@@ -7422,7 +7422,8 @@ let SfIEvents = class SfIEvents extends LitElement {
7422
7422
  //console.log('dateresult', dateResult);
7423
7423
  this.currentColumnIndex = target + "";
7424
7424
  if (dateResult != null) {
7425
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
7425
+ await this.renderWithFeatures(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
7426
+ // await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
7426
7427
  }
7427
7428
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
7428
7429
  this.renderStream(target);
@@ -7432,7 +7433,8 @@ let SfIEvents = class SfIEvents extends LitElement {
7432
7433
  const dateResult = this.calculateStartAndEndDateOfStream(target);
7433
7434
  const monthResult = this.calculateMonthFromIndex(target);
7434
7435
  if (dateResult != null) {
7435
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
7436
+ await this.renderWithFeatures(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
7437
+ // await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
7436
7438
  }
7437
7439
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
7438
7440
  this.currentColumnIndex = target + "";
@@ -8803,7 +8805,7 @@ let SfIEvents = class SfIEvents extends LitElement {
8803
8805
  // await this.uploadReportsBulk(bulkBody);
8804
8806
  // await this.fetchBulkReportingData();
8805
8807
  if (bulkBody.length > 0) {
8806
- await this.uploadReportsBulk(bulkBody);
8808
+ await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
8807
8809
  }
8808
8810
  if (bulkBodyReview.length > 0) {
8809
8811
  await this.uploadReportsReviewsBulk(bulkBodyReview);
@@ -9909,7 +9911,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9909
9911
  // this.clearMessages();
9910
9912
  }
9911
9913
  if (bulkBody.length > 0) {
9912
- await this.uploadReportsBulk(bulkBody);
9914
+ await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
9913
9915
  }
9914
9916
  // await this.fetchBulkReportingData();
9915
9917
  if (bulkBodyReview.length > 0) {
@@ -10318,7 +10320,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10318
10320
  var _a;
10319
10321
  //console.log('divelement', divElement);
10320
10322
  //console.log('sourcearray', sourceArray);
10321
- console.log('taggingarray', taggingArray.data.mappings.mappings.length + "");
10323
+ console.log('taggingarray', taggingArray);
10322
10324
  //console.log('uniqcols', uniqCols);
10323
10325
  //console.log('subfiltervalue', subfilter);
10324
10326
  //console.log('arrFeedbackReference', arrFeedbackReference);
@@ -15330,7 +15332,8 @@ let SfIEvents = class SfIEvents extends LitElement {
15330
15332
  const dateResult = this.calculateStartAndEndDateOfStream(idx);
15331
15333
  const monthResult = this.calculateMonthFromIndex(idx);
15332
15334
  if (dateResult != null) {
15333
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
15335
+ await this.renderWithFeatures(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
15336
+ // await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
15334
15337
  }
15335
15338
  this.renderStream(idx);
15336
15339
  });
@@ -16326,16 +16329,20 @@ let SfIEvents = class SfIEvents extends LitElement {
16326
16329
  this.setError(jsonRespose.error);
16327
16330
  }
16328
16331
  };
16329
- this.uploadReportsBulk = async (bulkBody) => {
16332
+ this.uploadReportsBulk = async (bulkBody, showSuccess = true) => {
16330
16333
  let url = "https://" + this.apiId + "/uploadreportsbulk1";
16331
16334
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
16332
16335
  const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
16333
- this._SfLoader.innerHTML = '';
16336
+ if (showSuccess) {
16337
+ this._SfLoader.innerHTML = '';
16338
+ }
16334
16339
  if (xhr.status == 200) {
16335
- this.setSuccess("Bulk upload initiated. Processing will occur in the background, and you'll receive an email notification once it's complete.");
16336
- setTimeout(() => {
16337
- this.clearMessages();
16338
- }, 10000);
16340
+ if (showSuccess) {
16341
+ this.setSuccess("Bulk upload initiated. Processing will occur in the background, and you'll receive an email notification once it's complete.");
16342
+ setTimeout(() => {
16343
+ this.clearMessages();
16344
+ }, 10000);
16345
+ }
16339
16346
  }
16340
16347
  else {
16341
16348
  const jsonRespose = JSON.parse(xhr.responseText);
@@ -17131,8 +17138,10 @@ let SfIEvents = class SfIEvents extends LitElement {
17131
17138
  let resultPresigned = null;
17132
17139
  resultPresigned = {};
17133
17140
  resultPresigned.data = {};
17134
- resultPresigned.data.mappings = await this.fetchPresignedUrl(jsRespose.signedUrlGet);
17135
- console.log('resultPresigned', resultPresigned);
17141
+ let tempObj = await this.fetchPresignedUrl(jsRespose.signedUrlGet);
17142
+ resultPresigned.data.mappings = (tempObj.mappings != null) ? tempObj : { mappings: [] };
17143
+ console.log('resultPresigned onboarding1', tempObj);
17144
+ console.log('resultPresigned onboarding', resultPresigned);
17136
17145
  // await this.fetchPresignedUrlDelete(jsRespose.signedUrlDelete)
17137
17146
  return resultPresigned;
17138
17147
  }
@@ -17604,7 +17613,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17604
17613
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
17605
17614
  this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN');
17606
17615
  console.log('rendering appropriate string', list);
17607
- this.renderAppropriateStream(startDate, endDate, list == "no");
17616
+ this.renderAppropriateStream(startDate, endDate, true);
17608
17617
  this.fetchBulkReportingData();
17609
17618
  // if(this.selectedFeatures.indexOf('notices') >= 0){
17610
17619
  // this.fetchAndRenderNotices(startDate, endDate);
@@ -5862,7 +5862,7 @@ export class SfIEvents extends LitElement {
5862
5862
 
5863
5863
  // await this.fetchBulkReportingData();
5864
5864
  if(bulkBody.length > 0){
5865
- await this.uploadReportsBulk(bulkBody);
5865
+ await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
5866
5866
  }
5867
5867
 
5868
5868
  if(bulkBodyReview.length > 0){
@@ -8246,8 +8246,8 @@ export class SfIEvents extends LitElement {
8246
8246
  const mappedCompliances = await this.fetchMappedCompliances();
8247
8247
  // const mappedStatutes = await this.fetchMappedStatutes();
8248
8248
  //console.log('countriesJobs', countriesJobs);
8249
- //console.log('mappedCompliances', mappedCompliances);
8250
- //console.log('mappedCountries', mappedCountries);
8249
+ console.log('mappedCompliances', mappedCompliances);
8250
+ console.log('mappedCountries', mappedCountries);
8251
8251
 
8252
8252
 
8253
8253
  for(var i = 0; i < mappedCompliances.data.mappings.mappings.length; i++) {
@@ -10623,7 +10623,8 @@ export class SfIEvents extends LitElement {
10623
10623
  //console.log('dateresult', dateResult);
10624
10624
  this.currentColumnIndex = target + "";
10625
10625
  if(dateResult != null) {
10626
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
10626
+ await this.renderWithFeatures(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
10627
+ // await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
10627
10628
  }
10628
10629
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
10629
10630
  this.renderStream(target);
@@ -10636,7 +10637,8 @@ export class SfIEvents extends LitElement {
10636
10637
  const dateResult = this.calculateStartAndEndDateOfStream(target);
10637
10638
  const monthResult = this.calculateMonthFromIndex(target);
10638
10639
  if(dateResult != null) {
10639
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
10640
+ await this.renderWithFeatures(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
10641
+ // await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
10640
10642
  }
10641
10643
  this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
10642
10644
  this.currentColumnIndex = target + "";
@@ -12362,7 +12364,7 @@ export class SfIEvents extends LitElement {
12362
12364
  // await this.uploadReportsBulk(bulkBody);
12363
12365
  // await this.fetchBulkReportingData();
12364
12366
  if(bulkBody.length > 0){
12365
- await this.uploadReportsBulk(bulkBody);
12367
+ await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
12366
12368
  }
12367
12369
 
12368
12370
  if(bulkBodyReview.length > 0){
@@ -13651,7 +13653,7 @@ export class SfIEvents extends LitElement {
13651
13653
  }
13652
13654
 
13653
13655
  if(bulkBody.length > 0){
13654
- await this.uploadReportsBulk(bulkBody);
13656
+ await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
13655
13657
  }
13656
13658
  // await this.fetchBulkReportingData();
13657
13659
  if(bulkBodyReview.length > 0){
@@ -14183,7 +14185,7 @@ export class SfIEvents extends LitElement {
14183
14185
 
14184
14186
  //console.log('divelement', divElement);
14185
14187
  //console.log('sourcearray', sourceArray);
14186
- console.log('taggingarray', taggingArray.data.mappings.mappings.length + "");
14188
+ console.log('taggingarray', taggingArray);
14187
14189
  //console.log('uniqcols', uniqCols);
14188
14190
  //console.log('subfiltervalue', subfilter);
14189
14191
  //console.log('arrFeedbackReference', arrFeedbackReference);
@@ -20563,7 +20565,8 @@ export class SfIEvents extends LitElement {
20563
20565
  const dateResult = this.calculateStartAndEndDateOfStream(idx);
20564
20566
  const monthResult = this.calculateMonthFromIndex(idx);
20565
20567
  if(dateResult != null) {
20566
- await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
20568
+ await this.renderWithFeatures(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
20569
+ // await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
20567
20570
  }
20568
20571
  this.renderStream(idx);
20569
20572
  });
@@ -21804,18 +21807,21 @@ export class SfIEvents extends LitElement {
21804
21807
  }
21805
21808
  }
21806
21809
 
21807
- uploadReportsBulk = async (bulkBody: any) => {
21810
+ uploadReportsBulk = async (bulkBody: any, showSuccess: boolean = true) => {
21808
21811
  let url = "https://"+this.apiId+"/uploadreportsbulk1"
21809
21812
 
21810
21813
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
21811
21814
  const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
21812
- this._SfLoader.innerHTML = '';
21815
+ if(showSuccess){
21816
+ this._SfLoader.innerHTML = '';
21817
+ }
21813
21818
  if(xhr.status == 200) {
21814
-
21815
- this.setSuccess("Bulk upload initiated. Processing will occur in the background, and you'll receive an email notification once it's complete.");
21816
- setTimeout(() => {
21817
- this.clearMessages()
21818
- }, 10000);
21819
+ if(showSuccess){
21820
+ this.setSuccess("Bulk upload initiated. Processing will occur in the background, and you'll receive an email notification once it's complete.");
21821
+ setTimeout(() => {
21822
+ this.clearMessages()
21823
+ }, 10000);
21824
+ }
21819
21825
 
21820
21826
  } else {
21821
21827
  const jsonRespose = JSON.parse(xhr.responseText);
@@ -22945,8 +22951,10 @@ export class SfIEvents extends LitElement {
22945
22951
  let resultPresigned : any = null;
22946
22952
  resultPresigned = {};
22947
22953
  resultPresigned.data = {};
22948
- resultPresigned.data.mappings = await this.fetchPresignedUrl(jsRespose.signedUrlGet);
22949
- console.log('resultPresigned', resultPresigned);
22954
+ let tempObj = await this.fetchPresignedUrl(jsRespose.signedUrlGet)
22955
+ resultPresigned.data.mappings = (tempObj.mappings != null) ? tempObj : {mappings:[]};
22956
+ console.log('resultPresigned onboarding1', tempObj);
22957
+ console.log('resultPresigned onboarding', resultPresigned);
22950
22958
  // await this.fetchPresignedUrlDelete(jsRespose.signedUrlDelete)
22951
22959
  return resultPresigned;
22952
22960
 
@@ -23605,7 +23613,7 @@ export class SfIEvents extends LitElement {
23605
23613
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
23606
23614
  this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN')
23607
23615
  console.log('rendering appropriate string', list);
23608
- this.renderAppropriateStream(startDate, endDate, list == "no");
23616
+ this.renderAppropriateStream(startDate, endDate, true);
23609
23617
  this.fetchBulkReportingData();
23610
23618
  // if(this.selectedFeatures.indexOf('notices') >= 0){
23611
23619
  // this.fetchAndRenderNotices(startDate, endDate);