sf-i-events 1.0.807 → 1.0.808

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
@@ -675,9 +675,9 @@
675
675
  <!-- <sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}" contractstartdate="01/01/2025" 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">
676
676
 
677
677
  </sf-i-events> -->
678
- <sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}" contractstartdate="01/01/2025" 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">
678
+ <!-- <sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}" contractstartdate="01/01/2025" 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">
679
679
 
680
- </sf-i-events>
680
+ </sf-i-events> -->
681
681
  <!-- <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="Precisionmed Reporter" userprofileid="fe5070fe-9982-4dcf-8458-f8d4f97c7b01" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" projectname="PrecisionMed ABC" countryid="f443b70d-6609-42e0-b6a4-446bfa05d20a" myrole="reporter" showregisterexport="false" features="[]" 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">
682
682
 
683
683
  <div slot="uploader">
@@ -688,7 +688,7 @@
688
688
  </div>
689
689
 
690
690
  </sf-i-events> -->
691
- <!-- <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">
691
+ <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">
692
692
 
693
693
  <div slot="uploader">
694
694
  <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>
@@ -697,7 +697,7 @@
697
697
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
698
698
  </div>
699
699
 
700
- </sf-i-events> -->
700
+ </sf-i-events>
701
701
  <!-- <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="Ankur Singhal" userprofileid="010834e8-108e-4a87-b58d-f5b429f184be" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" countryid="4ab8901c-4407-4c4d-a2c7-df1a690aa0a3" myrole="viewer" showregisterexport="false" features="[]" 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">
702
702
 
703
703
  <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.807",
4
+ "version": "1.0.808",
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
@@ -600,7 +600,7 @@ export declare class SfIEvents extends LitElement {
600
600
  renderEventDetailShort: (compliance: any) => void;
601
601
  fetchNoticeDetails: (listEvent: any) => Promise<void>;
602
602
  renderNoticeDetails: (listEvent: any, mmddyyyy: string) => Promise<void>;
603
- fetchEventDetails: (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement) => Promise<void>;
603
+ fetchEventDetails: (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance?: boolean, listEventContainer?: HTMLDivElement | null) => Promise<void>;
604
604
  renderEventDetail: (event: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement) => void;
605
605
  renderCalendar: () => void;
606
606
  matchesOnBoardingFilter: (country: string, state: string, subcategory: string, statute: string) => boolean;
package/sf-i-events.js CHANGED
@@ -3132,6 +3132,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3132
3132
  return html;
3133
3133
  };
3134
3134
  this.renderReporting = (event, mmddyyyy) => {
3135
+ var _a;
3135
3136
  let html = '';
3136
3137
  let completeness = this.getCompletenessStatus(event);
3137
3138
  let docs = event['documents'] == null ? [] : event['documents'];
@@ -3140,6 +3141,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3140
3141
  let percentage = event['percentage'] == null ? '100' : event['percentage'];
3141
3142
  let makercheckers = event['makercheckers'] == null ? [] : event['makercheckers'];
3142
3143
  let docsOptional = event['docs'] == null ? [] : event['docs'];
3144
+ let uploadGuidance = (_a = event['uploadguidance']) !== null && _a !== void 0 ? _a : 0;
3143
3145
  console.log('rendering reporting', event, percentage);
3144
3146
  if (this.selectedItemIds.length > 0) {
3145
3147
  html += `<div class="d-flex justify-between ">
@@ -3214,10 +3216,14 @@ let SfIEvents = class SfIEvents extends LitElement {
3214
3216
  html += '<div part="input-reporter-percentage-message" class="input-reporter-percentage-message mb-20">For reporting full non-compliance, choose 0%. For reporting compliance with gaps, choose the appropriate % value.</div><br />';
3215
3217
  // if(docsOptional.length === 0) {
3216
3218
  html += '<label part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
3217
- if (event['uploadguidance'] != null && event['uploadguidance'].length > 0) {
3218
- html += ('<div part="uploader-analysis-message">' + event['uploadguidance'] + '</div>');
3219
- }
3220
3219
  html += '<slot name="uploader"></slot>';
3220
+ if (uploadGuidance == 1) {
3221
+ html += '<button id="upload-guidance-button" part="button-icon-small" class="d-flex button-icon-small align-center align-self-start mt-10"><span class="material-symbols-outlined">help</span>&nbsp;&nbsp;<span>View upload guidance</span></button>';
3222
+ }
3223
+ else if (uploadGuidance != 0) {
3224
+ html += '<div part="detail-head" class="mt-10"><strong>Upload Guidance</strong></div>';
3225
+ html += '<sf-i-elastic-text text="' + (event['uploadguidance'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="150"></sf-i-elastic-text>';
3226
+ }
3221
3227
  html += '<div part="uploader-analysis-message" class="uploader-analysis-message mt-20">The analysis is running in the background. You can proceed further.</div>';
3222
3228
  // }
3223
3229
  html += '<br />';
@@ -3293,7 +3299,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3293
3299
  return html;
3294
3300
  };
3295
3301
  this.renderListReporting = (listReportingContainer, event, mmddyyyy, eventsContainer) => {
3296
- var _a, _b, _c, _f, _g, _h, _j, _k, _l;
3302
+ var _a, _b, _c, _f, _g, _h, _j, _k, _l, _m;
3297
3303
  console.log('listreporting event', event, this.graphFilter);
3298
3304
  let html = '';
3299
3305
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
@@ -3399,8 +3405,12 @@ let SfIEvents = class SfIEvents extends LitElement {
3399
3405
  // }
3400
3406
  }
3401
3407
  });
3408
+ (_g = listReportingContainer.querySelector('#upload-guidance-button')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', async () => {
3409
+ console.log('upload guidance clicked', event);
3410
+ await this.fetchEventDetails(event, mmddyyyy, null, eventsContainer, true, listReportingContainer);
3411
+ });
3402
3412
  if (this.mode == "consumer" || this.mode == "next") {
3403
- (_g = listReportingContainer.querySelector('#button-uploader-submit-approve')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', async (ev) => {
3413
+ (_h = listReportingContainer.querySelector('#button-uploader-submit-approve')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async (ev) => {
3404
3414
  let buttonClick = ev.target;
3405
3415
  buttonClick.innerHTML = "Saving...";
3406
3416
  const comments = listReportingContainer.querySelector('#input-approver-comments').value;
@@ -3495,7 +3505,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3495
3505
  }
3496
3506
  }
3497
3507
  });
3498
- (_h = listReportingContainer.querySelector('#button-uploader-submit-audit')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async (ev) => {
3508
+ (_j = listReportingContainer.querySelector('#button-uploader-submit-audit')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', async (ev) => {
3499
3509
  let buttonClick = ev.target;
3500
3510
  buttonClick.innerHTML = "Saving...";
3501
3511
  const comments = listReportingContainer.querySelector('#input-auditor-comments').value;
@@ -3606,7 +3616,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3606
3616
  else {
3607
3617
  if (listReportingContainer.querySelector('#button-uploader-submit-report') != null) {
3608
3618
  listReportingContainer.querySelector('#button-uploader-submit-report').style.visibility = 'visible';
3609
- (_j = listReportingContainer.querySelector('#button-uploader-submit-report')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', async (ev) => {
3619
+ (_k = listReportingContainer.querySelector('#button-uploader-submit-report')) === null || _k === void 0 ? void 0 : _k.addEventListener('click', async (ev) => {
3610
3620
  var _a, _b;
3611
3621
  let buttonClick = ev.target;
3612
3622
  buttonClick.innerHTML = "Saving...";
@@ -3898,7 +3908,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3898
3908
  }
3899
3909
  }
3900
3910
  if (event['reportformat'] != null && event['reportformat'].length > 0) {
3901
- this.fetchReportFormat(listReportingContainer, reportformatName, (_k = event['reportformatschema']) !== null && _k !== void 0 ? _k : "", (_l = event['reportformatvalues']) !== null && _l !== void 0 ? _l : "");
3911
+ this.fetchReportFormat(listReportingContainer, reportformatName, (_l = event['reportformatschema']) !== null && _l !== void 0 ? _l : "", (_m = event['reportformatvalues']) !== null && _m !== void 0 ? _m : "");
3902
3912
  }
3903
3913
  };
3904
3914
  this.attachListReportingListeners = (eventsContainer) => {
@@ -9589,7 +9599,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9589
9599
  }
9590
9600
  }
9591
9601
  };
9592
- this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer) => {
9602
+ this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer, flagUploadGuidance = false, listEventContainer = null) => {
9593
9603
  console.log('listEvent', listEvent, listEvent.id);
9594
9604
  let url = "https://" + this.apiId + "/getalleventdetails";
9595
9605
  //console.log('fetch calendar url', url);
@@ -9601,7 +9611,22 @@ let SfIEvents = class SfIEvents extends LitElement {
9601
9611
  if (xhr.status == 200) {
9602
9612
  const jsonRespose = JSON.parse(xhr.responseText);
9603
9613
  console.log('jsonRespose', jsonRespose);
9604
- this.renderEventDetail(jsonRespose.data, mmddyyyy, currentColumnButton, eventsContainer);
9614
+ if (flagUploadGuidance) {
9615
+ if (listEventContainer != null) {
9616
+ let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
9617
+ if (this.events[mmdd] != null) {
9618
+ for (var p = 0; p < this.events[mmdd].length; p++) {
9619
+ if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == listEvent.locationid && this.events[mmdd][p].entityid == listEvent.entityid) {
9620
+ this.events[mmdd][p].uploadguidance = jsonRespose.data.uploadguidance;
9621
+ }
9622
+ }
9623
+ }
9624
+ this.renderListReporting(listEventContainer, jsonRespose.data, mmddyyyy, eventsContainer);
9625
+ }
9626
+ }
9627
+ else {
9628
+ this.renderEventDetail(jsonRespose.data, mmddyyyy, currentColumnButton, eventsContainer);
9629
+ }
9605
9630
  }
9606
9631
  else {
9607
9632
  if (xhr.status === 404) {
@@ -5448,6 +5448,7 @@ export class SfIEvents extends LitElement {
5448
5448
  let percentage = event['percentage'] == null ? '100' : event['percentage'];
5449
5449
  let makercheckers = event['makercheckers'] == null ? [] : event['makercheckers'];
5450
5450
  let docsOptional = event['docs'] == null ? [] : event['docs'];
5451
+ let uploadGuidance = event['uploadguidance'] ?? 0
5451
5452
  console.log('rendering reporting', event, percentage)
5452
5453
  if(this.selectedItemIds.length > 0){
5453
5454
  html += `<div class="d-flex justify-between ">
@@ -5539,11 +5540,13 @@ export class SfIEvents extends LitElement {
5539
5540
  // if(docsOptional.length === 0) {
5540
5541
  html += '<label part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
5541
5542
 
5542
- if(event['uploadguidance'] != null && event['uploadguidance'].length > 0) {
5543
- html += ('<div part="uploader-analysis-message">'+event['uploadguidance']+'</div>');
5544
- }
5545
-
5546
5543
  html += '<slot name="uploader"></slot>';
5544
+ if(uploadGuidance == 1){
5545
+ html += '<button id="upload-guidance-button" part="button-icon-small" class="d-flex button-icon-small align-center align-self-start mt-10"><span class="material-symbols-outlined">help</span>&nbsp;&nbsp;<span>View upload guidance</span></button>'
5546
+ }else if(uploadGuidance != 0){
5547
+ html += '<div part="detail-head" class="mt-10"><strong>Upload Guidance</strong></div>'
5548
+ html += '<sf-i-elastic-text text="'+(event['uploadguidance'] + "").replace(/"/g, "").replace(/\n/g,'<br />')+'" minLength="150"></sf-i-elastic-text>';
5549
+ }
5547
5550
  html += '<div part="uploader-analysis-message" class="uploader-analysis-message mt-20">The analysis is running in the background. You can proceed further.</div>'
5548
5551
  // }
5549
5552
  html += '<br />';
@@ -5738,6 +5741,10 @@ export class SfIEvents extends LitElement {
5738
5741
  }
5739
5742
 
5740
5743
  });
5744
+ listReportingContainer.querySelector('#upload-guidance-button')?.addEventListener('click', async () => {
5745
+ console.log('upload guidance clicked', event);
5746
+ await this.fetchEventDetails(event, mmddyyyy, null, eventsContainer, true, listReportingContainer);
5747
+ })
5741
5748
  if(this.mode == "consumer" || this.mode == "next") {
5742
5749
 
5743
5750
  listReportingContainer.querySelector('#button-uploader-submit-approve')?.addEventListener('click', async (ev: any) => {
@@ -13201,7 +13208,7 @@ export class SfIEvents extends LitElement {
13201
13208
  }
13202
13209
  }
13203
13210
 
13204
- fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement) => {
13211
+ fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null) => {
13205
13212
  console.log('listEvent', listEvent, listEvent.id)
13206
13213
  let url = "https://"+this.apiId+"/getalleventdetails";
13207
13214
 
@@ -13217,7 +13224,21 @@ export class SfIEvents extends LitElement {
13217
13224
 
13218
13225
  const jsonRespose = JSON.parse(xhr.responseText);
13219
13226
  console.log('jsonRespose', jsonRespose);
13220
- this.renderEventDetail(jsonRespose.data,mmddyyyy, currentColumnButton, eventsContainer);
13227
+ if(flagUploadGuidance){
13228
+ if(listEventContainer != null){
13229
+ let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
13230
+ if(this.events[mmdd] != null){
13231
+ for( var p = 0 ; p < this.events[mmdd].length; p ++){
13232
+ if(this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == listEvent.locationid && this.events[mmdd][p].entityid == listEvent.entityid){
13233
+ this.events[mmdd][p].uploadguidance = jsonRespose.data.uploadguidance
13234
+ }
13235
+ }
13236
+ }
13237
+ this.renderListReporting(listEventContainer, jsonRespose.data, mmddyyyy, eventsContainer)
13238
+ }
13239
+ }else{
13240
+ this.renderEventDetail(jsonRespose.data,mmddyyyy, currentColumnButton, eventsContainer);
13241
+ }
13221
13242
 
13222
13243
  } else {
13223
13244