sf-i-events 1.0.841 → 1.0.842

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
@@ -759,7 +759,7 @@
759
759
  </sf-i-events> -->
760
760
  <!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" mode="next" fill="solid" username="Sachin Bhat" userprofileid="347e23a2-5ff8-4d3a-b1ab-639faf342f25" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" myroles="[&quot;reporter&quot;]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" blocksize="10" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024"><div slot="uploader"><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="f0f17ddb-546a-45f5-8a94-a5689fde8e64" maxsize="5242880" allowdownload="yes"></sf-i-uploader></div><div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div></sf-i-events> -->
761
761
  <!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" mode="next" fill="solid" username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" myroles="[&quot;reporter&quot;]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" blocksize="10" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024"><div slot="uploader"><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></div><div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div></sf-i-events> -->
762
- <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="2025">
762
+ <!-- <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="2025">
763
763
 
764
764
  <div slot="uploader">
765
765
  <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="f0f17ddb-546a-45f5-8a94-a5689fde8e64" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
@@ -768,7 +768,7 @@
768
768
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
769
769
  </div>
770
770
 
771
- </sf-i-events>
771
+ </sf-i-events> -->
772
772
  <!-- <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="pattern" username="Dipti" userprofileid="d888568d-0599-46f9-9d73-55ea76345db1" projectid="c7d18a84-c2df-4dc2-b75f-5820549f5e5c" projectname="Chitale" countryid="4252b692-e47c-4244-9500-0bea51150031" enabledeletelatestreport="true" 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;obligationtitle&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
773
773
 
774
774
  <div slot="uploader">
@@ -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="2025">
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>
@@ -788,12 +788,13 @@
788
788
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
789
789
  </div>
790
790
 
791
- </sf-i-events> -->
791
+ </sf-i-events>
792
792
  <!-- <sf-i-events projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" projectname="Standard Radiators Private Limited" mode="onboarding" locations="{&quot;India&quot;:{&quot;Punjab&quot;:[&quot;Punjab Warehouse&quot;],&quot;Gujarat&quot;:[&quot;RO &amp; Unit I&quot;,&quot;Unit II&quot;]}}" contractstartdate="01/03/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">
793
793
 
794
794
  </sf-i-events> -->
795
+ <!-- <sf-i-events projectid="d7d4d17e-3e20-4eaa-a06a-fb1c87f26532" projectname="FlaggGRC Global" mode="onboarding" locations="{&quot;India&quot;:{&quot;Maharashtra&quot;:[&quot;Pune&quot;]}}" 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">
795
796
 
796
- </sf-i-events>
797
+ </sf-i-events> -->
797
798
  <script>
798
799
 
799
800
  function setCookie(name,value,days) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.841",
4
+ "version": "1.0.842",
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
@@ -2426,7 +2426,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2426
2426
  let lastUpdated = '';
2427
2427
  // console.log('lastUpdated', event.lastupdated);
2428
2428
  if (event.lastupdated != null && event.lastupdated.length > 0) {
2429
- lastUpdated = event.lastupdated;
2429
+ lastUpdated = Util.getDateTimeStrings(new Date(event.lastupdated).getTime());
2430
2430
  }
2431
2431
  html += '<div class="stream-events-container flex-grow" part="' + bgStatus + '">';
2432
2432
  html += '<div class="hidden-tags hide">' + JSON.stringify(event['tags']) + '</div>';
@@ -9034,7 +9034,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9034
9034
  try {
9035
9035
  const jsonComments = JSON.parse(onlyCommentText);
9036
9036
  if (Util.isInteger(jsonComments)) {
9037
- html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
9037
+ html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
9038
9038
  }
9039
9039
  else {
9040
9040
  //console.log('json comments', jsonComments);
@@ -9045,12 +9045,12 @@ let SfIEvents = class SfIEvents extends LitElement {
9045
9045
  htmlTable += ('<sf-i-elastic-text text="' + jsonComments[Object.keys(jsonComments)[j]] + '" minLength="20"></sf-i-elastic-text>');
9046
9046
  htmlTable += '</div>';
9047
9047
  }
9048
- html += '<div class="">' + htmlTable + '<small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
9048
+ html += '<div class="">' + htmlTable + '<small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
9049
9049
  }
9050
9050
  }
9051
9051
  catch (e) {
9052
9052
  //console.log('json comments exception', comments[i]);
9053
- html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
9053
+ html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
9054
9054
  }
9055
9055
  html += '</div>';
9056
9056
  }
@@ -10011,7 +10011,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10011
10011
  try {
10012
10012
  const jsonComments = JSON.parse(onlyCommentText);
10013
10013
  if (Util.isInteger(jsonComments)) {
10014
- html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
10014
+ html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
10015
10015
  }
10016
10016
  else {
10017
10017
  //console.log('json comments', jsonComments);
@@ -10022,12 +10022,12 @@ let SfIEvents = class SfIEvents extends LitElement {
10022
10022
  htmlTable += ('<sf-i-elastic-text text="' + jsonComments[Object.keys(jsonComments)[j]] + '" minLength="20"></sf-i-elastic-text>');
10023
10023
  htmlTable += '</div>';
10024
10024
  }
10025
- html += '<div class="">' + htmlTable + '<small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
10025
+ html += '<div class="">' + htmlTable + '<small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
10026
10026
  }
10027
10027
  }
10028
10028
  catch (e) {
10029
10029
  //console.log('json comments exception', comments[i]);
10030
- html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
10030
+ html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
10031
10031
  }
10032
10032
  html += '</div>';
10033
10033
  }
@@ -11993,7 +11993,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11993
11993
  this.changedOnboardingItemIds = [];
11994
11994
  };
11995
11995
  this.renderMappingTable = (divElement, jsonData, cursor, fetchFunction, searchString, mappedArray, found, uploadFunction, refreshFunction, extraFields, uploadBlock, extraFieldPosition, colName, subfilter, statuteColName, extraHintsArr) => {
11996
- var _a, _b, _c, _f;
11996
+ var _a, _b, _c, _f, _g, _h, _j;
11997
11997
  console.log('cols1', jsonData);
11998
11998
  // console.log('cols', jsonData[0].data.cols);
11999
11999
  //console.log('divelement', divElement);
@@ -12075,7 +12075,8 @@ let SfIEvents = class SfIEvents extends LitElement {
12075
12075
  // }
12076
12076
  // }
12077
12077
  for (var j = 0; j < jsonData[0].cols.length; j++) {
12078
- html += '<th part="td-head" class="td-head ' + (statuteColName.toLowerCase() == JSON.parse(jsonData[0].data.cols)[j].toLowerCase() ? 'left-sticky' : '') + '">';
12078
+ console.log('jsoncols', JSON.parse(jsonData[0].data.cols), jsonData[0].cols.length, j);
12079
+ html += '<th part="td-head" class="td-head ' + (statuteColName.toLowerCase() == ((_a = JSON.parse(jsonData[0].data.cols)[j]) !== null && _a !== void 0 ? _a : "").toLowerCase() ? 'left-sticky' : '') + '">';
12079
12080
  // html += jsonData[0].cols[j]
12080
12081
  html += '</th>';
12081
12082
  }
@@ -12113,7 +12114,8 @@ let SfIEvents = class SfIEvents extends LitElement {
12113
12114
  var mappedCount = 0;
12114
12115
  for (let level = 0; level < 2; level++) {
12115
12116
  for (var i = 0; i < jsonData.length; i++) {
12116
- //console.log('subfilter value before', subfiltered);
12117
+ // console.log('subfilter value before', subfiltered);
12118
+ console.log('rendering', i, jsonData[i]);
12117
12119
  let tempColCountry = -1;
12118
12120
  let tempColState = -1;
12119
12121
  let tempColStatute = -1;
@@ -12146,7 +12148,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12146
12148
  tempColSubcategory = colSubcategory;
12147
12149
  }
12148
12150
  }
12149
- if (JSON.parse(jsonData[i].data.data)[tempColCountry].length === 0 && level === 1) {
12151
+ if (((_b = JSON.parse(jsonData[i].data.data)[tempColCountry]) !== null && _b !== void 0 ? _b : "").length === 0 && level === 1) {
12150
12152
  html += '<tr id="tablerow-' + i + '" class="tablerow" style="display: none">';
12151
12153
  html += '<td part="td-action">';
12152
12154
  html += '<div id="select-' + i + '"><input class="checkbox checkbox-' + i + ' checkbox-row" part="input-checkbox" type="checkbox"/></div>';
@@ -12257,11 +12259,11 @@ let SfIEvents = class SfIEvents extends LitElement {
12257
12259
  html += '<td part="td-action" class="' + (jsonData[i].mapped ? 'chosen' : '') + '">';
12258
12260
  html += '<div class="' + (!showSearch ? 'truncate' : '') + '"><button class="button-expand" part="button-icon" id="show-detail-' + i + '"><span class="material-symbols-outlined">open_in_new</span></button></div>';
12259
12261
  let locationsForThisItem = [];
12260
- if (JSON.parse(jsonData[i].data.data)[tempColState].length > 0) {
12262
+ if (((_c = JSON.parse(jsonData[i].data.data)[tempColState]) !== null && _c !== void 0 ? _c : "").length > 0) {
12261
12263
  locationsForThisItem = this.getLocationsByState(JSON.parse(jsonData[i].data.data)[tempColCountry][0], JSON.parse(jsonData[i].data.data)[tempColState][0], JSON.parse(jsonData[i].data.data)[tempColStatute]);
12262
12264
  }
12263
12265
  else {
12264
- //console.log(JSON.parse(jsonData[i].data.data)[colStatute]);
12266
+ console.log(JSON.parse(jsonData[i].data.data)[colStatute], colStatute, statuteColName);
12265
12267
  locationsForThisItem = this.getLocationsByCountry(JSON.parse(jsonData[i].data.data)[tempColCountry][0], JSON.parse(jsonData[i].data.data)[tempColStatute]);
12266
12268
  }
12267
12269
  if (extraFieldPosition === 0) {
@@ -12606,7 +12608,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12606
12608
  }
12607
12609
  });
12608
12610
  }
12609
- (_a = divElement.querySelector('.checkbox-all')) === null || _a === void 0 ? void 0 : _a.addEventListener('change', (e) => {
12611
+ (_f = divElement.querySelector('.checkbox-all')) === null || _f === void 0 ? void 0 : _f.addEventListener('change', (e) => {
12610
12612
  //console.log('cb-length', arrCheckBoxes.length);
12611
12613
  for (var i = 0; i < arrCheckBoxes.length; i++) {
12612
12614
  const tableRow = divElement.querySelector('#tablerow-' + (i));
@@ -12621,7 +12623,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12621
12623
  divElement.querySelector('.button-save').disabled = false;
12622
12624
  });
12623
12625
  // Next, previous, save handlers
12624
- (_b = this._SfButtonNext) === null || _b === void 0 ? void 0 : _b.addEventListener('click', async () => {
12626
+ (_g = this._SfButtonNext) === null || _g === void 0 ? void 0 : _g.addEventListener('click', async () => {
12625
12627
  const resultFunction = await fetchFunction(searchString, cursor[cursor.length - 1].next);
12626
12628
  //console.log(resultFunction);
12627
12629
  if (resultFunction != null) {
@@ -12648,7 +12650,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12648
12650
  this.renderMappingTable(divElement, jsonData1, cursor, fetchFunction, searchString, mappedArray, found, uploadFunction, refreshFunction, extraFields, uploadBlock, extraFieldPosition, colName, subfilter, statuteColName, extraHintsArr);
12649
12651
  }
12650
12652
  });
12651
- (_c = this._SfButtonPrev) === null || _c === void 0 ? void 0 : _c.addEventListener('click', async () => {
12653
+ (_h = this._SfButtonPrev) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async () => {
12652
12654
  cursor.pop();
12653
12655
  const resultFunction = await fetchFunction(searchString, cursor[cursor.length - 1].prev);
12654
12656
  //console.log(resultFunction);
@@ -12669,7 +12671,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12669
12671
  this.renderMappingTable(divElement, jsonData1, cursor, fetchFunction, searchString, mappedArray, found, uploadFunction, refreshFunction, extraFields, uploadBlock, extraFieldPosition, colName, subfilter, statuteColName, extraHintsArr);
12670
12672
  }
12671
12673
  });
12672
- (_f = this._SfButtonSave) === null || _f === void 0 ? void 0 : _f.addEventListener('click', async () => {
12674
+ (_j = this._SfButtonSave) === null || _j === void 0 ? void 0 : _j.addEventListener('click', async () => {
12673
12675
  await this.saveMapping(divElement, uploadBlock, jsonData, extraFields, searchString, uploadFunction, refreshFunction, false);
12674
12676
  });
12675
12677
  // const arrExtraFields = (divElement as HTMLDivElement).querySelectorAll('.extra-field') as NodeListOf<SfIMultitextarea>;
@@ -18456,7 +18458,7 @@ let SfIEvents = class SfIEvents extends LitElement {
18456
18458
  }
18457
18459
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
18458
18460
  if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
18459
- this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN');
18461
+ this.lastupdated = Util.getDateTimeStrings(new Date().getTime());
18460
18462
  console.log('rendering appropriate string', list);
18461
18463
  this.renderAppropriateStream(startDate, endDate, true);
18462
18464
  this.fetchBulkReportingData();
@@ -18559,7 +18561,7 @@ let SfIEvents = class SfIEvents extends LitElement {
18559
18561
  console.log('jsonRespose', jsonRespose);
18560
18562
  let notices = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
18561
18563
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
18562
- this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN');
18564
+ this.lastupdated = Util.getDateTimeStrings(new Date().getTime());
18563
18565
  let tempEvents = this.events;
18564
18566
  for (let mmddyyyy of Object.keys(notices)) {
18565
18567
  tempEvents[mmddyyyy] = [...((_a = tempEvents[mmddyyyy]) !== null && _a !== void 0 ? _a : []), ...notices[mmddyyyy]];
@@ -18637,7 +18639,7 @@ let SfIEvents = class SfIEvents extends LitElement {
18637
18639
  const jsonRespose = JSON.parse(xhr.responseText);
18638
18640
  console.log('jsonRespose Statistics', jsonRespose);
18639
18641
  this.statistics = jsonRespose.data;
18640
- this.lastupdated = new Date(jsonRespose.lastupdated).toLocaleDateString('en-IN') + " - " + new Date(jsonRespose.lastupdated).toLocaleTimeString('en-IN');
18642
+ this.lastupdated = Util.getDateTimeStrings(new Date(jsonRespose.lastupdated).getTime());
18641
18643
  console.log('statistics date', this.lastupdated);
18642
18644
  this.statisticsFiltersData = (_a = jsonRespose.filtersdata) !== null && _a !== void 0 ? _a : {};
18643
18645
  if (jsonRespose.meta != null)
@@ -19630,7 +19632,7 @@ let SfIEvents = class SfIEvents extends LitElement {
19630
19632
  html += `<td part="td-body">${reportKey.split(';')[0]}</td>`;
19631
19633
  html += `<td part="td-body">${JSON.parse(report['docs']).length}</td>`;
19632
19634
  html += `<td part="td-body">${report['comments'].length}</td>`;
19633
- html += `<td part="td-body">${new Date(report['lastupdated']).toLocaleDateString('en-US', { timeZone: 'Asia/Kolkata' })} - ${new Date(report['lastupdated']).toLocaleTimeString('en-US', { timeZone: 'Asia/Kolkata' })}</td>`;
19635
+ html += `<td part="td-body">${Util.getDateTimeStrings(new Date(report['lastupdated']).getTime())}</td>`;
19634
19636
  html += `<td part="td-body">${new Date(parseInt(report['dateofcompletion'])).toLocaleDateString('en-US', { timeZone: 'Asia/Kolkata' })}</td>`;
19635
19637
  html += '<th part="td-head">';
19636
19638
  // const jsonReportEvent = JSON.parse(report['comments'].reportevent);
@@ -4610,7 +4610,7 @@ export class SfIEvents extends LitElement {
4610
4610
 
4611
4611
  // console.log('lastUpdated', event.lastupdated);
4612
4612
  if(event.lastupdated != null && event.lastupdated.length > 0) {
4613
- lastUpdated = event.lastupdated;
4613
+ lastUpdated = Util.getDateTimeStrings(new Date(event.lastupdated).getTime());
4614
4614
 
4615
4615
  }
4616
4616
 
@@ -12552,7 +12552,7 @@ export class SfIEvents extends LitElement {
12552
12552
  const jsonComments = JSON.parse(onlyCommentText);
12553
12553
 
12554
12554
  if(Util.isInteger(jsonComments)) {
12555
- html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
12555
+ html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
12556
12556
  } else {
12557
12557
  //console.log('json comments', jsonComments);
12558
12558
  var htmlTable = '';
@@ -12562,12 +12562,12 @@ export class SfIEvents extends LitElement {
12562
12562
  htmlTable += ('<sf-i-elastic-text text="'+jsonComments[Object.keys(jsonComments)[j]]+'" minLength="20"></sf-i-elastic-text>');
12563
12563
  htmlTable += '</div>';
12564
12564
  }
12565
- html += '<div class="">'+htmlTable+'<small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
12565
+ html += '<div class="">'+htmlTable+'<small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
12566
12566
  }
12567
12567
 
12568
12568
  } catch (e: any) {
12569
12569
  //console.log('json comments exception', comments[i]);
12570
- html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
12570
+ html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
12571
12571
  }
12572
12572
 
12573
12573
  html += '</div>';
@@ -13687,7 +13687,7 @@ export class SfIEvents extends LitElement {
13687
13687
  const jsonComments = JSON.parse(onlyCommentText);
13688
13688
 
13689
13689
  if(Util.isInteger(jsonComments)) {
13690
- html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
13690
+ html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
13691
13691
  } else {
13692
13692
  //console.log('json comments', jsonComments);
13693
13693
  var htmlTable = '';
@@ -13697,12 +13697,12 @@ export class SfIEvents extends LitElement {
13697
13697
  htmlTable += ('<sf-i-elastic-text text="'+jsonComments[Object.keys(jsonComments)[j]]+'" minLength="20"></sf-i-elastic-text>');
13698
13698
  htmlTable += '</div>';
13699
13699
  }
13700
- html += '<div class="">'+htmlTable+'<small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
13700
+ html += '<div class="">'+htmlTable+'<small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
13701
13701
  }
13702
13702
 
13703
13703
  } catch (e: any) {
13704
13704
  //console.log('json comments exception', comments[i]);
13705
- html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
13705
+ html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
13706
13706
  }
13707
13707
 
13708
13708
  html += '</div>';
@@ -16305,8 +16305,8 @@ export class SfIEvents extends LitElement {
16305
16305
  // }
16306
16306
 
16307
16307
  for(var j = 0; j < jsonData[0].cols.length; j++) {
16308
-
16309
- html += '<th part="td-head" class="td-head ' + (statuteColName.toLowerCase() == JSON.parse(jsonData[0].data.cols)[j].toLowerCase() ? 'left-sticky' : '') + '">'
16308
+ console.log('jsoncols', JSON.parse(jsonData[0].data.cols), jsonData[0].cols.length, j)
16309
+ html += '<th part="td-head" class="td-head ' + (statuteColName.toLowerCase() == (JSON.parse(jsonData[0].data.cols)[j] ?? "").toLowerCase() ? 'left-sticky' : '') + '">'
16310
16310
  // html += jsonData[0].cols[j]
16311
16311
  html += '</th>'
16312
16312
 
@@ -16355,8 +16355,8 @@ export class SfIEvents extends LitElement {
16355
16355
 
16356
16356
  for(var i = 0; i < jsonData.length; i++) {
16357
16357
 
16358
- //console.log('subfilter value before', subfiltered);
16359
-
16358
+ // console.log('subfilter value before', subfiltered);
16359
+ console.log('rendering', i, jsonData[i])
16360
16360
  let tempColCountry = -1;
16361
16361
  let tempColState = -1;
16362
16362
  let tempColStatute = -1;
@@ -16388,7 +16388,7 @@ export class SfIEvents extends LitElement {
16388
16388
  }
16389
16389
  }
16390
16390
 
16391
- if(JSON.parse(jsonData[i].data.data)[tempColCountry].length === 0 && level === 1) {
16391
+ if((JSON.parse(jsonData[i].data.data)[tempColCountry] ?? "").length === 0 && level === 1) {
16392
16392
 
16393
16393
  html += '<tr id="tablerow-'+i+'" class="tablerow" style="display: none">';
16394
16394
 
@@ -16539,10 +16539,10 @@ export class SfIEvents extends LitElement {
16539
16539
 
16540
16540
  let locationsForThisItem: any = [];
16541
16541
 
16542
- if(JSON.parse(jsonData[i].data.data)[tempColState].length > 0) {
16542
+ if((JSON.parse(jsonData[i].data.data)[tempColState] ?? "").length > 0) {
16543
16543
  locationsForThisItem = this.getLocationsByState(JSON.parse(jsonData[i].data.data)[tempColCountry][0], JSON.parse(jsonData[i].data.data)[tempColState][0], JSON.parse(jsonData[i].data.data)[tempColStatute]);
16544
16544
  } else {
16545
- //console.log(JSON.parse(jsonData[i].data.data)[colStatute]);
16545
+ console.log(JSON.parse(jsonData[i].data.data)[colStatute], colStatute, statuteColName);
16546
16546
  locationsForThisItem = this.getLocationsByCountry(JSON.parse(jsonData[i].data.data)[tempColCountry][0], JSON.parse(jsonData[i].data.data)[tempColStatute]);
16547
16547
  }
16548
16548
 
@@ -24355,7 +24355,7 @@ export class SfIEvents extends LitElement {
24355
24355
  }
24356
24356
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
24357
24357
  if(JSON.stringify(urlBody) == this.getallcountryevetsParams){
24358
- this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN')
24358
+ this.lastupdated = Util.getDateTimeStrings(new Date().getTime())
24359
24359
  console.log('rendering appropriate string', list);
24360
24360
  this.renderAppropriateStream(startDate, endDate, true);
24361
24361
  this.fetchBulkReportingData();
@@ -24492,7 +24492,7 @@ export class SfIEvents extends LitElement {
24492
24492
  console.log('jsonRespose', jsonRespose);
24493
24493
  let notices = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
24494
24494
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
24495
- this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN')
24495
+ this.lastupdated = Util.getDateTimeStrings(new Date().getTime())
24496
24496
  let tempEvents = this.events
24497
24497
  for(let mmddyyyy of Object.keys(notices)){
24498
24498
  tempEvents[mmddyyyy] = [...(tempEvents[mmddyyyy] ?? []),...notices[mmddyyyy]]
@@ -24579,7 +24579,7 @@ export class SfIEvents extends LitElement {
24579
24579
  const jsonRespose = JSON.parse(xhr.responseText);
24580
24580
  console.log('jsonRespose Statistics', jsonRespose);
24581
24581
  this.statistics = jsonRespose.data
24582
- this.lastupdated = new Date(jsonRespose.lastupdated).toLocaleDateString('en-IN') + " - " + new Date(jsonRespose.lastupdated).toLocaleTimeString('en-IN')
24582
+ this.lastupdated = Util.getDateTimeStrings(new Date(jsonRespose.lastupdated).getTime())
24583
24583
  console.log('statistics date', this.lastupdated);
24584
24584
  this.statisticsFiltersData = jsonRespose.filtersdata ?? {}
24585
24585
  if(jsonRespose.meta != null)
@@ -25756,7 +25756,7 @@ export class SfIEvents extends LitElement {
25756
25756
  html += `<td part="td-body">${reportKey.split(';')[0]}</td>`;
25757
25757
  html += `<td part="td-body">${JSON.parse(report['docs']).length}</td>`;
25758
25758
  html += `<td part="td-body">${report['comments'].length}</td>`;
25759
- html += `<td part="td-body">${new Date(report['lastupdated']).toLocaleDateString('en-US', { timeZone: 'Asia/Kolkata'})} - ${new Date(report['lastupdated']).toLocaleTimeString('en-US', { timeZone: 'Asia/Kolkata'})}</td>`;
25759
+ html += `<td part="td-body">${Util.getDateTimeStrings(new Date(report['lastupdated']).getTime())}</td>`;
25760
25760
  html += `<td part="td-body">${new Date(parseInt(report['dateofcompletion'])).toLocaleDateString('en-US', { timeZone: 'Asia/Kolkata'})}</td>`;
25761
25761
  html += '<th part="td-head">';
25762
25762
 
package/src/util.ts CHANGED
@@ -466,8 +466,41 @@ function getCurrentFiscal(){
466
466
  return date.getFullYear();
467
467
  }
468
468
 
469
+ function getDateTimeStrings(unixTimestamp: number): string {
470
+ // Convert to milliseconds if the timestamp is in seconds
471
+ if (unixTimestamp.toString().length === 10) {
472
+ unixTimestamp *= 1000;
473
+ }
474
+
475
+ const date = new Date(unixTimestamp);
476
+
477
+ const options: Intl.DateTimeFormatOptions = {
478
+ year: 'numeric',
479
+ month: '2-digit',
480
+ day: '2-digit',
481
+ hour: '2-digit',
482
+ minute: '2-digit',
483
+ second: '2-digit',
484
+ hour12: false,
485
+ };
486
+
487
+ const estFormatter = new Intl.DateTimeFormat('en-US', {
488
+ ...options,
489
+ timeZone: 'America/New_York',
490
+ });
491
+
492
+ const istFormatter = new Intl.DateTimeFormat('en-IN', {
493
+ ...options,
494
+ timeZone: 'Asia/Kolkata',
495
+ });
496
+
497
+ const [estDate, estTime] = estFormatter.format(date).split(', ');
498
+ const [istDate, istTime] = istFormatter.format(date).split(', ');
499
+ return `${estDate} ${estTime} EST, ${istDate} ${istTime} IST`;
500
+ }
501
+
469
502
  const exportFunctions = {
470
- callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal
503
+ callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings
471
504
  };
472
505
 
473
506
  export default exportFunctions;
package/util.d.ts CHANGED
@@ -16,6 +16,7 @@ declare function titleCase(str: string): string;
16
16
  declare function alphabeticalSort(arr: string[]): string[];
17
17
  declare function percentageString(val: number, valTotal: number): string;
18
18
  declare function getCurrentFiscal(): number;
19
+ declare function getDateTimeStrings(unixTimestamp: number): string;
19
20
  declare const exportFunctions: {
20
21
  callApiPresignedDelete: typeof callApiPresignedDelete;
21
22
  callApiPresignedGet: typeof callApiPresignedGet;
@@ -37,6 +38,7 @@ declare const exportFunctions: {
37
38
  alphabeticalSort: typeof alphabeticalSort;
38
39
  percentageString: typeof percentageString;
39
40
  getCurrentFiscal: typeof getCurrentFiscal;
41
+ getDateTimeStrings: typeof getDateTimeStrings;
40
42
  };
41
43
  export default exportFunctions;
42
44
  //# sourceMappingURL=util.d.ts.map
package/util.js CHANGED
@@ -391,8 +391,35 @@ function getCurrentFiscal() {
391
391
  }
392
392
  return date.getFullYear();
393
393
  }
394
+ function getDateTimeStrings(unixTimestamp) {
395
+ // Convert to milliseconds if the timestamp is in seconds
396
+ if (unixTimestamp.toString().length === 10) {
397
+ unixTimestamp *= 1000;
398
+ }
399
+ const date = new Date(unixTimestamp);
400
+ const options = {
401
+ year: 'numeric',
402
+ month: '2-digit',
403
+ day: '2-digit',
404
+ hour: '2-digit',
405
+ minute: '2-digit',
406
+ second: '2-digit',
407
+ hour12: false,
408
+ };
409
+ const estFormatter = new Intl.DateTimeFormat('en-US', {
410
+ ...options,
411
+ timeZone: 'America/New_York',
412
+ });
413
+ const istFormatter = new Intl.DateTimeFormat('en-IN', {
414
+ ...options,
415
+ timeZone: 'Asia/Kolkata',
416
+ });
417
+ const [estDate, estTime] = estFormatter.format(date).split(', ');
418
+ const [istDate, istTime] = istFormatter.format(date).split(', ');
419
+ return `${estDate} ${estTime} EST, ${istDate} ${istTime} IST`;
420
+ }
394
421
  const exportFunctions = {
395
- callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal
422
+ callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings
396
423
  };
397
424
  export default exportFunctions;
398
425
  //# sourceMappingURL=util.js.map