sf-i-events 1.0.924 → 1.0.926
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 +64 -12
- package/package.json +1 -1
- package/sf-i-events.d.ts +1 -1
- package/sf-i-events.js +49 -7
- package/src/sf-i-events.ts +53 -7
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
|
-
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
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"
|
|
@@ -828,6 +872,14 @@
|
|
|
828
872
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile"
|
|
829
873
|
disablesignoff="yes" disableclientresponse="yes">
|
|
830
874
|
|
|
875
|
+
</sf-i-events> -->
|
|
876
|
+
<!-- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
|
|
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"]}}"
|
|
878
|
+
contractstartdate="1/4/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
|
|
879
|
+
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
880
|
+
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile"
|
|
881
|
+
disablesignoff="yes" disableclientresponse="yes">
|
|
882
|
+
|
|
831
883
|
</sf-i-events> -->
|
|
832
884
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
|
|
833
885
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
@@ -843,7 +895,7 @@
|
|
|
843
895
|
allowdownload="yes"></sf-i-uploader></div>
|
|
844
896
|
<div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div>
|
|
845
897
|
</sf-i-events> -->
|
|
846
|
-
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
898
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
847
899
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
848
900
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
849
901
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -872,7 +924,7 @@
|
|
|
872
924
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
873
925
|
</div>
|
|
874
926
|
|
|
875
|
-
</sf-i-events>
|
|
927
|
+
</sf-i-events> -->
|
|
876
928
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
877
929
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
878
930
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
package/package.json
CHANGED
package/sf-i-events.d.ts
CHANGED
|
@@ -752,7 +752,7 @@ export declare class SfIEvents extends LitElement {
|
|
|
752
752
|
uploadCompliancesMapping: (data: any) => Promise<void>;
|
|
753
753
|
uploadStatutesMapping: (data: any) => Promise<void>;
|
|
754
754
|
uploadUnTriggerEvent: (untrigger: any) => Promise<void>;
|
|
755
|
-
uploadTriggerMyEvent: (complianceid: string, message: string, countryname: string, entityname: string, locationname: string, statute: string, subcategory: string) => Promise<void>;
|
|
755
|
+
uploadTriggerMyEvent: (complianceid: string, message: string, countryname: string, entityname: string, locationname: string, statute: string, subcategory: string, suspenseVal?: any) => Promise<void>;
|
|
756
756
|
uploadTriggerEvent: (triggeredCompliances: any) => Promise<void>;
|
|
757
757
|
uploadAudit: (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module?: string) => Promise<boolean>;
|
|
758
758
|
uploadAuditsBulk: (bulkBody: any) => Promise<void>;
|
package/sf-i-events.js
CHANGED
|
@@ -13683,7 +13683,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13683
13683
|
else {
|
|
13684
13684
|
attachment = JSON.parse(attachmentStr + "");
|
|
13685
13685
|
}
|
|
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}
|
|
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}" extract="no" mode="view" maximize="yes" hidepreview="yes" displaydetail="yes"></sf-i-uploader>`
|
|
13687
|
+
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
13688
|
}
|
|
13688
13689
|
html += '</div>';
|
|
13689
13690
|
}
|
|
@@ -13754,6 +13755,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13754
13755
|
html += '<div class="d-flex justify-end w-100 mb-10">';
|
|
13755
13756
|
html += '<textarea part="input" id="feedback-message" class="w-100 mt-10 mb-10 hide" placeholder="Type your feedback message here..."></textarea>';
|
|
13756
13757
|
html += '</div>';
|
|
13758
|
+
// html += '<div class="d-flex justify-end w-100">'
|
|
13759
|
+
// html += '<input part="input" id="feedback-suspense" class="mb-10 hide" type="checkbox"/>'
|
|
13760
|
+
// html += '<label part="input-label" id="feedback-suspense-label" class="ml-10 mb-10 hide">Move to suspense account</label>'
|
|
13761
|
+
// html += '</div>'
|
|
13757
13762
|
html += '<div class="d-flex w-100">';
|
|
13758
13763
|
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
13764
|
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 +13982,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13977
13982
|
});
|
|
13978
13983
|
(_p = this._SfDetailContainer.querySelector('#button-feedback')) === null || _p === void 0 ? void 0 : _p.addEventListener('click', () => {
|
|
13979
13984
|
const feedbackMessage = this._SfDetailContainer.querySelector('#feedback-message');
|
|
13985
|
+
const feedbackSuspense = this._SfDetailContainer.querySelector('#feedback-suspense');
|
|
13986
|
+
const feedbackSuspenseLabel = this._SfDetailContainer.querySelector('#feedback-suspense-label');
|
|
13980
13987
|
const buttonFeedback = this._SfDetailContainer.querySelector('#button-feedback');
|
|
13981
13988
|
const buttonCancel = this._SfDetailContainer.querySelector('#button-feedback-cancel');
|
|
13982
13989
|
const buttonConfirm = this._SfDetailContainer.querySelector('#button-feedback-confirm');
|
|
@@ -13984,6 +13991,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13984
13991
|
if (feedbackMessage.classList.contains('hide')) {
|
|
13985
13992
|
feedbackMessage.classList.remove('hide');
|
|
13986
13993
|
}
|
|
13994
|
+
if (feedbackSuspense != null) {
|
|
13995
|
+
if (feedbackSuspense.classList.contains('hide')) {
|
|
13996
|
+
feedbackSuspense.classList.remove('hide');
|
|
13997
|
+
}
|
|
13998
|
+
}
|
|
13999
|
+
if (feedbackSuspenseLabel != null) {
|
|
14000
|
+
if (feedbackSuspenseLabel.classList.contains('hide')) {
|
|
14001
|
+
feedbackSuspenseLabel.classList.remove('hide');
|
|
14002
|
+
}
|
|
14003
|
+
}
|
|
13987
14004
|
if (buttonConfirm.classList.contains('hide')) {
|
|
13988
14005
|
buttonConfirm.classList.remove('hide');
|
|
13989
14006
|
}
|
|
@@ -14001,6 +14018,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14001
14018
|
});
|
|
14002
14019
|
(_q = this._SfDetailContainer.querySelector('#button-feedback-cancel')) === null || _q === void 0 ? void 0 : _q.addEventListener('click', () => {
|
|
14003
14020
|
const feedbackMessage = this._SfDetailContainer.querySelector('#feedback-message');
|
|
14021
|
+
const feedbackSuspense = this._SfDetailContainer.querySelector('#feedback-suspense');
|
|
14022
|
+
const feedbackSuspenseLabel = this._SfDetailContainer.querySelector('#feedback-suspense-label');
|
|
14004
14023
|
const buttonFeedback = this._SfDetailContainer.querySelector('#button-feedback');
|
|
14005
14024
|
const buttonCancel = this._SfDetailContainer.querySelector('#button-feedback-cancel');
|
|
14006
14025
|
const buttonConfirm = this._SfDetailContainer.querySelector('#button-feedback-confirm');
|
|
@@ -14008,6 +14027,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14008
14027
|
if (!feedbackMessage.classList.contains('hide')) {
|
|
14009
14028
|
feedbackMessage.classList.add('hide');
|
|
14010
14029
|
}
|
|
14030
|
+
if (feedbackSuspense != null) {
|
|
14031
|
+
if (feedbackSuspense.classList.contains('hide')) {
|
|
14032
|
+
feedbackSuspense.classList.remove('hide');
|
|
14033
|
+
}
|
|
14034
|
+
}
|
|
14035
|
+
if (feedbackSuspenseLabel != null) {
|
|
14036
|
+
if (feedbackSuspenseLabel.classList.contains('hide')) {
|
|
14037
|
+
feedbackSuspenseLabel.classList.remove('hide');
|
|
14038
|
+
}
|
|
14039
|
+
}
|
|
14011
14040
|
if (!buttonConfirm.classList.contains('hide')) {
|
|
14012
14041
|
buttonConfirm.classList.add('hide');
|
|
14013
14042
|
}
|
|
@@ -14021,6 +14050,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14021
14050
|
(_r = this._SfDetailContainer.querySelector('#button-feedback-confirm')) === null || _r === void 0 ? void 0 : _r.addEventListener('click', async () => {
|
|
14022
14051
|
var _a, _b, _c;
|
|
14023
14052
|
const feedbackMessage = this._SfDetailContainer.querySelector('#feedback-message');
|
|
14053
|
+
const feedbackSuspense = this._SfDetailContainer.querySelector('#feedback-suspense');
|
|
14024
14054
|
const buttonCancel = this._SfDetailContainer.querySelector('#button-feedback-cancel');
|
|
14025
14055
|
const buttonClose = this._SfDetailContainer.querySelector('#button-detail-close');
|
|
14026
14056
|
console.log('sending feedback', event);
|
|
@@ -14029,7 +14059,17 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14029
14059
|
}
|
|
14030
14060
|
else {
|
|
14031
14061
|
feedbackMessage.setAttribute('style', 'border:');
|
|
14032
|
-
|
|
14062
|
+
let feedbackSuspenseVal = false;
|
|
14063
|
+
if (feedbackSuspense != null && feedbackSuspense.checked) {
|
|
14064
|
+
feedbackSuspenseVal = true;
|
|
14065
|
+
}
|
|
14066
|
+
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], {
|
|
14067
|
+
addtosuspense: feedbackSuspenseVal,
|
|
14068
|
+
mmddyyyy: mmddyyyy,
|
|
14069
|
+
eventid: event.id,
|
|
14070
|
+
entityid: entityId,
|
|
14071
|
+
locationid: locationId
|
|
14072
|
+
});
|
|
14033
14073
|
// this.uploadTriggerMyEvent(
|
|
14034
14074
|
// event.id + ";" + event.shortid,
|
|
14035
14075
|
// feedbackMessage.value,
|
|
@@ -16274,7 +16314,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16274
16314
|
arrCompliancesFrequencies[jsonData[i].id]++;
|
|
16275
16315
|
}
|
|
16276
16316
|
html += '<tr id="tablerow-' + i + '" class="tablerow">';
|
|
16277
|
-
html += '<td part="td-action" class="' + (jsonData[i].mapped ? 'chosen' : '') + '">';
|
|
16317
|
+
html += '<td part="td-action" class="left-sticky' + (jsonData[i].mapped ? ' chosen' : '') + '">';
|
|
16278
16318
|
html += '<div id="select-' + i + '" class="' + (!showSearch ? 'truncate' : '') + '"><input class="checkbox checkbox-' + i + ' checkbox-row" part="input-checkbox" type="checkbox" ' + mapped + ' ' + ((this.disableflagggrcresponse.toLowerCase() == "yes") ? 'disabled' : '') + '/></div>';
|
|
16279
16319
|
html += '</td>';
|
|
16280
16320
|
html += '<td part="td-action" class="' + (jsonData[i].mapped ? 'chosen' : '') + '">';
|
|
@@ -16350,7 +16390,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16350
16390
|
//let data = JSON.parse(jsonData[i].fields.data);
|
|
16351
16391
|
for (var j = 0; j < JSON.parse(jsonData[i].data.cols).length; j++) {
|
|
16352
16392
|
if (jsonData[i].cols.includes(JSON.parse(jsonData[i].data.cols)[j])) {
|
|
16353
|
-
html += '<td part="td-body" class="td-body ' + classBg + ' ' + (jsonData[i].mapped ? 'chosen' : '') + ' ' + (statuteColName.toLowerCase() == JSON.parse(jsonData[i].data.cols)[j].toLowerCase() ? 'left-sticky' : '') + '">';
|
|
16393
|
+
// html += '<td part="td-body" class="td-body ' + classBg + ' ' + (jsonData[i].mapped ? 'chosen' : '') + ' ' + (statuteColName.toLowerCase() == JSON.parse(jsonData[i].data.cols)[j].toLowerCase() ? 'left-sticky' : '') + '">';
|
|
16394
|
+
html += '<td part="td-body" class="td-body ' + classBg + ' ' + (jsonData[i].mapped ? 'chosen' : '') + '">';
|
|
16354
16395
|
html += '<div class="' + (!showSearch ? 'truncate' : '') + '">';
|
|
16355
16396
|
html += '<div class="d-flex align-center flex-wrap">';
|
|
16356
16397
|
let filterMatch = null;
|
|
@@ -21140,8 +21181,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
21140
21181
|
}, 2000);
|
|
21141
21182
|
}
|
|
21142
21183
|
};
|
|
21143
|
-
this.uploadTriggerMyEvent = async (complianceid, message, countryname, entityname, locationname, statute, subcategory) => {
|
|
21144
|
-
let url = "https://" + this.apiId + "/
|
|
21184
|
+
this.uploadTriggerMyEvent = async (complianceid, message, countryname, entityname, locationname, statute, subcategory, suspenseVal = {}) => {
|
|
21185
|
+
let url = "https://" + this.apiId + "/triggermyevent1";
|
|
21145
21186
|
const body = {
|
|
21146
21187
|
"projectid": this.projectId,
|
|
21147
21188
|
"complianceid": complianceid,
|
|
@@ -21152,7 +21193,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
21152
21193
|
"entityname": entityname,
|
|
21153
21194
|
"locationname": locationname,
|
|
21154
21195
|
"statute": statute,
|
|
21155
|
-
"subcategory": subcategory
|
|
21196
|
+
"subcategory": subcategory,
|
|
21197
|
+
"suspenseval": suspenseVal
|
|
21156
21198
|
};
|
|
21157
21199
|
console.log('uploading...', body);
|
|
21158
21200
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
package/src/sf-i-events.ts
CHANGED
|
@@ -17681,7 +17681,8 @@ export class SfIEvents extends LitElement {
|
|
|
17681
17681
|
} else {
|
|
17682
17682
|
attachment = JSON.parse(attachmentStr + "");
|
|
17683
17683
|
}
|
|
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}
|
|
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}" extract="no" mode="view" maximize="yes" hidepreview="yes" displaydetail="yes"></sf-i-uploader>`
|
|
17685
|
+
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
17686
|
}
|
|
17686
17687
|
html += '</div>';
|
|
17687
17688
|
}
|
|
@@ -17765,6 +17766,10 @@ export class SfIEvents extends LitElement {
|
|
|
17765
17766
|
html += '<div class="d-flex justify-end w-100 mb-10">'
|
|
17766
17767
|
html += '<textarea part="input" id="feedback-message" class="w-100 mt-10 mb-10 hide" placeholder="Type your feedback message here..."></textarea>'
|
|
17767
17768
|
html += '</div>'
|
|
17769
|
+
// html += '<div class="d-flex justify-end w-100">'
|
|
17770
|
+
// html += '<input part="input" id="feedback-suspense" class="mb-10 hide" type="checkbox"/>'
|
|
17771
|
+
// html += '<label part="input-label" id="feedback-suspense-label" class="ml-10 mb-10 hide">Move to suspense account</label>'
|
|
17772
|
+
// html += '</div>'
|
|
17768
17773
|
html += '<div class="d-flex w-100">'
|
|
17769
17774
|
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
17775
|
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 +18035,8 @@ export class SfIEvents extends LitElement {
|
|
|
18030
18035
|
(this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback')?.addEventListener('click', () => {
|
|
18031
18036
|
|
|
18032
18037
|
const feedbackMessage = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-message') as HTMLTextAreaElement);
|
|
18038
|
+
const feedbackSuspense = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-suspense') as HTMLInputElement);
|
|
18039
|
+
const feedbackSuspenseLabel = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-suspense-label') as HTMLLabelElement);
|
|
18033
18040
|
const buttonFeedback = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback') as HTMLButtonElement);
|
|
18034
18041
|
const buttonCancel = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-cancel') as HTMLButtonElement);
|
|
18035
18042
|
const buttonConfirm = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-confirm') as HTMLButtonElement);
|
|
@@ -18040,6 +18047,17 @@ export class SfIEvents extends LitElement {
|
|
|
18040
18047
|
feedbackMessage.classList.remove('hide');
|
|
18041
18048
|
}
|
|
18042
18049
|
|
|
18050
|
+
if (feedbackSuspense != null) {
|
|
18051
|
+
if (feedbackSuspense.classList.contains('hide')) {
|
|
18052
|
+
feedbackSuspense.classList.remove('hide');
|
|
18053
|
+
}
|
|
18054
|
+
}
|
|
18055
|
+
if (feedbackSuspenseLabel != null) {
|
|
18056
|
+
if (feedbackSuspenseLabel.classList.contains('hide')) {
|
|
18057
|
+
feedbackSuspenseLabel.classList.remove('hide');
|
|
18058
|
+
}
|
|
18059
|
+
}
|
|
18060
|
+
|
|
18043
18061
|
if (buttonConfirm.classList.contains('hide')) {
|
|
18044
18062
|
buttonConfirm.classList.remove('hide');
|
|
18045
18063
|
}
|
|
@@ -18063,6 +18081,8 @@ export class SfIEvents extends LitElement {
|
|
|
18063
18081
|
(this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-cancel')?.addEventListener('click', () => {
|
|
18064
18082
|
|
|
18065
18083
|
const feedbackMessage = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-message') as HTMLTextAreaElement);
|
|
18084
|
+
const feedbackSuspense = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-suspense') as HTMLInputElement);
|
|
18085
|
+
const feedbackSuspenseLabel = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-suspense-label') as HTMLLabelElement);
|
|
18066
18086
|
const buttonFeedback = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback') as HTMLButtonElement);
|
|
18067
18087
|
const buttonCancel = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-cancel') as HTMLButtonElement);
|
|
18068
18088
|
const buttonConfirm = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-confirm') as HTMLButtonElement);
|
|
@@ -18073,6 +18093,17 @@ export class SfIEvents extends LitElement {
|
|
|
18073
18093
|
feedbackMessage.classList.add('hide');
|
|
18074
18094
|
}
|
|
18075
18095
|
|
|
18096
|
+
if (feedbackSuspense != null) {
|
|
18097
|
+
if (feedbackSuspense.classList.contains('hide')) {
|
|
18098
|
+
feedbackSuspense.classList.remove('hide');
|
|
18099
|
+
}
|
|
18100
|
+
}
|
|
18101
|
+
if (feedbackSuspenseLabel != null) {
|
|
18102
|
+
if (feedbackSuspenseLabel.classList.contains('hide')) {
|
|
18103
|
+
feedbackSuspenseLabel.classList.remove('hide');
|
|
18104
|
+
}
|
|
18105
|
+
}
|
|
18106
|
+
|
|
18076
18107
|
if (!buttonConfirm.classList.contains('hide')) {
|
|
18077
18108
|
buttonConfirm.classList.add('hide');
|
|
18078
18109
|
}
|
|
@@ -18090,6 +18121,7 @@ export class SfIEvents extends LitElement {
|
|
|
18090
18121
|
(this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-confirm')?.addEventListener('click', async () => {
|
|
18091
18122
|
|
|
18092
18123
|
const feedbackMessage = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-message') as HTMLTextAreaElement);
|
|
18124
|
+
const feedbackSuspense = ((this._SfDetailContainer as HTMLDivElement).querySelector('#feedback-suspense') as HTMLInputElement);
|
|
18093
18125
|
const buttonCancel = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-feedback-cancel') as HTMLButtonElement);
|
|
18094
18126
|
const buttonClose = ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-detail-close') as HTMLButtonElement);
|
|
18095
18127
|
console.log('sending feedback', event);
|
|
@@ -18097,6 +18129,10 @@ export class SfIEvents extends LitElement {
|
|
|
18097
18129
|
feedbackMessage.setAttribute('style', 'border:solid 2px ' + this.COLOR_REJECTED + ' !important');
|
|
18098
18130
|
} else {
|
|
18099
18131
|
feedbackMessage.setAttribute('style', 'border:');
|
|
18132
|
+
let feedbackSuspenseVal = false
|
|
18133
|
+
if(feedbackSuspense != null && feedbackSuspense.checked){
|
|
18134
|
+
feedbackSuspenseVal = true
|
|
18135
|
+
}
|
|
18100
18136
|
this.uploadTriggerMyEvent(
|
|
18101
18137
|
event.id + " - " + event.shortid,
|
|
18102
18138
|
feedbackMessage.value,
|
|
@@ -18104,7 +18140,15 @@ export class SfIEvents extends LitElement {
|
|
|
18104
18140
|
(event.entityname ?? "").replace(/ *\([^)]*\) */g, ""),
|
|
18105
18141
|
(event.locationname ?? "").replace(/ *\([^)]*\) */g, ""),
|
|
18106
18142
|
event.statute[0],
|
|
18107
|
-
event.subcategory[0]
|
|
18143
|
+
event.subcategory[0],
|
|
18144
|
+
{
|
|
18145
|
+
addtosuspense: feedbackSuspenseVal,
|
|
18146
|
+
mmddyyyy: mmddyyyy,
|
|
18147
|
+
eventid: event.id,
|
|
18148
|
+
entityid: entityId,
|
|
18149
|
+
locationid: locationId
|
|
18150
|
+
}
|
|
18151
|
+
);
|
|
18108
18152
|
// this.uploadTriggerMyEvent(
|
|
18109
18153
|
// event.id + ";" + event.shortid,
|
|
18110
18154
|
// feedbackMessage.value,
|
|
@@ -20879,7 +20923,7 @@ export class SfIEvents extends LitElement {
|
|
|
20879
20923
|
}
|
|
20880
20924
|
|
|
20881
20925
|
html += '<tr id="tablerow-' + i + '" class="tablerow">';
|
|
20882
|
-
html += '<td part="td-action" class="' + (jsonData[i].mapped ? 'chosen' : '') + '">';
|
|
20926
|
+
html += '<td part="td-action" class="left-sticky' + (jsonData[i].mapped ? ' chosen' : '') + '">';
|
|
20883
20927
|
html += '<div id="select-' + i + '" class="' + (!showSearch ? 'truncate' : '') + '"><input class="checkbox checkbox-' + i + ' checkbox-row" part="input-checkbox" type="checkbox" ' + mapped + ' ' + ((this.disableflagggrcresponse.toLowerCase() == "yes") ? 'disabled' : '') + '/></div>';
|
|
20884
20928
|
html += '</td>';
|
|
20885
20929
|
html += '<td part="td-action" class="' + (jsonData[i].mapped ? 'chosen' : '') + '">';
|
|
@@ -20968,7 +21012,8 @@ export class SfIEvents extends LitElement {
|
|
|
20968
21012
|
|
|
20969
21013
|
if (jsonData[i].cols.includes(JSON.parse(jsonData[i].data.cols)[j])) {
|
|
20970
21014
|
|
|
20971
|
-
html += '<td part="td-body" class="td-body ' + classBg + ' ' + (jsonData[i].mapped ? 'chosen' : '') + ' ' + (statuteColName.toLowerCase() == JSON.parse(jsonData[i].data.cols)[j].toLowerCase() ? 'left-sticky' : '') + '">';
|
|
21015
|
+
// html += '<td part="td-body" class="td-body ' + classBg + ' ' + (jsonData[i].mapped ? 'chosen' : '') + ' ' + (statuteColName.toLowerCase() == JSON.parse(jsonData[i].data.cols)[j].toLowerCase() ? 'left-sticky' : '') + '">';
|
|
21016
|
+
html += '<td part="td-body" class="td-body ' + classBg + ' ' + (jsonData[i].mapped ? 'chosen' : '') + '">';
|
|
20972
21017
|
html += '<div class="' + (!showSearch ? 'truncate' : '') + '">'
|
|
20973
21018
|
html += '<div class="d-flex align-center flex-wrap">';
|
|
20974
21019
|
|
|
@@ -26954,9 +26999,9 @@ export class SfIEvents extends LitElement {
|
|
|
26954
26999
|
|
|
26955
27000
|
}
|
|
26956
27001
|
|
|
26957
|
-
uploadTriggerMyEvent = async (complianceid: string, message: string, countryname: string, entityname: string, locationname: string, statute: string, subcategory: string) => {
|
|
27002
|
+
uploadTriggerMyEvent = async (complianceid: string, message: string, countryname: string, entityname: string, locationname: string, statute: string, subcategory: string, suspenseVal: any = {}) => {
|
|
26958
27003
|
|
|
26959
|
-
let url = "https://" + this.apiId + "/
|
|
27004
|
+
let url = "https://" + this.apiId + "/triggermyevent1";
|
|
26960
27005
|
|
|
26961
27006
|
const body = {
|
|
26962
27007
|
"projectid": this.projectId,
|
|
@@ -26968,7 +27013,8 @@ export class SfIEvents extends LitElement {
|
|
|
26968
27013
|
"entityname": entityname,
|
|
26969
27014
|
"locationname": locationname,
|
|
26970
27015
|
"statute": statute,
|
|
26971
|
-
"subcategory": subcategory
|
|
27016
|
+
"subcategory": subcategory,
|
|
27017
|
+
"suspenseval": suspenseVal
|
|
26972
27018
|
}
|
|
26973
27019
|
|
|
26974
27020
|
console.log('uploading...', body);
|