sf-i-events 1.0.925 → 1.0.927
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 +56 -12
- package/package.json +1 -1
- package/sf-i-events.d.ts +2 -1
- package/sf-i-events.js +62 -9
- package/src/sf-i-events.ts +63 -9
package/dev/index.html
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
import { SfISubSelect } from 'https://esm.run/sf-i-sub-select@1.0.83/sf-i-sub-select.js';
|
|
26
26
|
import { SfIForm } from 'https://esm.run/sf-i-form@1.0.185/sf-i-form.js';
|
|
27
27
|
import { SfIElasticText } from 'https://esm.run/sf-i-elastic-text@1.0.18/sf-i-elastic-text.js';
|
|
28
|
-
import { SfIUploader } from 'https://esm.run/sf-i-uploader@1.0.
|
|
28
|
+
import { SfIUploader } from 'https://esm.run/sf-i-uploader@1.0.125/sf-i-uploader.js';
|
|
29
29
|
import { SfIMultitextarea } from 'https://esm.run/sf-i-multitextarea@1.0.23/sf-i-multitextarea.js';
|
|
30
30
|
// import { SfIReporting } from 'https://esm.run/sf-i-reporting@1.0.89/sf-i-reporting.js';
|
|
31
31
|
import { SfIReporting } from '../../sf-i-reporting/sf-i-reporting.js';
|
|
@@ -732,6 +732,34 @@
|
|
|
732
732
|
<!-- <sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}" contractstartdate="01/01/2025" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
|
|
733
733
|
|
|
734
734
|
</sf-i-events> -->
|
|
735
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
736
|
+
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
737
|
+
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
738
|
+
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
739
|
+
apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
|
|
740
|
+
apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
|
|
741
|
+
apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
|
|
742
|
+
apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="solid"
|
|
743
|
+
username="Precisionmed Reporter" userprofileid="fe5070fe-9982-4dcf-8458-f8d4f97c7b01"
|
|
744
|
+
projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" projectname="PrecisionMed ABC"
|
|
745
|
+
tagid="5b3fb803-d5c1-408a-b826-b112b6421a30" selectedcriteria="Tag - 27001 Stage 1" myrole="reporter"
|
|
746
|
+
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
747
|
+
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"}]"
|
|
748
|
+
eventpreviewfields="["obligation"]"
|
|
749
|
+
eventhidefields="["comments","documents","lastupdated","approved","tags"]"
|
|
750
|
+
calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
|
|
751
|
+
|
|
752
|
+
<div slot="uploader">
|
|
753
|
+
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
|
|
754
|
+
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx","zip"]"
|
|
755
|
+
extract="yes" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" maxsize="31457280"
|
|
756
|
+
allowdownload="yes"></sf-i-uploader>
|
|
757
|
+
</div>
|
|
758
|
+
<div slot="reporting">
|
|
759
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
760
|
+
</div>
|
|
761
|
+
|
|
762
|
+
</sf-i-events> -->
|
|
735
763
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
736
764
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
737
765
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
@@ -780,16 +808,32 @@
|
|
|
780
808
|
</div>
|
|
781
809
|
|
|
782
810
|
</sf-i-events> -->
|
|
783
|
-
|
|
811
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
812
|
+
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
813
|
+
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
814
|
+
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
815
|
+
apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid"
|
|
816
|
+
username="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca"
|
|
817
|
+
projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global"
|
|
818
|
+
countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" showregisterexport="false"
|
|
819
|
+
features="["notices"]"
|
|
820
|
+
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
821
|
+
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"}]"
|
|
822
|
+
eventpreviewfields="["obligation"]"
|
|
823
|
+
eventhidefields="["comments","documents","lastupdated","approved","tags"]"
|
|
824
|
+
calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
|
|
784
825
|
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
826
|
+
<div slot="uploader">
|
|
827
|
+
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
|
|
828
|
+
allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]"
|
|
829
|
+
extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880"
|
|
830
|
+
allowdownload="yes"></sf-i-uploader>
|
|
831
|
+
</div>
|
|
832
|
+
<div slot="reporting">
|
|
833
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
834
|
+
</div>
|
|
835
|
+
|
|
836
|
+
</sf-i-events>
|
|
793
837
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
794
838
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
795
839
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
@@ -829,14 +873,14 @@
|
|
|
829
873
|
disablesignoff="yes" disableclientresponse="yes">
|
|
830
874
|
|
|
831
875
|
</sf-i-events> -->
|
|
832
|
-
<sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
|
|
876
|
+
<!-- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
|
|
833
877
|
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"]}}"
|
|
834
878
|
contractstartdate="1/4/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
|
|
835
879
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
836
880
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile"
|
|
837
881
|
disablesignoff="yes" disableclientresponse="yes">
|
|
838
882
|
|
|
839
|
-
</sf-i-events>
|
|
883
|
+
</sf-i-events> -->
|
|
840
884
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
|
|
841
885
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
842
886
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
package/package.json
CHANGED
package/sf-i-events.d.ts
CHANGED
|
@@ -270,6 +270,7 @@ export declare class SfIEvents extends LitElement {
|
|
|
270
270
|
locationPartStatusData: any;
|
|
271
271
|
locationLateStatusData: any;
|
|
272
272
|
locationComplianceStatusData: any;
|
|
273
|
+
suspenseCount: Number;
|
|
273
274
|
selectedItemIds: Array<string>;
|
|
274
275
|
selectedItems: Array<any>;
|
|
275
276
|
selectedStatus: string;
|
|
@@ -752,7 +753,7 @@ export declare class SfIEvents extends LitElement {
|
|
|
752
753
|
uploadCompliancesMapping: (data: any) => Promise<void>;
|
|
753
754
|
uploadStatutesMapping: (data: any) => Promise<void>;
|
|
754
755
|
uploadUnTriggerEvent: (untrigger: any) => Promise<void>;
|
|
755
|
-
uploadTriggerMyEvent: (complianceid: string, message: string, countryname: string, entityname: string, locationname: string, statute: string, subcategory: string) => Promise<void>;
|
|
756
|
+
uploadTriggerMyEvent: (complianceid: string, message: string, countryname: string, entityname: string, locationname: string, statute: string, subcategory: string, suspenseVal?: any) => Promise<void>;
|
|
756
757
|
uploadTriggerEvent: (triggeredCompliances: any) => Promise<void>;
|
|
757
758
|
uploadAudit: (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module?: string) => Promise<boolean>;
|
|
758
759
|
uploadAuditsBulk: (bulkBody: any) => Promise<void>;
|
package/sf-i-events.js
CHANGED
|
@@ -1226,6 +1226,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
1226
1226
|
this.locationPartStatusData = null;
|
|
1227
1227
|
this.locationLateStatusData = null;
|
|
1228
1228
|
this.locationComplianceStatusData = null;
|
|
1229
|
+
this.suspenseCount = 0;
|
|
1229
1230
|
this.selectedItemIds = [];
|
|
1230
1231
|
this.selectedItems = [];
|
|
1231
1232
|
this.selectedStatus = "";
|
|
@@ -2402,6 +2403,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2402
2403
|
html += '<div part="badge-dashboard" id="chip-completeness-1" class="chip stat-completeness d-flex justify-center align-center mr-10 mb-10 no-shrink"><span class="material-symbols-outlined color-pending">pending</span> <span>Pending Approval:</span> <span id="graph-pending-approval">DASHBOARD_PENDING_APPROVAL</span></div>';
|
|
2403
2404
|
html += '<div part="badge-dashboard" id="chip-completeness-2" class="chip stat-completeness d-flex justify-center align-center mr-10 mb-10 no-shrink"><span class="material-symbols-outlined color-rejected">block</span> <span>Rejected:</span> <span id="graph-rejected">DASHBOARD_REJECTED</span></div>';
|
|
2404
2405
|
html += '<div part="badge-dashboard" id="chip-completeness-3" class="chip stat-completeness d-flex justify-center align-center mr-10 mb-10 no-shrink"><span class="material-symbols-outlined color-done">check_circle</span> <span>Approved:</span> <span id="graph-approved">DASHBOARD_APPROVED</span></div>';
|
|
2406
|
+
html += '<div part="badge-dashboard" class="mr-10 mb-10 no-shrink"><span>Suspense:</span> <span id="graph-total">DASHBOARD_SUSPENSE</span></div>';
|
|
2405
2407
|
html += '<div part="badge-dashboard" id="chip-timeliness-0" class="chip stat-timeliness justify-center align-center mr-10 mb-10 no-shrink late-statuses"><span class="material-icons color-in-time">schedule</span> <span>In Time:</span> <span id="graph-in-time">DASHBOARD_IN_TIME</span></div>';
|
|
2406
2408
|
html += '<div part="badge-dashboard" id="chip-timeliness-1" class="chip stat-timeliness justify-center align-center mr-10 mb-10 no-shrink late-statuses"><span class="material-icons color-past-due-date">timer</span> <span>Past Due Date:</span> <span id="graph-past-due-date">DASHBOARD_PAST_DUE_DATE</span></div>';
|
|
2407
2409
|
html += '<div part="badge-dashboard" id="chip-timeliness-2" class="chip stat-timeliness justify-center align-center mr-10 mb-10 no-shrink late-statuses"><span class="material-icons color-late-reported">report_off</span> <span>Late Reported:</span> <span id="graph-late-reported">DASHBOARD_LATE_REPORTED</span></div>';
|
|
@@ -3277,6 +3279,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3277
3279
|
//console.log('renderevents htmlcols', this.htmlDataCompliances);
|
|
3278
3280
|
//console.log('progress', this.period, total, notStarted, approved)
|
|
3279
3281
|
html = html.replace("DASHBOARD_TOTAL", total + "");
|
|
3282
|
+
html = html.replace("DASHBOARD_SUSPENSE", this.suspenseCount + "");
|
|
3280
3283
|
html = html.replace("DASHBOARD_NOT_STARTED", notStarted + "");
|
|
3281
3284
|
html = html.replace("DASHBOARD_APPROVED", approved + "");
|
|
3282
3285
|
html = html.replace("DASHBOARD_PENDING_APPROVAL", pendingApproval + "");
|
|
@@ -13683,7 +13686,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13683
13686
|
else {
|
|
13684
13687
|
attachment = JSON.parse(attachmentStr + "");
|
|
13685
13688
|
}
|
|
13686
|
-
html += `<sf-i-uploader class="event-attachment" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": attachment.key, "ext": attachment.ext }]).replace(/"/g, '"')}" projectid="${this.projectId}
|
|
13689
|
+
// html += `<sf-i-uploader class="event-attachment" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": attachment.key, "ext": attachment.ext }]).replace(/"/g, '"')}" projectid="${this.projectId}" extract="no" mode="view" maximize="yes" hidepreview="yes" displaydetail="yes"></sf-i-uploader>`
|
|
13690
|
+
html += `<sf-i-uploader class="event-attachment" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": attachment.key, "ext": attachment.ext }]).replace(/"/g, '"')}" extract="no" mode="view" maximize="yes" hidepreview="yes" displaydetail="yes"></sf-i-uploader>`;
|
|
13687
13691
|
}
|
|
13688
13692
|
html += '</div>';
|
|
13689
13693
|
}
|
|
@@ -13754,6 +13758,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13754
13758
|
html += '<div class="d-flex justify-end w-100 mb-10">';
|
|
13755
13759
|
html += '<textarea part="input" id="feedback-message" class="w-100 mt-10 mb-10 hide" placeholder="Type your feedback message here..."></textarea>';
|
|
13756
13760
|
html += '</div>';
|
|
13761
|
+
if (this.myRole == this.TAB_FUNCTION_HEAD) {
|
|
13762
|
+
html += '<div class="d-flex justify-end w-100">';
|
|
13763
|
+
html += '<input part="input" id="feedback-suspense" class="mb-10 hide" type="checkbox"/>';
|
|
13764
|
+
html += '<label part="input-label" id="feedback-suspense-label" class="ml-10 mb-10 hide">Move to suspense account</label>';
|
|
13765
|
+
html += '</div>';
|
|
13766
|
+
}
|
|
13757
13767
|
html += '<div class="d-flex w-100">';
|
|
13758
13768
|
html += ('<button part="button-lg-short" id="button-feedback" class="d-flex justify-center align-center"><span class="material-symbols-outlined">comment</span><span> Send Feedback</span></button>');
|
|
13759
13769
|
html += ('<button part="button-lg-short-secondary" id="button-feedback-cancel" class="hide d-flex justify-center align-center mr-10"><span class="material-symbols-outlined">close</span><span> Cancel</span></button>');
|
|
@@ -13977,6 +13987,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13977
13987
|
});
|
|
13978
13988
|
(_p = this._SfDetailContainer.querySelector('#button-feedback')) === null || _p === void 0 ? void 0 : _p.addEventListener('click', () => {
|
|
13979
13989
|
const feedbackMessage = this._SfDetailContainer.querySelector('#feedback-message');
|
|
13990
|
+
const feedbackSuspense = this._SfDetailContainer.querySelector('#feedback-suspense');
|
|
13991
|
+
const feedbackSuspenseLabel = this._SfDetailContainer.querySelector('#feedback-suspense-label');
|
|
13980
13992
|
const buttonFeedback = this._SfDetailContainer.querySelector('#button-feedback');
|
|
13981
13993
|
const buttonCancel = this._SfDetailContainer.querySelector('#button-feedback-cancel');
|
|
13982
13994
|
const buttonConfirm = this._SfDetailContainer.querySelector('#button-feedback-confirm');
|
|
@@ -13984,6 +13996,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13984
13996
|
if (feedbackMessage.classList.contains('hide')) {
|
|
13985
13997
|
feedbackMessage.classList.remove('hide');
|
|
13986
13998
|
}
|
|
13999
|
+
if (feedbackSuspense != null) {
|
|
14000
|
+
if (feedbackSuspense.classList.contains('hide')) {
|
|
14001
|
+
feedbackSuspense.classList.remove('hide');
|
|
14002
|
+
}
|
|
14003
|
+
}
|
|
14004
|
+
if (feedbackSuspenseLabel != null) {
|
|
14005
|
+
if (feedbackSuspenseLabel.classList.contains('hide')) {
|
|
14006
|
+
feedbackSuspenseLabel.classList.remove('hide');
|
|
14007
|
+
}
|
|
14008
|
+
}
|
|
13987
14009
|
if (buttonConfirm.classList.contains('hide')) {
|
|
13988
14010
|
buttonConfirm.classList.remove('hide');
|
|
13989
14011
|
}
|
|
@@ -14001,6 +14023,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14001
14023
|
});
|
|
14002
14024
|
(_q = this._SfDetailContainer.querySelector('#button-feedback-cancel')) === null || _q === void 0 ? void 0 : _q.addEventListener('click', () => {
|
|
14003
14025
|
const feedbackMessage = this._SfDetailContainer.querySelector('#feedback-message');
|
|
14026
|
+
const feedbackSuspense = this._SfDetailContainer.querySelector('#feedback-suspense');
|
|
14027
|
+
const feedbackSuspenseLabel = this._SfDetailContainer.querySelector('#feedback-suspense-label');
|
|
14004
14028
|
const buttonFeedback = this._SfDetailContainer.querySelector('#button-feedback');
|
|
14005
14029
|
const buttonCancel = this._SfDetailContainer.querySelector('#button-feedback-cancel');
|
|
14006
14030
|
const buttonConfirm = this._SfDetailContainer.querySelector('#button-feedback-confirm');
|
|
@@ -14008,6 +14032,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14008
14032
|
if (!feedbackMessage.classList.contains('hide')) {
|
|
14009
14033
|
feedbackMessage.classList.add('hide');
|
|
14010
14034
|
}
|
|
14035
|
+
if (feedbackSuspense != null) {
|
|
14036
|
+
if (feedbackSuspense.classList.contains('hide')) {
|
|
14037
|
+
feedbackSuspense.classList.remove('hide');
|
|
14038
|
+
}
|
|
14039
|
+
}
|
|
14040
|
+
if (feedbackSuspenseLabel != null) {
|
|
14041
|
+
if (feedbackSuspenseLabel.classList.contains('hide')) {
|
|
14042
|
+
feedbackSuspenseLabel.classList.remove('hide');
|
|
14043
|
+
}
|
|
14044
|
+
}
|
|
14011
14045
|
if (!buttonConfirm.classList.contains('hide')) {
|
|
14012
14046
|
buttonConfirm.classList.add('hide');
|
|
14013
14047
|
}
|
|
@@ -14021,6 +14055,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14021
14055
|
(_r = this._SfDetailContainer.querySelector('#button-feedback-confirm')) === null || _r === void 0 ? void 0 : _r.addEventListener('click', async () => {
|
|
14022
14056
|
var _a, _b, _c;
|
|
14023
14057
|
const feedbackMessage = this._SfDetailContainer.querySelector('#feedback-message');
|
|
14058
|
+
const feedbackSuspense = this._SfDetailContainer.querySelector('#feedback-suspense');
|
|
14024
14059
|
const buttonCancel = this._SfDetailContainer.querySelector('#button-feedback-cancel');
|
|
14025
14060
|
const buttonClose = this._SfDetailContainer.querySelector('#button-detail-close');
|
|
14026
14061
|
console.log('sending feedback', event);
|
|
@@ -14029,7 +14064,17 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14029
14064
|
}
|
|
14030
14065
|
else {
|
|
14031
14066
|
feedbackMessage.setAttribute('style', 'border:');
|
|
14032
|
-
|
|
14067
|
+
let feedbackSuspenseVal = false;
|
|
14068
|
+
if (feedbackSuspense != null && feedbackSuspense.checked) {
|
|
14069
|
+
feedbackSuspenseVal = true;
|
|
14070
|
+
}
|
|
14071
|
+
this.uploadTriggerMyEvent(event.id + " - " + event.shortid, feedbackMessage.value, ((_a = event.country[0]) !== null && _a !== void 0 ? _a : "").replace(/ *\([^)]*\) */g, ""), ((_b = event.entityname) !== null && _b !== void 0 ? _b : "").replace(/ *\([^)]*\) */g, ""), ((_c = event.locationname) !== null && _c !== void 0 ? _c : "").replace(/ *\([^)]*\) */g, ""), event.statute[0], event.subcategory[0], {
|
|
14072
|
+
addtosuspense: feedbackSuspenseVal,
|
|
14073
|
+
mmddyyyy: mmddyyyy,
|
|
14074
|
+
eventid: event.id,
|
|
14075
|
+
entityid: entityId,
|
|
14076
|
+
locationid: locationId
|
|
14077
|
+
});
|
|
14033
14078
|
// this.uploadTriggerMyEvent(
|
|
14034
14079
|
// event.id + ";" + event.shortid,
|
|
14035
14080
|
// feedbackMessage.value,
|
|
@@ -21141,8 +21186,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
21141
21186
|
}, 2000);
|
|
21142
21187
|
}
|
|
21143
21188
|
};
|
|
21144
|
-
this.uploadTriggerMyEvent = async (complianceid, message, countryname, entityname, locationname, statute, subcategory) => {
|
|
21145
|
-
let url = "https://" + this.apiId + "/
|
|
21189
|
+
this.uploadTriggerMyEvent = async (complianceid, message, countryname, entityname, locationname, statute, subcategory, suspenseVal = {}) => {
|
|
21190
|
+
let url = "https://" + this.apiId + "/triggermyevent1";
|
|
21146
21191
|
const body = {
|
|
21147
21192
|
"projectid": this.projectId,
|
|
21148
21193
|
"complianceid": complianceid,
|
|
@@ -21153,7 +21198,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
21153
21198
|
"entityname": entityname,
|
|
21154
21199
|
"locationname": locationname,
|
|
21155
21200
|
"statute": statute,
|
|
21156
|
-
"subcategory": subcategory
|
|
21201
|
+
"subcategory": subcategory,
|
|
21202
|
+
"suspenseval": suspenseVal
|
|
21157
21203
|
};
|
|
21158
21204
|
console.log('uploading...', body);
|
|
21159
21205
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
@@ -22598,6 +22644,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22598
22644
|
}
|
|
22599
22645
|
};
|
|
22600
22646
|
this.fetchAndYearlyRenderUserCalendar_2 = async (startDate = "", endDate = "", searchString = "", list = "yes", month = "00", year = this.calendarStartYYYY) => {
|
|
22647
|
+
var _a;
|
|
22601
22648
|
let path = "", view = "";
|
|
22602
22649
|
this.sdate = startDate;
|
|
22603
22650
|
this.edate = endDate;
|
|
@@ -22613,7 +22660,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22613
22660
|
else {
|
|
22614
22661
|
view = "entity";
|
|
22615
22662
|
}
|
|
22616
|
-
path = "
|
|
22663
|
+
path = "getallcountryevents4";
|
|
22617
22664
|
let sDate = "";
|
|
22618
22665
|
let eDate = "";
|
|
22619
22666
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -22648,6 +22695,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22648
22695
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
|
|
22649
22696
|
if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
|
|
22650
22697
|
this.lastupdated = Util.getDateTimeStrings(new Date().getTime());
|
|
22698
|
+
this.suspenseCount = (_a = jsonRespose.suspensecount) !== null && _a !== void 0 ? _a : 0;
|
|
22651
22699
|
console.log('rendering appropriate string', list, this.selectedTab);
|
|
22652
22700
|
this.renderAppropriateStream(startDate, endDate, true);
|
|
22653
22701
|
this.fetchBulkReportingData();
|
|
@@ -22707,6 +22755,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22707
22755
|
}
|
|
22708
22756
|
};
|
|
22709
22757
|
this.fetchOnlyYearlyUserCalendar = async (startDate = "", endDate = "", searchString = "", list = "yes", month = "00", year = this.calendarStartYYYY, userprofileid = this.userProfileId, userrole = this.myRole, entityid = this.entityId, countryid = this.countryId, locationid = this.locationId, tagid = this.tagId, functionid = this.functionId) => {
|
|
22758
|
+
var _a;
|
|
22710
22759
|
let path = "", view = "";
|
|
22711
22760
|
if (tagid != null && tagid != "") {
|
|
22712
22761
|
view = "tag";
|
|
@@ -22720,7 +22769,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22720
22769
|
else {
|
|
22721
22770
|
view = "entity";
|
|
22722
22771
|
}
|
|
22723
|
-
path = "
|
|
22772
|
+
path = "getallcountryevents4";
|
|
22724
22773
|
let url = "https://" + this.apiId + "/" + path;
|
|
22725
22774
|
let temptagid = tagid;
|
|
22726
22775
|
if (temptagid == "" && locationid != "") {
|
|
@@ -22747,6 +22796,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22747
22796
|
// if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
|
|
22748
22797
|
this.events = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
22749
22798
|
// }
|
|
22799
|
+
this.suspenseCount = (_a = jsonRespose.suspensecount) !== null && _a !== void 0 ? _a : 0;
|
|
22750
22800
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
|
|
22751
22801
|
}
|
|
22752
22802
|
else {
|
|
@@ -24193,7 +24243,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
24193
24243
|
day = '0' + day;
|
|
24194
24244
|
let eDate = month + "/" + day + "/" + year;
|
|
24195
24245
|
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 };
|
|
24196
|
-
let url = "https://" + this.apiId + "/
|
|
24246
|
+
let url = "https://" + this.apiId + "/getallcountryevents4";
|
|
24197
24247
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24198
24248
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
24199
24249
|
this._SfLoader.innerHTML = '';
|
|
@@ -24278,7 +24328,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
24278
24328
|
console.log('fetching compliances', sortid);
|
|
24279
24329
|
let complianceEntityId = sortid.split(';')[1];
|
|
24280
24330
|
let complianceLocationId = sortid.split(';')[2];
|
|
24281
|
-
let url = "https://" + this.apiId + "/
|
|
24331
|
+
let url = "https://" + this.apiId + "/getallcountryevents4";
|
|
24282
24332
|
let sDateObj = selectedDate;
|
|
24283
24333
|
sDateObj.setDate(selectedDate.getDate() - 60);
|
|
24284
24334
|
let day = '' + sDateObj.getDate();
|
|
@@ -26592,6 +26642,9 @@ __decorate([
|
|
|
26592
26642
|
__decorate([
|
|
26593
26643
|
property()
|
|
26594
26644
|
], SfIEvents.prototype, "locationComplianceStatusData", void 0);
|
|
26645
|
+
__decorate([
|
|
26646
|
+
property()
|
|
26647
|
+
], SfIEvents.prototype, "suspenseCount", void 0);
|
|
26595
26648
|
__decorate([
|
|
26596
26649
|
property({ type: Array })
|
|
26597
26650
|
], SfIEvents.prototype, "selectedItemIds", void 0);
|
package/src/sf-i-events.ts
CHANGED
|
@@ -1617,6 +1617,9 @@ export class SfIEvents extends LitElement {
|
|
|
1617
1617
|
@property()
|
|
1618
1618
|
locationComplianceStatusData: any = null;
|
|
1619
1619
|
|
|
1620
|
+
@property()
|
|
1621
|
+
suspenseCount: Number = 0;
|
|
1622
|
+
|
|
1620
1623
|
@property({ type: Array })
|
|
1621
1624
|
selectedItemIds: Array<string> = [];
|
|
1622
1625
|
|
|
@@ -4578,6 +4581,7 @@ export class SfIEvents extends LitElement {
|
|
|
4578
4581
|
html += '<div part="badge-dashboard" id="chip-completeness-1" class="chip stat-completeness d-flex justify-center align-center mr-10 mb-10 no-shrink"><span class="material-symbols-outlined color-pending">pending</span> <span>Pending Approval:</span> <span id="graph-pending-approval">DASHBOARD_PENDING_APPROVAL</span></div>';
|
|
4579
4582
|
html += '<div part="badge-dashboard" id="chip-completeness-2" class="chip stat-completeness d-flex justify-center align-center mr-10 mb-10 no-shrink"><span class="material-symbols-outlined color-rejected">block</span> <span>Rejected:</span> <span id="graph-rejected">DASHBOARD_REJECTED</span></div>';
|
|
4580
4583
|
html += '<div part="badge-dashboard" id="chip-completeness-3" class="chip stat-completeness d-flex justify-center align-center mr-10 mb-10 no-shrink"><span class="material-symbols-outlined color-done">check_circle</span> <span>Approved:</span> <span id="graph-approved">DASHBOARD_APPROVED</span></div>';
|
|
4584
|
+
html += '<div part="badge-dashboard" class="mr-10 mb-10 no-shrink"><span>Suspense:</span> <span id="graph-total">DASHBOARD_SUSPENSE</span></div>';
|
|
4581
4585
|
|
|
4582
4586
|
html += '<div part="badge-dashboard" id="chip-timeliness-0" class="chip stat-timeliness justify-center align-center mr-10 mb-10 no-shrink late-statuses"><span class="material-icons color-in-time">schedule</span> <span>In Time:</span> <span id="graph-in-time">DASHBOARD_IN_TIME</span></div>';
|
|
4583
4587
|
html += '<div part="badge-dashboard" id="chip-timeliness-1" class="chip stat-timeliness justify-center align-center mr-10 mb-10 no-shrink late-statuses"><span class="material-icons color-past-due-date">timer</span> <span>Past Due Date:</span> <span id="graph-past-due-date">DASHBOARD_PAST_DUE_DATE</span></div>';
|
|
@@ -5569,6 +5573,7 @@ export class SfIEvents extends LitElement {
|
|
|
5569
5573
|
//console.log('progress', this.period, total, notStarted, approved)
|
|
5570
5574
|
|
|
5571
5575
|
html = html.replace("DASHBOARD_TOTAL", total + "");
|
|
5576
|
+
html = html.replace("DASHBOARD_SUSPENSE", this.suspenseCount + "");
|
|
5572
5577
|
html = html.replace("DASHBOARD_NOT_STARTED", notStarted + "");
|
|
5573
5578
|
html = html.replace("DASHBOARD_APPROVED", approved + "");
|
|
5574
5579
|
html = html.replace("DASHBOARD_PENDING_APPROVAL", pendingApproval + "");
|
|
@@ -17681,7 +17686,8 @@ export class SfIEvents extends LitElement {
|
|
|
17681
17686
|
} else {
|
|
17682
17687
|
attachment = JSON.parse(attachmentStr + "");
|
|
17683
17688
|
}
|
|
17684
|
-
html += `<sf-i-uploader class="event-attachment" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": attachment.key, "ext": attachment.ext }]).replace(/"/g, '"')}" projectid="${this.projectId}
|
|
17689
|
+
// html += `<sf-i-uploader class="event-attachment" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": attachment.key, "ext": attachment.ext }]).replace(/"/g, '"')}" projectid="${this.projectId}" extract="no" mode="view" maximize="yes" hidepreview="yes" displaydetail="yes"></sf-i-uploader>`
|
|
17690
|
+
html += `<sf-i-uploader class="event-attachment" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": attachment.key, "ext": attachment.ext }]).replace(/"/g, '"')}" extract="no" mode="view" maximize="yes" hidepreview="yes" displaydetail="yes"></sf-i-uploader>`
|
|
17685
17691
|
}
|
|
17686
17692
|
html += '</div>';
|
|
17687
17693
|
}
|
|
@@ -17765,6 +17771,12 @@ export class SfIEvents extends LitElement {
|
|
|
17765
17771
|
html += '<div class="d-flex justify-end w-100 mb-10">'
|
|
17766
17772
|
html += '<textarea part="input" id="feedback-message" class="w-100 mt-10 mb-10 hide" placeholder="Type your feedback message here..."></textarea>'
|
|
17767
17773
|
html += '</div>'
|
|
17774
|
+
if(this.myRole == this.TAB_FUNCTION_HEAD) {
|
|
17775
|
+
html += '<div class="d-flex justify-end w-100">'
|
|
17776
|
+
html += '<input part="input" id="feedback-suspense" class="mb-10 hide" type="checkbox"/>'
|
|
17777
|
+
html += '<label part="input-label" id="feedback-suspense-label" class="ml-10 mb-10 hide">Move to suspense account</label>'
|
|
17778
|
+
html += '</div>'
|
|
17779
|
+
}
|
|
17768
17780
|
html += '<div class="d-flex w-100">'
|
|
17769
17781
|
html += ('<button part="button-lg-short" id="button-feedback" class="d-flex justify-center align-center"><span class="material-symbols-outlined">comment</span><span> Send Feedback</span></button>');
|
|
17770
17782
|
html += ('<button part="button-lg-short-secondary" id="button-feedback-cancel" class="hide d-flex justify-center align-center mr-10"><span class="material-symbols-outlined">close</span><span> Cancel</span></button>');
|
|
@@ -18030,6 +18042,8 @@ export class SfIEvents extends LitElement {
|
|
|
18030
18042
|
(this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback')?.addEventListener('click', () => {
|
|
18031
18043
|
|
|
18032
18044
|
const feedbackMessage = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-message') as HTMLTextAreaElement);
|
|
18045
|
+
const feedbackSuspense = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-suspense') as HTMLInputElement);
|
|
18046
|
+
const feedbackSuspenseLabel = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-suspense-label') as HTMLLabelElement);
|
|
18033
18047
|
const buttonFeedback = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback') as HTMLButtonElement);
|
|
18034
18048
|
const buttonCancel = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-cancel') as HTMLButtonElement);
|
|
18035
18049
|
const buttonConfirm = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-confirm') as HTMLButtonElement);
|
|
@@ -18040,6 +18054,17 @@ export class SfIEvents extends LitElement {
|
|
|
18040
18054
|
feedbackMessage.classList.remove('hide');
|
|
18041
18055
|
}
|
|
18042
18056
|
|
|
18057
|
+
if (feedbackSuspense != null) {
|
|
18058
|
+
if (feedbackSuspense.classList.contains('hide')) {
|
|
18059
|
+
feedbackSuspense.classList.remove('hide');
|
|
18060
|
+
}
|
|
18061
|
+
}
|
|
18062
|
+
if (feedbackSuspenseLabel != null) {
|
|
18063
|
+
if (feedbackSuspenseLabel.classList.contains('hide')) {
|
|
18064
|
+
feedbackSuspenseLabel.classList.remove('hide');
|
|
18065
|
+
}
|
|
18066
|
+
}
|
|
18067
|
+
|
|
18043
18068
|
if (buttonConfirm.classList.contains('hide')) {
|
|
18044
18069
|
buttonConfirm.classList.remove('hide');
|
|
18045
18070
|
}
|
|
@@ -18063,6 +18088,8 @@ export class SfIEvents extends LitElement {
|
|
|
18063
18088
|
(this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-cancel')?.addEventListener('click', () => {
|
|
18064
18089
|
|
|
18065
18090
|
const feedbackMessage = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-message') as HTMLTextAreaElement);
|
|
18091
|
+
const feedbackSuspense = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-suspense') as HTMLInputElement);
|
|
18092
|
+
const feedbackSuspenseLabel = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-suspense-label') as HTMLLabelElement);
|
|
18066
18093
|
const buttonFeedback = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback') as HTMLButtonElement);
|
|
18067
18094
|
const buttonCancel = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-cancel') as HTMLButtonElement);
|
|
18068
18095
|
const buttonConfirm = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-confirm') as HTMLButtonElement);
|
|
@@ -18073,6 +18100,17 @@ export class SfIEvents extends LitElement {
|
|
|
18073
18100
|
feedbackMessage.classList.add('hide');
|
|
18074
18101
|
}
|
|
18075
18102
|
|
|
18103
|
+
if (feedbackSuspense != null) {
|
|
18104
|
+
if (feedbackSuspense.classList.contains('hide')) {
|
|
18105
|
+
feedbackSuspense.classList.remove('hide');
|
|
18106
|
+
}
|
|
18107
|
+
}
|
|
18108
|
+
if (feedbackSuspenseLabel != null) {
|
|
18109
|
+
if (feedbackSuspenseLabel.classList.contains('hide')) {
|
|
18110
|
+
feedbackSuspenseLabel.classList.remove('hide');
|
|
18111
|
+
}
|
|
18112
|
+
}
|
|
18113
|
+
|
|
18076
18114
|
if (!buttonConfirm.classList.contains('hide')) {
|
|
18077
18115
|
buttonConfirm.classList.add('hide');
|
|
18078
18116
|
}
|
|
@@ -18090,6 +18128,7 @@ export class SfIEvents extends LitElement {
|
|
|
18090
18128
|
(this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-confirm')?.addEventListener('click', async () => {
|
|
18091
18129
|
|
|
18092
18130
|
const feedbackMessage = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-message') as HTMLTextAreaElement);
|
|
18131
|
+
const feedbackSuspense = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-suspense') as HTMLInputElement);
|
|
18093
18132
|
const buttonCancel = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-cancel') as HTMLButtonElement);
|
|
18094
18133
|
const buttonClose = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-detail-close') as HTMLButtonElement);
|
|
18095
18134
|
console.log('sending feedback', event);
|
|
@@ -18097,6 +18136,10 @@ export class SfIEvents extends LitElement {
|
|
|
18097
18136
|
feedbackMessage.setAttribute('style', 'border:solid 2px ' + this.COLOR_REJECTED + ' !important');
|
|
18098
18137
|
} else {
|
|
18099
18138
|
feedbackMessage.setAttribute('style', 'border:');
|
|
18139
|
+
let feedbackSuspenseVal = false
|
|
18140
|
+
if(feedbackSuspense != null && feedbackSuspense.checked){
|
|
18141
|
+
feedbackSuspenseVal = true
|
|
18142
|
+
}
|
|
18100
18143
|
this.uploadTriggerMyEvent(
|
|
18101
18144
|
event.id + " - " + event.shortid,
|
|
18102
18145
|
feedbackMessage.value,
|
|
@@ -18104,7 +18147,15 @@ export class SfIEvents extends LitElement {
|
|
|
18104
18147
|
(event.entityname ?? "").replace(/ *\([^)]*\) */g, ""),
|
|
18105
18148
|
(event.locationname ?? "").replace(/ *\([^)]*\) */g, ""),
|
|
18106
18149
|
event.statute[0],
|
|
18107
|
-
event.subcategory[0]
|
|
18150
|
+
event.subcategory[0],
|
|
18151
|
+
{
|
|
18152
|
+
addtosuspense: feedbackSuspenseVal,
|
|
18153
|
+
mmddyyyy: mmddyyyy,
|
|
18154
|
+
eventid: event.id,
|
|
18155
|
+
entityid: entityId,
|
|
18156
|
+
locationid: locationId
|
|
18157
|
+
}
|
|
18158
|
+
);
|
|
18108
18159
|
// this.uploadTriggerMyEvent(
|
|
18109
18160
|
// event.id + ";" + event.shortid,
|
|
18110
18161
|
// feedbackMessage.value,
|
|
@@ -26955,9 +27006,9 @@ export class SfIEvents extends LitElement {
|
|
|
26955
27006
|
|
|
26956
27007
|
}
|
|
26957
27008
|
|
|
26958
|
-
uploadTriggerMyEvent = async (complianceid: string, message: string, countryname: string, entityname: string, locationname: string, statute: string, subcategory: string) => {
|
|
27009
|
+
uploadTriggerMyEvent = async (complianceid: string, message: string, countryname: string, entityname: string, locationname: string, statute: string, subcategory: string, suspenseVal: any = {}) => {
|
|
26959
27010
|
|
|
26960
|
-
let url = "https://" + this.apiId + "/
|
|
27011
|
+
let url = "https://" + this.apiId + "/triggermyevent1";
|
|
26961
27012
|
|
|
26962
27013
|
const body = {
|
|
26963
27014
|
"projectid": this.projectId,
|
|
@@ -26969,7 +27020,8 @@ export class SfIEvents extends LitElement {
|
|
|
26969
27020
|
"entityname": entityname,
|
|
26970
27021
|
"locationname": locationname,
|
|
26971
27022
|
"statute": statute,
|
|
26972
|
-
"subcategory": subcategory
|
|
27023
|
+
"subcategory": subcategory,
|
|
27024
|
+
"suspenseval": suspenseVal
|
|
26973
27025
|
}
|
|
26974
27026
|
|
|
26975
27027
|
console.log('uploading...', body);
|
|
@@ -28829,7 +28881,7 @@ export class SfIEvents extends LitElement {
|
|
|
28829
28881
|
view = "entity";
|
|
28830
28882
|
}
|
|
28831
28883
|
|
|
28832
|
-
path = "
|
|
28884
|
+
path = "getallcountryevents4";
|
|
28833
28885
|
|
|
28834
28886
|
let sDate = "";
|
|
28835
28887
|
let eDate = "";
|
|
@@ -28872,6 +28924,7 @@ export class SfIEvents extends LitElement {
|
|
|
28872
28924
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
|
|
28873
28925
|
if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
|
|
28874
28926
|
this.lastupdated = Util.getDateTimeStrings(new Date().getTime())
|
|
28927
|
+
this.suspenseCount = jsonRespose.suspensecount ?? 0;
|
|
28875
28928
|
console.log('rendering appropriate string', list, this.selectedTab);
|
|
28876
28929
|
this.renderAppropriateStream(startDate, endDate, true);
|
|
28877
28930
|
this.fetchBulkReportingData();
|
|
@@ -28969,7 +29022,7 @@ export class SfIEvents extends LitElement {
|
|
|
28969
29022
|
view = "entity";
|
|
28970
29023
|
}
|
|
28971
29024
|
|
|
28972
|
-
path = "
|
|
29025
|
+
path = "getallcountryevents4";
|
|
28973
29026
|
|
|
28974
29027
|
let url = "https://" + this.apiId + "/" + path;
|
|
28975
29028
|
let temptagid = tagid;
|
|
@@ -28999,6 +29052,7 @@ export class SfIEvents extends LitElement {
|
|
|
28999
29052
|
// if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
|
|
29000
29053
|
this.events = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
29001
29054
|
// }
|
|
29055
|
+
this.suspenseCount = jsonRespose.suspensecount ?? 0;
|
|
29002
29056
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
|
|
29003
29057
|
|
|
29004
29058
|
} else {
|
|
@@ -30695,7 +30749,7 @@ export class SfIEvents extends LitElement {
|
|
|
30695
30749
|
day = '0' + day;
|
|
30696
30750
|
let eDate = month + "/" + day + "/" + year
|
|
30697
30751
|
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 };
|
|
30698
|
-
let url = "https://" + this.apiId + "/
|
|
30752
|
+
let url = "https://" + this.apiId + "/getallcountryevents4";
|
|
30699
30753
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
30700
30754
|
const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
30701
30755
|
this._SfLoader.innerHTML = '';
|
|
@@ -30788,7 +30842,7 @@ export class SfIEvents extends LitElement {
|
|
|
30788
30842
|
console.log('fetching compliances', sortid)
|
|
30789
30843
|
let complianceEntityId = sortid.split(';')[1]
|
|
30790
30844
|
let complianceLocationId = sortid.split(';')[2]
|
|
30791
|
-
let url = "https://" + this.apiId + "/
|
|
30845
|
+
let url = "https://" + this.apiId + "/getallcountryevents4";
|
|
30792
30846
|
let sDateObj = selectedDate
|
|
30793
30847
|
sDateObj.setDate(selectedDate.getDate() - 60)
|
|
30794
30848
|
let day = '' + sDateObj.getDate();
|