sf-i-events 1.0.837 → 1.0.838
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 +6 -6
- package/package.json +1 -1
- package/sf-i-events.js +37 -18
- package/src/sf-i-events.ts +37 -19
package/dev/index.html
CHANGED
|
@@ -684,7 +684,7 @@
|
|
|
684
684
|
<!-- <sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}" contractstartdate="01/01/2025" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
|
|
685
685
|
|
|
686
686
|
</sf-i-events> -->
|
|
687
|
-
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Precisionmed Reporter" userprofileid="fe5070fe-9982-4dcf-8458-f8d4f97c7b01" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" projectname="PrecisionMed ABC" countryid="f443b70d-6609-42e0-b6a4-446bfa05d20a" myrole="reporter" showregisterexport="false" features="[]" eventfielddependencies="[{"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">
|
|
687
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Precisionmed Reporter" userprofileid="fe5070fe-9982-4dcf-8458-f8d4f97c7b01" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" projectname="PrecisionMed ABC" countryid="f443b70d-6609-42e0-b6a4-446bfa05d20a" myrole="reporter" showregisterexport="false" features="[]" eventfielddependencies="[{"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">
|
|
688
688
|
|
|
689
689
|
<div slot="uploader">
|
|
690
690
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
@@ -693,7 +693,7 @@
|
|
|
693
693
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
694
694
|
</div>
|
|
695
695
|
|
|
696
|
-
</sf-i-events>
|
|
696
|
+
</sf-i-events> -->
|
|
697
697
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Precisionmed Functionhead" userprofileid="8b73b571-f993-49cf-96e1-bf84f628f26f" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" projectname="PrecisionMed ABC" countryid="f443b70d-6609-42e0-b6a4-446bfa05d20a" myrole="viewer" showregisterexport="false" features="[]" eventfielddependencies="[{"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">
|
|
698
698
|
|
|
699
699
|
<div slot="uploader">
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
</div>
|
|
705
705
|
|
|
706
706
|
</sf-i-events> -->
|
|
707
|
-
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Auditor J1" userprofileid="bda0d59b-058b-4098-b0fc-54aa54aa5998" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="auditor" showregisterexport="false" features="["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="
|
|
707
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Auditor J1" userprofileid="bda0d59b-058b-4098-b0fc-54aa54aa5998" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="auditor" showregisterexport="false" features="["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="2025">
|
|
708
708
|
|
|
709
709
|
<div slot="uploader">
|
|
710
710
|
<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>
|
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
</div>
|
|
715
715
|
|
|
716
716
|
</sf-i-events> -->
|
|
717
|
-
|
|
717
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" showregisterexport="false" features="["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="2025">
|
|
718
718
|
|
|
719
719
|
<div slot="uploader">
|
|
720
720
|
<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>
|
|
@@ -723,7 +723,7 @@
|
|
|
723
723
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
724
724
|
</div>
|
|
725
725
|
|
|
726
|
-
</sf-i-events>
|
|
726
|
+
</sf-i-events>
|
|
727
727
|
<!-- <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="["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">
|
|
728
728
|
|
|
729
729
|
<div slot="uploader">
|
|
@@ -779,7 +779,7 @@
|
|
|
779
779
|
</div>
|
|
780
780
|
|
|
781
781
|
</sf-i-events> -->
|
|
782
|
-
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="reporter" showregisterexport="false" features="["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="
|
|
782
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="reporter" showregisterexport="false" features="["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="2025">
|
|
783
783
|
|
|
784
784
|
<div slot="uploader">
|
|
785
785
|
<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>
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -3379,7 +3379,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3379
3379
|
}
|
|
3380
3380
|
});
|
|
3381
3381
|
(_f = listReportingContainer.querySelector('#button-auto-approve')) === null || _f === void 0 ? void 0 : _f.addEventListener('click', async () => {
|
|
3382
|
-
if (this.selectedItemIds.length
|
|
3382
|
+
if (this.selectedItemIds.length <= 1) {
|
|
3383
3383
|
await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
3384
3384
|
this.setSuccess('Auto-Approved successfully!');
|
|
3385
3385
|
setTimeout(() => {
|
|
@@ -3432,8 +3432,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3432
3432
|
let buttonClick = ev.target;
|
|
3433
3433
|
buttonClick.innerHTML = "Saving...";
|
|
3434
3434
|
const comments = listReportingContainer.querySelector('#input-approver-comments').value;
|
|
3435
|
+
console.log('comments', comments, JSON.stringify(event.comments));
|
|
3435
3436
|
const approved = listReportingContainer.querySelector('#input-approve-yes').checked;
|
|
3436
|
-
|
|
3437
|
+
let currStatus = this.getCompletenessStatus(event);
|
|
3438
|
+
let newEvent = { ...event };
|
|
3439
|
+
newEvent.comments = comments;
|
|
3440
|
+
newEvent.approved = approved;
|
|
3441
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
3442
|
+
if (currStatus == newStatus) {
|
|
3437
3443
|
buttonClick.innerHTML = "Save";
|
|
3438
3444
|
this.setError('Already Approved!');
|
|
3439
3445
|
setTimeout(() => {
|
|
@@ -3442,11 +3448,13 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3442
3448
|
return;
|
|
3443
3449
|
}
|
|
3444
3450
|
let flagBulk = false;
|
|
3445
|
-
if (this.selectedItemIds.length
|
|
3451
|
+
if (this.selectedItemIds.length <= 1) {
|
|
3452
|
+
console.log('selectedevent', JSON.stringify(event));
|
|
3446
3453
|
if (await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")) {
|
|
3447
3454
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
3448
3455
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
|
|
3449
3456
|
this.events[mmdd][p].approved = approved;
|
|
3457
|
+
console.log('selected event', this.events[mmdd][p]);
|
|
3450
3458
|
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
|
|
3451
3459
|
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
3452
3460
|
if (approved) {
|
|
@@ -3546,7 +3554,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3546
3554
|
}
|
|
3547
3555
|
else {
|
|
3548
3556
|
let flagBulk = false;
|
|
3549
|
-
if (this.selectedItemIds.length
|
|
3557
|
+
if (this.selectedItemIds.length <= 1) {
|
|
3550
3558
|
if (await this.uploadAudit(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")) {
|
|
3551
3559
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
3552
3560
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
|
|
@@ -3705,7 +3713,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3705
3713
|
}
|
|
3706
3714
|
else {
|
|
3707
3715
|
let flagBulk = false;
|
|
3708
|
-
if (this.selectedItemIds.length
|
|
3716
|
+
if (this.selectedItemIds.length <= 1) {
|
|
3709
3717
|
if (await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage, event.makercheckers)) {
|
|
3710
3718
|
console.log('this.events', this.events);
|
|
3711
3719
|
if (this.mode != "next") {
|
|
@@ -9138,7 +9146,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9138
9146
|
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
9139
9147
|
// await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved)
|
|
9140
9148
|
let flagBulk = false;
|
|
9141
|
-
if (this.selectedItemIds.length
|
|
9149
|
+
if (this.selectedItemIds.length <= 1) {
|
|
9142
9150
|
console.log('mmddyyyy', mmddyyyy);
|
|
9143
9151
|
if (await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.isnotice != null ? "notices" : "events")) {
|
|
9144
9152
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
@@ -9257,7 +9265,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9257
9265
|
}
|
|
9258
9266
|
else {
|
|
9259
9267
|
let flagBulk = false;
|
|
9260
|
-
if (this.selectedItemIds.length
|
|
9268
|
+
if (this.selectedItemIds.length <= 1) {
|
|
9261
9269
|
if (await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.isnotice != null ? "notices" : "events")) {
|
|
9262
9270
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
9263
9271
|
if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
@@ -9426,7 +9434,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9426
9434
|
});
|
|
9427
9435
|
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
9428
9436
|
let flagBulk = false;
|
|
9429
|
-
if (this.selectedItemIds.length
|
|
9437
|
+
if (this.selectedItemIds.length <= 1) {
|
|
9430
9438
|
if (await this.uploadReport(entityId, locationId, mmddyyyy, listEvent["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, "notices", percentage, makercheckers)) {
|
|
9431
9439
|
console.log('this.events', this.events);
|
|
9432
9440
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
@@ -10057,7 +10065,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10057
10065
|
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
10058
10066
|
});
|
|
10059
10067
|
(_c = this._SfDetailContainer.querySelector('#button-auto-approve')) === null || _c === void 0 ? void 0 : _c.addEventListener('click', async () => {
|
|
10060
|
-
if (this.selectedItemIds.length
|
|
10068
|
+
if (this.selectedItemIds.length <= 1) {
|
|
10061
10069
|
await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
10062
10070
|
this.setSuccess('Auto-Approved successfully!');
|
|
10063
10071
|
setTimeout(() => {
|
|
@@ -10237,7 +10245,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10237
10245
|
buttonClick.innerHTML = "Saving...";
|
|
10238
10246
|
const comments = this._SfDetailContainer.querySelector('#input-approver-comments').value;
|
|
10239
10247
|
const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
|
|
10240
|
-
|
|
10248
|
+
let currStatus = this.getCompletenessStatus(event);
|
|
10249
|
+
let newEvent = { ...event };
|
|
10250
|
+
newEvent.comments = comments;
|
|
10251
|
+
newEvent.approved = approved;
|
|
10252
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
10253
|
+
if (currStatus == newStatus) {
|
|
10241
10254
|
buttonClick.innerHTML = "Save";
|
|
10242
10255
|
this.setError('Already Approved!');
|
|
10243
10256
|
setTimeout(() => {
|
|
@@ -10253,7 +10266,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10253
10266
|
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
10254
10267
|
// await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved)
|
|
10255
10268
|
let flagBulk = false;
|
|
10256
|
-
if (this.selectedItemIds.length
|
|
10269
|
+
if (this.selectedItemIds.length <= 1) {
|
|
10257
10270
|
// console.log('mmddyyyy', mmddyyyy)
|
|
10258
10271
|
if (await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")) {
|
|
10259
10272
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
@@ -10353,7 +10366,13 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10353
10366
|
buttonClick.innerHTML = "Saving...";
|
|
10354
10367
|
const comments = this._SfDetailContainer.querySelector('#input-auditor-comments').value;
|
|
10355
10368
|
const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
|
|
10356
|
-
|
|
10369
|
+
let currStatus = this.getCompletenessStatus(event);
|
|
10370
|
+
let newEvent = { ...event };
|
|
10371
|
+
newEvent.comments = comments;
|
|
10372
|
+
newEvent.approved = approved;
|
|
10373
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
10374
|
+
console.log('status', currStatus, newStatus);
|
|
10375
|
+
if (currStatus == newStatus) {
|
|
10357
10376
|
buttonClick.innerHTML = "Save";
|
|
10358
10377
|
this.setError('Already Approved!');
|
|
10359
10378
|
setTimeout(() => {
|
|
@@ -10370,7 +10389,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10370
10389
|
}
|
|
10371
10390
|
else {
|
|
10372
10391
|
let flagBulk = false;
|
|
10373
|
-
if (this.selectedItemIds.length
|
|
10392
|
+
if (this.selectedItemIds.length <= 1) {
|
|
10374
10393
|
if (await this.uploadAudit(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")) {
|
|
10375
10394
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
10376
10395
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
@@ -10537,7 +10556,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10537
10556
|
});
|
|
10538
10557
|
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
10539
10558
|
let flagBulk = false;
|
|
10540
|
-
if (this.selectedItemIds.length
|
|
10559
|
+
if (this.selectedItemIds.length <= 1) {
|
|
10541
10560
|
//console.log('makerscheckers', makercheckers, reportercomments);
|
|
10542
10561
|
// console.log('reportformatvalues', reportformatvalues)
|
|
10543
10562
|
// console.log('reportformatschema',reportformatschema)
|
|
@@ -11358,7 +11377,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11358
11377
|
let changedId = "";
|
|
11359
11378
|
for (let [k, col] of uniqCols.entries()) {
|
|
11360
11379
|
if (taggingArray.data.mappings.mappings[i] == null) {
|
|
11361
|
-
console.log('id not found', i, taggingArray.data.mappings.mappings);
|
|
11380
|
+
console.log('id not found', i, taggingArray.data.mappings.mappings.length, sourceArray.data.mappings.mappings.length);
|
|
11362
11381
|
}
|
|
11363
11382
|
changedId += taggingArray.data.mappings.mappings[i][col];
|
|
11364
11383
|
if (k < (uniqCols.length - 1)) {
|
|
@@ -17047,7 +17066,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17047
17066
|
return retValue;
|
|
17048
17067
|
};
|
|
17049
17068
|
this.uploadAuditsBulk = async (bulkBody) => {
|
|
17050
|
-
let url = "https://" + this.apiId + "/
|
|
17069
|
+
let url = "https://" + this.apiId + "/uploadauditsbulk2";
|
|
17051
17070
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17052
17071
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17053
17072
|
this._SfLoader.innerHTML = '';
|
|
@@ -17139,7 +17158,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17139
17158
|
}
|
|
17140
17159
|
};
|
|
17141
17160
|
this.uploadReviewsBulk = async (bulkBody) => {
|
|
17142
|
-
let url = "https://" + this.apiId + "/
|
|
17161
|
+
let url = "https://" + this.apiId + "/uploadreviewsbulk2";
|
|
17143
17162
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17144
17163
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17145
17164
|
this._SfLoader.innerHTML = '';
|
|
@@ -17220,7 +17239,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17220
17239
|
return retValue;
|
|
17221
17240
|
};
|
|
17222
17241
|
this.uploadReportsBulk = async (bulkBody, showSuccess = true) => {
|
|
17223
|
-
let url = "https://" + this.apiId + "/
|
|
17242
|
+
let url = "https://" + this.apiId + "/uploadreportsbulk4";
|
|
17224
17243
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17225
17244
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17226
17245
|
if (showSuccess) {
|
package/src/sf-i-events.ts
CHANGED
|
@@ -5715,7 +5715,7 @@ export class SfIEvents extends LitElement {
|
|
|
5715
5715
|
|
|
5716
5716
|
});
|
|
5717
5717
|
listReportingContainer.querySelector('#button-auto-approve')?.addEventListener('click', async () => {
|
|
5718
|
-
if(this.selectedItemIds.length
|
|
5718
|
+
if(this.selectedItemIds.length <= 1){
|
|
5719
5719
|
await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
5720
5720
|
this.setSuccess('Auto-Approved successfully!')
|
|
5721
5721
|
setTimeout(() => {
|
|
@@ -5770,8 +5770,14 @@ export class SfIEvents extends LitElement {
|
|
|
5770
5770
|
let buttonClick = ev.target as HTMLButtonElement
|
|
5771
5771
|
buttonClick.innerHTML = "Saving..."
|
|
5772
5772
|
const comments = (listReportingContainer.querySelector('#input-approver-comments') as HTMLInputElement).value;
|
|
5773
|
+
console.log('comments', comments, JSON.stringify(event.comments))
|
|
5773
5774
|
const approved = (listReportingContainer.querySelector('#input-approve-yes') as HTMLInputElement).checked;
|
|
5774
|
-
|
|
5775
|
+
let currStatus = this.getCompletenessStatus(event);
|
|
5776
|
+
let newEvent = {...event};
|
|
5777
|
+
newEvent.comments = comments;
|
|
5778
|
+
newEvent.approved = approved;
|
|
5779
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
5780
|
+
if(currStatus == newStatus){
|
|
5775
5781
|
buttonClick.innerHTML = "Save"
|
|
5776
5782
|
this.setError('Already Approved!');
|
|
5777
5783
|
setTimeout(() => {
|
|
@@ -5780,12 +5786,13 @@ export class SfIEvents extends LitElement {
|
|
|
5780
5786
|
return;
|
|
5781
5787
|
}
|
|
5782
5788
|
let flagBulk = false;
|
|
5783
|
-
if(this.selectedItemIds.length
|
|
5784
|
-
|
|
5789
|
+
if(this.selectedItemIds.length <= 1){
|
|
5790
|
+
console.log('selectedevent', JSON.stringify(event));
|
|
5785
5791
|
if(await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")){
|
|
5786
5792
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
5787
5793
|
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
|
|
5788
5794
|
this.events[mmdd][p].approved = approved
|
|
5795
|
+
console.log('selected event', this.events[mmdd][p]);
|
|
5789
5796
|
this.events[mmdd][p].comments.push({'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString()})
|
|
5790
5797
|
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
5791
5798
|
if(approved){
|
|
@@ -5893,7 +5900,7 @@ export class SfIEvents extends LitElement {
|
|
|
5893
5900
|
|
|
5894
5901
|
} else {
|
|
5895
5902
|
let flagBulk = false;
|
|
5896
|
-
if(this.selectedItemIds.length
|
|
5903
|
+
if(this.selectedItemIds.length <= 1){
|
|
5897
5904
|
if(await this.uploadAudit(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")){
|
|
5898
5905
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
5899
5906
|
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
|
|
@@ -6078,7 +6085,7 @@ export class SfIEvents extends LitElement {
|
|
|
6078
6085
|
|
|
6079
6086
|
} else {
|
|
6080
6087
|
let flagBulk = false;
|
|
6081
|
-
if(this.selectedItemIds.length
|
|
6088
|
+
if(this.selectedItemIds.length <= 1){
|
|
6082
6089
|
|
|
6083
6090
|
if(await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage, event.makercheckers)){
|
|
6084
6091
|
|
|
@@ -12671,7 +12678,7 @@ export class SfIEvents extends LitElement {
|
|
|
12671
12678
|
|
|
12672
12679
|
// await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved)
|
|
12673
12680
|
let flagBulk = false;
|
|
12674
|
-
if(this.selectedItemIds.length
|
|
12681
|
+
if(this.selectedItemIds.length <= 1) {
|
|
12675
12682
|
console.log('mmddyyyy', mmddyyyy)
|
|
12676
12683
|
if(await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.isnotice != null ? "notices" : "events")){
|
|
12677
12684
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
@@ -12799,7 +12806,7 @@ export class SfIEvents extends LitElement {
|
|
|
12799
12806
|
|
|
12800
12807
|
} else {
|
|
12801
12808
|
let flagBulk = false;
|
|
12802
|
-
if(this.selectedItemIds.length
|
|
12809
|
+
if(this.selectedItemIds.length <= 1) {
|
|
12803
12810
|
|
|
12804
12811
|
if(await this.uploadAudit(entityId, locationId, mmddyyyy, listEvent["id"], comments, approved, listEvent.isnotice != null ? "notices" : "events")){
|
|
12805
12812
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
@@ -13002,7 +13009,7 @@ export class SfIEvents extends LitElement {
|
|
|
13002
13009
|
|
|
13003
13010
|
((this._SfDetailContainer as HTMLDivElement).querySelector('#button-detail-close') as HTMLButtonElement)!.dispatchEvent(clickEvent);
|
|
13004
13011
|
let flagBulk = false;
|
|
13005
|
-
if(this.selectedItemIds.length
|
|
13012
|
+
if(this.selectedItemIds.length <= 1) {
|
|
13006
13013
|
|
|
13007
13014
|
if(await this.uploadReport(entityId, locationId, mmddyyyy, listEvent["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, "notices", percentage, makercheckers)){
|
|
13008
13015
|
console.log('this.events', this.events);
|
|
@@ -13747,7 +13754,7 @@ export class SfIEvents extends LitElement {
|
|
|
13747
13754
|
|
|
13748
13755
|
});
|
|
13749
13756
|
(this._SfDetailContainer as HTMLDivElement).querySelector('#button-auto-approve')?.addEventListener('click', async () => {
|
|
13750
|
-
if(this.selectedItemIds.length
|
|
13757
|
+
if(this.selectedItemIds.length <= 1) {
|
|
13751
13758
|
await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
|
|
13752
13759
|
this.setSuccess('Auto-Approved successfully!')
|
|
13753
13760
|
setTimeout(() => {
|
|
@@ -13973,7 +13980,12 @@ export class SfIEvents extends LitElement {
|
|
|
13973
13980
|
buttonClick.innerHTML = "Saving..."
|
|
13974
13981
|
const comments = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approver-comments') as HTMLInputElement).value;
|
|
13975
13982
|
const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
|
|
13976
|
-
|
|
13983
|
+
let currStatus = this.getCompletenessStatus(event);
|
|
13984
|
+
let newEvent = {...event};
|
|
13985
|
+
newEvent.comments = comments;
|
|
13986
|
+
newEvent.approved = approved;
|
|
13987
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
13988
|
+
if(currStatus == newStatus){
|
|
13977
13989
|
buttonClick.innerHTML = "Save"
|
|
13978
13990
|
this.setError('Already Approved!');
|
|
13979
13991
|
setTimeout(() => {
|
|
@@ -13990,7 +14002,7 @@ export class SfIEvents extends LitElement {
|
|
|
13990
14002
|
|
|
13991
14003
|
// await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved)
|
|
13992
14004
|
let flagBulk = false;
|
|
13993
|
-
if(this.selectedItemIds.length
|
|
14005
|
+
if(this.selectedItemIds.length <= 1) {
|
|
13994
14006
|
// console.log('mmddyyyy', mmddyyyy)
|
|
13995
14007
|
if(await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")){
|
|
13996
14008
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
@@ -14099,7 +14111,13 @@ export class SfIEvents extends LitElement {
|
|
|
14099
14111
|
buttonClick.innerHTML = "Saving..."
|
|
14100
14112
|
const comments: string = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-auditor-comments') as HTMLInputElement).value;
|
|
14101
14113
|
const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
|
|
14102
|
-
|
|
14114
|
+
let currStatus = this.getCompletenessStatus(event);
|
|
14115
|
+
let newEvent = {...event};
|
|
14116
|
+
newEvent.comments = comments;
|
|
14117
|
+
newEvent.approved = approved;
|
|
14118
|
+
let newStatus = this.getCompletenessStatus(newEvent);
|
|
14119
|
+
console.log('status', currStatus, newStatus)
|
|
14120
|
+
if(currStatus == newStatus){
|
|
14103
14121
|
buttonClick.innerHTML = "Save"
|
|
14104
14122
|
this.setError('Already Approved!');
|
|
14105
14123
|
setTimeout(() => {
|
|
@@ -14116,7 +14134,7 @@ export class SfIEvents extends LitElement {
|
|
|
14116
14134
|
|
|
14117
14135
|
} else {
|
|
14118
14136
|
let flagBulk = false;
|
|
14119
|
-
if(this.selectedItemIds.length
|
|
14137
|
+
if(this.selectedItemIds.length <= 1) {
|
|
14120
14138
|
|
|
14121
14139
|
if(await this.uploadAudit(entityId, locationId, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")){
|
|
14122
14140
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
@@ -14316,7 +14334,7 @@ export class SfIEvents extends LitElement {
|
|
|
14316
14334
|
|
|
14317
14335
|
((this._SfDetailContainer as HTMLDivElement).querySelector('#button-detail-close') as HTMLButtonElement)!.dispatchEvent(clickEvent);
|
|
14318
14336
|
let flagBulk = false;
|
|
14319
|
-
if(this.selectedItemIds.length
|
|
14337
|
+
if(this.selectedItemIds.length <= 1) {
|
|
14320
14338
|
|
|
14321
14339
|
//console.log('makerscheckers', makercheckers, reportercomments);
|
|
14322
14340
|
// console.log('reportformatvalues', reportformatvalues)
|
|
@@ -15366,7 +15384,7 @@ export class SfIEvents extends LitElement {
|
|
|
15366
15384
|
let changedId = ""
|
|
15367
15385
|
for(let [k,col] of uniqCols.entries()){
|
|
15368
15386
|
if(taggingArray.data.mappings.mappings[i] == null){
|
|
15369
|
-
console.log('id not found', i, taggingArray.data.mappings.mappings)
|
|
15387
|
+
console.log('id not found', i, taggingArray.data.mappings.mappings.length, sourceArray.data.mappings.mappings.length)
|
|
15370
15388
|
}
|
|
15371
15389
|
changedId += taggingArray.data.mappings.mappings[i][col];
|
|
15372
15390
|
if(k < (uniqCols.length - 1)){
|
|
@@ -22547,7 +22565,7 @@ export class SfIEvents extends LitElement {
|
|
|
22547
22565
|
return retValue;
|
|
22548
22566
|
}
|
|
22549
22567
|
uploadAuditsBulk = async (bulkBody: any) => {
|
|
22550
|
-
let url = "https://"+this.apiId+"/
|
|
22568
|
+
let url = "https://"+this.apiId+"/uploadauditsbulk2";
|
|
22551
22569
|
|
|
22552
22570
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22553
22571
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|
|
@@ -22645,7 +22663,7 @@ export class SfIEvents extends LitElement {
|
|
|
22645
22663
|
}
|
|
22646
22664
|
}
|
|
22647
22665
|
uploadReviewsBulk = async (bulkBody: any) => {
|
|
22648
|
-
let url = "https://"+this.apiId+"/
|
|
22666
|
+
let url = "https://"+this.apiId+"/uploadreviewsbulk2";
|
|
22649
22667
|
|
|
22650
22668
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22651
22669
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|
|
@@ -22732,7 +22750,7 @@ export class SfIEvents extends LitElement {
|
|
|
22732
22750
|
}
|
|
22733
22751
|
|
|
22734
22752
|
uploadReportsBulk = async (bulkBody: any, showSuccess: boolean = true) => {
|
|
22735
|
-
let url = "https://"+this.apiId+"/
|
|
22753
|
+
let url = "https://"+this.apiId+"/uploadreportsbulk4"
|
|
22736
22754
|
|
|
22737
22755
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22738
22756
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|