sf-i-events 1.0.806 → 1.0.808

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dev/index.html CHANGED
@@ -20,7 +20,7 @@
20
20
  import {LitElement, html, css} from 'https://esm.run/lit-element/lit-element.js';
21
21
  import {SfISelect} from 'https://esm.run/sf-i-select@1.0.92/sf-i-select.js';
22
22
  import {SfISubSelect} from 'https://esm.run/sf-i-sub-select@1.0.83/sf-i-sub-select.js';
23
- import {SfIForm} from 'https://esm.run/sf-i-form@1.0.181/sf-i-form.js';
23
+ import {SfIForm} from 'https://esm.run/sf-i-form@1.0.184/sf-i-form.js';
24
24
  import {SfIElasticText} from 'https://esm.run/sf-i-elastic-text@1.0.17/sf-i-elastic-text.js';
25
25
  import {SfIUploader} from 'https://esm.run/sf-i-uploader@1.0.105/sf-i-uploader.js';
26
26
  import {SfIMultitextarea} from 'https://esm.run/sf-i-multitextarea@1.0.23/sf-i-multitextarea.js';
@@ -34,7 +34,7 @@
34
34
  // import {SfUserAuth} from 'https://unpkg.com/sf-user-auth@1.0.87/sf-user-auth.js?module';
35
35
  // import {SfISelect} from 'https://unpkg.com/sf-i-select@1.0.91/sf-i-select.js?module';
36
36
  // import {SfISubSelect} from 'https://unpkg.com/sf-i-sub-select@1.0.82/sf-i-sub-select.js?module';
37
- // import {SfIForm} from 'https://unpkg.com/sf-i-form@1.0.115/sf-i-form.js?module';
37
+ // import {SfIForm} from 'https://unpkg.com/sf-i-form@1.0.184/sf-i-form.js?module';
38
38
  // import {SfIEvents} from 'https://unpkg.com/sf-i-events@1.0.423/sf-i-events.js?module';
39
39
  // import {SfIElasticText} from 'https://unpkg.com/sf-i-elastic-text@1.0.7/sf-i-elastic-text.js?module';
40
40
  // import {SfIUploader} from 'https://unpkg.com/sf-i-uploader@1.0.102/sf-i-uploader.js?module';
@@ -672,16 +672,32 @@
672
672
  </style>
673
673
  </head>
674
674
  <body>
675
- <!-- <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">
675
+ <!-- <sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}" contractstartdate="01/01/2025" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
676
+
677
+ </sf-i-events> -->
678
+ <!-- <sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}" contractstartdate="01/01/2025" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
679
+
680
+ </sf-i-events> -->
681
+ <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Precisionmed Reporter" userprofileid="fe5070fe-9982-4dcf-8458-f8d4f97c7b01" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" projectname="PrecisionMed ABC" countryid="f443b70d-6609-42e0-b6a4-446bfa05d20a" myrole="reporter" showregisterexport="false" features="[]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
676
682
 
677
683
  <div slot="uploader">
678
- <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>
684
+ <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>
679
685
  </div>
680
686
  <div slot="reporting">
681
687
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
682
688
  </div>
683
689
 
684
690
  </sf-i-events> -->
691
+ <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" showregisterexport="false" features="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
692
+
693
+ <div slot="uploader">
694
+ <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
695
+ </div>
696
+ <div slot="reporting">
697
+ <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
698
+ </div>
699
+
700
+ </sf-i-events>
685
701
  <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Ankur Singhal" userprofileid="010834e8-108e-4a87-b58d-f5b429f184be" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" countryid="4ab8901c-4407-4c4d-a2c7-df1a690aa0a3" myrole="viewer" showregisterexport="false" features="[]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
686
702
 
687
703
  <div slot="uploader">
@@ -702,7 +718,7 @@
702
718
  </div>
703
719
 
704
720
  </sf-i-events> -->
705
- <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">
721
+ <!-- <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">
706
722
 
707
723
  <div slot="uploader">
708
724
  <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>
@@ -711,7 +727,7 @@
711
727
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
712
728
  </div>
713
729
 
714
- </sf-i-events>
730
+ </sf-i-events> -->
715
731
  <!-- <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">
716
732
 
717
733
  <div slot="uploader">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.806",
4
+ "version": "1.0.808",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.d.ts CHANGED
@@ -600,7 +600,7 @@ export declare class SfIEvents extends LitElement {
600
600
  renderEventDetailShort: (compliance: any) => void;
601
601
  fetchNoticeDetails: (listEvent: any) => Promise<void>;
602
602
  renderNoticeDetails: (listEvent: any, mmddyyyy: string) => Promise<void>;
603
- fetchEventDetails: (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement) => Promise<void>;
603
+ fetchEventDetails: (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance?: boolean, listEventContainer?: HTMLDivElement | null) => Promise<void>;
604
604
  renderEventDetail: (event: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement) => void;
605
605
  renderCalendar: () => void;
606
606
  matchesOnBoardingFilter: (country: string, state: string, subcategory: string, statute: string) => boolean;
package/sf-i-events.js CHANGED
@@ -3132,6 +3132,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3132
3132
  return html;
3133
3133
  };
3134
3134
  this.renderReporting = (event, mmddyyyy) => {
3135
+ var _a;
3135
3136
  let html = '';
3136
3137
  let completeness = this.getCompletenessStatus(event);
3137
3138
  let docs = event['documents'] == null ? [] : event['documents'];
@@ -3140,6 +3141,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3140
3141
  let percentage = event['percentage'] == null ? '100' : event['percentage'];
3141
3142
  let makercheckers = event['makercheckers'] == null ? [] : event['makercheckers'];
3142
3143
  let docsOptional = event['docs'] == null ? [] : event['docs'];
3144
+ let uploadGuidance = (_a = event['uploadguidance']) !== null && _a !== void 0 ? _a : 0;
3143
3145
  console.log('rendering reporting', event, percentage);
3144
3146
  if (this.selectedItemIds.length > 0) {
3145
3147
  html += `<div class="d-flex justify-between ">
@@ -3214,10 +3216,14 @@ let SfIEvents = class SfIEvents extends LitElement {
3214
3216
  html += '<div part="input-reporter-percentage-message" class="input-reporter-percentage-message mb-20">For reporting full non-compliance, choose 0%. For reporting compliance with gaps, choose the appropriate % value.</div><br />';
3215
3217
  // if(docsOptional.length === 0) {
3216
3218
  html += '<label part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
3217
- if (event['uploadguidance'] != null && event['uploadguidance'].length > 0) {
3218
- html += ('<div part="uploader-analysis-message">' + event['uploadguidance'] + '</div>');
3219
- }
3220
3219
  html += '<slot name="uploader"></slot>';
3220
+ if (uploadGuidance == 1) {
3221
+ html += '<button id="upload-guidance-button" part="button-icon-small" class="d-flex button-icon-small align-center align-self-start mt-10"><span class="material-symbols-outlined">help</span>&nbsp;&nbsp;<span>View upload guidance</span></button>';
3222
+ }
3223
+ else if (uploadGuidance != 0) {
3224
+ html += '<div part="detail-head" class="mt-10"><strong>Upload Guidance</strong></div>';
3225
+ html += '<sf-i-elastic-text text="' + (event['uploadguidance'] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="150"></sf-i-elastic-text>';
3226
+ }
3221
3227
  html += '<div part="uploader-analysis-message" class="uploader-analysis-message mt-20">The analysis is running in the background. You can proceed further.</div>';
3222
3228
  // }
3223
3229
  html += '<br />';
@@ -3293,7 +3299,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3293
3299
  return html;
3294
3300
  };
3295
3301
  this.renderListReporting = (listReportingContainer, event, mmddyyyy, eventsContainer) => {
3296
- var _a, _b, _c, _f, _g, _h, _j, _k, _l;
3302
+ var _a, _b, _c, _f, _g, _h, _j, _k, _l, _m;
3297
3303
  console.log('listreporting event', event, this.graphFilter);
3298
3304
  let html = '';
3299
3305
  let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
@@ -3399,8 +3405,12 @@ let SfIEvents = class SfIEvents extends LitElement {
3399
3405
  // }
3400
3406
  }
3401
3407
  });
3408
+ (_g = listReportingContainer.querySelector('#upload-guidance-button')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', async () => {
3409
+ console.log('upload guidance clicked', event);
3410
+ await this.fetchEventDetails(event, mmddyyyy, null, eventsContainer, true, listReportingContainer);
3411
+ });
3402
3412
  if (this.mode == "consumer" || this.mode == "next") {
3403
- (_g = listReportingContainer.querySelector('#button-uploader-submit-approve')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', async (ev) => {
3413
+ (_h = listReportingContainer.querySelector('#button-uploader-submit-approve')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async (ev) => {
3404
3414
  let buttonClick = ev.target;
3405
3415
  buttonClick.innerHTML = "Saving...";
3406
3416
  const comments = listReportingContainer.querySelector('#input-approver-comments').value;
@@ -3495,7 +3505,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3495
3505
  }
3496
3506
  }
3497
3507
  });
3498
- (_h = listReportingContainer.querySelector('#button-uploader-submit-audit')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async (ev) => {
3508
+ (_j = listReportingContainer.querySelector('#button-uploader-submit-audit')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', async (ev) => {
3499
3509
  let buttonClick = ev.target;
3500
3510
  buttonClick.innerHTML = "Saving...";
3501
3511
  const comments = listReportingContainer.querySelector('#input-auditor-comments').value;
@@ -3606,7 +3616,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3606
3616
  else {
3607
3617
  if (listReportingContainer.querySelector('#button-uploader-submit-report') != null) {
3608
3618
  listReportingContainer.querySelector('#button-uploader-submit-report').style.visibility = 'visible';
3609
- (_j = listReportingContainer.querySelector('#button-uploader-submit-report')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', async (ev) => {
3619
+ (_k = listReportingContainer.querySelector('#button-uploader-submit-report')) === null || _k === void 0 ? void 0 : _k.addEventListener('click', async (ev) => {
3610
3620
  var _a, _b;
3611
3621
  let buttonClick = ev.target;
3612
3622
  buttonClick.innerHTML = "Saving...";
@@ -3898,7 +3908,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3898
3908
  }
3899
3909
  }
3900
3910
  if (event['reportformat'] != null && event['reportformat'].length > 0) {
3901
- this.fetchReportFormat(listReportingContainer, reportformatName, (_k = event['reportformatschema']) !== null && _k !== void 0 ? _k : "", (_l = event['reportformatvalues']) !== null && _l !== void 0 ? _l : "");
3911
+ this.fetchReportFormat(listReportingContainer, reportformatName, (_l = event['reportformatschema']) !== null && _l !== void 0 ? _l : "", (_m = event['reportformatvalues']) !== null && _m !== void 0 ? _m : "");
3902
3912
  }
3903
3913
  };
3904
3914
  this.attachListReportingListeners = (eventsContainer) => {
@@ -9589,7 +9599,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9589
9599
  }
9590
9600
  }
9591
9601
  };
9592
- this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer) => {
9602
+ this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer, flagUploadGuidance = false, listEventContainer = null) => {
9593
9603
  console.log('listEvent', listEvent, listEvent.id);
9594
9604
  let url = "https://" + this.apiId + "/getalleventdetails";
9595
9605
  //console.log('fetch calendar url', url);
@@ -9601,7 +9611,22 @@ let SfIEvents = class SfIEvents extends LitElement {
9601
9611
  if (xhr.status == 200) {
9602
9612
  const jsonRespose = JSON.parse(xhr.responseText);
9603
9613
  console.log('jsonRespose', jsonRespose);
9604
- this.renderEventDetail(jsonRespose.data, mmddyyyy, currentColumnButton, eventsContainer);
9614
+ if (flagUploadGuidance) {
9615
+ if (listEventContainer != null) {
9616
+ let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
9617
+ if (this.events[mmdd] != null) {
9618
+ for (var p = 0; p < this.events[mmdd].length; p++) {
9619
+ if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == listEvent.locationid && this.events[mmdd][p].entityid == listEvent.entityid) {
9620
+ this.events[mmdd][p].uploadguidance = jsonRespose.data.uploadguidance;
9621
+ }
9622
+ }
9623
+ }
9624
+ this.renderListReporting(listEventContainer, jsonRespose.data, mmddyyyy, eventsContainer);
9625
+ }
9626
+ }
9627
+ else {
9628
+ this.renderEventDetail(jsonRespose.data, mmddyyyy, currentColumnButton, eventsContainer);
9629
+ }
9605
9630
  }
9606
9631
  else {
9607
9632
  if (xhr.status === 404) {
@@ -9644,8 +9669,8 @@ let SfIEvents = class SfIEvents extends LitElement {
9644
9669
  //console.log('event detail documenttype', documentType);
9645
9670
  const basicFields = ['id', 'shortid', 'entityname', 'locationname', 'functions'];
9646
9671
  const statuteFields = ['jurisdiction', 'country', 'state', 'category', 'subcategory', 'statute'];
9647
- const complianceFields = ['specificity', 'reference', 'obligation', 'penalty', 'authority', 'frequency', 'obligationtype', 'duedate', 'applicability', 'form'];
9648
- const grcFields = ['internalcontrols', 'firstlineofdefence', 'risk', 'riskarea'];
9672
+ const complianceFields = ['specificity', 'reference', 'obligation', 'penalty', 'authority', 'frequency', 'subfrequency', 'obligationtype', 'duedate', 'applicability', 'form', 'additionalurls', 'adhocquestion', 'adhocquestionschedule', 'adhocinstances', 'uploadguidance'];
9673
+ const grcFields = ['internalcontrols', 'firstlineofdefence', 'secondlineofdefence', 'thirdlineofdefence', 'risk', 'riskarea'];
9649
9674
  let listReportingContainers = eventsContainer.querySelectorAll('.list-reporting-container');
9650
9675
  for (let tempReportingContainer of listReportingContainers) {
9651
9676
  tempReportingContainer.style.display = 'none';
@@ -9746,16 +9771,18 @@ let SfIEvents = class SfIEvents extends LitElement {
9746
9771
  html += '<div class="d-flex flex-wrap accordian-body body-statute" part="accordian-body">';
9747
9772
  for (var i = 0; i < statuteFields.length; i++) {
9748
9773
  if (!this.getEventPreviewFields().includes(statuteFields[i])) {
9749
- if (!this.getEventHideFields().includes(statuteFields[i])) {
9750
- html += '<div class="m-20">';
9751
- html += '<div part="detail-head"><strong>' + statuteFields[i] + '</strong></div>';
9752
- if ((event[statuteFields[i]] + "").indexOf("[") >= 0) {
9753
- html += this.getEventTexts(statuteFields[i], JSON.parse(event[statuteFields[i]]), event);
9754
- }
9755
- else {
9756
- html += '<sf-i-elastic-text text="' + (event[statuteFields[i]] + "").replace(/"/g, "") + '" minLength="80"></sf-i-elastic-text>';
9774
+ if (event[statuteFields[i]] != null && event[statuteFields[i]] != "") {
9775
+ if (!this.getEventHideFields().includes(statuteFields[i])) {
9776
+ html += '<div class="m-20">';
9777
+ html += '<div part="detail-head"><strong>' + statuteFields[i] + '</strong></div>';
9778
+ if ((event[statuteFields[i]] + "").indexOf("[") >= 0) {
9779
+ html += this.getEventTexts(statuteFields[i], JSON.parse(event[statuteFields[i]]), event);
9780
+ }
9781
+ else {
9782
+ html += '<sf-i-elastic-text text="' + (event[statuteFields[i]] + "").replace(/"/g, "") + '" minLength="80"></sf-i-elastic-text>';
9783
+ }
9784
+ html += '</div>';
9757
9785
  }
9758
- html += '</div>';
9759
9786
  }
9760
9787
  }
9761
9788
  }
@@ -9773,28 +9800,30 @@ let SfIEvents = class SfIEvents extends LitElement {
9773
9800
  //console.log(event[complianceFields[i]]);
9774
9801
  if (!this.getEventPreviewFields().includes(complianceFields[i])) {
9775
9802
  if (!this.getEventHideFields().includes(complianceFields[i])) {
9776
- if (event[complianceFields[i]].indexOf('http://') >= 0) {
9777
- let res = event[complianceFields[i]].split(" ").find((word) => word.startsWith("http"));
9778
- html += '<div class="m-20">';
9779
- html += '<div part="detail-head"><strong>' + complianceFields[i] + '</strong></div>';
9780
- if ((event[complianceFields[i]] + "").indexOf("[") >= 0) {
9781
- html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event) + "&nbsp;<a href=\"" + res + "\" target=\"_blank\">Open</a>";
9782
- }
9783
- else {
9784
- html += '<sf-i-elastic-text text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>' + "&nbsp;<a href=\"" + res + "\" target=\"_blank\">Open</a>";
9785
- }
9786
- html += '</div>';
9787
- }
9788
- else {
9789
- html += '<div class="m-20">';
9790
- html += '<div part="detail-head"><strong>' + complianceFields[i] + '</strong></div>';
9791
- if ((event[complianceFields[i]] + "").indexOf("[") >= 0) {
9792
- html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event);
9803
+ if (event[complianceFields[i]] != null && event[complianceFields[i]] != "") {
9804
+ if (event[complianceFields[i]].indexOf('http://') >= 0) {
9805
+ let res = event[complianceFields[i]].split(" ").find((word) => word.startsWith("http"));
9806
+ html += '<div class="m-20">';
9807
+ html += '<div part="detail-head"><strong>' + complianceFields[i] + '</strong></div>';
9808
+ if ((event[complianceFields[i]] + "").indexOf("[") >= 0) {
9809
+ html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event) + "&nbsp;<a href=\"" + res + "\" target=\"_blank\">Open</a>";
9810
+ }
9811
+ else {
9812
+ html += '<sf-i-elastic-text text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>' + "&nbsp;<a href=\"" + res + "\" target=\"_blank\">Open</a>";
9813
+ }
9814
+ html += '</div>';
9793
9815
  }
9794
9816
  else {
9795
- html += '<sf-i-elastic-text text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
9817
+ html += '<div class="m-20">';
9818
+ html += '<div part="detail-head"><strong>' + complianceFields[i] + '</strong></div>';
9819
+ if ((event[complianceFields[i]] + "").indexOf("[") >= 0) {
9820
+ html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event);
9821
+ }
9822
+ else {
9823
+ html += '<sf-i-elastic-text text="' + (event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
9824
+ }
9825
+ html += '</div>';
9796
9826
  }
9797
- html += '</div>';
9798
9827
  }
9799
9828
  }
9800
9829
  }
@@ -9810,25 +9839,27 @@ let SfIEvents = class SfIEvents extends LitElement {
9810
9839
  for (var i = 0; i < grcFields.length; i++) {
9811
9840
  //console.log(grcFields[i]);
9812
9841
  if (!this.getEventPreviewFields().includes(grcFields[i])) {
9813
- if (!this.getEventHideFields().includes(grcFields[i])) {
9814
- html += '<div class="m-20">';
9815
- html += '<div part="detail-head"><strong>' + grcFields[i] + '</strong></div>';
9816
- if (grcFields[i].toLowerCase() == "riskarea") {
9817
- const arrValues = event[grcFields[i]];
9818
- for (var k = 0; k < arrValues.length; k++) {
9819
- html += '<div part="detail-reporter-name" class="mr-10">' + arrValues[k] + '</div>';
9820
- }
9821
- }
9822
- else {
9823
- if ((event[grcFields[i]] + "").indexOf("[") >= 0) {
9824
- html += this.getEventTexts(grcFields[i], JSON.parse(event[grcFields[i]]), event);
9842
+ if (event[grcFields[i]] != null && event[grcFields[i]] != "") {
9843
+ if (!this.getEventHideFields().includes(grcFields[i])) {
9844
+ html += '<div class="m-20">';
9845
+ html += '<div part="detail-head"><strong>' + grcFields[i] + '</strong></div>';
9846
+ if (grcFields[i].toLowerCase() == "riskarea") {
9847
+ const arrValues = event[grcFields[i]];
9848
+ for (var k = 0; k < arrValues.length; k++) {
9849
+ html += '<div part="detail-reporter-name" class="mr-10">' + arrValues[k] + '</div>';
9850
+ }
9825
9851
  }
9826
9852
  else {
9827
- //console.log('grcfield', event[grcFields[i]]);
9828
- html += '<sf-i-elastic-text text="' + (event[grcFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
9853
+ if ((event[grcFields[i]] + "").indexOf("[") >= 0) {
9854
+ html += this.getEventTexts(grcFields[i], JSON.parse(event[grcFields[i]]), event);
9855
+ }
9856
+ else {
9857
+ //console.log('grcfield', event[grcFields[i]]);
9858
+ html += '<sf-i-elastic-text text="' + (event[grcFields[i]] + "").replace(/"/g, "").replace(/\n/g, '<br />') + '" minLength="80"></sf-i-elastic-text>';
9859
+ }
9829
9860
  }
9861
+ html += '</div>';
9830
9862
  }
9831
- html += '</div>';
9832
9863
  }
9833
9864
  }
9834
9865
  }
@@ -17403,25 +17434,28 @@ let SfIEvents = class SfIEvents extends LitElement {
17403
17434
  if (statute.fields.cols[0].indexOf('definitions') >= 0) {
17404
17435
  const definitionsIndex = JSON.parse(statute.fields.cols[0]).indexOf('definitions');
17405
17436
  const definitionsFound = JSON.parse(statute.fields.data[0])[definitionsIndex];
17406
- const definitionsName = JSON.parse(statute.fields.data[0])[definitionsIndex][0].trim();
17407
- console.log('statute', statute, JSON.parse(statute.fields.cols[0]), nameIndex, statuteNameFound, definitionsFound, definitionsName);
17408
- const definitionDetails = await this.fetchSearchDefinitions(definitionsName);
17409
- definitionDetails.values.forEach(async (definition) => {
17410
- const definitionNameIndex = JSON.parse(definition.fields.cols[0]).indexOf('name');
17411
- const definitionNameFound = JSON.parse(definition.fields.data[0])[definitionNameIndex];
17412
- if (definitionNameFound == definitionsName) {
17413
- const attachmentIndex = JSON.parse(definition.fields.cols[0]).indexOf('attachment');
17414
- const attachmentKey = JSON.parse(definition.fields.data[0])[attachmentIndex][0];
17415
- console.log('definition', definition, attachmentKey);
17416
- this._SfDetailContainer.querySelector('#container-definition').innerHTML = '<div class="m-20"><div part="detail-head"><strong>Definitions</strong></div><button part="button" id="button-show-definition" class="mt-5">View</button></div>';
17417
- this._SfDetailContainer.querySelector('#button-show-definition').addEventListener('click', (_e) => {
17418
- this._SfDetailContainer.querySelector('#container-definition').innerHTML = '<div class="m-20"><div part="detail-head" class="mb-10"><strong>Definitions</strong></div><sf-i-uploader class="gone" id="sf-i-definitions" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;]" extract="no" mandatory="" mode="view" maximize="yes"></sf-i-uploader></div>';
17419
- this._SfDetailContainer.querySelector('#sf-i-definitions').classList.remove('gone');
17420
- this._SfDetailContainer.querySelector('#sf-i-definitions').prepopulatedInputArr = JSON.stringify(JSON.parse('[' + attachmentKey + ']'));
17421
- this._SfDetailContainer.querySelector('#sf-i-definitions').loadMode();
17422
- });
17423
- }
17424
- });
17437
+ if (definitionsFound.length > 0) {
17438
+ console.log(JSON.parse(statute.fields.data[0])[definitionsIndex]);
17439
+ const definitionsName = JSON.parse(statute.fields.data[0])[definitionsIndex][0].trim();
17440
+ console.log('statute', statute, JSON.parse(statute.fields.cols[0]), nameIndex, statuteNameFound, definitionsFound, definitionsName);
17441
+ const definitionDetails = await this.fetchSearchDefinitions(definitionsName);
17442
+ definitionDetails.values.forEach(async (definition) => {
17443
+ const definitionNameIndex = JSON.parse(definition.fields.cols[0]).indexOf('name');
17444
+ const definitionNameFound = JSON.parse(definition.fields.data[0])[definitionNameIndex];
17445
+ if (definitionNameFound == definitionsName) {
17446
+ const attachmentIndex = JSON.parse(definition.fields.cols[0]).indexOf('attachment');
17447
+ const attachmentKey = JSON.parse(definition.fields.data[0])[attachmentIndex][0];
17448
+ console.log('definition', definition, attachmentKey);
17449
+ this._SfDetailContainer.querySelector('#container-definition').innerHTML = '<div class="m-20"><div part="detail-head"><strong>Definitions</strong></div><button part="button" id="button-show-definition" class="mt-5">View</button></div>';
17450
+ this._SfDetailContainer.querySelector('#button-show-definition').addEventListener('click', (_e) => {
17451
+ this._SfDetailContainer.querySelector('#container-definition').innerHTML = '<div class="m-20"><div part="detail-head" class="mb-10"><strong>Definitions</strong></div><sf-i-uploader class="gone" id="sf-i-definitions" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;]" extract="no" mandatory="" mode="view" maximize="yes"></sf-i-uploader></div>';
17452
+ this._SfDetailContainer.querySelector('#sf-i-definitions').classList.remove('gone');
17453
+ this._SfDetailContainer.querySelector('#sf-i-definitions').prepopulatedInputArr = JSON.stringify(JSON.parse('[' + attachmentKey + ']'));
17454
+ this._SfDetailContainer.querySelector('#sf-i-definitions').loadMode();
17455
+ });
17456
+ }
17457
+ });
17458
+ }
17425
17459
  }
17426
17460
  }
17427
17461
  });
@@ -5448,6 +5448,7 @@ export class SfIEvents extends LitElement {
5448
5448
  let percentage = event['percentage'] == null ? '100' : event['percentage'];
5449
5449
  let makercheckers = event['makercheckers'] == null ? [] : event['makercheckers'];
5450
5450
  let docsOptional = event['docs'] == null ? [] : event['docs'];
5451
+ let uploadGuidance = event['uploadguidance'] ?? 0
5451
5452
  console.log('rendering reporting', event, percentage)
5452
5453
  if(this.selectedItemIds.length > 0){
5453
5454
  html += `<div class="d-flex justify-between ">
@@ -5539,11 +5540,13 @@ export class SfIEvents extends LitElement {
5539
5540
  // if(docsOptional.length === 0) {
5540
5541
  html += '<label part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
5541
5542
 
5542
- if(event['uploadguidance'] != null && event['uploadguidance'].length > 0) {
5543
- html += ('<div part="uploader-analysis-message">'+event['uploadguidance']+'</div>');
5544
- }
5545
-
5546
5543
  html += '<slot name="uploader"></slot>';
5544
+ if(uploadGuidance == 1){
5545
+ html += '<button id="upload-guidance-button" part="button-icon-small" class="d-flex button-icon-small align-center align-self-start mt-10"><span class="material-symbols-outlined">help</span>&nbsp;&nbsp;<span>View upload guidance</span></button>'
5546
+ }else if(uploadGuidance != 0){
5547
+ html += '<div part="detail-head" class="mt-10"><strong>Upload Guidance</strong></div>'
5548
+ html += '<sf-i-elastic-text text="'+(event['uploadguidance'] + "").replace(/"/g, "").replace(/\n/g,'<br />')+'" minLength="150"></sf-i-elastic-text>';
5549
+ }
5547
5550
  html += '<div part="uploader-analysis-message" class="uploader-analysis-message mt-20">The analysis is running in the background. You can proceed further.</div>'
5548
5551
  // }
5549
5552
  html += '<br />';
@@ -5738,6 +5741,10 @@ export class SfIEvents extends LitElement {
5738
5741
  }
5739
5742
 
5740
5743
  });
5744
+ listReportingContainer.querySelector('#upload-guidance-button')?.addEventListener('click', async () => {
5745
+ console.log('upload guidance clicked', event);
5746
+ await this.fetchEventDetails(event, mmddyyyy, null, eventsContainer, true, listReportingContainer);
5747
+ })
5741
5748
  if(this.mode == "consumer" || this.mode == "next") {
5742
5749
 
5743
5750
  listReportingContainer.querySelector('#button-uploader-submit-approve')?.addEventListener('click', async (ev: any) => {
@@ -13201,7 +13208,7 @@ export class SfIEvents extends LitElement {
13201
13208
  }
13202
13209
  }
13203
13210
 
13204
- fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement) => {
13211
+ fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null) => {
13205
13212
  console.log('listEvent', listEvent, listEvent.id)
13206
13213
  let url = "https://"+this.apiId+"/getalleventdetails";
13207
13214
 
@@ -13217,7 +13224,21 @@ export class SfIEvents extends LitElement {
13217
13224
 
13218
13225
  const jsonRespose = JSON.parse(xhr.responseText);
13219
13226
  console.log('jsonRespose', jsonRespose);
13220
- this.renderEventDetail(jsonRespose.data,mmddyyyy, currentColumnButton, eventsContainer);
13227
+ if(flagUploadGuidance){
13228
+ if(listEventContainer != null){
13229
+ let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
13230
+ if(this.events[mmdd] != null){
13231
+ for( var p = 0 ; p < this.events[mmdd].length; p ++){
13232
+ if(this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == listEvent.locationid && this.events[mmdd][p].entityid == listEvent.entityid){
13233
+ this.events[mmdd][p].uploadguidance = jsonRespose.data.uploadguidance
13234
+ }
13235
+ }
13236
+ }
13237
+ this.renderListReporting(listEventContainer, jsonRespose.data, mmddyyyy, eventsContainer)
13238
+ }
13239
+ }else{
13240
+ this.renderEventDetail(jsonRespose.data,mmddyyyy, currentColumnButton, eventsContainer);
13241
+ }
13221
13242
 
13222
13243
  } else {
13223
13244
 
@@ -13266,8 +13287,8 @@ export class SfIEvents extends LitElement {
13266
13287
  //console.log('event detail documenttype', documentType);
13267
13288
  const basicFields = ['id', 'shortid', 'entityname', 'locationname','functions'];
13268
13289
  const statuteFields = ['jurisdiction', 'country', 'state', 'category', 'subcategory', 'statute'];
13269
- const complianceFields = ['specificity', 'reference', 'obligation', 'penalty', 'authority', 'frequency', 'obligationtype', 'duedate', 'applicability', 'form'];
13270
- const grcFields = ['internalcontrols', 'firstlineofdefence', 'risk', 'riskarea'];
13290
+ const complianceFields = ['specificity', 'reference', 'obligation', 'penalty', 'authority', 'frequency', 'subfrequency', 'obligationtype', 'duedate', 'applicability', 'form', 'additionalurls', 'adhocquestion', 'adhocquestionschedule', 'adhocinstances', 'uploadguidance'];
13291
+ const grcFields = ['internalcontrols', 'firstlineofdefence', 'secondlineofdefence', 'thirdlineofdefence', 'risk', 'riskarea'];
13271
13292
 
13272
13293
  let listReportingContainers = eventsContainer.querySelectorAll('.list-reporting-container') as NodeListOf<HTMLDivElement>
13273
13294
  for(let tempReportingContainer of listReportingContainers){
@@ -13391,18 +13412,19 @@ export class SfIEvents extends LitElement {
13391
13412
  for(var i = 0; i < statuteFields.length; i++) {
13392
13413
 
13393
13414
  if(!this.getEventPreviewFields().includes(statuteFields[i])) {
13394
-
13395
- if(!this.getEventHideFields().includes(statuteFields[i])) {
13415
+ if(event[statuteFields[i]] != null && event[statuteFields[i]] != "") {
13416
+ if(!this.getEventHideFields().includes(statuteFields[i])) {
13396
13417
 
13397
- html += '<div class="m-20">';
13398
- html += '<div part="detail-head"><strong>'+statuteFields[i]+'</strong></div>'
13399
- if((event[statuteFields[i]] + "").indexOf("[") >= 0) {
13400
- html += this.getEventTexts(statuteFields[i], JSON.parse(event[statuteFields[i]]), event);
13401
- } else {
13402
- html += '<sf-i-elastic-text text="'+(event[statuteFields[i]] + "").replace(/"/g, "")+'" minLength="80"></sf-i-elastic-text>';
13403
- }
13404
- html += '</div>';
13418
+ html += '<div class="m-20">';
13419
+ html += '<div part="detail-head"><strong>'+statuteFields[i]+'</strong></div>'
13420
+ if((event[statuteFields[i]] + "").indexOf("[") >= 0) {
13421
+ html += this.getEventTexts(statuteFields[i], JSON.parse(event[statuteFields[i]]), event);
13422
+ } else {
13423
+ html += '<sf-i-elastic-text text="'+(event[statuteFields[i]] + "").replace(/"/g, "")+'" minLength="80"></sf-i-elastic-text>';
13424
+ }
13425
+ html += '</div>';
13405
13426
 
13427
+ }
13406
13428
  }
13407
13429
  }
13408
13430
 
@@ -13428,33 +13450,32 @@ export class SfIEvents extends LitElement {
13428
13450
  if(!this.getEventPreviewFields().includes(complianceFields[i])) {
13429
13451
 
13430
13452
  if(!this.getEventHideFields().includes(complianceFields[i])) {
13453
+ if(event[complianceFields[i]] != null && event[complianceFields[i]] != "") {
13454
+ if(event[complianceFields[i]].indexOf('http://') >= 0) {
13455
+
13456
+ let res = event[complianceFields[i]].split(" ").find((word:any) => word.startsWith("http"));
13457
+ html += '<div class="m-20">';
13458
+ html += '<div part="detail-head"><strong>'+complianceFields[i]+'</strong></div>'
13459
+ if((event[complianceFields[i]] + "").indexOf("[") >= 0) {
13460
+ html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event) + "&nbsp;<a href=\""+res+"\" target=\"_blank\">Open</a>";
13461
+ } else {
13462
+ html += '<sf-i-elastic-text text="'+(event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g,'<br />')+'" minLength="80"></sf-i-elastic-text>' + "&nbsp;<a href=\""+res+"\" target=\"_blank\">Open</a>";
13463
+ }
13464
+ html += '</div>';
13431
13465
 
13432
- if(event[complianceFields[i]].indexOf('http://') >= 0) {
13433
-
13434
- let res = event[complianceFields[i]].split(" ").find((word:any) => word.startsWith("http"));
13435
- html += '<div class="m-20">';
13436
- html += '<div part="detail-head"><strong>'+complianceFields[i]+'</strong></div>'
13437
- if((event[complianceFields[i]] + "").indexOf("[") >= 0) {
13438
- html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event) + "&nbsp;<a href=\""+res+"\" target=\"_blank\">Open</a>";
13439
13466
  } else {
13440
- html += '<sf-i-elastic-text text="'+(event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g,'<br />')+'" minLength="80"></sf-i-elastic-text>' + "&nbsp;<a href=\""+res+"\" target=\"_blank\">Open</a>";
13441
- }
13442
- html += '</div>';
13443
13467
 
13444
- } else {
13468
+ html += '<div class="m-20">';
13469
+ html += '<div part="detail-head"><strong>'+complianceFields[i]+'</strong></div>'
13470
+ if((event[complianceFields[i]] + "").indexOf("[") >= 0) {
13471
+ html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event);
13472
+ } else {
13473
+ html += '<sf-i-elastic-text text="'+(event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g,'<br />')+'" minLength="80"></sf-i-elastic-text>';
13474
+ }
13475
+ html += '</div>';
13445
13476
 
13446
- html += '<div class="m-20">';
13447
- html += '<div part="detail-head"><strong>'+complianceFields[i]+'</strong></div>'
13448
- if((event[complianceFields[i]] + "").indexOf("[") >= 0) {
13449
- html += this.getEventTexts(complianceFields[i], JSON.parse(event[complianceFields[i]]), event);
13450
- } else {
13451
- html += '<sf-i-elastic-text text="'+(event[complianceFields[i]] + "").replace(/"/g, "").replace(/\n/g,'<br />')+'" minLength="80"></sf-i-elastic-text>';
13452
13477
  }
13453
- html += '</div>';
13454
-
13455
13478
  }
13456
-
13457
-
13458
13479
  }
13459
13480
  }
13460
13481
 
@@ -13474,30 +13495,31 @@ export class SfIEvents extends LitElement {
13474
13495
 
13475
13496
  //console.log(grcFields[i]);
13476
13497
  if(!this.getEventPreviewFields().includes(grcFields[i])) {
13477
-
13478
- if(!this.getEventHideFields().includes(grcFields[i])) {
13498
+ if(event[grcFields[i]] != null && event[grcFields[i]] != "") {
13499
+ if(!this.getEventHideFields().includes(grcFields[i])) {
13479
13500
 
13480
- html += '<div class="m-20">';
13481
- html += '<div part="detail-head"><strong>'+grcFields[i]+'</strong></div>'
13501
+ html += '<div class="m-20">';
13502
+ html += '<div part="detail-head"><strong>'+grcFields[i]+'</strong></div>'
13482
13503
 
13483
- if(grcFields[i].toLowerCase() == "riskarea") {
13504
+ if(grcFields[i].toLowerCase() == "riskarea") {
13484
13505
 
13485
- const arrValues = event[grcFields[i]];
13486
- for(var k = 0; k < arrValues.length; k++) {
13487
- html += '<div part="detail-reporter-name" class="mr-10">' + arrValues[k] + '</div>';
13488
- }
13506
+ const arrValues = event[grcFields[i]];
13507
+ for(var k = 0; k < arrValues.length; k++) {
13508
+ html += '<div part="detail-reporter-name" class="mr-10">' + arrValues[k] + '</div>';
13509
+ }
13489
13510
 
13490
- } else {
13491
- if((event[grcFields[i]] + "").indexOf("[") >= 0) {
13492
- html += this.getEventTexts(grcFields[i], JSON.parse(event[grcFields[i]]), event);
13493
13511
  } else {
13494
- //console.log('grcfield', event[grcFields[i]]);
13495
- html += '<sf-i-elastic-text text="'+(event[grcFields[i]] + "").replace(/"/g, "").replace(/\n/g,'<br />')+'" minLength="80"></sf-i-elastic-text>';
13512
+ if((event[grcFields[i]] + "").indexOf("[") >= 0) {
13513
+ html += this.getEventTexts(grcFields[i], JSON.parse(event[grcFields[i]]), event);
13514
+ } else {
13515
+ //console.log('grcfield', event[grcFields[i]]);
13516
+ html += '<sf-i-elastic-text text="'+(event[grcFields[i]] + "").replace(/"/g, "").replace(/\n/g,'<br />')+'" minLength="80"></sf-i-elastic-text>';
13517
+ }
13496
13518
  }
13497
- }
13498
-
13499
- html += '</div>';
13519
+
13520
+ html += '</div>';
13500
13521
 
13522
+ }
13501
13523
  }
13502
13524
  }
13503
13525
 
@@ -23006,29 +23028,31 @@ export class SfIEvents extends LitElement {
23006
23028
  if(statute.fields.cols[0].indexOf('definitions') >= 0) {
23007
23029
  const definitionsIndex = (JSON.parse(statute.fields.cols[0]) as Array<string>).indexOf('definitions');
23008
23030
  const definitionsFound = JSON.parse(statute.fields.data[0])[definitionsIndex];
23009
- const definitionsName = JSON.parse(statute.fields.data[0])[definitionsIndex][0].trim();
23010
- console.log('statute', statute, JSON.parse(statute.fields.cols[0]), nameIndex, statuteNameFound, definitionsFound, definitionsName);
23011
- const definitionDetails = await this.fetchSearchDefinitions(definitionsName);
23012
- definitionDetails.values.forEach(async (definition: any) => {
23013
- const definitionNameIndex = (JSON.parse(definition.fields.cols[0]) as Array<string>).indexOf('name');
23014
- const definitionNameFound = JSON.parse(definition.fields.data[0])[definitionNameIndex];
23015
- if(definitionNameFound == definitionsName) {
23016
- const attachmentIndex = (JSON.parse(definition.fields.cols[0]) as Array<string>).indexOf('attachment');
23017
- const attachmentKey = JSON.parse(definition.fields.data[0])[attachmentIndex][0]
23018
- console.log('definition', definition, attachmentKey);
23019
- (this._SfDetailContainer as HTMLDivElement).querySelector('#container-definition')!.innerHTML = '<div class="m-20"><div part="detail-head"><strong>Definitions</strong></div><button part="button" id="button-show-definition" class="mt-5">View</button></div>';
23020
-
23021
- ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-show-definition') as HTMLButtonElement)!.addEventListener('click', (_e: any) => {
23022
- (this._SfDetailContainer as HTMLDivElement).querySelector('#container-definition')!.innerHTML = '<div class="m-20"><div part="detail-head" class="mb-10"><strong>Definitions</strong></div><sf-i-uploader class="gone" id="sf-i-definitions" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;]" extract="no" mandatory="" mode="view" maximize="yes"></sf-i-uploader></div>';
23023
- ((this._SfDetailContainer as HTMLDivElement).querySelector('#sf-i-definitions') as SfIUploader).classList.remove('gone');
23024
- ((this._SfDetailContainer as HTMLDivElement).querySelector('#sf-i-definitions') as SfIUploader).prepopulatedInputArr = JSON.stringify(JSON.parse('[' + attachmentKey + ']'));
23025
- ((this._SfDetailContainer as HTMLDivElement).querySelector('#sf-i-definitions') as SfIUploader).loadMode();
23026
- });
23031
+ if(definitionsFound.length > 0){
23032
+ console.log(JSON.parse(statute.fields.data[0])[definitionsIndex]);
23033
+ const definitionsName = JSON.parse(statute.fields.data[0])[definitionsIndex][0].trim();
23034
+ console.log('statute', statute, JSON.parse(statute.fields.cols[0]), nameIndex, statuteNameFound, definitionsFound, definitionsName);
23035
+ const definitionDetails = await this.fetchSearchDefinitions(definitionsName);
23036
+ definitionDetails.values.forEach(async (definition: any) => {
23037
+ const definitionNameIndex = (JSON.parse(definition.fields.cols[0]) as Array<string>).indexOf('name');
23038
+ const definitionNameFound = JSON.parse(definition.fields.data[0])[definitionNameIndex];
23039
+ if(definitionNameFound == definitionsName) {
23040
+ const attachmentIndex = (JSON.parse(definition.fields.cols[0]) as Array<string>).indexOf('attachment');
23041
+ const attachmentKey = JSON.parse(definition.fields.data[0])[attachmentIndex][0]
23042
+ console.log('definition', definition, attachmentKey);
23043
+ (this._SfDetailContainer as HTMLDivElement).querySelector('#container-definition')!.innerHTML = '<div class="m-20"><div part="detail-head"><strong>Definitions</strong></div><button part="button" id="button-show-definition" class="mt-5">View</button></div>';
23044
+
23045
+ ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-show-definition') as HTMLButtonElement)!.addEventListener('click', (_e: any) => {
23046
+ (this._SfDetailContainer as HTMLDivElement).querySelector('#container-definition')!.innerHTML = '<div class="m-20"><div part="detail-head" class="mb-10"><strong>Definitions</strong></div><sf-i-uploader class="gone" id="sf-i-definitions" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;]" extract="no" mandatory="" mode="view" maximize="yes"></sf-i-uploader></div>';
23047
+ ((this._SfDetailContainer as HTMLDivElement).querySelector('#sf-i-definitions') as SfIUploader).classList.remove('gone');
23048
+ ((this._SfDetailContainer as HTMLDivElement).querySelector('#sf-i-definitions') as SfIUploader).prepopulatedInputArr = JSON.stringify(JSON.parse('[' + attachmentKey + ']'));
23049
+ ((this._SfDetailContainer as HTMLDivElement).querySelector('#sf-i-definitions') as SfIUploader).loadMode();
23050
+ });
23027
23051
 
23028
- }
23029
- });
23052
+ }
23053
+ });
23054
+ }
23030
23055
  }
23031
-
23032
23056
  }
23033
23057
  });
23034
23058