sf-i-events 1.0.814 → 1.0.816
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 +2 -41
- package/package.json +1 -1
- package/sf-i-events.js +86 -50
- package/src/sf-i-events.ts +89 -52
package/dev/index.html
CHANGED
|
@@ -687,26 +687,6 @@
|
|
|
687
687
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
688
688
|
</div>
|
|
689
689
|
|
|
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="["notices"]" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
692
|
-
|
|
693
|
-
<div slot="uploader">
|
|
694
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" 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>
|
|
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="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
702
|
-
|
|
703
|
-
<div slot="uploader">
|
|
704
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
705
|
-
</div>
|
|
706
|
-
<div slot="reporting">
|
|
707
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
708
|
-
</div>
|
|
709
|
-
|
|
710
690
|
</sf-i-events> -->
|
|
711
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="Auditor J1" userprofileid="bda0d59b-058b-4098-b0fc-54aa54aa5998" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="auditor" showregisterexport="false" features="["notices"]" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
712
692
|
|
|
@@ -737,16 +717,6 @@
|
|
|
737
717
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
738
718
|
</div>
|
|
739
719
|
|
|
740
|
-
</sf-i-events> -->
|
|
741
|
-
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Viewer J1" userprofileid="344c84d2-5976-47ff-949b-49f6fa9627eb" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="viewer" showregisterexport="true" features="["notices"]" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
742
|
-
|
|
743
|
-
<div slot="uploader">
|
|
744
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
745
|
-
</div>
|
|
746
|
-
<div slot="reporting">
|
|
747
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
748
|
-
</div>
|
|
749
|
-
|
|
750
720
|
</sf-i-events> -->
|
|
751
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="Viewer J1" userprofileid="344c84d2-5976-47ff-949b-49f6fa9627eb" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="viewer" showregisterexport="false" features="["notices"]" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
752
722
|
|
|
@@ -760,16 +730,6 @@
|
|
|
760
730
|
</sf-i-events> -->
|
|
761
731
|
<!-- <sf-i-events projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" mode="onboarding" locations="{"India":{"Telangana":["Corporate Office","Telangana Plant"],"Karnataka":["Prime","Stopak","Wintek","Tools","Conversion"],"Gujarat":["Dahej"],"Dadra and Nagar Haveli and Daman and Diu":["Silvassa"],"Uttarakhand":["Uttarakhand"],"Maharashtra":["Pune"],"Andhra Pradesh":["AP"],"Chhattisgarh":["Chhattisgarh"],"Goa":["Goa"],"Himachal Pradesh":["HP"],"Haryana":["Haryana"],"Jharkhand":["Jharkhand"],"Madhya Pradesh":["MP"],"Odisha":["Odisha"],"Punjab":["Punjab"],"Tamil Nadu":["TN"],"Uttar Pradesh":["UP"],"West Bengal":["WB"]}}" contractstartdate="01/04/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
|
|
762
732
|
|
|
763
|
-
</sf-i-events> -->
|
|
764
|
-
<!-- <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" 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" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
765
|
-
|
|
766
|
-
<div slot="uploader">
|
|
767
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
768
|
-
</div>
|
|
769
|
-
<div slot="reporting">
|
|
770
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
771
|
-
</div>
|
|
772
|
-
|
|
773
733
|
</sf-i-events> -->
|
|
774
734
|
<!-- <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" fill="solid" username="Local Approver 1" userprofileid="c44dcd04-aebb-4417-ba6b-fac170efd5d0" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="approver" showregisterexport="false" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
775
735
|
|
|
@@ -781,7 +741,8 @@
|
|
|
781
741
|
</div>
|
|
782
742
|
|
|
783
743
|
</sf-i-events> -->
|
|
784
|
-
|
|
744
|
+
<!-- <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="["reporter"]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" blocksize="10" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024"><div slot="uploader"><sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" 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> -->
|
|
745
|
+
<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="["reporter"]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" blocksize="10" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024"><div slot="uploader"><sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" 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>
|
|
785
746
|
|
|
786
747
|
<script>
|
|
787
748
|
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -3682,29 +3682,31 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3682
3682
|
if (this.selectedItemIds.length == 0) {
|
|
3683
3683
|
await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage);
|
|
3684
3684
|
console.log('this.events', this.events);
|
|
3685
|
-
|
|
3686
|
-
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
|
|
3687
|
-
this.events[mmdd][p].documents = docs;
|
|
3688
|
-
this.events[mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() });
|
|
3689
|
-
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
3690
|
-
}
|
|
3691
|
-
}
|
|
3692
|
-
if (event.makercheckers.length > 0) {
|
|
3693
|
-
await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
3685
|
+
if (this.mode != "next") {
|
|
3694
3686
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
3695
3687
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
|
|
3696
|
-
this.events[mmdd][p].
|
|
3697
|
-
|
|
3698
|
-
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
|
|
3688
|
+
this.events[mmdd][p].documents = docs;
|
|
3689
|
+
this.events[mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() });
|
|
3699
3690
|
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
3700
3691
|
}
|
|
3701
3692
|
}
|
|
3693
|
+
if (event.makercheckers.length > 0) {
|
|
3694
|
+
await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
3695
|
+
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
3696
|
+
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
|
|
3697
|
+
this.events[mmdd][p].approved = true;
|
|
3698
|
+
// this.events[mmdd][p].documents = docs
|
|
3699
|
+
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
|
|
3700
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
3701
|
+
}
|
|
3702
|
+
}
|
|
3703
|
+
}
|
|
3704
|
+
if (this.recentlyReported[mmdd] == null) {
|
|
3705
|
+
this.recentlyReported[mmdd] = [];
|
|
3706
|
+
}
|
|
3707
|
+
this.recentlyReported[mmdd].push(event);
|
|
3708
|
+
console.log('recently reported', this.recentlyReported);
|
|
3702
3709
|
}
|
|
3703
|
-
if (this.recentlyReported[mmdd] == null) {
|
|
3704
|
-
this.recentlyReported[mmdd] = [];
|
|
3705
|
-
}
|
|
3706
|
-
this.recentlyReported[mmdd].push(event);
|
|
3707
|
-
console.log('recently reported', this.recentlyReported);
|
|
3708
3710
|
}
|
|
3709
3711
|
else {
|
|
3710
3712
|
let bulkBody = [];
|
|
@@ -3924,7 +3926,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3924
3926
|
// const i = idArr[5];
|
|
3925
3927
|
const j = idArr[5];
|
|
3926
3928
|
let listReportingContainer = eventsContainer.querySelector('#list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
3927
|
-
console.log('mmddyyyy', this.events[mmdd][j], listReportingContainer, '#list-reporting-container-'
|
|
3929
|
+
// console.log('mmddyyyy', this.events[mmdd][j], listReportingContainer, '#list-reporting-container-'+mmdd.replace(/\//g,'-')+'-'+j);
|
|
3928
3930
|
if (listReportingContainer.style.display == 'none' || listReportingContainer.style.display == '') {
|
|
3929
3931
|
4;
|
|
3930
3932
|
this.renderListReporting(listReportingContainer, this.events[mmdd][j], mmdd + '/' + yyyy, eventsContainer);
|
|
@@ -14199,30 +14201,32 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14199
14201
|
a2.click();
|
|
14200
14202
|
}
|
|
14201
14203
|
if (radioImage.checked) {
|
|
14202
|
-
|
|
14203
|
-
|
|
14204
|
-
|
|
14205
|
-
|
|
14206
|
-
|
|
14207
|
-
|
|
14208
|
-
|
|
14209
|
-
|
|
14210
|
-
|
|
14211
|
-
|
|
14212
|
-
|
|
14213
|
-
|
|
14214
|
-
|
|
14215
|
-
|
|
14216
|
-
|
|
14217
|
-
|
|
14218
|
-
|
|
14219
|
-
|
|
14220
|
-
|
|
14221
|
-
|
|
14222
|
-
|
|
14223
|
-
|
|
14224
|
-
|
|
14225
|
-
|
|
14204
|
+
setTimeout(() => {
|
|
14205
|
+
const a = document.createElement('a');
|
|
14206
|
+
a.setAttribute('href', this.chartBase64);
|
|
14207
|
+
a.setAttribute('download', 'download_' + new Date().getTime() + '.png');
|
|
14208
|
+
a.click();
|
|
14209
|
+
console.log('this.chart2', (this.chart2Base64));
|
|
14210
|
+
if (this.chart2Base64 != null) {
|
|
14211
|
+
console.log('this.chart2 download', this.chart2Base64);
|
|
14212
|
+
const a2 = document.createElement('a');
|
|
14213
|
+
a2.setAttribute('href', this.chart2Base64);
|
|
14214
|
+
a2.setAttribute('download', 'download_completeness_' + new Date().getTime() + '.png');
|
|
14215
|
+
a2.click();
|
|
14216
|
+
}
|
|
14217
|
+
if (this.chart3Base64 != null) {
|
|
14218
|
+
const a3 = document.createElement('a');
|
|
14219
|
+
a3.setAttribute('href', this.chart3Base64);
|
|
14220
|
+
a3.setAttribute('download', 'download_timeliness_' + new Date().getTime() + '.png');
|
|
14221
|
+
a3.click();
|
|
14222
|
+
}
|
|
14223
|
+
if (this.chart4Base64 != null) {
|
|
14224
|
+
const a4 = document.createElement('a');
|
|
14225
|
+
a4.setAttribute('href', this.chart4Base64);
|
|
14226
|
+
a4.setAttribute('download', 'download_compliance_' + new Date().getTime() + '.png');
|
|
14227
|
+
a4.click();
|
|
14228
|
+
}
|
|
14229
|
+
}, 2000);
|
|
14226
14230
|
}
|
|
14227
14231
|
if (radioStats.checked) {
|
|
14228
14232
|
const ts = new Date().getTime();
|
|
@@ -18409,7 +18413,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18409
18413
|
else {
|
|
18410
18414
|
view = "entity";
|
|
18411
18415
|
}
|
|
18412
|
-
path = "
|
|
18416
|
+
path = "getallcountryevents1";
|
|
18413
18417
|
let sDate = "";
|
|
18414
18418
|
let eDate = "";
|
|
18415
18419
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -19096,9 +19100,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19096
19100
|
statusArr = [this.STATUS_APPROVED];
|
|
19097
19101
|
}
|
|
19098
19102
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
19099
|
-
console.log('params', JSON.stringify({ "projectid": this.projectId, "userprofileid": this.userProfileId, "roles": [role], "year":
|
|
19103
|
+
console.log('params', JSON.stringify({ "projectid": this.projectId, "userprofileid": this.userProfileId, "roles": [role], "year": this.calendarStartYYYY, "page": this.nextPage, "blocksize": parseInt(this.blocksize), "status": statusArr }));
|
|
19100
19104
|
console.log('authorization', authorization);
|
|
19101
|
-
const xhr = (await this.prepareXhr({ "projectid": this.projectId, "userprofileid": this.userProfileId, "roles": [role], "year":
|
|
19105
|
+
const xhr = (await this.prepareXhr({ "projectid": this.projectId, "userprofileid": this.userProfileId, "roles": [role], "year": this.calendarStartYYYY + "", "page": this.nextPage, "blocksize": parseInt(this.blocksize), "status": statusArr, "list": "yes" }, url, this._SfLoader, authorization));
|
|
19102
19106
|
this._SfLoader.innerHTML = '';
|
|
19103
19107
|
if (xhr.status == 200) {
|
|
19104
19108
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
@@ -19312,7 +19316,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19312
19316
|
eventHtml += '<div class="stream-events-container flex-grow">';
|
|
19313
19317
|
eventHtml += '<div class="hidden-tags hide">' + JSON.stringify(eventsData[role][mmdd][j]['tags']) + '</div>';
|
|
19314
19318
|
eventHtml += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>';
|
|
19315
|
-
eventHtml += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5 mb-10">' + ('<input id="button-select-' + mmdd.replace('/', '-') + '-' + j + '-' + (((eventsData[role][mmdd][j].makercheckers != null && (eventsData[role][mmdd][j].makercheckers).length > 0)) ? '1' : '0') + '-' + (((eventsData[role][mmdd][j].docs != null && (eventsData[role][mmdd][j].docs).length > 0)) ? '1' : '0') + '-' + eventsData[role][mmdd][j].entityid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].locationid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].id.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].duedate.split('/')[1] + '-' + eventsData[role][mmdd][j].duedate.split('/')[0] + '-' + eventsData[role][mmdd][j].duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '" class="button-select mr-10 ' + ((eventsData[role][mmdd][j].reportformat != null && eventsData[role][mmdd][j].reportformat.length > 0) ? 'hide' : '') + '" type="checkbox" />') + '<button id="button-unmapped-expand-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>' + '<sf-i-elastic-text text="' + eventsData[role][mmdd][j]['obligationtitle'] + '" minLength="100"></sf-i-elastic-text> ' + '<div part="td-body"><sf-i-elastic-text text="' + eventsData[role][mmdd][j]["locationname"].replace(/ *\([^)]*\) */g, "") + '" minLength="30"></sf-i-elastic-text></div> <div part="upcoming-function">' + functionStr + '</div> ' + this.renderStatusHtml(partStatus, lateStatus, complianceStatus, i)
|
|
19319
|
+
eventHtml += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5 mb-10">' + ('<input id="button-select-' + mmdd.replace('/', '-') + '-' + j + '-' + (((eventsData[role][mmdd][j].makercheckers != null && (eventsData[role][mmdd][j].makercheckers).length > 0)) ? '1' : '0') + '-' + (((eventsData[role][mmdd][j].docs != null && (eventsData[role][mmdd][j].docs).length > 0)) ? '1' : '0') + '-' + eventsData[role][mmdd][j].entityid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].locationid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].id.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].duedate.split('/')[1] + '-' + eventsData[role][mmdd][j].duedate.split('/')[0] + '-' + eventsData[role][mmdd][j].duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '" class="button-select mr-10 ' + ((eventsData[role][mmdd][j].reportformat != null && eventsData[role][mmdd][j].reportformat.length > 0) ? 'hide' : '') + '" type="checkbox" />') + '<button id="button-unmapped-expand-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>' + '<sf-i-elastic-text text="' + eventsData[role][mmdd][j]['obligationtitle'] + '" minLength="100"></sf-i-elastic-text> ' + '<div part="td-body"><sf-i-elastic-text text="' + eventsData[role][mmdd][j]["locationname"].replace(/ *\([^)]*\) */g, "") + '" minLength="30"></sf-i-elastic-text></div> <div part="upcoming-function">' + functionStr + '</div> ' + this.renderStatusHtml(partStatus, lateStatus, complianceStatus, i);
|
|
19320
|
+
eventHtml += '<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>';
|
|
19321
|
+
eventHtml += '</div>';
|
|
19322
|
+
eventHtml += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>';
|
|
19316
19323
|
eventHtml += '</div>';
|
|
19317
19324
|
html += eventHtml;
|
|
19318
19325
|
}
|
|
@@ -19338,8 +19345,37 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19338
19345
|
html += '</div>';
|
|
19339
19346
|
}
|
|
19340
19347
|
html += '</div>';
|
|
19341
|
-
this._SfIEventsC.querySelector('#next-calendar-data')
|
|
19342
|
-
|
|
19348
|
+
let nextEventsContainer = this._SfIEventsC.querySelector('#next-calendar-data');
|
|
19349
|
+
nextEventsContainer.innerHTML = html;
|
|
19350
|
+
nextEventsContainer.style.display = "flex";
|
|
19351
|
+
this.myRole = role;
|
|
19352
|
+
let buttonListReports = nextEventsContainer.querySelectorAll('.button-list-reporting');
|
|
19353
|
+
for (let buttonListReport of buttonListReports) {
|
|
19354
|
+
buttonListReport === null || buttonListReport === void 0 ? void 0 : buttonListReport.addEventListener('click', (ev) => {
|
|
19355
|
+
const id = ev.target.id;
|
|
19356
|
+
const idArr = id.split("-");
|
|
19357
|
+
const mmdd = idArr[3] + "/" + idArr[4];
|
|
19358
|
+
const yyyy = this.getCurrentYear(idArr[3]);
|
|
19359
|
+
// const i = idArr[5];
|
|
19360
|
+
const j = idArr[5];
|
|
19361
|
+
let listReportingContainer = nextEventsContainer.querySelector('#list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
19362
|
+
console.log('mmddyyyy', eventsData[role][mmdd][j], listReportingContainer, '#list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j);
|
|
19363
|
+
if (listReportingContainer.style.display == 'none' || listReportingContainer.style.display == '') {
|
|
19364
|
+
4;
|
|
19365
|
+
this.renderListReporting(listReportingContainer, eventsData[role][mmdd][j], mmdd + '/' + yyyy, nextEventsContainer);
|
|
19366
|
+
}
|
|
19367
|
+
else {
|
|
19368
|
+
listReportingContainer.innerHTML = '';
|
|
19369
|
+
listReportingContainer.style.display = 'none';
|
|
19370
|
+
ev.target.setAttribute('part', 'button-list-reporting');
|
|
19371
|
+
let streamEventTitles = nextEventsContainer.querySelectorAll('.stream-event-title');
|
|
19372
|
+
for (let streamEventTitle of streamEventTitles) {
|
|
19373
|
+
streamEventTitle.removeAttribute('part');
|
|
19374
|
+
}
|
|
19375
|
+
}
|
|
19376
|
+
// console.log('part', ev.target.getAttribute('part'));
|
|
19377
|
+
});
|
|
19378
|
+
}
|
|
19343
19379
|
// }else{
|
|
19344
19380
|
// let innerDivHtml = (this._SfIEventsC.querySelector('#stream-event-next') as HTMLDivElement).innerHTML;
|
|
19345
19381
|
// innerDivHtml.replace('<button id="button-expand" part="icon-button-small" class="material-symbols-outlined">keyboard_arrow_down</button>','');
|
|
@@ -19605,7 +19641,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19605
19641
|
day = '0' + day;
|
|
19606
19642
|
let eDate = month + "/" + day + "/" + year;
|
|
19607
19643
|
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": complianceEntityId, "countryid": "", "functionid": "", "locationid": complianceLocationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": "location", "year": this.calendarStartYYYY };
|
|
19608
|
-
let url = "https://" + this.apiId + "/
|
|
19644
|
+
let url = "https://" + this.apiId + "/getallcountryevents1";
|
|
19609
19645
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
19610
19646
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
19611
19647
|
this._SfLoader.innerHTML = '';
|
|
@@ -19686,7 +19722,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19686
19722
|
console.log('fetching compliances', sortid);
|
|
19687
19723
|
let complianceEntityId = sortid.split(';')[1];
|
|
19688
19724
|
let complianceLocationId = sortid.split(';')[2];
|
|
19689
|
-
let url = "https://" + this.apiId + "/
|
|
19725
|
+
let url = "https://" + this.apiId + "/getallcountryevents1";
|
|
19690
19726
|
let sDateObj = selectedDate;
|
|
19691
19727
|
sDateObj.setDate(selectedDate.getDate() - 60);
|
|
19692
19728
|
let day = '' + sDateObj.getDate();
|
package/src/sf-i-events.ts
CHANGED
|
@@ -6055,31 +6055,33 @@ export class SfIEvents extends LitElement {
|
|
|
6055
6055
|
await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage)
|
|
6056
6056
|
|
|
6057
6057
|
console.log('this.events', this.events);
|
|
6058
|
-
|
|
6059
|
-
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
|
|
6060
|
-
this.events[mmdd][p].documents = docs
|
|
6061
|
-
this.events[mmdd][p].comments.push({'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString()})
|
|
6062
|
-
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
6063
|
-
}
|
|
6064
|
-
}
|
|
6065
|
-
|
|
6066
|
-
if(event.makercheckers.length > 0) {
|
|
6067
|
-
|
|
6068
|
-
await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
6058
|
+
if(this.mode != "next"){
|
|
6069
6059
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
6070
6060
|
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
|
|
6071
|
-
this.events[mmdd][p].
|
|
6072
|
-
|
|
6073
|
-
this.events[mmdd][p].comments.push({'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString()})
|
|
6061
|
+
this.events[mmdd][p].documents = docs
|
|
6062
|
+
this.events[mmdd][p].comments.push({'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString()})
|
|
6074
6063
|
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
6075
6064
|
}
|
|
6076
6065
|
}
|
|
6066
|
+
|
|
6067
|
+
if(event.makercheckers.length > 0) {
|
|
6068
|
+
|
|
6069
|
+
await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
6070
|
+
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
6071
|
+
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
|
|
6072
|
+
this.events[mmdd][p].approved = true
|
|
6073
|
+
// this.events[mmdd][p].documents = docs
|
|
6074
|
+
this.events[mmdd][p].comments.push({'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString()})
|
|
6075
|
+
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
6076
|
+
}
|
|
6077
|
+
}
|
|
6078
|
+
}
|
|
6079
|
+
if(this.recentlyReported[mmdd] == null){
|
|
6080
|
+
this.recentlyReported[mmdd] = []
|
|
6081
|
+
}
|
|
6082
|
+
this.recentlyReported[mmdd].push(event)
|
|
6083
|
+
console.log('recently reported', this.recentlyReported)
|
|
6077
6084
|
}
|
|
6078
|
-
if(this.recentlyReported[mmdd] == null){
|
|
6079
|
-
this.recentlyReported[mmdd] = []
|
|
6080
|
-
}
|
|
6081
|
-
this.recentlyReported[mmdd].push(event)
|
|
6082
|
-
console.log('recently reported', this.recentlyReported)
|
|
6083
6085
|
}else{
|
|
6084
6086
|
let bulkBody = []
|
|
6085
6087
|
let bulkBodyReview = []
|
|
@@ -6321,7 +6323,7 @@ export class SfIEvents extends LitElement {
|
|
|
6321
6323
|
// const i = idArr[5];
|
|
6322
6324
|
const j = idArr[5];
|
|
6323
6325
|
let listReportingContainer = eventsContainer.querySelector('#list-reporting-container-'+mmdd.replace(/\//g,'-')+'-'+j) as HTMLDivElement
|
|
6324
|
-
console.log('mmddyyyy', this.events[mmdd][j], listReportingContainer, '#list-reporting-container-'+mmdd.replace(/\//g,'-')+'-'+j);
|
|
6326
|
+
// console.log('mmddyyyy', this.events[mmdd][j], listReportingContainer, '#list-reporting-container-'+mmdd.replace(/\//g,'-')+'-'+j);
|
|
6325
6327
|
if(listReportingContainer.style.display == 'none' || listReportingContainer.style.display == ''){4
|
|
6326
6328
|
this.renderListReporting(listReportingContainer,this.events[mmdd][j], mmdd + '/' + yyyy, eventsContainer)
|
|
6327
6329
|
}else{
|
|
@@ -19109,32 +19111,35 @@ export class SfIEvents extends LitElement {
|
|
|
19109
19111
|
}
|
|
19110
19112
|
|
|
19111
19113
|
if(radioImage.checked) {
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
|
|
19120
|
-
|
|
19121
|
-
|
|
19122
|
-
|
|
19123
|
-
|
|
19114
|
+
setTimeout(() => {
|
|
19115
|
+
const a = document.createElement('a')
|
|
19116
|
+
a.setAttribute('href', this.chartBase64)
|
|
19117
|
+
a.setAttribute('download', 'download_'+new Date().getTime()+'.png');
|
|
19118
|
+
a.click()
|
|
19119
|
+
console.log('this.chart2', (this.chart2Base64));
|
|
19120
|
+
if(this.chart2Base64 != null) {
|
|
19121
|
+
console.log('this.chart2 download', this.chart2Base64);
|
|
19122
|
+
const a2 = document.createElement('a')
|
|
19123
|
+
a2.setAttribute('href', this.chart2Base64)
|
|
19124
|
+
a2.setAttribute('download', 'download_completeness_'+new Date().getTime()+'.png');
|
|
19125
|
+
a2.click()
|
|
19126
|
+
}
|
|
19124
19127
|
|
|
19125
|
-
|
|
19126
|
-
|
|
19127
|
-
|
|
19128
|
-
|
|
19129
|
-
|
|
19130
|
-
|
|
19128
|
+
if(this.chart3Base64 != null) {
|
|
19129
|
+
const a3 = document.createElement('a')
|
|
19130
|
+
a3.setAttribute('href', this.chart3Base64)
|
|
19131
|
+
a3.setAttribute('download', 'download_timeliness_'+new Date().getTime()+'.png');
|
|
19132
|
+
a3.click()
|
|
19133
|
+
}
|
|
19131
19134
|
|
|
19132
|
-
|
|
19133
|
-
|
|
19134
|
-
|
|
19135
|
-
|
|
19136
|
-
|
|
19137
|
-
|
|
19135
|
+
if(this.chart4Base64 != null) {
|
|
19136
|
+
const a4 = document.createElement('a')
|
|
19137
|
+
a4.setAttribute('href', this.chart4Base64)
|
|
19138
|
+
a4.setAttribute('download', 'download_compliance_'+new Date().getTime()+'.png');
|
|
19139
|
+
a4.click()
|
|
19140
|
+
}
|
|
19141
|
+
},2000)
|
|
19142
|
+
|
|
19138
19143
|
}
|
|
19139
19144
|
|
|
19140
19145
|
if(radioStats.checked) {
|
|
@@ -24408,7 +24413,7 @@ export class SfIEvents extends LitElement {
|
|
|
24408
24413
|
view = "entity";
|
|
24409
24414
|
}
|
|
24410
24415
|
|
|
24411
|
-
path = "
|
|
24416
|
+
path = "getallcountryevents1";
|
|
24412
24417
|
|
|
24413
24418
|
let sDate = "";
|
|
24414
24419
|
let eDate = "";
|
|
@@ -25247,9 +25252,9 @@ export class SfIEvents extends LitElement {
|
|
|
25247
25252
|
statusArr = [this.STATUS_APPROVED]
|
|
25248
25253
|
}
|
|
25249
25254
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
25250
|
-
console.log('params', JSON.stringify({"projectid": this.projectId,"userprofileid": this.userProfileId, "roles": [role] , "year":
|
|
25255
|
+
console.log('params', JSON.stringify({"projectid": this.projectId,"userprofileid": this.userProfileId, "roles": [role] , "year": this.calendarStartYYYY, "page": this.nextPage, "blocksize": parseInt(this.blocksize), "status": statusArr}))
|
|
25251
25256
|
console.log('authorization', authorization)
|
|
25252
|
-
const xhr : any = (await this.prepareXhr({"projectid": this.projectId,"userprofileid": this.userProfileId, "roles": [role] , "year":
|
|
25257
|
+
const xhr : any = (await this.prepareXhr({"projectid": this.projectId,"userprofileid": this.userProfileId, "roles": [role] , "year": this.calendarStartYYYY + "", "page": this.nextPage, "blocksize": parseInt(this.blocksize), "status": statusArr, "list":"yes"}, url, this._SfLoader, authorization)) as any;
|
|
25253
25258
|
this._SfLoader.innerHTML = '';
|
|
25254
25259
|
if(xhr.status == 200) {
|
|
25255
25260
|
|
|
@@ -25519,7 +25524,10 @@ export class SfIEvents extends LitElement {
|
|
|
25519
25524
|
eventHtml += '<div class="stream-events-container flex-grow">';
|
|
25520
25525
|
eventHtml += '<div class="hidden-tags hide">'+JSON.stringify(eventsData[role][mmdd][j]['tags'])+'</div>'
|
|
25521
25526
|
eventHtml += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>'
|
|
25522
|
-
eventHtml += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5 mb-10">' + ('<input id="button-select-'+mmdd.replace('/', '-')+'-'+j + '-' + (((eventsData[role][mmdd][j].makercheckers != null && (eventsData[role][mmdd][j].makercheckers).length > 0)) ? '1' : '0') + '-' + (((eventsData[role][mmdd][j].docs != null && (eventsData[role][mmdd][j].docs).length > 0)) ? '1' : '0') + '-' + eventsData[role][mmdd][j].entityid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].locationid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].id.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].duedate.split('/')[1] + '-' + eventsData[role][mmdd][j].duedate.split('/')[0] + '-' + eventsData[role][mmdd][j].duedate.split('/')[2] + '-' + partStatus.replace(/-/g,'_') + '" class="button-select mr-10 ' + ((eventsData[role][mmdd][j].reportformat != null && eventsData[role][mmdd][j].reportformat.length > 0) ? 'hide' : '') + '" type="checkbox" />') + '<button id="button-unmapped-expand-'+mmdd.replace('/', '-')+'-'+j+'" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>' + '<sf-i-elastic-text text="'+eventsData[role][mmdd][j]['obligationtitle']+'" minLength="100"></sf-i-elastic-text> ' + '<div part="td-body"><sf-i-elastic-text text="'+eventsData[role][mmdd][j]["locationname"].replace(/ *\([^)]*\) */g, "")+'" minLength="30"></sf-i-elastic-text></div> <div part="upcoming-function">' + functionStr + '</div> ' + this.renderStatusHtml(partStatus, lateStatus, complianceStatus, i)
|
|
25527
|
+
eventHtml += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5 mb-10">' + ('<input id="button-select-'+mmdd.replace('/', '-')+'-'+j + '-' + (((eventsData[role][mmdd][j].makercheckers != null && (eventsData[role][mmdd][j].makercheckers).length > 0)) ? '1' : '0') + '-' + (((eventsData[role][mmdd][j].docs != null && (eventsData[role][mmdd][j].docs).length > 0)) ? '1' : '0') + '-' + eventsData[role][mmdd][j].entityid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].locationid.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].id.replace(/-/g, '_') + '-' + eventsData[role][mmdd][j].duedate.split('/')[1] + '-' + eventsData[role][mmdd][j].duedate.split('/')[0] + '-' + eventsData[role][mmdd][j].duedate.split('/')[2] + '-' + partStatus.replace(/-/g,'_') + '" class="button-select mr-10 ' + ((eventsData[role][mmdd][j].reportformat != null && eventsData[role][mmdd][j].reportformat.length > 0) ? 'hide' : '') + '" type="checkbox" />') + '<button id="button-unmapped-expand-'+mmdd.replace('/', '-')+'-'+j+'" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>' + '<sf-i-elastic-text text="'+eventsData[role][mmdd][j]['obligationtitle']+'" minLength="100"></sf-i-elastic-text> ' + '<div part="td-body"><sf-i-elastic-text text="'+eventsData[role][mmdd][j]["locationname"].replace(/ *\([^)]*\) */g, "")+'" minLength="30"></sf-i-elastic-text></div> <div part="upcoming-function">' + functionStr + '</div> ' + this.renderStatusHtml(partStatus, lateStatus, complianceStatus, i)
|
|
25528
|
+
eventHtml += '<button id="button-list-reporting-'+mmdd.replace('/', '-')+'-' + j +'" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>'
|
|
25529
|
+
eventHtml += '</div>';
|
|
25530
|
+
eventHtml += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g,'-') + '-' + j + '"></div>'
|
|
25523
25531
|
eventHtml += '</div>';
|
|
25524
25532
|
html += eventHtml
|
|
25525
25533
|
|
|
@@ -25547,8 +25555,37 @@ export class SfIEvents extends LitElement {
|
|
|
25547
25555
|
}
|
|
25548
25556
|
html += '</div>';
|
|
25549
25557
|
|
|
25550
|
-
(this._SfIEventsC.querySelector('#next-calendar-data') as HTMLDivElement)
|
|
25551
|
-
|
|
25558
|
+
let nextEventsContainer = (this._SfIEventsC.querySelector('#next-calendar-data') as HTMLDivElement);
|
|
25559
|
+
nextEventsContainer.innerHTML = html;
|
|
25560
|
+
nextEventsContainer.style.display = "flex";
|
|
25561
|
+
this.myRole = role;
|
|
25562
|
+
let buttonListReports = nextEventsContainer.querySelectorAll('.button-list-reporting') as NodeListOf<HTMLButtonElement>
|
|
25563
|
+
for(let buttonListReport of buttonListReports){
|
|
25564
|
+
buttonListReport?.addEventListener('click',(ev:any) => {
|
|
25565
|
+
const id = ev.target.id;
|
|
25566
|
+
const idArr = id.split("-")
|
|
25567
|
+
const mmdd = idArr[3] + "/" + idArr[4];
|
|
25568
|
+
const yyyy = this.getCurrentYear(idArr[3]);
|
|
25569
|
+
// const i = idArr[5];
|
|
25570
|
+
const j = idArr[5];
|
|
25571
|
+
let listReportingContainer = nextEventsContainer.querySelector('#list-reporting-container-'+mmdd.replace(/\//g,'-')+'-'+j) as HTMLDivElement
|
|
25572
|
+
console.log('mmddyyyy', eventsData[role][mmdd][j], listReportingContainer, '#list-reporting-container-'+mmdd.replace(/\//g,'-')+'-'+j);
|
|
25573
|
+
if(listReportingContainer.style.display == 'none' || listReportingContainer.style.display == ''){4
|
|
25574
|
+
this.renderListReporting(listReportingContainer,eventsData[role][mmdd][j], mmdd + '/' + yyyy, nextEventsContainer)
|
|
25575
|
+
}else{
|
|
25576
|
+
listReportingContainer.innerHTML = '';
|
|
25577
|
+
listReportingContainer.style.display = 'none';
|
|
25578
|
+
ev.target.setAttribute('part','button-list-reporting')
|
|
25579
|
+
let streamEventTitles = nextEventsContainer.querySelectorAll('.stream-event-title') as NodeListOf<SfIElasticText>
|
|
25580
|
+
for(let streamEventTitle of streamEventTitles){
|
|
25581
|
+
streamEventTitle.removeAttribute('part')
|
|
25582
|
+
}
|
|
25583
|
+
}
|
|
25584
|
+
// console.log('part', ev.target.getAttribute('part'));
|
|
25585
|
+
})
|
|
25586
|
+
}
|
|
25587
|
+
|
|
25588
|
+
|
|
25552
25589
|
// }else{
|
|
25553
25590
|
// let innerDivHtml = (this._SfIEventsC.querySelector('#stream-event-next') as HTMLDivElement).innerHTML;
|
|
25554
25591
|
// innerDivHtml.replace('<button id="button-expand" part="icon-button-small" class="material-symbols-outlined">keyboard_arrow_down</button>','');
|
|
@@ -25864,7 +25901,7 @@ export class SfIEvents extends LitElement {
|
|
|
25864
25901
|
day = '0' + day;
|
|
25865
25902
|
let eDate = month + "/" + day + "/" + year
|
|
25866
25903
|
let urlBody :any = {"projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": complianceEntityId, "countryid": "", "functionid": "", "locationid": complianceLocationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": "location", "year": this.calendarStartYYYY};
|
|
25867
|
-
let url = "https://"+this.apiId+"/
|
|
25904
|
+
let url = "https://"+this.apiId+"/getallcountryevents1";
|
|
25868
25905
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
25869
25906
|
const xhr : any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
25870
25907
|
this._SfLoader.innerHTML = '';
|
|
@@ -25954,7 +25991,7 @@ export class SfIEvents extends LitElement {
|
|
|
25954
25991
|
console.log('fetching compliances', sortid)
|
|
25955
25992
|
let complianceEntityId = sortid.split(';')[1]
|
|
25956
25993
|
let complianceLocationId = sortid.split(';')[2]
|
|
25957
|
-
let url = "https://"+this.apiId+"/
|
|
25994
|
+
let url = "https://"+this.apiId+"/getallcountryevents1";
|
|
25958
25995
|
let sDateObj = selectedDate
|
|
25959
25996
|
sDateObj.setDate(selectedDate.getDate() - 60)
|
|
25960
25997
|
let day = '' + sDateObj.getDate();
|