sf-i-events 1.0.837 → 1.0.839

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
@@ -684,7 +684,7 @@
684
684
  <!-- <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">
685
685
 
686
686
  </sf-i-events> -->
687
- <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">
687
+ <!-- <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">
688
688
 
689
689
  <div slot="uploader">
690
690
  <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="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
@@ -693,7 +693,7 @@
693
693
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
694
694
  </div>
695
695
 
696
- </sf-i-events>
696
+ </sf-i-events> -->
697
697
  <!-- <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 Functionhead" userprofileid="8b73b571-f993-49cf-96e1-bf84f628f26f" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" projectname="PrecisionMed ABC" countryid="f443b70d-6609-42e0-b6a4-446bfa05d20a" 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">
698
698
 
699
699
  <div slot="uploader">
@@ -704,7 +704,7 @@
704
704
  </div>
705
705
 
706
706
  </sf-i-events> -->
707
- <!-- <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="Auditor J1" userprofileid="bda0d59b-058b-4098-b0fc-54aa54aa5998" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="auditor" 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">
707
+ <!-- <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="Auditor J1" userprofileid="bda0d59b-058b-4098-b0fc-54aa54aa5998" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="auditor" 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="2025">
708
708
 
709
709
  <div slot="uploader">
710
710
  <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>
@@ -714,7 +714,7 @@
714
714
  </div>
715
715
 
716
716
  </sf-i-events> -->
717
- <!-- <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">
717
+ <!-- <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="2025">
718
718
 
719
719
  <div slot="uploader">
720
720
  <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>
@@ -734,7 +734,7 @@
734
734
  </div>
735
735
 
736
736
  </sf-i-events> -->
737
- <!-- <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="07d73b44-648d-4301-82c4-d6df43397824" 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">
737
+ <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="07d73b44-648d-4301-82c4-d6df43397824" 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">
738
738
 
739
739
  <div slot="uploader">
740
740
  <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>
@@ -743,7 +743,7 @@
743
743
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
744
744
  </div>
745
745
 
746
- </sf-i-events> -->
746
+ </sf-i-events>
747
747
  <!-- <sf-i-events projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" mode="onboarding" locations="{&quot;India&quot;:{&quot;Telangana&quot;:[&quot;Corporate Office&quot;,&quot;Telangana Plant&quot;],&quot;Karnataka&quot;:[&quot;Prime&quot;,&quot;Stopak&quot;,&quot;Wintek&quot;,&quot;Tools&quot;,&quot;Conversion&quot;],&quot;Gujarat&quot;:[&quot;Dahej&quot;],&quot;Dadra and Nagar Haveli and Daman and Diu&quot;:[&quot;Silvassa&quot;],&quot;Uttarakhand&quot;:[&quot;Uttarakhand&quot;],&quot;Maharashtra&quot;:[&quot;Pune&quot;],&quot;Andhra Pradesh&quot;:[&quot;AP&quot;],&quot;Chhattisgarh&quot;:[&quot;Chhattisgarh&quot;],&quot;Goa&quot;:[&quot;Goa&quot;],&quot;Himachal Pradesh&quot;:[&quot;HP&quot;],&quot;Haryana&quot;:[&quot;Haryana&quot;],&quot;Jharkhand&quot;:[&quot;Jharkhand&quot;],&quot;Madhya Pradesh&quot;:[&quot;MP&quot;],&quot;Odisha&quot;:[&quot;Odisha&quot;],&quot;Punjab&quot;:[&quot;Punjab&quot;],&quot;Tamil Nadu&quot;:[&quot;TN&quot;],&quot;Uttar Pradesh&quot;:[&quot;UP&quot;],&quot;West Bengal&quot;:[&quot;WB&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">
748
748
 
749
749
  </sf-i-events> -->
@@ -779,7 +779,7 @@
779
779
  </div>
780
780
 
781
781
  </sf-i-events> -->
782
- <!-- <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="07d73b44-648d-4301-82c4-d6df43397824" 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">
782
+ <!-- <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="07d73b44-648d-4301-82c4-d6df43397824" 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="2025">
783
783
 
784
784
  <div slot="uploader">
785
785
  <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>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.837",
4
+ "version": "1.0.839",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.js CHANGED
@@ -2716,6 +2716,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2716
2716
  // }
2717
2717
  return html;
2718
2718
  };
2719
+ //(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton)
2719
2720
  this.renderEvents = (_firstDay, _endDay, iInit, iLast, showGraph, index, month, period, firstDate = null, parametersTitle, showBackgroundButton) => {
2720
2721
  var _a, _b, _c, _f, _g, _h, _j, _k;
2721
2722
  var total = 0, notStarted = 0, approved = 0, pendingApproval = 0, rejected = 0, inTime = 0, pastDueDate = 0, lateExecuted = 0, lateApproved = 0, lateReported = 0, scheduled = 0, partiallyComplied = 0, notComplied = 0, complied = 0, compliedWithGaps = 0, reportedNonCompliance = 0;
@@ -2746,11 +2747,11 @@ let SfIEvents = class SfIEvents extends LitElement {
2746
2747
  }
2747
2748
  else {
2748
2749
  const currDate = new Date(firstDate.getTime());
2749
- currDate.setDate(firstDate.getDate() + (i - 1));
2750
+ currDate.setDate(firstDate.getDate() + (i));
2750
2751
  mmdd = ("0" + (currDate.getMonth() + 1)).slice(-2) + "/" + ("0" + currDate.getDate()).slice(-2);
2751
2752
  }
2752
2753
  //console.log('mmdd', mmdd);
2753
- //console.log('mmddevent', mmdd,this.events[mmdd]);
2754
+ console.log('mmddevent', mmdd, this.events[mmdd], firstDate);
2754
2755
  var hide;
2755
2756
  if (firstDate == null) {
2756
2757
  hide = this.getCalendarRowHide(this.events[mmdd], i, lastDay, month, firstDate, null);
@@ -2969,10 +2970,10 @@ let SfIEvents = class SfIEvents extends LitElement {
2969
2970
  }
2970
2971
  else {
2971
2972
  const currDate = new Date(firstDate.getTime());
2972
- currDate.setDate(firstDate.getDate() + (i - 1));
2973
+ currDate.setDate(firstDate.getDate() + (i));
2973
2974
  mmdd = ("0" + (currDate.getMonth() + 1)).slice(-2) + "/" + ("0" + currDate.getDate()).slice(-2);
2974
2975
  }
2975
- //console.log('mmddevent', mmdd,this.events[mmdd]);
2976
+ console.log('mmddevent', mmdd, this.events[mmdd], firstDate);
2976
2977
  // var hide;
2977
2978
  // if(firstDate == null) {
2978
2979
  // hide = this.getCalendarRowHide(this.events[mmdd], i, lastDay, month, firstDate, null);
@@ -3379,7 +3380,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3379
3380
  }
3380
3381
  });
3381
3382
  (_f = listReportingContainer.querySelector('#button-auto-approve')) === null || _f === void 0 ? void 0 : _f.addEventListener('click', async () => {
3382
- if (this.selectedItemIds.length == 0) {
3383
+ if (this.selectedItemIds.length <= 1) {
3383
3384
  await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
3384
3385
  this.setSuccess('Auto-Approved successfully!');
3385
3386
  setTimeout(() => {
@@ -3432,8 +3433,14 @@ let SfIEvents = class SfIEvents extends LitElement {
3432
3433
  let buttonClick = ev.target;
3433
3434
  buttonClick.innerHTML = "Saving...";
3434
3435
  const comments = listReportingContainer.querySelector('#input-approver-comments').value;
3436
+ console.log('comments', comments, JSON.stringify(event.comments));
3435
3437
  const approved = listReportingContainer.querySelector('#input-approve-yes').checked;
3436
- if (approved == event.approved) {
3438
+ let currStatus = this.getCompletenessStatus(event);
3439
+ let newEvent = { ...event };
3440
+ newEvent.comments = comments;
3441
+ newEvent.approved = approved;
3442
+ let newStatus = this.getCompletenessStatus(newEvent);
3443
+ if (currStatus == newStatus) {
3437
3444
  buttonClick.innerHTML = "Save";
3438
3445
  this.setError('Already Approved!');
3439
3446
  setTimeout(() => {
@@ -3442,11 +3449,13 @@ let SfIEvents = class SfIEvents extends LitElement {
3442
3449
  return;
3443
3450
  }
3444
3451
  let flagBulk = false;
3445
- if (this.selectedItemIds.length == 0) {
3452
+ if (this.selectedItemIds.length <= 1) {
3453
+ console.log('selectedevent', JSON.stringify(event));
3446
3454
  if (await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")) {
3447
3455
  for (var p = 0; p < this.events[mmdd].length; p++) {
3448
3456
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
3449
3457
  this.events[mmdd][p].approved = approved;
3458
+ console.log('selected event', this.events[mmdd][p]);
3450
3459
  this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
3451
3460
  this.events[mmdd][p].lastupdated = new Date().toString();
3452
3461
  if (approved) {
@@ -3546,7 +3555,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3546
3555
  }
3547
3556
  else {
3548
3557
  let flagBulk = false;
3549
- if (this.selectedItemIds.length == 0) {
3558
+ if (this.selectedItemIds.length <= 1) {
3550
3559
  if (await this.uploadAudit(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")) {
3551
3560
  for (var p = 0; p < this.events[mmdd].length; p++) {
3552
3561
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
@@ -3705,7 +3714,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3705
3714
  }
3706
3715
  else {
3707
3716
  let flagBulk = false;
3708
- if (this.selectedItemIds.length == 0) {
3717
+ if (this.selectedItemIds.length <= 1) {
3709
3718
  if (await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage, event.makercheckers)) {
3710
3719
  console.log('this.events', this.events);
3711
3720
  if (this.mode != "next") {
@@ -4011,10 +4020,11 @@ let SfIEvents = class SfIEvents extends LitElement {
4011
4020
  const lastDay = count;
4012
4021
  let firstDay = new Date(firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate());
4013
4022
  let endDay = new Date(firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate());
4014
- endDay === null || endDay === void 0 ? void 0 : endDay.setDate(endDay.getDate() + lastDay + 1);
4023
+ endDay === null || endDay === void 0 ? void 0 : endDay.setDate(endDay.getDate() + lastDay);
4024
+ console.log('firstday', firstDay, endDay);
4015
4025
  var period = ("0" + (firstDay.getMonth() + 1)).slice(-2) + "/" + ("0" + firstDay.getDate()).slice(-2) + '/' + firstDay.getFullYear() + ' - ' + ("0" + (endDay.getMonth() + 1)).slice(-2) + "/" + ("0" + endDay.getDate()).slice(-2) + '/' + endDay.getFullYear();
4016
- console.log('rangeperiod', period);
4017
- var html = this.renderEvents(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate, "From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton);
4026
+ console.log('rangeperiod', period, lastDay);
4027
+ var html = this.renderEvents(firstDay, endDay, 0, lastDay, true, 0, (firstDate.getMonth()), period, firstDate, "From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton);
4018
4028
  eventsContainer.querySelector('.calendar-right-data').innerHTML = html;
4019
4029
  if (eventsContainer.innerHTML.indexOf('button-select-all') < 0) {
4020
4030
  eventsContainer.insertAdjacentHTML('beforeend', this.renderSelectAllButtons());
@@ -4690,10 +4700,10 @@ let SfIEvents = class SfIEvents extends LitElement {
4690
4700
  const lastDay = count;
4691
4701
  let firstDay = new Date(firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate());
4692
4702
  let endDay = new Date(firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate());
4693
- endDay === null || endDay === void 0 ? void 0 : endDay.setDate(endDay.getDate() + lastDay + 1);
4694
- var period = ("0" + (firstDate.getMonth() + 1)).slice(-2) + "/" + ("0" + firstDate.getDate()).slice(-2) + '/' + firstDate.getFullYear() + ' - ' + ("0" + (lastDate.getMonth() + 1)).slice(-2) + "/" + ("0" + lastDate.getDate()).slice(-2) + '/' + lastDate.getFullYear();
4695
- //console.log('rangeperiod', period)
4696
- var html = this.renderStatistics(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate, "From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'));
4703
+ endDay === null || endDay === void 0 ? void 0 : endDay.setDate(endDay.getDate() + lastDay);
4704
+ var period = ("0" + (firstDate.getMonth() + 1)).slice(-2) + "/" + ("0" + firstDate.getDate()).slice(-2) + '/' + firstDate.getFullYear() + ' - ' + ("0" + (endDay.getMonth() + 1)).slice(-2) + "/" + ("0" + endDay.getDate()).slice(-2) + '/' + endDay.getFullYear();
4705
+ console.log('rangeperiod', period, lastDay);
4706
+ var html = this.renderStatistics(firstDay, endDay, 0, lastDay, true, 0, (firstDate.getMonth()), period, firstDate, "From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'));
4697
4707
  eventsContainer.querySelector('.calendar-right-data').innerHTML = html;
4698
4708
  this.renderButtonRefresh(eventsContainer);
4699
4709
  const filterButton = eventsContainer.querySelector('#filter-button');
@@ -5273,19 +5283,20 @@ let SfIEvents = class SfIEvents extends LitElement {
5273
5283
  this._SfStreamEventStatus.innerHTML = "Chosen End Date cannot be earlier than chosen Start Date";
5274
5284
  return;
5275
5285
  }
5276
- if ((new Date(valueEnd).getTime() - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24) > 400) {
5277
- this._SfStreamEventStatus.innerHTML = "Chosen time window cannot be greater than 400 days";
5286
+ if ((new Date(valueEnd).getTime() - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24) > 365) {
5287
+ this._SfStreamEventStatus.innerHTML = "Chosen time window cannot be greater than 365 days";
5278
5288
  return;
5279
5289
  }
5280
5290
  const tsStart = new Date(valueStart);
5281
5291
  const tsEnd = new Date(valueEnd);
5282
- tsStart.setDate(tsStart.getDate() - 2);
5283
- tsEnd.setDate(tsEnd.getDate() + 2);
5292
+ console.log('start date', tsStart, 'endDate', tsEnd);
5293
+ // tsStart.setDate(tsStart.getDate() - 2);
5294
+ // tsEnd.setDate(tsEnd.getDate() + 2);
5284
5295
  if (fetchData) {
5285
5296
  await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
5286
5297
  // await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
5287
5298
  }
5288
- this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime() + 24 * 60 * 60 * 1000) - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24), this._SfCustomContainer, showBackgroundButton);
5299
+ this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime()) - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24), this._SfCustomContainer, showBackgroundButton);
5289
5300
  }
5290
5301
  else if (valueStart != "" && valueEnd == "") {
5291
5302
  this._SfStreamEventStatus.innerHTML = "Please select End Date";
@@ -5385,18 +5396,18 @@ let SfIEvents = class SfIEvents extends LitElement {
5385
5396
  this._SfStreamEventStatus.innerHTML = "Chosen End Date cannot be earlier than chosen Start Date";
5386
5397
  return;
5387
5398
  }
5388
- if ((new Date(valueEnd).getTime() - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24) > 400) {
5389
- this._SfStreamEventStatus.innerHTML = "Chosen time window cannot be greater than 400 days";
5399
+ if ((new Date(valueEnd).getTime() - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24) > 365) {
5400
+ this._SfStreamEventStatus.innerHTML = "Chosen time window cannot be greater than 365 days";
5390
5401
  return;
5391
5402
  }
5392
5403
  const tsStart = new Date(valueStart);
5393
5404
  const tsEnd = new Date(valueEnd);
5394
- tsStart.setDate(tsStart.getDate() - 2);
5395
- tsEnd.setDate(tsEnd.getDate() + 2);
5405
+ // tsStart.setDate(tsStart.getDate() - 2);
5406
+ // tsEnd.setDate(tsEnd.getDate() + 2);
5396
5407
  //console.log('tsstart', tsStart);
5397
5408
  //console.log('tsend', tsEnd);
5398
5409
  let meta = await this.fetchStatistics((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear(), filtercriteria, filtervalue, subfiltercriteria, subfiltervalue);
5399
- this.renderRangeStatistics(new Date(valueStart), ((new Date(valueEnd).getTime() + 24 * 60 * 60 * 1000) - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24), this._SfCustomContainer);
5410
+ this.renderRangeStatistics(new Date(valueStart), ((new Date(valueEnd).getTime()) - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24), this._SfCustomContainer);
5400
5411
  if (meta != null)
5401
5412
  this.renderStatisticsFilters(this._SfCustomContainer);
5402
5413
  }
@@ -9138,7 +9149,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9138
9149
  this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
9139
9150
  // await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved)
9140
9151
  let flagBulk = false;
9141
- if (this.selectedItemIds.length === 0) {
9152
+ if (this.selectedItemIds.length <= 1) {
9142
9153
  console.log('mmddyyyy', mmddyyyy);
9143
9154
  if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.isnotice != null ? "notices" : "events")) {
9144
9155
  for (var p = 0; p < this.events[mmdd].length; p++) {
@@ -9257,7 +9268,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9257
9268
  }
9258
9269
  else {
9259
9270
  let flagBulk = false;
9260
- if (this.selectedItemIds.length === 0) {
9271
+ if (this.selectedItemIds.length <= 1) {
9261
9272
  if (await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.isnotice != null ? "notices" : "events")) {
9262
9273
  for (var p = 0; p < this.events[mmdd].length; p++) {
9263
9274
  if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
@@ -9426,7 +9437,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9426
9437
  });
9427
9438
  this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
9428
9439
  let flagBulk = false;
9429
- if (this.selectedItemIds.length === 0) {
9440
+ if (this.selectedItemIds.length <= 1) {
9430
9441
  if (await this.uploadReport(entityId, locationId, mmddyyyy, listEvent["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, "notices", percentage, makercheckers)) {
9431
9442
  console.log('this.events', this.events);
9432
9443
  for (var p = 0; p < this.events[mmdd].length; p++) {
@@ -10057,7 +10068,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10057
10068
  this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
10058
10069
  });
10059
10070
  (_c = this._SfDetailContainer.querySelector('#button-auto-approve')) === null || _c === void 0 ? void 0 : _c.addEventListener('click', async () => {
10060
- if (this.selectedItemIds.length === 0) {
10071
+ if (this.selectedItemIds.length <= 1) {
10061
10072
  await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
10062
10073
  this.setSuccess('Auto-Approved successfully!');
10063
10074
  setTimeout(() => {
@@ -10237,7 +10248,12 @@ let SfIEvents = class SfIEvents extends LitElement {
10237
10248
  buttonClick.innerHTML = "Saving...";
10238
10249
  const comments = this._SfDetailContainer.querySelector('#input-approver-comments').value;
10239
10250
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
10240
- if (approved == event.approved) {
10251
+ let currStatus = this.getCompletenessStatus(event);
10252
+ let newEvent = { ...event };
10253
+ newEvent.comments = comments;
10254
+ newEvent.approved = approved;
10255
+ let newStatus = this.getCompletenessStatus(newEvent);
10256
+ if (currStatus == newStatus) {
10241
10257
  buttonClick.innerHTML = "Save";
10242
10258
  this.setError('Already Approved!');
10243
10259
  setTimeout(() => {
@@ -10253,7 +10269,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10253
10269
  this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
10254
10270
  // await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved)
10255
10271
  let flagBulk = false;
10256
- if (this.selectedItemIds.length === 0) {
10272
+ if (this.selectedItemIds.length <= 1) {
10257
10273
  // console.log('mmddyyyy', mmddyyyy)
10258
10274
  if (await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")) {
10259
10275
  for (var p = 0; p < this.events[mmdd].length; p++) {
@@ -10353,7 +10369,13 @@ let SfIEvents = class SfIEvents extends LitElement {
10353
10369
  buttonClick.innerHTML = "Saving...";
10354
10370
  const comments = this._SfDetailContainer.querySelector('#input-auditor-comments').value;
10355
10371
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
10356
- if (approved == event.approved) {
10372
+ let currStatus = this.getCompletenessStatus(event);
10373
+ let newEvent = { ...event };
10374
+ newEvent.comments = comments;
10375
+ newEvent.approved = approved;
10376
+ let newStatus = this.getCompletenessStatus(newEvent);
10377
+ console.log('status', currStatus, newStatus);
10378
+ if (currStatus == newStatus) {
10357
10379
  buttonClick.innerHTML = "Save";
10358
10380
  this.setError('Already Approved!');
10359
10381
  setTimeout(() => {
@@ -10370,7 +10392,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10370
10392
  }
10371
10393
  else {
10372
10394
  let flagBulk = false;
10373
- if (this.selectedItemIds.length === 0) {
10395
+ if (this.selectedItemIds.length <= 1) {
10374
10396
  if (await this.uploadAudit(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")) {
10375
10397
  for (var p = 0; p < this.events[mmdd].length; p++) {
10376
10398
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
@@ -10537,7 +10559,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10537
10559
  });
10538
10560
  this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
10539
10561
  let flagBulk = false;
10540
- if (this.selectedItemIds.length === 0) {
10562
+ if (this.selectedItemIds.length <= 1) {
10541
10563
  //console.log('makerscheckers', makercheckers, reportercomments);
10542
10564
  // console.log('reportformatvalues', reportformatvalues)
10543
10565
  // console.log('reportformatschema',reportformatschema)
@@ -11358,7 +11380,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11358
11380
  let changedId = "";
11359
11381
  for (let [k, col] of uniqCols.entries()) {
11360
11382
  if (taggingArray.data.mappings.mappings[i] == null) {
11361
- console.log('id not found', i, taggingArray.data.mappings.mappings);
11383
+ console.log('id not found', i, taggingArray.data.mappings.mappings.length, sourceArray.data.mappings.mappings.length);
11362
11384
  }
11363
11385
  changedId += taggingArray.data.mappings.mappings[i][col];
11364
11386
  if (k < (uniqCols.length - 1)) {
@@ -17047,7 +17069,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17047
17069
  return retValue;
17048
17070
  };
17049
17071
  this.uploadAuditsBulk = async (bulkBody) => {
17050
- let url = "https://" + this.apiId + "/uploadauditsbulk1";
17072
+ let url = "https://" + this.apiId + "/uploadauditsbulk2";
17051
17073
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
17052
17074
  const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
17053
17075
  this._SfLoader.innerHTML = '';
@@ -17139,7 +17161,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17139
17161
  }
17140
17162
  };
17141
17163
  this.uploadReviewsBulk = async (bulkBody) => {
17142
- let url = "https://" + this.apiId + "/uploadreviewsbulk1";
17164
+ let url = "https://" + this.apiId + "/uploadreviewsbulk2";
17143
17165
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
17144
17166
  const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
17145
17167
  this._SfLoader.innerHTML = '';
@@ -17220,7 +17242,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17220
17242
  return retValue;
17221
17243
  };
17222
17244
  this.uploadReportsBulk = async (bulkBody, showSuccess = true) => {
17223
- let url = "https://" + this.apiId + "/uploadreportsbulk3";
17245
+ let url = "https://" + this.apiId + "/uploadreportsbulk4";
17224
17246
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
17225
17247
  const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
17226
17248
  if (showSuccess) {
@@ -18759,7 +18781,7 @@ let SfIEvents = class SfIEvents extends LitElement {
18759
18781
  }
18760
18782
  };
18761
18783
  this.fetchAdhoc = async () => {
18762
- let path = "getallmyevents", view = "";
18784
+ let path = "getallmyevents1", view = "";
18763
18785
  if (this.tagId != null && this.tagId != "") {
18764
18786
  view = "tag";
18765
18787
  }
@@ -18781,7 +18803,9 @@ let SfIEvents = class SfIEvents extends LitElement {
18781
18803
  if (xhr.status == 200) {
18782
18804
  const jsonRespose = JSON.parse(xhr.responseText);
18783
18805
  console.log(jsonRespose);
18784
- return jsonRespose;
18806
+ let responseData = await this.fetchPresignedUrl(jsonRespose.signedUrlGet);
18807
+ await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
18808
+ return responseData;
18785
18809
  }
18786
18810
  else {
18787
18811
  if (xhr.status == 401) {
@@ -4947,6 +4947,7 @@ export class SfIEvents extends LitElement {
4947
4947
 
4948
4948
  }
4949
4949
 
4950
+ //(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton)
4950
4951
  renderEvents = (_firstDay: any, _endDay: any, iInit: number, iLast: number, showGraph: boolean, index: number, month: number, period: string, firstDate: any = null, parametersTitle: string, showBackgroundButton: boolean) => {
4951
4952
  var total = 0, notStarted = 0, approved = 0, pendingApproval = 0, rejected = 0, inTime = 0, pastDueDate = 0, lateExecuted = 0, lateApproved = 0, lateReported = 0, scheduled = 0, partiallyComplied = 0, notComplied = 0, complied = 0, compliedWithGaps = 0, reportedNonCompliance = 0;
4952
4953
  var html = '';
@@ -4984,12 +4985,12 @@ export class SfIEvents extends LitElement {
4984
4985
  mmdd = ("0" + (month+1)).slice(-2) + "/" + ("0" + i).slice(-2);
4985
4986
  } else {
4986
4987
  const currDate = new Date(firstDate.getTime());
4987
- currDate.setDate(firstDate.getDate() + (i - 1));
4988
+ currDate.setDate(firstDate.getDate() + (i));
4988
4989
  mmdd = ("0" + (currDate.getMonth()+1)).slice(-2) + "/" + ("0" + currDate.getDate()).slice(-2);
4989
4990
  }
4990
4991
 
4991
4992
  //console.log('mmdd', mmdd);
4992
- //console.log('mmddevent', mmdd,this.events[mmdd]);
4993
+ console.log('mmddevent', mmdd,this.events[mmdd], firstDate);
4993
4994
 
4994
4995
  var hide;
4995
4996
  if(firstDate == null) {
@@ -5244,12 +5245,12 @@ export class SfIEvents extends LitElement {
5244
5245
  mmdd = ("0" + (month+1)).slice(-2) + "/" + ("0" + i).slice(-2);
5245
5246
  } else {
5246
5247
  const currDate = new Date(firstDate.getTime());
5247
- currDate.setDate(firstDate.getDate() + (i - 1));
5248
+ currDate.setDate(firstDate.getDate() + (i));
5248
5249
  mmdd = ("0" + (currDate.getMonth()+1)).slice(-2) + "/" + ("0" + currDate.getDate()).slice(-2);
5249
5250
  }
5250
5251
 
5251
5252
 
5252
- //console.log('mmddevent', mmdd,this.events[mmdd]);
5253
+ console.log('mmddevent', mmdd,this.events[mmdd], firstDate);
5253
5254
 
5254
5255
  // var hide;
5255
5256
  // if(firstDate == null) {
@@ -5715,7 +5716,7 @@ export class SfIEvents extends LitElement {
5715
5716
 
5716
5717
  });
5717
5718
  listReportingContainer.querySelector('#button-auto-approve')?.addEventListener('click', async () => {
5718
- if(this.selectedItemIds.length == 0){
5719
+ if(this.selectedItemIds.length <= 1){
5719
5720
  await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
5720
5721
  this.setSuccess('Auto-Approved successfully!')
5721
5722
  setTimeout(() => {
@@ -5770,8 +5771,14 @@ export class SfIEvents extends LitElement {
5770
5771
  let buttonClick = ev.target as HTMLButtonElement
5771
5772
  buttonClick.innerHTML = "Saving..."
5772
5773
  const comments = (listReportingContainer.querySelector('#input-approver-comments') as HTMLInputElement).value;
5774
+ console.log('comments', comments, JSON.stringify(event.comments))
5773
5775
  const approved = (listReportingContainer.querySelector('#input-approve-yes') as HTMLInputElement).checked;
5774
- if(approved == event.approved){
5776
+ let currStatus = this.getCompletenessStatus(event);
5777
+ let newEvent = {...event};
5778
+ newEvent.comments = comments;
5779
+ newEvent.approved = approved;
5780
+ let newStatus = this.getCompletenessStatus(newEvent);
5781
+ if(currStatus == newStatus){
5775
5782
  buttonClick.innerHTML = "Save"
5776
5783
  this.setError('Already Approved!');
5777
5784
  setTimeout(() => {
@@ -5780,12 +5787,13 @@ export class SfIEvents extends LitElement {
5780
5787
  return;
5781
5788
  }
5782
5789
  let flagBulk = false;
5783
- if(this.selectedItemIds.length == 0){
5784
-
5790
+ if(this.selectedItemIds.length <= 1){
5791
+ console.log('selectedevent', JSON.stringify(event));
5785
5792
  if(await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")){
5786
5793
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
5787
5794
  if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
5788
5795
  this.events[mmdd][p].approved = approved
5796
+ console.log('selected event', this.events[mmdd][p]);
5789
5797
  this.events[mmdd][p].comments.push({'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString()})
5790
5798
  this.events[mmdd][p].lastupdated = new Date().toString()
5791
5799
  if(approved){
@@ -5893,7 +5901,7 @@ export class SfIEvents extends LitElement {
5893
5901
 
5894
5902
  } else {
5895
5903
  let flagBulk = false;
5896
- if(this.selectedItemIds.length == 0){
5904
+ if(this.selectedItemIds.length <= 1){
5897
5905
  if(await this.uploadAudit(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")){
5898
5906
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
5899
5907
  if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
@@ -6078,7 +6086,7 @@ export class SfIEvents extends LitElement {
6078
6086
 
6079
6087
  } else {
6080
6088
  let flagBulk = false;
6081
- if(this.selectedItemIds.length == 0){
6089
+ if(this.selectedItemIds.length <= 1){
6082
6090
 
6083
6091
  if(await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage, event.makercheckers)){
6084
6092
 
@@ -6428,13 +6436,13 @@ export class SfIEvents extends LitElement {
6428
6436
  const lastDay = count;
6429
6437
  let firstDay = new Date(firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate());
6430
6438
  let endDay = new Date(firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate());
6431
- endDay?.setDate(endDay.getDate() + lastDay + 1);
6432
-
6439
+ endDay?.setDate(endDay.getDate() + lastDay);
6440
+ console.log('firstday', firstDay, endDay)
6433
6441
  var period = ("0" + (firstDay.getMonth()+1)).slice(-2) + "/" + ("0" + firstDay.getDate()).slice(-2) + '/' + firstDay.getFullYear() + ' - ' + ("0" + (endDay.getMonth()+1)).slice(-2) + "/" + ("0" + endDay.getDate()).slice(-2) + '/' + endDay.getFullYear();
6434
6442
 
6435
- console.log('rangeperiod', period)
6443
+ console.log('rangeperiod', period, lastDay);
6436
6444
 
6437
- var html = this.renderEvents(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton);
6445
+ var html = this.renderEvents(firstDay, endDay, 0, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton);
6438
6446
 
6439
6447
  eventsContainer.querySelector('.calendar-right-data')!.innerHTML = html;
6440
6448
  if(eventsContainer.innerHTML.indexOf('button-select-all') < 0){
@@ -7222,11 +7230,11 @@ export class SfIEvents extends LitElement {
7222
7230
  const lastDay = count;
7223
7231
  let firstDay = new Date(firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate());
7224
7232
  let endDay = new Date(firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate());
7225
- endDay?.setDate(endDay.getDate() + lastDay + 1);
7226
- var period = ("0" + (firstDate.getMonth()+1)).slice(-2) + "/" + ("0" + firstDate.getDate()).slice(-2) + '/' + firstDate.getFullYear() + ' - ' + ("0" + (lastDate.getMonth()+1)).slice(-2) + "/" + ("0" + lastDate.getDate()).slice(-2) + '/' + lastDate.getFullYear();
7227
- //console.log('rangeperiod', period)
7233
+ endDay?.setDate(endDay.getDate() + lastDay);
7234
+ var period = ("0" + (firstDate.getMonth()+1)).slice(-2) + "/" + ("0" + firstDate.getDate()).slice(-2) + '/' + firstDate.getFullYear() + ' - ' + ("0" + (endDay.getMonth()+1)).slice(-2) + "/" + ("0" + endDay.getDate()).slice(-2) + '/' + endDay.getFullYear();
7235
+ console.log('rangeperiod', period, lastDay)
7228
7236
 
7229
- var html = this.renderStatistics(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'));
7237
+ var html = this.renderStatistics(firstDay, endDay, 0, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'));
7230
7238
 
7231
7239
  eventsContainer.querySelector('.calendar-right-data')!.innerHTML = html;
7232
7240
  this.renderButtonRefresh(eventsContainer);
@@ -7908,19 +7916,20 @@ export class SfIEvents extends LitElement {
7908
7916
  (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen End Date cannot be earlier than chosen Start Date";
7909
7917
  return;
7910
7918
  }
7911
- if((new Date(valueEnd).getTime() - new Date(valueStart).getTime())/(1000*60*60*24) > 400) {
7912
- (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen time window cannot be greater than 400 days";
7919
+ if((new Date(valueEnd).getTime() - new Date(valueStart).getTime())/(1000*60*60*24) > 365) {
7920
+ (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen time window cannot be greater than 365 days";
7913
7921
  return;
7914
7922
  }
7915
7923
  const tsStart = new Date(valueStart);
7916
7924
  const tsEnd = new Date(valueEnd);
7917
- tsStart.setDate(tsStart.getDate() - 2);
7918
- tsEnd.setDate(tsEnd.getDate() + 2);
7925
+ console.log('start date', tsStart, 'endDate', tsEnd)
7926
+ // tsStart.setDate(tsStart.getDate() - 2);
7927
+ // tsEnd.setDate(tsEnd.getDate() + 2);
7919
7928
  if(fetchData){
7920
7929
  await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear())
7921
7930
  // await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
7922
7931
  }
7923
- this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime()+24*60*60*1000) - new Date(valueStart).getTime())/(1000*60*60*24), (this._SfCustomContainer as HTMLDivElement), showBackgroundButton);
7932
+ this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime()) - new Date(valueStart).getTime())/(1000*60*60*24), (this._SfCustomContainer as HTMLDivElement), showBackgroundButton);
7924
7933
  } else if(valueStart != "" && valueEnd == "") {
7925
7934
  (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Please select End Date";
7926
7935
  } else if(valueStart == "" && valueEnd != "") {
@@ -8025,20 +8034,20 @@ export class SfIEvents extends LitElement {
8025
8034
  (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen End Date cannot be earlier than chosen Start Date";
8026
8035
  return;
8027
8036
  }
8028
- if((new Date(valueEnd).getTime() - new Date(valueStart).getTime())/(1000*60*60*24) > 400) {
8029
- (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen time window cannot be greater than 400 days";
8037
+ if((new Date(valueEnd).getTime() - new Date(valueStart).getTime())/(1000*60*60*24) > 365) {
8038
+ (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen time window cannot be greater than 365 days";
8030
8039
  return;
8031
8040
  }
8032
8041
  const tsStart = new Date(valueStart);
8033
8042
  const tsEnd = new Date(valueEnd);
8034
- tsStart.setDate(tsStart.getDate() - 2);
8035
- tsEnd.setDate(tsEnd.getDate() + 2);
8043
+ // tsStart.setDate(tsStart.getDate() - 2);
8044
+ // tsEnd.setDate(tsEnd.getDate() + 2);
8036
8045
 
8037
8046
  //console.log('tsstart', tsStart);
8038
8047
  //console.log('tsend', tsEnd);
8039
8048
 
8040
8049
  let meta = await this.fetchStatistics((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear(), filtercriteria, filtervalue, subfiltercriteria, subfiltervalue);
8041
- this.renderRangeStatistics(new Date(valueStart), ((new Date(valueEnd).getTime()+24*60*60*1000) - new Date(valueStart).getTime())/(1000*60*60*24), (this._SfCustomContainer as HTMLDivElement));
8050
+ this.renderRangeStatistics(new Date(valueStart), ((new Date(valueEnd).getTime()) - new Date(valueStart).getTime())/(1000*60*60*24), (this._SfCustomContainer as HTMLDivElement));
8042
8051
 
8043
8052
  if(meta != null) this.renderStatisticsFilters((this._SfCustomContainer as HTMLDivElement))
8044
8053
  } else if(valueStart != "" && valueEnd == "") {
@@ -12671,7 +12680,7 @@ export class SfIEvents extends LitElement {
12671
12680
 
12672
12681
  // await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved)
12673
12682
  let flagBulk = false;
12674
- if(this.selectedItemIds.length === 0) {
12683
+ if(this.selectedItemIds.length <= 1) {
12675
12684
  console.log('mmddyyyy', mmddyyyy)
12676
12685
  if(await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.isnotice != null ? "notices" : "events")){
12677
12686
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
@@ -12799,7 +12808,7 @@ export class SfIEvents extends LitElement {
12799
12808
 
12800
12809
  } else {
12801
12810
  let flagBulk = false;
12802
- if(this.selectedItemIds.length === 0) {
12811
+ if(this.selectedItemIds.length <= 1) {
12803
12812
 
12804
12813
  if(await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.isnotice != null ? "notices" : "events")){
12805
12814
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
@@ -13002,7 +13011,7 @@ export class SfIEvents extends LitElement {
13002
13011
 
13003
13012
  ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-detail-close') as HTMLButtonElement)!.dispatchEvent(clickEvent);
13004
13013
  let flagBulk = false;
13005
- if(this.selectedItemIds.length === 0) {
13014
+ if(this.selectedItemIds.length <= 1) {
13006
13015
 
13007
13016
  if(await this.uploadReport(entityId, locationId, mmddyyyy, listEvent["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, "notices", percentage, makercheckers)){
13008
13017
  console.log('this.events', this.events);
@@ -13747,7 +13756,7 @@ export class SfIEvents extends LitElement {
13747
13756
 
13748
13757
  });
13749
13758
  (this._SfDetailContainer as HTMLDivElement).querySelector('#button-auto-approve')?.addEventListener('click', async () => {
13750
- if(this.selectedItemIds.length === 0) {
13759
+ if(this.selectedItemIds.length <= 1) {
13751
13760
  await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
13752
13761
  this.setSuccess('Auto-Approved successfully!')
13753
13762
  setTimeout(() => {
@@ -13973,7 +13982,12 @@ export class SfIEvents extends LitElement {
13973
13982
  buttonClick.innerHTML = "Saving..."
13974
13983
  const comments = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approver-comments') as HTMLInputElement).value;
13975
13984
  const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
13976
- if(approved == event.approved){
13985
+ let currStatus = this.getCompletenessStatus(event);
13986
+ let newEvent = {...event};
13987
+ newEvent.comments = comments;
13988
+ newEvent.approved = approved;
13989
+ let newStatus = this.getCompletenessStatus(newEvent);
13990
+ if(currStatus == newStatus){
13977
13991
  buttonClick.innerHTML = "Save"
13978
13992
  this.setError('Already Approved!');
13979
13993
  setTimeout(() => {
@@ -13990,7 +14004,7 @@ export class SfIEvents extends LitElement {
13990
14004
 
13991
14005
  // await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved)
13992
14006
  let flagBulk = false;
13993
- if(this.selectedItemIds.length === 0) {
14007
+ if(this.selectedItemIds.length <= 1) {
13994
14008
  // console.log('mmddyyyy', mmddyyyy)
13995
14009
  if(await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")){
13996
14010
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
@@ -14099,7 +14113,13 @@ export class SfIEvents extends LitElement {
14099
14113
  buttonClick.innerHTML = "Saving..."
14100
14114
  const comments: string = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-auditor-comments') as HTMLInputElement).value;
14101
14115
  const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
14102
- if(approved == event.approved){
14116
+ let currStatus = this.getCompletenessStatus(event);
14117
+ let newEvent = {...event};
14118
+ newEvent.comments = comments;
14119
+ newEvent.approved = approved;
14120
+ let newStatus = this.getCompletenessStatus(newEvent);
14121
+ console.log('status', currStatus, newStatus)
14122
+ if(currStatus == newStatus){
14103
14123
  buttonClick.innerHTML = "Save"
14104
14124
  this.setError('Already Approved!');
14105
14125
  setTimeout(() => {
@@ -14116,7 +14136,7 @@ export class SfIEvents extends LitElement {
14116
14136
 
14117
14137
  } else {
14118
14138
  let flagBulk = false;
14119
- if(this.selectedItemIds.length === 0) {
14139
+ if(this.selectedItemIds.length <= 1) {
14120
14140
 
14121
14141
  if(await this.uploadAudit(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")){
14122
14142
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
@@ -14316,7 +14336,7 @@ export class SfIEvents extends LitElement {
14316
14336
 
14317
14337
  ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-detail-close') as HTMLButtonElement)!.dispatchEvent(clickEvent);
14318
14338
  let flagBulk = false;
14319
- if(this.selectedItemIds.length === 0) {
14339
+ if(this.selectedItemIds.length <= 1) {
14320
14340
 
14321
14341
  //console.log('makerscheckers', makercheckers, reportercomments);
14322
14342
  // console.log('reportformatvalues', reportformatvalues)
@@ -15366,7 +15386,7 @@ export class SfIEvents extends LitElement {
15366
15386
  let changedId = ""
15367
15387
  for(let [k,col] of uniqCols.entries()){
15368
15388
  if(taggingArray.data.mappings.mappings[i] == null){
15369
- console.log('id not found', i, taggingArray.data.mappings.mappings)
15389
+ console.log('id not found', i, taggingArray.data.mappings.mappings.length, sourceArray.data.mappings.mappings.length)
15370
15390
  }
15371
15391
  changedId += taggingArray.data.mappings.mappings[i][col];
15372
15392
  if(k < (uniqCols.length - 1)){
@@ -22547,7 +22567,7 @@ export class SfIEvents extends LitElement {
22547
22567
  return retValue;
22548
22568
  }
22549
22569
  uploadAuditsBulk = async (bulkBody: any) => {
22550
- let url = "https://"+this.apiId+"/uploadauditsbulk1";
22570
+ let url = "https://"+this.apiId+"/uploadauditsbulk2";
22551
22571
 
22552
22572
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
22553
22573
  const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
@@ -22645,7 +22665,7 @@ export class SfIEvents extends LitElement {
22645
22665
  }
22646
22666
  }
22647
22667
  uploadReviewsBulk = async (bulkBody: any) => {
22648
- let url = "https://"+this.apiId+"/uploadreviewsbulk1";
22668
+ let url = "https://"+this.apiId+"/uploadreviewsbulk2";
22649
22669
 
22650
22670
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
22651
22671
  const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
@@ -22732,7 +22752,7 @@ export class SfIEvents extends LitElement {
22732
22752
  }
22733
22753
 
22734
22754
  uploadReportsBulk = async (bulkBody: any, showSuccess: boolean = true) => {
22735
- let url = "https://"+this.apiId+"/uploadreportsbulk3"
22755
+ let url = "https://"+this.apiId+"/uploadreportsbulk4"
22736
22756
 
22737
22757
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
22738
22758
  const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
@@ -24721,7 +24741,7 @@ export class SfIEvents extends LitElement {
24721
24741
 
24722
24742
  fetchAdhoc = async () => {
24723
24743
 
24724
- let path = "getallmyevents", view = "";
24744
+ let path = "getallmyevents1", view = "";
24725
24745
 
24726
24746
  if(this.tagId != null && this.tagId != "") {
24727
24747
  view = "tag";
@@ -24745,7 +24765,9 @@ export class SfIEvents extends LitElement {
24745
24765
 
24746
24766
  const jsonRespose = JSON.parse(xhr.responseText);
24747
24767
  console.log(jsonRespose);
24748
- return jsonRespose;
24768
+ let responseData = await this.fetchPresignedUrl(jsonRespose.signedUrlGet);
24769
+ await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
24770
+ return responseData;
24749
24771
 
24750
24772
  } else {
24751
24773
  if(xhr.status == 401){