sf-i-events 1.0.841 → 1.0.843
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 -5
- package/package.json +1 -1
- package/sf-i-events.js +37 -35
- package/src/sf-i-events.ts +32 -32
- package/src/util.ts +34 -1
- package/util.d.ts +2 -0
- package/util.js +28 -1
package/dev/index.html
CHANGED
|
@@ -759,7 +759,7 @@
|
|
|
759
759
|
</sf-i-events> -->
|
|
760
760
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" mode="next" fill="solid" username="Sachin Bhat" userprofileid="347e23a2-5ff8-4d3a-b1ab-639faf342f25" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" myroles="["reporter"]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" blocksize="10" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024"><div slot="uploader"><sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" maxsize="5242880" allowdownload="yes"></sf-i-uploader></div><div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div></sf-i-events> -->
|
|
761
761
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" mode="next" fill="solid" username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" myroles="["reporter"]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" blocksize="10" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024"><div slot="uploader"><sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader></div><div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div></sf-i-events> -->
|
|
762
|
-
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Ankur Singhal" userprofileid="010834e8-108e-4a87-b58d-f5b429f184be" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" countryid="4ab8901c-4407-4c4d-a2c7-df1a690aa0a3" myrole="viewer" showregisterexport="false" features="[]" eventfielddependencies="[{"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">
|
|
762
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Ankur Singhal" userprofileid="010834e8-108e-4a87-b58d-f5b429f184be" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" countryid="4ab8901c-4407-4c4d-a2c7-df1a690aa0a3" myrole="viewer" showregisterexport="false" features="[]" eventfielddependencies="[{"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">
|
|
763
763
|
|
|
764
764
|
<div slot="uploader">
|
|
765
765
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
@@ -768,7 +768,7 @@
|
|
|
768
768
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
769
769
|
</div>
|
|
770
770
|
|
|
771
|
-
</sf-i-events>
|
|
771
|
+
</sf-i-events> -->
|
|
772
772
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="pattern" username="Dipti" userprofileid="d888568d-0599-46f9-9d73-55ea76345db1" projectid="c7d18a84-c2df-4dc2-b75f-5820549f5e5c" projectname="Chitale" countryid="4252b692-e47c-4244-9500-0bea51150031" enabledeletelatestreport="true" features="[]" eventfielddependencies="[{"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">
|
|
773
773
|
|
|
774
774
|
<div slot="uploader">
|
|
@@ -779,7 +779,7 @@
|
|
|
779
779
|
</div>
|
|
780
780
|
|
|
781
781
|
</sf-i-events> -->
|
|
782
|
-
|
|
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>
|
|
@@ -788,12 +788,13 @@
|
|
|
788
788
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
789
789
|
</div>
|
|
790
790
|
|
|
791
|
-
</sf-i-events>
|
|
791
|
+
</sf-i-events>
|
|
792
792
|
<!-- <sf-i-events projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" projectname="Standard Radiators Private Limited" mode="onboarding" locations="{"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">
|
|
793
793
|
|
|
794
794
|
</sf-i-events> -->
|
|
795
|
+
<!-- <sf-i-events projectid="d7d4d17e-3e20-4eaa-a06a-fb1c87f26532" projectname="FlaggGRC Global" mode="onboarding" locations="{"India":{"Maharashtra":["Pune"]}}" contractstartdate="01/01/2025" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
|
|
795
796
|
|
|
796
|
-
</sf-i-events>
|
|
797
|
+
</sf-i-events> -->
|
|
797
798
|
<script>
|
|
798
799
|
|
|
799
800
|
function setCookie(name,value,days) {
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -2426,7 +2426,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2426
2426
|
let lastUpdated = '';
|
|
2427
2427
|
// console.log('lastUpdated', event.lastupdated);
|
|
2428
2428
|
if (event.lastupdated != null && event.lastupdated.length > 0) {
|
|
2429
|
-
lastUpdated = event.lastupdated;
|
|
2429
|
+
lastUpdated = Util.getDateTimeStrings(new Date(event.lastupdated).getTime());
|
|
2430
2430
|
}
|
|
2431
2431
|
html += '<div class="stream-events-container flex-grow" part="' + bgStatus + '">';
|
|
2432
2432
|
html += '<div class="hidden-tags hide">' + JSON.stringify(event['tags']) + '</div>';
|
|
@@ -9034,7 +9034,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9034
9034
|
try {
|
|
9035
9035
|
const jsonComments = JSON.parse(onlyCommentText);
|
|
9036
9036
|
if (Util.isInteger(jsonComments)) {
|
|
9037
|
-
html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
|
|
9037
|
+
html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
|
|
9038
9038
|
}
|
|
9039
9039
|
else {
|
|
9040
9040
|
//console.log('json comments', jsonComments);
|
|
@@ -9045,12 +9045,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9045
9045
|
htmlTable += ('<sf-i-elastic-text text="' + jsonComments[Object.keys(jsonComments)[j]] + '" minLength="20"></sf-i-elastic-text>');
|
|
9046
9046
|
htmlTable += '</div>';
|
|
9047
9047
|
}
|
|
9048
|
-
html += '<div class="">' + htmlTable + '<small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
|
|
9048
|
+
html += '<div class="">' + htmlTable + '<small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
|
|
9049
9049
|
}
|
|
9050
9050
|
}
|
|
9051
9051
|
catch (e) {
|
|
9052
9052
|
//console.log('json comments exception', comments[i]);
|
|
9053
|
-
html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
|
|
9053
|
+
html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
|
|
9054
9054
|
}
|
|
9055
9055
|
html += '</div>';
|
|
9056
9056
|
}
|
|
@@ -9689,7 +9689,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9689
9689
|
};
|
|
9690
9690
|
this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer, flagUploadGuidance = false, listEventContainer = null) => {
|
|
9691
9691
|
console.log('listEvent', listEvent, listEvent.id);
|
|
9692
|
-
let url = "https://" + this.apiId + "/
|
|
9692
|
+
let url = "https://" + this.apiId + "/getalleventdetails";
|
|
9693
9693
|
//console.log('fetch calendar url', url);
|
|
9694
9694
|
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "eventid": listEvent.id, "entityid": listEvent.entityid, "locationid": listEvent.locationid, "mmddyyyy": mmddyyyy, "year": this.calendarStartYYYY };
|
|
9695
9695
|
//console.log('urlbody', urlBody);
|
|
@@ -10011,7 +10011,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10011
10011
|
try {
|
|
10012
10012
|
const jsonComments = JSON.parse(onlyCommentText);
|
|
10013
10013
|
if (Util.isInteger(jsonComments)) {
|
|
10014
|
-
html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
|
|
10014
|
+
html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
|
|
10015
10015
|
}
|
|
10016
10016
|
else {
|
|
10017
10017
|
//console.log('json comments', jsonComments);
|
|
@@ -10022,12 +10022,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10022
10022
|
htmlTable += ('<sf-i-elastic-text text="' + jsonComments[Object.keys(jsonComments)[j]] + '" minLength="20"></sf-i-elastic-text>');
|
|
10023
10023
|
htmlTable += '</div>';
|
|
10024
10024
|
}
|
|
10025
|
-
html += '<div class="">' + htmlTable + '<small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
|
|
10025
|
+
html += '<div class="">' + htmlTable + '<small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
|
|
10026
10026
|
}
|
|
10027
10027
|
}
|
|
10028
10028
|
catch (e) {
|
|
10029
10029
|
//console.log('json comments exception', comments[i]);
|
|
10030
|
-
html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + comments[i].timestamp + '</span></small></div>';
|
|
10030
|
+
html += '<div class="">' + comments[i].comment + '<br /><small><span class="muted">' + Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime()) + '</span></small></div>';
|
|
10031
10031
|
}
|
|
10032
10032
|
html += '</div>';
|
|
10033
10033
|
}
|
|
@@ -11993,7 +11993,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11993
11993
|
this.changedOnboardingItemIds = [];
|
|
11994
11994
|
};
|
|
11995
11995
|
this.renderMappingTable = (divElement, jsonData, cursor, fetchFunction, searchString, mappedArray, found, uploadFunction, refreshFunction, extraFields, uploadBlock, extraFieldPosition, colName, subfilter, statuteColName, extraHintsArr) => {
|
|
11996
|
-
var _a, _b, _c, _f;
|
|
11996
|
+
var _a, _b, _c, _f, _g, _h, _j;
|
|
11997
11997
|
console.log('cols1', jsonData);
|
|
11998
11998
|
// console.log('cols', jsonData[0].data.cols);
|
|
11999
11999
|
//console.log('divelement', divElement);
|
|
@@ -12075,7 +12075,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12075
12075
|
// }
|
|
12076
12076
|
// }
|
|
12077
12077
|
for (var j = 0; j < jsonData[0].cols.length; j++) {
|
|
12078
|
-
|
|
12078
|
+
console.log('jsoncols', JSON.parse(jsonData[0].data.cols), jsonData[0].cols.length, j);
|
|
12079
|
+
html += '<th part="td-head" class="td-head ' + (statuteColName.toLowerCase() == ((_a = JSON.parse(jsonData[0].data.cols)[j]) !== null && _a !== void 0 ? _a : "").toLowerCase() ? 'left-sticky' : '') + '">';
|
|
12079
12080
|
// html += jsonData[0].cols[j]
|
|
12080
12081
|
html += '</th>';
|
|
12081
12082
|
}
|
|
@@ -12113,7 +12114,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12113
12114
|
var mappedCount = 0;
|
|
12114
12115
|
for (let level = 0; level < 2; level++) {
|
|
12115
12116
|
for (var i = 0; i < jsonData.length; i++) {
|
|
12116
|
-
//console.log('subfilter value before', subfiltered);
|
|
12117
|
+
// console.log('subfilter value before', subfiltered);
|
|
12118
|
+
console.log('rendering', i, jsonData[i]);
|
|
12117
12119
|
let tempColCountry = -1;
|
|
12118
12120
|
let tempColState = -1;
|
|
12119
12121
|
let tempColStatute = -1;
|
|
@@ -12146,7 +12148,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12146
12148
|
tempColSubcategory = colSubcategory;
|
|
12147
12149
|
}
|
|
12148
12150
|
}
|
|
12149
|
-
if (JSON.parse(jsonData[i].data.data)[tempColCountry].length === 0 && level === 1) {
|
|
12151
|
+
if (((_b = JSON.parse(jsonData[i].data.data)[tempColCountry]) !== null && _b !== void 0 ? _b : "").length === 0 && level === 1) {
|
|
12150
12152
|
html += '<tr id="tablerow-' + i + '" class="tablerow" style="display: none">';
|
|
12151
12153
|
html += '<td part="td-action">';
|
|
12152
12154
|
html += '<div id="select-' + i + '"><input class="checkbox checkbox-' + i + ' checkbox-row" part="input-checkbox" type="checkbox"/></div>';
|
|
@@ -12257,11 +12259,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12257
12259
|
html += '<td part="td-action" class="' + (jsonData[i].mapped ? 'chosen' : '') + '">';
|
|
12258
12260
|
html += '<div class="' + (!showSearch ? 'truncate' : '') + '"><button class="button-expand" part="button-icon" id="show-detail-' + i + '"><span class="material-symbols-outlined">open_in_new</span></button></div>';
|
|
12259
12261
|
let locationsForThisItem = [];
|
|
12260
|
-
if (JSON.parse(jsonData[i].data.data)[tempColState].length > 0) {
|
|
12262
|
+
if (((_c = JSON.parse(jsonData[i].data.data)[tempColState]) !== null && _c !== void 0 ? _c : "").length > 0) {
|
|
12261
12263
|
locationsForThisItem = this.getLocationsByState(JSON.parse(jsonData[i].data.data)[tempColCountry][0], JSON.parse(jsonData[i].data.data)[tempColState][0], JSON.parse(jsonData[i].data.data)[tempColStatute]);
|
|
12262
12264
|
}
|
|
12263
12265
|
else {
|
|
12264
|
-
|
|
12266
|
+
console.log(JSON.parse(jsonData[i].data.data)[colStatute], colStatute, statuteColName);
|
|
12265
12267
|
locationsForThisItem = this.getLocationsByCountry(JSON.parse(jsonData[i].data.data)[tempColCountry][0], JSON.parse(jsonData[i].data.data)[tempColStatute]);
|
|
12266
12268
|
}
|
|
12267
12269
|
if (extraFieldPosition === 0) {
|
|
@@ -12606,7 +12608,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12606
12608
|
}
|
|
12607
12609
|
});
|
|
12608
12610
|
}
|
|
12609
|
-
(
|
|
12611
|
+
(_f = divElement.querySelector('.checkbox-all')) === null || _f === void 0 ? void 0 : _f.addEventListener('change', (e) => {
|
|
12610
12612
|
//console.log('cb-length', arrCheckBoxes.length);
|
|
12611
12613
|
for (var i = 0; i < arrCheckBoxes.length; i++) {
|
|
12612
12614
|
const tableRow = divElement.querySelector('#tablerow-' + (i));
|
|
@@ -12621,7 +12623,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12621
12623
|
divElement.querySelector('.button-save').disabled = false;
|
|
12622
12624
|
});
|
|
12623
12625
|
// Next, previous, save handlers
|
|
12624
|
-
(
|
|
12626
|
+
(_g = this._SfButtonNext) === null || _g === void 0 ? void 0 : _g.addEventListener('click', async () => {
|
|
12625
12627
|
const resultFunction = await fetchFunction(searchString, cursor[cursor.length - 1].next);
|
|
12626
12628
|
//console.log(resultFunction);
|
|
12627
12629
|
if (resultFunction != null) {
|
|
@@ -12648,7 +12650,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12648
12650
|
this.renderMappingTable(divElement, jsonData1, cursor, fetchFunction, searchString, mappedArray, found, uploadFunction, refreshFunction, extraFields, uploadBlock, extraFieldPosition, colName, subfilter, statuteColName, extraHintsArr);
|
|
12649
12651
|
}
|
|
12650
12652
|
});
|
|
12651
|
-
(
|
|
12653
|
+
(_h = this._SfButtonPrev) === null || _h === void 0 ? void 0 : _h.addEventListener('click', async () => {
|
|
12652
12654
|
cursor.pop();
|
|
12653
12655
|
const resultFunction = await fetchFunction(searchString, cursor[cursor.length - 1].prev);
|
|
12654
12656
|
//console.log(resultFunction);
|
|
@@ -12669,7 +12671,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12669
12671
|
this.renderMappingTable(divElement, jsonData1, cursor, fetchFunction, searchString, mappedArray, found, uploadFunction, refreshFunction, extraFields, uploadBlock, extraFieldPosition, colName, subfilter, statuteColName, extraHintsArr);
|
|
12670
12672
|
}
|
|
12671
12673
|
});
|
|
12672
|
-
(
|
|
12674
|
+
(_j = this._SfButtonSave) === null || _j === void 0 ? void 0 : _j.addEventListener('click', async () => {
|
|
12673
12675
|
await this.saveMapping(divElement, uploadBlock, jsonData, extraFields, searchString, uploadFunction, refreshFunction, false);
|
|
12674
12676
|
});
|
|
12675
12677
|
// const arrExtraFields = (divElement as HTMLDivElement).querySelectorAll('.extra-field') as NodeListOf<SfIMultitextarea>;
|
|
@@ -17044,7 +17046,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17044
17046
|
}
|
|
17045
17047
|
};
|
|
17046
17048
|
this.uploadAudit = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "events") => {
|
|
17047
|
-
let url = "https://" + this.apiId + "/
|
|
17049
|
+
let url = "https://" + this.apiId + "/uploadaudit";
|
|
17048
17050
|
const body = {
|
|
17049
17051
|
"mmddyyyy": mmddyyyy,
|
|
17050
17052
|
"projectid": this.projectId,
|
|
@@ -17089,7 +17091,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17089
17091
|
return retValue;
|
|
17090
17092
|
};
|
|
17091
17093
|
this.uploadAuditsBulk = async (bulkBody) => {
|
|
17092
|
-
let url = "https://" + this.apiId + "/
|
|
17094
|
+
let url = "https://" + this.apiId + "/uploadauditsbulk";
|
|
17093
17095
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17094
17096
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17095
17097
|
this._SfLoader.innerHTML = '';
|
|
@@ -17109,7 +17111,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17109
17111
|
}
|
|
17110
17112
|
};
|
|
17111
17113
|
this.uploadReview = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "events") => {
|
|
17112
|
-
let url = "https://" + this.apiId + "/
|
|
17114
|
+
let url = "https://" + this.apiId + "/uploadreview";
|
|
17113
17115
|
const body = {
|
|
17114
17116
|
"mmddyyyy": mmddyyyy,
|
|
17115
17117
|
"projectid": this.projectId,
|
|
@@ -17181,7 +17183,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17181
17183
|
}
|
|
17182
17184
|
};
|
|
17183
17185
|
this.uploadReviewsBulk = async (bulkBody) => {
|
|
17184
|
-
let url = "https://" + this.apiId + "/
|
|
17186
|
+
let url = "https://" + this.apiId + "/uploadreviewsbulk";
|
|
17185
17187
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17186
17188
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17187
17189
|
this._SfLoader.innerHTML = '';
|
|
@@ -17204,7 +17206,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17204
17206
|
}
|
|
17205
17207
|
};
|
|
17206
17208
|
this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "events", percentage = "100", makercheckers) => {
|
|
17207
|
-
let url = "https://" + this.apiId + "/
|
|
17209
|
+
let url = "https://" + this.apiId + "/uploadreport";
|
|
17208
17210
|
let body = {
|
|
17209
17211
|
"mmddyyyy": mmddyyyy,
|
|
17210
17212
|
"projectid": this.projectId,
|
|
@@ -17262,7 +17264,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17262
17264
|
return retValue;
|
|
17263
17265
|
};
|
|
17264
17266
|
this.uploadReportsBulk = async (bulkBody, showSuccess = true) => {
|
|
17265
|
-
let url = "https://" + this.apiId + "/
|
|
17267
|
+
let url = "https://" + this.apiId + "/uploadreportsbulk";
|
|
17266
17268
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17267
17269
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
17268
17270
|
if (showSuccess) {
|
|
@@ -17564,7 +17566,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17564
17566
|
}
|
|
17565
17567
|
};
|
|
17566
17568
|
this.fetchDeleteReview = async (eventId, mmddyyyy, entityId, locationId) => {
|
|
17567
|
-
let url = "https://" + this.apiId + "/
|
|
17569
|
+
let url = "https://" + this.apiId + "/deletereview";
|
|
17568
17570
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
17569
17571
|
const xhr = (await this.prepareXhr({ "projectid": this.projectId, "entityid": entityId, "locationid": locationId, "mmddyyyy": mmddyyyy, "eventid": eventId, }, url, this._SfLoader, authorization));
|
|
17570
17572
|
this._SfLoader.innerHTML = '';
|
|
@@ -18425,7 +18427,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18425
18427
|
else {
|
|
18426
18428
|
view = "entity";
|
|
18427
18429
|
}
|
|
18428
|
-
path = "
|
|
18430
|
+
path = "getallcountryevents";
|
|
18429
18431
|
let sDate = "";
|
|
18430
18432
|
let eDate = "";
|
|
18431
18433
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -18456,7 +18458,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18456
18458
|
}
|
|
18457
18459
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
|
|
18458
18460
|
if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
|
|
18459
|
-
this.lastupdated =
|
|
18461
|
+
this.lastupdated = Util.getDateTimeStrings(new Date().getTime());
|
|
18460
18462
|
console.log('rendering appropriate string', list);
|
|
18461
18463
|
this.renderAppropriateStream(startDate, endDate, true);
|
|
18462
18464
|
this.fetchBulkReportingData();
|
|
@@ -18559,7 +18561,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18559
18561
|
console.log('jsonRespose', jsonRespose);
|
|
18560
18562
|
let notices = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
18561
18563
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
|
|
18562
|
-
this.lastupdated =
|
|
18564
|
+
this.lastupdated = Util.getDateTimeStrings(new Date().getTime());
|
|
18563
18565
|
let tempEvents = this.events;
|
|
18564
18566
|
for (let mmddyyyy of Object.keys(notices)) {
|
|
18565
18567
|
tempEvents[mmddyyyy] = [...((_a = tempEvents[mmddyyyy]) !== null && _a !== void 0 ? _a : []), ...notices[mmddyyyy]];
|
|
@@ -18589,7 +18591,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18589
18591
|
let path = "";
|
|
18590
18592
|
this.sdate = startDate;
|
|
18591
18593
|
this.edate = endDate;
|
|
18592
|
-
path = "
|
|
18594
|
+
path = "getstatistics";
|
|
18593
18595
|
let sDate = "";
|
|
18594
18596
|
let eDate = "";
|
|
18595
18597
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -18637,7 +18639,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18637
18639
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18638
18640
|
console.log('jsonRespose Statistics', jsonRespose);
|
|
18639
18641
|
this.statistics = jsonRespose.data;
|
|
18640
|
-
this.lastupdated =
|
|
18642
|
+
this.lastupdated = Util.getDateTimeStrings(new Date(jsonRespose.lastupdated).getTime());
|
|
18641
18643
|
console.log('statistics date', this.lastupdated);
|
|
18642
18644
|
this.statisticsFiltersData = (_a = jsonRespose.filtersdata) !== null && _a !== void 0 ? _a : {};
|
|
18643
18645
|
if (jsonRespose.meta != null)
|
|
@@ -18801,7 +18803,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18801
18803
|
}
|
|
18802
18804
|
};
|
|
18803
18805
|
this.fetchAdhoc = async () => {
|
|
18804
|
-
let path = "
|
|
18806
|
+
let path = "getallmyevents", view = "";
|
|
18805
18807
|
if (this.tagId != null && this.tagId != "") {
|
|
18806
18808
|
view = "tag";
|
|
18807
18809
|
}
|
|
@@ -19135,7 +19137,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19135
19137
|
this.fetchNext = async (page, role, status) => {
|
|
19136
19138
|
//this.apiBodyList = '{"id": "' +(this._SfProject[0].querySelector('#sf-i-project') as SfIForm).selectedValues()[0]+ '"}'
|
|
19137
19139
|
this.nextPage = page;
|
|
19138
|
-
let url = "https://" + this.apiId + "/
|
|
19140
|
+
let url = "https://" + this.apiId + "/getnextuserevents";
|
|
19139
19141
|
let statusArr = [];
|
|
19140
19142
|
if (status == this.TAB_ALL) {
|
|
19141
19143
|
statusArr = [this.STATUS_NOT_STARTED, this.STATUS_PENDING_APPROVAL, this.STATUS_REJECTED, this.STATUS_APPROVED];
|
|
@@ -19630,7 +19632,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19630
19632
|
html += `<td part="td-body">${reportKey.split(';')[0]}</td>`;
|
|
19631
19633
|
html += `<td part="td-body">${JSON.parse(report['docs']).length}</td>`;
|
|
19632
19634
|
html += `<td part="td-body">${report['comments'].length}</td>`;
|
|
19633
|
-
html += `<td part="td-body">${
|
|
19635
|
+
html += `<td part="td-body">${Util.getDateTimeStrings(new Date(report['lastupdated']).getTime())}</td>`;
|
|
19634
19636
|
html += `<td part="td-body">${new Date(parseInt(report['dateofcompletion'])).toLocaleDateString('en-US', { timeZone: 'Asia/Kolkata' })}</td>`;
|
|
19635
19637
|
html += '<th part="td-head">';
|
|
19636
19638
|
// const jsonReportEvent = JSON.parse(report['comments'].reportevent);
|
|
@@ -19707,7 +19709,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19707
19709
|
day = '0' + day;
|
|
19708
19710
|
let eDate = month + "/" + day + "/" + year;
|
|
19709
19711
|
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 };
|
|
19710
|
-
let url = "https://" + this.apiId + "/
|
|
19712
|
+
let url = "https://" + this.apiId + "/getallcountryevents";
|
|
19711
19713
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
19712
19714
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
19713
19715
|
this._SfLoader.innerHTML = '';
|
|
@@ -19792,7 +19794,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19792
19794
|
console.log('fetching compliances', sortid);
|
|
19793
19795
|
let complianceEntityId = sortid.split(';')[1];
|
|
19794
19796
|
let complianceLocationId = sortid.split(';')[2];
|
|
19795
|
-
let url = "https://" + this.apiId + "/
|
|
19797
|
+
let url = "https://" + this.apiId + "/getallcountryevents";
|
|
19796
19798
|
let sDateObj = selectedDate;
|
|
19797
19799
|
sDateObj.setDate(selectedDate.getDate() - 60);
|
|
19798
19800
|
let day = '' + sDateObj.getDate();
|
package/src/sf-i-events.ts
CHANGED
|
@@ -4610,7 +4610,7 @@ export class SfIEvents extends LitElement {
|
|
|
4610
4610
|
|
|
4611
4611
|
// console.log('lastUpdated', event.lastupdated);
|
|
4612
4612
|
if(event.lastupdated != null && event.lastupdated.length > 0) {
|
|
4613
|
-
lastUpdated = event.lastupdated;
|
|
4613
|
+
lastUpdated = Util.getDateTimeStrings(new Date(event.lastupdated).getTime());
|
|
4614
4614
|
|
|
4615
4615
|
}
|
|
4616
4616
|
|
|
@@ -12552,7 +12552,7 @@ export class SfIEvents extends LitElement {
|
|
|
12552
12552
|
const jsonComments = JSON.parse(onlyCommentText);
|
|
12553
12553
|
|
|
12554
12554
|
if(Util.isInteger(jsonComments)) {
|
|
12555
|
-
html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
|
|
12555
|
+
html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
|
|
12556
12556
|
} else {
|
|
12557
12557
|
//console.log('json comments', jsonComments);
|
|
12558
12558
|
var htmlTable = '';
|
|
@@ -12562,12 +12562,12 @@ export class SfIEvents extends LitElement {
|
|
|
12562
12562
|
htmlTable += ('<sf-i-elastic-text text="'+jsonComments[Object.keys(jsonComments)[j]]+'" minLength="20"></sf-i-elastic-text>');
|
|
12563
12563
|
htmlTable += '</div>';
|
|
12564
12564
|
}
|
|
12565
|
-
html += '<div class="">'+htmlTable+'<small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
|
|
12565
|
+
html += '<div class="">'+htmlTable+'<small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
|
|
12566
12566
|
}
|
|
12567
12567
|
|
|
12568
12568
|
} catch (e: any) {
|
|
12569
12569
|
//console.log('json comments exception', comments[i]);
|
|
12570
|
-
html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
|
|
12570
|
+
html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
|
|
12571
12571
|
}
|
|
12572
12572
|
|
|
12573
12573
|
html += '</div>';
|
|
@@ -13300,7 +13300,7 @@ export class SfIEvents extends LitElement {
|
|
|
13300
13300
|
|
|
13301
13301
|
fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null) => {
|
|
13302
13302
|
console.log('listEvent', listEvent, listEvent.id)
|
|
13303
|
-
let url = "https://"+this.apiId+"/
|
|
13303
|
+
let url = "https://"+this.apiId+"/getalleventdetails";
|
|
13304
13304
|
|
|
13305
13305
|
//console.log('fetch calendar url', url);
|
|
13306
13306
|
let urlBody :any = {"projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "eventid": listEvent.id, "entityid": listEvent.entityid, "locationid": listEvent.locationid, "mmddyyyy": mmddyyyy, "year": this.calendarStartYYYY};
|
|
@@ -13687,7 +13687,7 @@ export class SfIEvents extends LitElement {
|
|
|
13687
13687
|
const jsonComments = JSON.parse(onlyCommentText);
|
|
13688
13688
|
|
|
13689
13689
|
if(Util.isInteger(jsonComments)) {
|
|
13690
|
-
html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
|
|
13690
|
+
html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
|
|
13691
13691
|
} else {
|
|
13692
13692
|
//console.log('json comments', jsonComments);
|
|
13693
13693
|
var htmlTable = '';
|
|
@@ -13697,12 +13697,12 @@ export class SfIEvents extends LitElement {
|
|
|
13697
13697
|
htmlTable += ('<sf-i-elastic-text text="'+jsonComments[Object.keys(jsonComments)[j]]+'" minLength="20"></sf-i-elastic-text>');
|
|
13698
13698
|
htmlTable += '</div>';
|
|
13699
13699
|
}
|
|
13700
|
-
html += '<div class="">'+htmlTable+'<small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
|
|
13700
|
+
html += '<div class="">'+htmlTable+'<small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
|
|
13701
13701
|
}
|
|
13702
13702
|
|
|
13703
13703
|
} catch (e: any) {
|
|
13704
13704
|
//console.log('json comments exception', comments[i]);
|
|
13705
|
-
html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+comments[i].timestamp+'</span></small></div>';
|
|
13705
|
+
html += '<div class="">'+comments[i].comment+'<br /><small><span class="muted">'+Util.getDateTimeStrings(new Date(comments[i].timestamp).getTime())+'</span></small></div>';
|
|
13706
13706
|
}
|
|
13707
13707
|
|
|
13708
13708
|
html += '</div>';
|
|
@@ -16305,8 +16305,8 @@ export class SfIEvents extends LitElement {
|
|
|
16305
16305
|
// }
|
|
16306
16306
|
|
|
16307
16307
|
for(var j = 0; j < jsonData[0].cols.length; j++) {
|
|
16308
|
-
|
|
16309
|
-
html += '<th part="td-head" class="td-head ' + (statuteColName.toLowerCase() == JSON.parse(jsonData[0].data.cols)[j].toLowerCase() ? 'left-sticky' : '') + '">'
|
|
16308
|
+
console.log('jsoncols', JSON.parse(jsonData[0].data.cols), jsonData[0].cols.length, j)
|
|
16309
|
+
html += '<th part="td-head" class="td-head ' + (statuteColName.toLowerCase() == (JSON.parse(jsonData[0].data.cols)[j] ?? "").toLowerCase() ? 'left-sticky' : '') + '">'
|
|
16310
16310
|
// html += jsonData[0].cols[j]
|
|
16311
16311
|
html += '</th>'
|
|
16312
16312
|
|
|
@@ -16355,8 +16355,8 @@ export class SfIEvents extends LitElement {
|
|
|
16355
16355
|
|
|
16356
16356
|
for(var i = 0; i < jsonData.length; i++) {
|
|
16357
16357
|
|
|
16358
|
-
//console.log('subfilter value before', subfiltered);
|
|
16359
|
-
|
|
16358
|
+
// console.log('subfilter value before', subfiltered);
|
|
16359
|
+
console.log('rendering', i, jsonData[i])
|
|
16360
16360
|
let tempColCountry = -1;
|
|
16361
16361
|
let tempColState = -1;
|
|
16362
16362
|
let tempColStatute = -1;
|
|
@@ -16388,7 +16388,7 @@ export class SfIEvents extends LitElement {
|
|
|
16388
16388
|
}
|
|
16389
16389
|
}
|
|
16390
16390
|
|
|
16391
|
-
if(JSON.parse(jsonData[i].data.data)[tempColCountry].length === 0 && level === 1) {
|
|
16391
|
+
if((JSON.parse(jsonData[i].data.data)[tempColCountry] ?? "").length === 0 && level === 1) {
|
|
16392
16392
|
|
|
16393
16393
|
html += '<tr id="tablerow-'+i+'" class="tablerow" style="display: none">';
|
|
16394
16394
|
|
|
@@ -16539,10 +16539,10 @@ export class SfIEvents extends LitElement {
|
|
|
16539
16539
|
|
|
16540
16540
|
let locationsForThisItem: any = [];
|
|
16541
16541
|
|
|
16542
|
-
if(JSON.parse(jsonData[i].data.data)[tempColState].length > 0) {
|
|
16542
|
+
if((JSON.parse(jsonData[i].data.data)[tempColState] ?? "").length > 0) {
|
|
16543
16543
|
locationsForThisItem = this.getLocationsByState(JSON.parse(jsonData[i].data.data)[tempColCountry][0], JSON.parse(jsonData[i].data.data)[tempColState][0], JSON.parse(jsonData[i].data.data)[tempColStatute]);
|
|
16544
16544
|
} else {
|
|
16545
|
-
|
|
16545
|
+
console.log(JSON.parse(jsonData[i].data.data)[colStatute], colStatute, statuteColName);
|
|
16546
16546
|
locationsForThisItem = this.getLocationsByCountry(JSON.parse(jsonData[i].data.data)[tempColCountry][0], JSON.parse(jsonData[i].data.data)[tempColStatute]);
|
|
16547
16547
|
}
|
|
16548
16548
|
|
|
@@ -22545,7 +22545,7 @@ export class SfIEvents extends LitElement {
|
|
|
22545
22545
|
}
|
|
22546
22546
|
|
|
22547
22547
|
uploadAudit = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "events") => {
|
|
22548
|
-
let url = "https://"+this.apiId+"/
|
|
22548
|
+
let url = "https://"+this.apiId+"/uploadaudit";
|
|
22549
22549
|
|
|
22550
22550
|
const body = {
|
|
22551
22551
|
"mmddyyyy": mmddyyyy,
|
|
@@ -22592,7 +22592,7 @@ export class SfIEvents extends LitElement {
|
|
|
22592
22592
|
return retValue;
|
|
22593
22593
|
}
|
|
22594
22594
|
uploadAuditsBulk = async (bulkBody: any) => {
|
|
22595
|
-
let url = "https://"+this.apiId+"/
|
|
22595
|
+
let url = "https://"+this.apiId+"/uploadauditsbulk";
|
|
22596
22596
|
|
|
22597
22597
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22598
22598
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|
|
@@ -22615,7 +22615,7 @@ export class SfIEvents extends LitElement {
|
|
|
22615
22615
|
}
|
|
22616
22616
|
|
|
22617
22617
|
uploadReview = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "events") => {
|
|
22618
|
-
let url = "https://"+this.apiId+"/
|
|
22618
|
+
let url = "https://"+this.apiId+"/uploadreview";
|
|
22619
22619
|
|
|
22620
22620
|
const body = {
|
|
22621
22621
|
"mmddyyyy": mmddyyyy,
|
|
@@ -22690,7 +22690,7 @@ export class SfIEvents extends LitElement {
|
|
|
22690
22690
|
}
|
|
22691
22691
|
}
|
|
22692
22692
|
uploadReviewsBulk = async (bulkBody: any) => {
|
|
22693
|
-
let url = "https://"+this.apiId+"/
|
|
22693
|
+
let url = "https://"+this.apiId+"/uploadreviewsbulk";
|
|
22694
22694
|
|
|
22695
22695
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22696
22696
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|
|
@@ -22715,7 +22715,7 @@ export class SfIEvents extends LitElement {
|
|
|
22715
22715
|
}
|
|
22716
22716
|
|
|
22717
22717
|
uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "events", percentage: string = "100", makercheckers: any) => {
|
|
22718
|
-
let url = "https://"+this.apiId+"/
|
|
22718
|
+
let url = "https://"+this.apiId+"/uploadreport";
|
|
22719
22719
|
|
|
22720
22720
|
let body = {
|
|
22721
22721
|
"mmddyyyy": mmddyyyy,
|
|
@@ -22777,7 +22777,7 @@ export class SfIEvents extends LitElement {
|
|
|
22777
22777
|
}
|
|
22778
22778
|
|
|
22779
22779
|
uploadReportsBulk = async (bulkBody: any, showSuccess: boolean = true) => {
|
|
22780
|
-
let url = "https://"+this.apiId+"/
|
|
22780
|
+
let url = "https://"+this.apiId+"/uploadreportsbulk"
|
|
22781
22781
|
|
|
22782
22782
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22783
22783
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|
|
@@ -23173,7 +23173,7 @@ export class SfIEvents extends LitElement {
|
|
|
23173
23173
|
|
|
23174
23174
|
fetchDeleteReview = async (eventId: string, mmddyyyy: string, entityId: string, locationId: string) => {
|
|
23175
23175
|
|
|
23176
|
-
let url = "https://"+this.apiId+"/
|
|
23176
|
+
let url = "https://"+this.apiId+"/deletereview";
|
|
23177
23177
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
23178
23178
|
const xhr : any = (await this.prepareXhr({"projectid": this.projectId, "entityid": entityId, "locationid": locationId, "mmddyyyy": mmddyyyy, "eventid": eventId, }, url, this._SfLoader, authorization)) as any;
|
|
23179
23179
|
this._SfLoader.innerHTML = '';
|
|
@@ -24316,7 +24316,7 @@ export class SfIEvents extends LitElement {
|
|
|
24316
24316
|
view = "entity";
|
|
24317
24317
|
}
|
|
24318
24318
|
|
|
24319
|
-
path = "
|
|
24319
|
+
path = "getallcountryevents";
|
|
24320
24320
|
|
|
24321
24321
|
let sDate = "";
|
|
24322
24322
|
let eDate = "";
|
|
@@ -24355,7 +24355,7 @@ export class SfIEvents extends LitElement {
|
|
|
24355
24355
|
}
|
|
24356
24356
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
|
|
24357
24357
|
if(JSON.stringify(urlBody) == this.getallcountryevetsParams){
|
|
24358
|
-
this.lastupdated =
|
|
24358
|
+
this.lastupdated = Util.getDateTimeStrings(new Date().getTime())
|
|
24359
24359
|
console.log('rendering appropriate string', list);
|
|
24360
24360
|
this.renderAppropriateStream(startDate, endDate, true);
|
|
24361
24361
|
this.fetchBulkReportingData();
|
|
@@ -24492,7 +24492,7 @@ export class SfIEvents extends LitElement {
|
|
|
24492
24492
|
console.log('jsonRespose', jsonRespose);
|
|
24493
24493
|
let notices = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
24494
24494
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
|
|
24495
|
-
this.lastupdated =
|
|
24495
|
+
this.lastupdated = Util.getDateTimeStrings(new Date().getTime())
|
|
24496
24496
|
let tempEvents = this.events
|
|
24497
24497
|
for(let mmddyyyy of Object.keys(notices)){
|
|
24498
24498
|
tempEvents[mmddyyyy] = [...(tempEvents[mmddyyyy] ?? []),...notices[mmddyyyy]]
|
|
@@ -24527,7 +24527,7 @@ export class SfIEvents extends LitElement {
|
|
|
24527
24527
|
this.edate = endDate;
|
|
24528
24528
|
|
|
24529
24529
|
|
|
24530
|
-
path = "
|
|
24530
|
+
path = "getstatistics";
|
|
24531
24531
|
|
|
24532
24532
|
let sDate = "";
|
|
24533
24533
|
let eDate = "";
|
|
@@ -24579,7 +24579,7 @@ export class SfIEvents extends LitElement {
|
|
|
24579
24579
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
24580
24580
|
console.log('jsonRespose Statistics', jsonRespose);
|
|
24581
24581
|
this.statistics = jsonRespose.data
|
|
24582
|
-
this.lastupdated =
|
|
24582
|
+
this.lastupdated = Util.getDateTimeStrings(new Date(jsonRespose.lastupdated).getTime())
|
|
24583
24583
|
console.log('statistics date', this.lastupdated);
|
|
24584
24584
|
this.statisticsFiltersData = jsonRespose.filtersdata ?? {}
|
|
24585
24585
|
if(jsonRespose.meta != null)
|
|
@@ -24766,7 +24766,7 @@ export class SfIEvents extends LitElement {
|
|
|
24766
24766
|
|
|
24767
24767
|
fetchAdhoc = async () => {
|
|
24768
24768
|
|
|
24769
|
-
let path = "
|
|
24769
|
+
let path = "getallmyevents", view = "";
|
|
24770
24770
|
|
|
24771
24771
|
if(this.tagId != null && this.tagId != "") {
|
|
24772
24772
|
view = "tag";
|
|
@@ -25175,7 +25175,7 @@ export class SfIEvents extends LitElement {
|
|
|
25175
25175
|
|
|
25176
25176
|
//this.apiBodyList = '{"id": "' +(this._SfProject[0].querySelector('#sf-i-project') as SfIForm).selectedValues()[0]+ '"}'
|
|
25177
25177
|
this.nextPage = page;
|
|
25178
|
-
let url = "https://"+this.apiId+"/
|
|
25178
|
+
let url = "https://"+this.apiId+"/getnextuserevents";
|
|
25179
25179
|
let statusArr: string[] = []
|
|
25180
25180
|
if(status == this.TAB_ALL){
|
|
25181
25181
|
statusArr = [this.STATUS_NOT_STARTED, this.STATUS_PENDING_APPROVAL, this.STATUS_REJECTED, this.STATUS_APPROVED]
|
|
@@ -25756,7 +25756,7 @@ export class SfIEvents extends LitElement {
|
|
|
25756
25756
|
html += `<td part="td-body">${reportKey.split(';')[0]}</td>`;
|
|
25757
25757
|
html += `<td part="td-body">${JSON.parse(report['docs']).length}</td>`;
|
|
25758
25758
|
html += `<td part="td-body">${report['comments'].length}</td>`;
|
|
25759
|
-
html += `<td part="td-body">${
|
|
25759
|
+
html += `<td part="td-body">${Util.getDateTimeStrings(new Date(report['lastupdated']).getTime())}</td>`;
|
|
25760
25760
|
html += `<td part="td-body">${new Date(parseInt(report['dateofcompletion'])).toLocaleDateString('en-US', { timeZone: 'Asia/Kolkata'})}</td>`;
|
|
25761
25761
|
html += '<th part="td-head">';
|
|
25762
25762
|
|
|
@@ -25848,7 +25848,7 @@ export class SfIEvents extends LitElement {
|
|
|
25848
25848
|
day = '0' + day;
|
|
25849
25849
|
let eDate = month + "/" + day + "/" + year
|
|
25850
25850
|
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};
|
|
25851
|
-
let url = "https://"+this.apiId+"/
|
|
25851
|
+
let url = "https://"+this.apiId+"/getallcountryevents";
|
|
25852
25852
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
25853
25853
|
const xhr : any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
25854
25854
|
this._SfLoader.innerHTML = '';
|
|
@@ -25941,7 +25941,7 @@ export class SfIEvents extends LitElement {
|
|
|
25941
25941
|
console.log('fetching compliances', sortid)
|
|
25942
25942
|
let complianceEntityId = sortid.split(';')[1]
|
|
25943
25943
|
let complianceLocationId = sortid.split(';')[2]
|
|
25944
|
-
let url = "https://"+this.apiId+"/
|
|
25944
|
+
let url = "https://"+this.apiId+"/getallcountryevents";
|
|
25945
25945
|
let sDateObj = selectedDate
|
|
25946
25946
|
sDateObj.setDate(selectedDate.getDate() - 60)
|
|
25947
25947
|
let day = '' + sDateObj.getDate();
|
package/src/util.ts
CHANGED
|
@@ -466,8 +466,41 @@ function getCurrentFiscal(){
|
|
|
466
466
|
return date.getFullYear();
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
+
function getDateTimeStrings(unixTimestamp: number): string {
|
|
470
|
+
// Convert to milliseconds if the timestamp is in seconds
|
|
471
|
+
if (unixTimestamp.toString().length === 10) {
|
|
472
|
+
unixTimestamp *= 1000;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
const date = new Date(unixTimestamp);
|
|
476
|
+
|
|
477
|
+
const options: Intl.DateTimeFormatOptions = {
|
|
478
|
+
year: 'numeric',
|
|
479
|
+
month: '2-digit',
|
|
480
|
+
day: '2-digit',
|
|
481
|
+
hour: '2-digit',
|
|
482
|
+
minute: '2-digit',
|
|
483
|
+
second: '2-digit',
|
|
484
|
+
hour12: false,
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
const estFormatter = new Intl.DateTimeFormat('en-US', {
|
|
488
|
+
...options,
|
|
489
|
+
timeZone: 'America/New_York',
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
const istFormatter = new Intl.DateTimeFormat('en-IN', {
|
|
493
|
+
...options,
|
|
494
|
+
timeZone: 'Asia/Kolkata',
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
const [estDate, estTime] = estFormatter.format(date).split(', ');
|
|
498
|
+
const [istDate, istTime] = istFormatter.format(date).split(', ');
|
|
499
|
+
return `${estDate} ${estTime} EST, ${istDate} ${istTime} IST`;
|
|
500
|
+
}
|
|
501
|
+
|
|
469
502
|
const exportFunctions = {
|
|
470
|
-
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal
|
|
503
|
+
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings
|
|
471
504
|
};
|
|
472
505
|
|
|
473
506
|
export default exportFunctions;
|
package/util.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare function titleCase(str: string): string;
|
|
|
16
16
|
declare function alphabeticalSort(arr: string[]): string[];
|
|
17
17
|
declare function percentageString(val: number, valTotal: number): string;
|
|
18
18
|
declare function getCurrentFiscal(): number;
|
|
19
|
+
declare function getDateTimeStrings(unixTimestamp: number): string;
|
|
19
20
|
declare const exportFunctions: {
|
|
20
21
|
callApiPresignedDelete: typeof callApiPresignedDelete;
|
|
21
22
|
callApiPresignedGet: typeof callApiPresignedGet;
|
|
@@ -37,6 +38,7 @@ declare const exportFunctions: {
|
|
|
37
38
|
alphabeticalSort: typeof alphabeticalSort;
|
|
38
39
|
percentageString: typeof percentageString;
|
|
39
40
|
getCurrentFiscal: typeof getCurrentFiscal;
|
|
41
|
+
getDateTimeStrings: typeof getDateTimeStrings;
|
|
40
42
|
};
|
|
41
43
|
export default exportFunctions;
|
|
42
44
|
//# sourceMappingURL=util.d.ts.map
|
package/util.js
CHANGED
|
@@ -391,8 +391,35 @@ function getCurrentFiscal() {
|
|
|
391
391
|
}
|
|
392
392
|
return date.getFullYear();
|
|
393
393
|
}
|
|
394
|
+
function getDateTimeStrings(unixTimestamp) {
|
|
395
|
+
// Convert to milliseconds if the timestamp is in seconds
|
|
396
|
+
if (unixTimestamp.toString().length === 10) {
|
|
397
|
+
unixTimestamp *= 1000;
|
|
398
|
+
}
|
|
399
|
+
const date = new Date(unixTimestamp);
|
|
400
|
+
const options = {
|
|
401
|
+
year: 'numeric',
|
|
402
|
+
month: '2-digit',
|
|
403
|
+
day: '2-digit',
|
|
404
|
+
hour: '2-digit',
|
|
405
|
+
minute: '2-digit',
|
|
406
|
+
second: '2-digit',
|
|
407
|
+
hour12: false,
|
|
408
|
+
};
|
|
409
|
+
const estFormatter = new Intl.DateTimeFormat('en-US', {
|
|
410
|
+
...options,
|
|
411
|
+
timeZone: 'America/New_York',
|
|
412
|
+
});
|
|
413
|
+
const istFormatter = new Intl.DateTimeFormat('en-IN', {
|
|
414
|
+
...options,
|
|
415
|
+
timeZone: 'Asia/Kolkata',
|
|
416
|
+
});
|
|
417
|
+
const [estDate, estTime] = estFormatter.format(date).split(', ');
|
|
418
|
+
const [istDate, istTime] = istFormatter.format(date).split(', ');
|
|
419
|
+
return `${estDate} ${estTime} EST, ${istDate} ${istTime} IST`;
|
|
420
|
+
}
|
|
394
421
|
const exportFunctions = {
|
|
395
|
-
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal
|
|
422
|
+
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings
|
|
396
423
|
};
|
|
397
424
|
export default exportFunctions;
|
|
398
425
|
//# sourceMappingURL=util.js.map
|