sf-i-events 1.0.912 → 1.0.914
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 +90 -60
- package/package.json +1 -1
- package/sf-i-events.js +12 -11
- package/src/sf-i-events.ts +12 -11
- package/src/util.ts +11 -1
- package/util.d.ts +2 -0
- package/util.js +12 -1
package/dev/index.html
CHANGED
|
@@ -265,6 +265,7 @@
|
|
|
265
265
|
text-transform: capitalize;
|
|
266
266
|
text-align: left;
|
|
267
267
|
}
|
|
268
|
+
|
|
268
269
|
sf-i-events::part(td-head-selected) {
|
|
269
270
|
color: #444;
|
|
270
271
|
font-weight: 400;
|
|
@@ -427,6 +428,7 @@
|
|
|
427
428
|
border-right: solid 1px rgba(0, 0, 0, 0.1);
|
|
428
429
|
|
|
429
430
|
}
|
|
431
|
+
|
|
430
432
|
sf-i-events::part(button-icon-selected) {
|
|
431
433
|
|
|
432
434
|
border-width: 0px;
|
|
@@ -518,6 +520,7 @@
|
|
|
518
520
|
sf-i-events::part(highlight) {
|
|
519
521
|
background-color: greenyellow;
|
|
520
522
|
}
|
|
523
|
+
|
|
521
524
|
sf-i-events::part(highlight-count) {
|
|
522
525
|
color: #666;
|
|
523
526
|
font-size: small;
|
|
@@ -825,8 +828,67 @@
|
|
|
825
828
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile"
|
|
826
829
|
disablesignoff="yes" disableclientresponse="yes">
|
|
827
830
|
|
|
831
|
+
</sf-i-events> -->
|
|
832
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
833
|
+
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
834
|
+
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
835
|
+
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
836
|
+
apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
|
|
837
|
+
apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
|
|
838
|
+
apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
|
|
839
|
+
apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="solid"
|
|
840
|
+
username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410"
|
|
841
|
+
projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global"
|
|
842
|
+
countryid="8ee18117-0cca-49be-80f4-1f712d871fef" selectedcriteria="Country - Singapore" myrole="reporter"
|
|
843
|
+
showregisterexport="false"
|
|
844
|
+
features="["notices","contracts","licenses","rcmresources"]"
|
|
845
|
+
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
846
|
+
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"}]"
|
|
847
|
+
eventpreviewfields="["obligation"]"
|
|
848
|
+
eventhidefields="["comments","documents","lastupdated","approved","tags"]"
|
|
849
|
+
calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
|
|
850
|
+
|
|
851
|
+
<div slot="uploader">
|
|
852
|
+
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
|
|
853
|
+
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx"]"
|
|
854
|
+
extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="31457280"
|
|
855
|
+
allowdownload="yes"></sf-i-uploader>
|
|
856
|
+
</div>
|
|
857
|
+
<div slot="reporting">
|
|
858
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
859
|
+
</div>
|
|
860
|
+
|
|
828
861
|
</sf-i-events> -->
|
|
829
862
|
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
863
|
+
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
864
|
+
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
865
|
+
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
866
|
+
apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
|
|
867
|
+
apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
|
|
868
|
+
apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
|
|
869
|
+
apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="pattern"
|
|
870
|
+
username="Neeti Kharbanda" userprofileid="ef467815-de15-4c11-8149-24a3ffad2904"
|
|
871
|
+
projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan"
|
|
872
|
+
countryid="f0e588c1-bc61-4bc9-8db1-10fabe616cc9" selectedcriteria="Country - India" enabledeletelatestreport="true"
|
|
873
|
+
features="[]"
|
|
874
|
+
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
875
|
+
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"}]"
|
|
876
|
+
eventpreviewfields="["obligationtitle"]"
|
|
877
|
+
eventhidefields="["comments","documents","lastupdated","approved","tags"]"
|
|
878
|
+
calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
|
|
879
|
+
|
|
880
|
+
<div slot="uploader">
|
|
881
|
+
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
|
|
882
|
+
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx"]"
|
|
883
|
+
extract="yes" projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" maxsize="31457280"
|
|
884
|
+
allowdownload="yes"></sf-i-uploader>
|
|
885
|
+
</div>
|
|
886
|
+
<div slot="reporting">
|
|
887
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
888
|
+
</div>
|
|
889
|
+
|
|
890
|
+
</sf-i-events>
|
|
891
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
830
892
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
831
893
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
832
894
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -854,7 +916,7 @@
|
|
|
854
916
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
855
917
|
</div>
|
|
856
918
|
|
|
857
|
-
</sf-i-events>
|
|
919
|
+
</sf-i-events> -->
|
|
858
920
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
|
|
859
921
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
860
922
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -925,67 +987,35 @@
|
|
|
925
987
|
</div>
|
|
926
988
|
|
|
927
989
|
</sf-i-events> -->
|
|
928
|
-
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
<div slot="uploader">
|
|
946
|
-
<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>
|
|
947
|
-
</div>
|
|
948
|
-
<div slot="reporting">
|
|
949
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
950
|
-
</div>
|
|
951
|
-
|
|
952
|
-
</sf-i-events> -->
|
|
953
|
-
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="pattern" username="Dipti" userprofileid="d888568d-0599-46f9-9d73-55ea76345db1" projectid="c7d18a84-c2df-4dc2-b75f-5820549f5e5c" projectname="Chitale" countryid="4252b692-e47c-4244-9500-0bea51150031" enabledeletelatestreport="true" features="[]" eventfielddependencies="[{"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="["obligationtitle"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
954
|
-
|
|
955
|
-
<div slot="uploader">
|
|
956
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="c7d18a84-c2df-4dc2-b75f-5820549f5e5c" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
957
|
-
</div>
|
|
958
|
-
<div slot="reporting">
|
|
959
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
960
|
-
</div>
|
|
961
|
-
|
|
962
|
-
</sf-i-events> -->
|
|
963
|
-
<!-- <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">
|
|
964
|
-
|
|
965
|
-
<div slot="uploader">
|
|
966
|
-
<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>
|
|
967
|
-
</div>
|
|
968
|
-
<div slot="reporting">
|
|
969
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
970
|
-
</div>
|
|
971
|
-
|
|
972
|
-
</sf-i-events> -->
|
|
973
|
-
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="pattern" username="Humayu Shaikh" userprofileid="115e99a2-4b5b-4b76-846e-24133dac5ccd" projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" projectname="Standard Radiators Private Limited" countryid="17f9c73b-886d-40d7-b8f2-2ace42763d47" enabledeletelatestreport="true" 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="["obligationtitle"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
|
|
974
|
-
|
|
975
|
-
<div slot="uploader">
|
|
976
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
977
|
-
</div>
|
|
978
|
-
<div slot="reporting">
|
|
979
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
980
|
-
</div>
|
|
981
|
-
|
|
982
|
-
</sf-i-events> -->
|
|
983
|
-
<!-- <sf-i-events projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" projectname="Standard Radiators Private Limited" mode="onboarding" locations="{"India":{"Punjab":["Punjab Warehouse"],"Gujarat":["RO & Unit I","Unit II"]}}" contractstartdate="01/03/2025" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
|
|
990
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
991
|
+
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
992
|
+
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
993
|
+
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
994
|
+
apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
|
|
995
|
+
apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
|
|
996
|
+
apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
|
|
997
|
+
apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="solid"
|
|
998
|
+
username="Sanjeev Sharma" userprofileid="100a85f2-35b8-42d1-b368-9865eab9b8fd"
|
|
999
|
+
projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" projectname="Standard Radiators Private Limited"
|
|
1000
|
+
countryid="17f9c73b-886d-40d7-b8f2-2ace42763d47" selectedcriteria="Country - India" myrole="viewer"
|
|
1001
|
+
showregisterexport="false" features="[]"
|
|
1002
|
+
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
1003
|
+
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"}]"
|
|
1004
|
+
eventpreviewfields="["obligation"]"
|
|
1005
|
+
eventhidefields="["comments","documents","lastupdated","approved","tags"]"
|
|
1006
|
+
calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
|
|
984
1007
|
|
|
985
|
-
|
|
986
|
-
|
|
1008
|
+
<div slot="uploader">
|
|
1009
|
+
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
|
|
1010
|
+
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx"]"
|
|
1011
|
+
extract="yes" projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" maxsize="31457280"
|
|
1012
|
+
allowdownload="yes"></sf-i-uploader>
|
|
1013
|
+
</div>
|
|
1014
|
+
<div slot="reporting">
|
|
1015
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
1016
|
+
</div>
|
|
987
1017
|
|
|
988
|
-
|
|
1018
|
+
</sf-i-events> -->
|
|
989
1019
|
<!-- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
|
|
990
1020
|
locations="{"India":{"Maharashtra":["Pune","Mumbai"],"Telangana":["Telangana"]},"Canada":{"CanadaSO":["CanadaLO"]},"Singapore":{"SingaporeSO":["Orchard","Raffles","Robinson","Tanjong","Tras"]},"United Kingdom":{"UnitedSO":["UnitedLO"]},"United States of America":{"AmericaSO":["AmericaLO"]}}"
|
|
991
1021
|
contractstartdate="1/4/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -3765,7 +3765,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3765
3765
|
}
|
|
3766
3766
|
let streamEventTitles = eventsContainer.querySelectorAll('.stream-event-title');
|
|
3767
3767
|
for (let streamEventTitle of streamEventTitles) {
|
|
3768
|
-
if (streamEventTitle.id == 'stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + (((_c = event.module) !== null && _c !== void 0 ? _c : false) ? event.module : 'compliance')) {
|
|
3768
|
+
if (streamEventTitle.id == 'stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + (((_c = event.module) !== null && _c !== void 0 ? _c : false) ? event.module : 'compliance') + '-') {
|
|
3769
3769
|
streamEventTitle.setAttribute('part', 'stream-event-title-selected');
|
|
3770
3770
|
}
|
|
3771
3771
|
else {
|
|
@@ -4819,7 +4819,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4819
4819
|
listReportingContainer.innerHTML = '';
|
|
4820
4820
|
let buttonListReporting = eventsContainer.querySelector('#button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j + '-');
|
|
4821
4821
|
buttonListReporting.setAttribute('part', 'button-list-reporting');
|
|
4822
|
-
let streamEventTitle = eventsContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module);
|
|
4822
|
+
let streamEventTitle = eventsContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module + '-');
|
|
4823
4823
|
streamEventTitle.removeAttribute('part');
|
|
4824
4824
|
}
|
|
4825
4825
|
if (this.selectedItemIds.length === 0) {
|
|
@@ -8614,7 +8614,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8614
8614
|
listReportingContainer.innerHTML = '';
|
|
8615
8615
|
let buttonListReporting = this._SfThisContainer.querySelector('#button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j + '-');
|
|
8616
8616
|
buttonListReporting.setAttribute('part', 'button-list-reporting');
|
|
8617
|
-
let streamEventTitle = this._SfThisContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module);
|
|
8617
|
+
let streamEventTitle = this._SfThisContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module + '-');
|
|
8618
8618
|
streamEventTitle.removeAttribute('part');
|
|
8619
8619
|
}
|
|
8620
8620
|
if (this.selectedItemIds.length === 0) {
|
|
@@ -9139,7 +9139,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9139
9139
|
listReportingContainer.innerHTML = '';
|
|
9140
9140
|
let buttonListReporting = this._SfStreamContainer.querySelector('#button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j + '-');
|
|
9141
9141
|
buttonListReporting.setAttribute('part', 'button-list-reporting');
|
|
9142
|
-
let streamEventTitle = this._SfStreamContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module);
|
|
9142
|
+
let streamEventTitle = this._SfStreamContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module + '-');
|
|
9143
9143
|
streamEventTitle.removeAttribute('part');
|
|
9144
9144
|
}
|
|
9145
9145
|
if (this.selectedItemIds.length === 0) {
|
|
@@ -9943,6 +9943,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9943
9943
|
let userid = this.userProfileId;
|
|
9944
9944
|
// let username = this.userName;
|
|
9945
9945
|
let filterString = `countryid="${this.countryId}" locationid="${this.locationId}" entityid="${this.entityId}" tagid="${this.tagId}" selectedcriteria="${this.selectedCriteria}"`;
|
|
9946
|
+
console.log('FilterString', filterString);
|
|
9946
9947
|
let rolestr = "viewer";
|
|
9947
9948
|
if (filter == "reporter" || filter == "approver" || filter == "functionhead") {
|
|
9948
9949
|
userid = filterid;
|
|
@@ -13497,7 +13498,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13497
13498
|
if (!this.getEventHideFields().includes(statuteFields[i])) {
|
|
13498
13499
|
html += '<div class="m-20">';
|
|
13499
13500
|
html += '<div part="detail-head"><strong>' + statuteFields[i] + '</strong></div>';
|
|
13500
|
-
if ((event[statuteFields[i]] + "").indexOf("[") >= 0) {
|
|
13501
|
+
if ((event[statuteFields[i]] + "").indexOf("[") >= 0 && Util.isJSONParsable((event[statuteFields[i]] + ""))) {
|
|
13501
13502
|
html += this.getEventTexts(statuteFields[i], JSON.parse(event[statuteFields[i]]), event);
|
|
13502
13503
|
}
|
|
13503
13504
|
else {
|
|
@@ -22413,7 +22414,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22413
22414
|
else {
|
|
22414
22415
|
view = "entity";
|
|
22415
22416
|
}
|
|
22416
|
-
path = "
|
|
22417
|
+
path = "getallcountryevents2";
|
|
22417
22418
|
let sDate = "";
|
|
22418
22419
|
let eDate = "";
|
|
22419
22420
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -22517,17 +22518,17 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22517
22518
|
else {
|
|
22518
22519
|
view = "entity";
|
|
22519
22520
|
}
|
|
22520
|
-
path = "
|
|
22521
|
+
path = "getallcountryevents2";
|
|
22521
22522
|
let url = "https://" + this.apiId + "/" + path;
|
|
22522
22523
|
let temptagid = tagid;
|
|
22523
22524
|
if (temptagid == "" && locationid != "") {
|
|
22524
22525
|
temptagid = locationid;
|
|
22525
22526
|
}
|
|
22526
|
-
else if (temptagid == "" && userprofileid != this.userProfileId) {
|
|
22527
|
+
else if (temptagid == "" && (userprofileid != this.userProfileId || userrole != this.myRole)) {
|
|
22527
22528
|
temptagid = "allevents";
|
|
22528
22529
|
}
|
|
22529
22530
|
//console.log('fetch calendar url', url);
|
|
22530
|
-
let urlBody = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid": "", "tagid": temptagid, "adhoc": "false", "exclusivestartkey": 0, "sdate": startDate, "edate": endDate, "view": view, "year": year, "list": list, "month": month };
|
|
22531
|
+
let urlBody = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid": "", "tagid": temptagid, "adhoc": "false", "exclusivestartkey": 0, "sdate": startDate, "edate": endDate, "view": view, "year": year, "list": list, "month": month, "viewerrole": this.myRole };
|
|
22531
22532
|
if (searchString.length > 0) {
|
|
22532
22533
|
urlBody["searchstring"] = searchString;
|
|
22533
22534
|
}
|
|
@@ -23987,7 +23988,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
23987
23988
|
day = '0' + day;
|
|
23988
23989
|
let eDate = month + "/" + day + "/" + year;
|
|
23989
23990
|
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 };
|
|
23990
|
-
let url = "https://" + this.apiId + "/
|
|
23991
|
+
let url = "https://" + this.apiId + "/getallcountryevents2";
|
|
23991
23992
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
23992
23993
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
23993
23994
|
this._SfLoader.innerHTML = '';
|
|
@@ -24072,7 +24073,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
24072
24073
|
console.log('fetching compliances', sortid);
|
|
24073
24074
|
let complianceEntityId = sortid.split(';')[1];
|
|
24074
24075
|
let complianceLocationId = sortid.split(';')[2];
|
|
24075
|
-
let url = "https://" + this.apiId + "/
|
|
24076
|
+
let url = "https://" + this.apiId + "/getallcountryevents2";
|
|
24076
24077
|
let sDateObj = selectedDate;
|
|
24077
24078
|
sDateObj.setDate(selectedDate.getDate() - 60);
|
|
24078
24079
|
let day = '' + sDateObj.getDate();
|
package/src/sf-i-events.ts
CHANGED
|
@@ -6125,7 +6125,7 @@ export class SfIEvents extends LitElement {
|
|
|
6125
6125
|
}
|
|
6126
6126
|
let streamEventTitles = eventsContainer.querySelectorAll('.stream-event-title') as NodeListOf<SfIElasticText>
|
|
6127
6127
|
for (let streamEventTitle of streamEventTitles) {
|
|
6128
|
-
if (streamEventTitle.id == 'stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + ((event.module ?? false) ? event.module : 'compliance')) {
|
|
6128
|
+
if (streamEventTitle.id == 'stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + ((event.module ?? false) ? event.module : 'compliance') + '-') {
|
|
6129
6129
|
streamEventTitle.setAttribute('part', 'stream-event-title-selected')
|
|
6130
6130
|
} else {
|
|
6131
6131
|
streamEventTitle.removeAttribute('part')
|
|
@@ -7267,7 +7267,7 @@ export class SfIEvents extends LitElement {
|
|
|
7267
7267
|
listReportingContainer.innerHTML = '';
|
|
7268
7268
|
let buttonListReporting = eventsContainer.querySelector('#button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j + '-') as HTMLButtonElement
|
|
7269
7269
|
buttonListReporting.setAttribute('part', 'button-list-reporting')
|
|
7270
|
-
let streamEventTitle = eventsContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module) as SfIElasticText
|
|
7270
|
+
let streamEventTitle = eventsContainer.querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module + '-') as SfIElasticText
|
|
7271
7271
|
streamEventTitle.removeAttribute('part')
|
|
7272
7272
|
}
|
|
7273
7273
|
|
|
@@ -11790,7 +11790,7 @@ export class SfIEvents extends LitElement {
|
|
|
11790
11790
|
listReportingContainer.innerHTML = '';
|
|
11791
11791
|
let buttonListReporting = (this._SfThisContainer as HTMLDivElement).querySelector('#button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j + '-') as HTMLButtonElement
|
|
11792
11792
|
buttonListReporting.setAttribute('part', 'button-list-reporting')
|
|
11793
|
-
let streamEventTitle = (this._SfThisContainer as HTMLDivElement).querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module) as SfIElasticText
|
|
11793
|
+
let streamEventTitle = (this._SfThisContainer as HTMLDivElement).querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module + '-') as SfIElasticText
|
|
11794
11794
|
streamEventTitle.removeAttribute('part')
|
|
11795
11795
|
|
|
11796
11796
|
}
|
|
@@ -12415,7 +12415,7 @@ export class SfIEvents extends LitElement {
|
|
|
12415
12415
|
listReportingContainer.innerHTML = '';
|
|
12416
12416
|
let buttonListReporting = (this._SfStreamContainer as HTMLDivElement).querySelector('#button-list-reporting-' + mmdd.replace(/\//g, '-') + '-' + j + '-') as HTMLButtonElement
|
|
12417
12417
|
buttonListReporting.setAttribute('part', 'button-list-reporting')
|
|
12418
|
-
let streamEventTitle = (this._SfStreamContainer as HTMLDivElement).querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module) as SfIElasticText
|
|
12418
|
+
let streamEventTitle = (this._SfStreamContainer as HTMLDivElement).querySelector('#stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + j + '-' + module + '-') as SfIElasticText
|
|
12419
12419
|
streamEventTitle.removeAttribute('part')
|
|
12420
12420
|
}
|
|
12421
12421
|
|
|
@@ -13424,6 +13424,7 @@ export class SfIEvents extends LitElement {
|
|
|
13424
13424
|
let userid = this.userProfileId
|
|
13425
13425
|
// let username = this.userName;
|
|
13426
13426
|
let filterString = `countryid="${this.countryId}" locationid="${this.locationId}" entityid="${this.entityId}" tagid="${this.tagId}" selectedcriteria="${this.selectedCriteria}"`;
|
|
13427
|
+
console.log('FilterString', filterString)
|
|
13427
13428
|
let rolestr = "viewer"
|
|
13428
13429
|
;
|
|
13429
13430
|
if (filter == "reporter" || filter == "approver" || filter == "functionhead") {
|
|
@@ -17486,7 +17487,7 @@ export class SfIEvents extends LitElement {
|
|
|
17486
17487
|
|
|
17487
17488
|
html += '<div class="m-20">';
|
|
17488
17489
|
html += '<div part="detail-head"><strong>' + statuteFields[i] + '</strong></div>'
|
|
17489
|
-
if ((event[statuteFields[i]] + "").indexOf("[") >= 0) {
|
|
17490
|
+
if ((event[statuteFields[i]] + "").indexOf("[") >= 0 && Util.isJSONParsable((event[statuteFields[i]] + ""))) {
|
|
17490
17491
|
html += this.getEventTexts(statuteFields[i], JSON.parse(event[statuteFields[i]]), event);
|
|
17491
17492
|
} else {
|
|
17492
17493
|
html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (event[statuteFields[i]] + "").replace(/"/g, "") + '" minLength="80"></sf-i-elastic-text>';
|
|
@@ -28630,7 +28631,7 @@ export class SfIEvents extends LitElement {
|
|
|
28630
28631
|
view = "entity";
|
|
28631
28632
|
}
|
|
28632
28633
|
|
|
28633
|
-
path = "
|
|
28634
|
+
path = "getallcountryevents2";
|
|
28634
28635
|
|
|
28635
28636
|
let sDate = "";
|
|
28636
28637
|
let eDate = "";
|
|
@@ -28767,17 +28768,17 @@ export class SfIEvents extends LitElement {
|
|
|
28767
28768
|
view = "entity";
|
|
28768
28769
|
}
|
|
28769
28770
|
|
|
28770
|
-
path = "
|
|
28771
|
+
path = "getallcountryevents2";
|
|
28771
28772
|
|
|
28772
28773
|
let url = "https://" + this.apiId + "/" + path;
|
|
28773
28774
|
let temptagid = tagid;
|
|
28774
28775
|
if (temptagid == "" && locationid != "") {
|
|
28775
28776
|
temptagid = locationid
|
|
28776
|
-
} else if (temptagid == "" && userprofileid != this.userProfileId) {
|
|
28777
|
+
} else if (temptagid == "" && (userprofileid != this.userProfileId || userrole != this.myRole)) {
|
|
28777
28778
|
temptagid = "allevents"
|
|
28778
28779
|
}
|
|
28779
28780
|
//console.log('fetch calendar url', url);
|
|
28780
|
-
let urlBody: any = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid": "", "tagid": temptagid, "adhoc": "false", "exclusivestartkey": 0, "sdate": startDate, "edate": endDate, "view": view, "year": year, "list": list, "month": month };
|
|
28781
|
+
let urlBody: any = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid": "", "tagid": temptagid, "adhoc": "false", "exclusivestartkey": 0, "sdate": startDate, "edate": endDate, "view": view, "year": year, "list": list, "month": month, "viewerrole": this.myRole };
|
|
28781
28782
|
|
|
28782
28783
|
if (searchString.length > 0) {
|
|
28783
28784
|
urlBody["searchstring"] = searchString;
|
|
@@ -30488,7 +30489,7 @@ export class SfIEvents extends LitElement {
|
|
|
30488
30489
|
day = '0' + day;
|
|
30489
30490
|
let eDate = month + "/" + day + "/" + year
|
|
30490
30491
|
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 };
|
|
30491
|
-
let url = "https://" + this.apiId + "/
|
|
30492
|
+
let url = "https://" + this.apiId + "/getallcountryevents2";
|
|
30492
30493
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
30493
30494
|
const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
30494
30495
|
this._SfLoader.innerHTML = '';
|
|
@@ -30581,7 +30582,7 @@ export class SfIEvents extends LitElement {
|
|
|
30581
30582
|
console.log('fetching compliances', sortid)
|
|
30582
30583
|
let complianceEntityId = sortid.split(';')[1]
|
|
30583
30584
|
let complianceLocationId = sortid.split(';')[2]
|
|
30584
|
-
let url = "https://" + this.apiId + "/
|
|
30585
|
+
let url = "https://" + this.apiId + "/getallcountryevents2";
|
|
30585
30586
|
let sDateObj = selectedDate
|
|
30586
30587
|
sDateObj.setDate(selectedDate.getDate() - 60)
|
|
30587
30588
|
let day = '' + sDateObj.getDate();
|
package/src/util.ts
CHANGED
|
@@ -564,8 +564,18 @@ export const downloadExcelFromCSV = (csvString: string, fileName: string = 'repo
|
|
|
564
564
|
document.body.removeChild(link);
|
|
565
565
|
};
|
|
566
566
|
|
|
567
|
+
function isJSONParsable(str: unknown): boolean {
|
|
568
|
+
if (typeof str !== "string") return false;
|
|
569
|
+
try {
|
|
570
|
+
JSON.parse(str);
|
|
571
|
+
return true;
|
|
572
|
+
} catch {
|
|
573
|
+
return false;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
567
577
|
const exportFunctions = {
|
|
568
|
-
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings, getUsermap, setFeatures, getFeatures, getProjectUsermap, downloadExcelFromCSV
|
|
578
|
+
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings, getUsermap, setFeatures, getFeatures, getProjectUsermap, downloadExcelFromCSV, isJSONParsable
|
|
569
579
|
};
|
|
570
580
|
|
|
571
581
|
export default exportFunctions;
|
package/util.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare function getProjectUsermap(): any;
|
|
|
22
22
|
declare function setFeatures(features: any): void;
|
|
23
23
|
declare function getFeatures(): any;
|
|
24
24
|
export declare const downloadExcelFromCSV: (csvString: string, fileName: string | undefined, title: string, projectname: string) => void;
|
|
25
|
+
declare function isJSONParsable(str: unknown): boolean;
|
|
25
26
|
declare const exportFunctions: {
|
|
26
27
|
callApiPresignedDelete: typeof callApiPresignedDelete;
|
|
27
28
|
callApiPresignedGet: typeof callApiPresignedGet;
|
|
@@ -49,6 +50,7 @@ declare const exportFunctions: {
|
|
|
49
50
|
getFeatures: typeof getFeatures;
|
|
50
51
|
getProjectUsermap: typeof getProjectUsermap;
|
|
51
52
|
downloadExcelFromCSV: (csvString: string, fileName: string | undefined, title: string, projectname: string) => void;
|
|
53
|
+
isJSONParsable: typeof isJSONParsable;
|
|
52
54
|
};
|
|
53
55
|
export default exportFunctions;
|
|
54
56
|
//# sourceMappingURL=util.d.ts.map
|
package/util.js
CHANGED
|
@@ -475,8 +475,19 @@ export const downloadExcelFromCSV = (csvString, fileName = 'report.xlsx', title,
|
|
|
475
475
|
link.click();
|
|
476
476
|
document.body.removeChild(link);
|
|
477
477
|
};
|
|
478
|
+
function isJSONParsable(str) {
|
|
479
|
+
if (typeof str !== "string")
|
|
480
|
+
return false;
|
|
481
|
+
try {
|
|
482
|
+
JSON.parse(str);
|
|
483
|
+
return true;
|
|
484
|
+
}
|
|
485
|
+
catch {
|
|
486
|
+
return false;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
478
489
|
const exportFunctions = {
|
|
479
|
-
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings, getUsermap, setFeatures, getFeatures, getProjectUsermap, downloadExcelFromCSV
|
|
490
|
+
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings, getUsermap, setFeatures, getFeatures, getProjectUsermap, downloadExcelFromCSV, isJSONParsable
|
|
480
491
|
};
|
|
481
492
|
export default exportFunctions;
|
|
482
493
|
//# sourceMappingURL=util.js.map
|