sf-i-events 1.0.928 → 1.0.930
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 +4 -4
- package/package.json +1 -1
- package/sf-i-events.js +25 -9
- package/src/sf-i-events.ts +25 -9
package/dev/index.html
CHANGED
|
@@ -808,7 +808,7 @@
|
|
|
808
808
|
</div>
|
|
809
809
|
|
|
810
810
|
</sf-i-events> -->
|
|
811
|
-
|
|
811
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
812
812
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
813
813
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
814
814
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -833,7 +833,7 @@
|
|
|
833
833
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
834
834
|
</div>
|
|
835
835
|
|
|
836
|
-
</sf-i-events>
|
|
836
|
+
</sf-i-events>
|
|
837
837
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
838
838
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
839
839
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
@@ -873,14 +873,14 @@
|
|
|
873
873
|
disablesignoff="yes" disableclientresponse="yes">
|
|
874
874
|
|
|
875
875
|
</sf-i-events> -->
|
|
876
|
-
<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"
|
|
877
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
878
|
contractstartdate="1/4/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
|
|
879
879
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
880
880
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile"
|
|
881
881
|
disablesignoff="yes" disableclientresponse="yes">
|
|
882
882
|
|
|
883
|
-
</sf-i-events>
|
|
883
|
+
</sf-i-events> -->
|
|
884
884
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
|
|
885
885
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
886
886
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -13775,10 +13775,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13775
13775
|
html += '<div class="d-flex justify-end w-100 mb-10">';
|
|
13776
13776
|
html += '<textarea part="input" id="feedback-message" class="w-100 mt-10 mb-10 hide" placeholder="Type your feedback message here..."></textarea>';
|
|
13777
13777
|
html += '</div>';
|
|
13778
|
-
if (this.myRole == this.TAB_FUNCTION_HEAD) {
|
|
13779
|
-
html += '<div class="d-flex justify-
|
|
13780
|
-
html += '<input id="feedback-suspense" class="
|
|
13781
|
-
html += '<label part="input-label" id="feedback-suspense-label" class="ml-10
|
|
13778
|
+
if (this.myRole == this.TAB_FUNCTION_HEAD || this.myRole == this.TAB_VIEWER) {
|
|
13779
|
+
html += '<div part="suspense-container" class="d-flex justify-start w-100">';
|
|
13780
|
+
html += '<input part="input-checkbox" id="feedback-suspense" class="hide" type="checkbox"/>';
|
|
13781
|
+
html += '<label part="input-checkbox-label" id="feedback-suspense-label" class="ml-10 hide">Mark Suspense</label>';
|
|
13782
13782
|
html += '</div>';
|
|
13783
13783
|
}
|
|
13784
13784
|
html += '<div class="d-flex w-100">';
|
|
@@ -14093,6 +14093,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14093
14093
|
locationid: locationId,
|
|
14094
14094
|
reporters: event.reporters,
|
|
14095
14095
|
approvers: event.approvers,
|
|
14096
|
+
functionheads: event.functionheads,
|
|
14097
|
+
obligationtitle: event.obligationtitle,
|
|
14098
|
+
obligation: event.obligation,
|
|
14096
14099
|
});
|
|
14097
14100
|
// this.uploadTriggerMyEvent(
|
|
14098
14101
|
// event.id + ";" + event.shortid,
|
|
@@ -16942,7 +16945,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16942
16945
|
html += '<div id="suspense-list-container" class="pb-10 pt-10 w-100">';
|
|
16943
16946
|
html += '<div class="d-flex justify-center align-center w-100 mt-20 scroll-x">';
|
|
16944
16947
|
if (Object.keys(_suspenseList).length === 0) {
|
|
16945
|
-
html += '<div part="
|
|
16948
|
+
html += '<div part="no-suspense-title-container" class="d-flex mb-20"><span part="no-suspense-title">No Suspense Items</span></div>';
|
|
16946
16949
|
}
|
|
16947
16950
|
else {
|
|
16948
16951
|
html += '<table>';
|
|
@@ -16950,13 +16953,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16950
16953
|
for (var j = 0; j < Object.keys(_suspenseList).length; j++) {
|
|
16951
16954
|
let uniqueKey = Object.keys(_suspenseList)[j];
|
|
16952
16955
|
console.log('uniqueKey', uniqueKey);
|
|
16953
|
-
let eventid = uniqueKey.split(';')[
|
|
16956
|
+
let eventid = uniqueKey.split(';')[2];
|
|
16954
16957
|
let suspenseObj = _suspenseList[uniqueKey];
|
|
16955
16958
|
console.log('suspenseObj', suspenseObj);
|
|
16956
16959
|
tableBodyHtml += '<tr>';
|
|
16957
16960
|
tableBodyHtml += ('<td class="td-body left-sticky" part="td-body-suspense"><button part="button-icon" id="button-icon-suspense-done-' + j + '" class="button-icon-suspense-done d-flex align-center"><span class="material-symbols-outlined">done</span> Done</button></td>');
|
|
16958
16961
|
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + eventid + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
16959
|
-
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + suspenseObj.
|
|
16962
|
+
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + suspenseObj.obligationtitle + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
16963
|
+
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + suspenseObj.obligation + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
16960
16964
|
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + suspenseObj.entityname + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
16961
16965
|
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + suspenseObj.locationname + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
16962
16966
|
let reporters = "";
|
|
@@ -16979,17 +16983,29 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16979
16983
|
}
|
|
16980
16984
|
}
|
|
16981
16985
|
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + approvers + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
16986
|
+
let functionheads = "";
|
|
16987
|
+
if (suspenseObj.functionheads != null && suspenseObj.functionheads.length > 0 && Array.isArray(suspenseObj.functionheads)) {
|
|
16988
|
+
for (let functionhead of suspenseObj.functionheads) {
|
|
16989
|
+
functionheads += functionhead.split(';')[0];
|
|
16990
|
+
if (suspenseObj.functionheads.indexOf(functionhead) < suspenseObj.functionheads.length - 1) {
|
|
16991
|
+
functionheads += ', ';
|
|
16992
|
+
}
|
|
16993
|
+
}
|
|
16994
|
+
}
|
|
16995
|
+
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + functionheads + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
16982
16996
|
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + ((_a = suspenseObj.message) !== null && _a !== void 0 ? _a : "") + '" minLength="30" lineSize="4"></sf-i-elastic-text></td>');
|
|
16983
16997
|
tableBodyHtml += '</tr>';
|
|
16984
16998
|
}
|
|
16985
16999
|
html += '<thead><tr>';
|
|
16986
17000
|
html += '<th class="td-body" part="td-body-suspense"><span part="td-head" style="padding-left: 0px !important"></span></th>';
|
|
16987
17001
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Complaince Id</span></th>';
|
|
16988
|
-
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">
|
|
17002
|
+
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Obligation Title</span></th>';
|
|
17003
|
+
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Obligation</span></th>';
|
|
16989
17004
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Entity</span></th>';
|
|
16990
17005
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Location</span></th>';
|
|
16991
17006
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Reporter</span></th>';
|
|
16992
17007
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Approver</span></th>';
|
|
17008
|
+
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Functionhead</span></th>';
|
|
16993
17009
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Message</span></th>';
|
|
16994
17010
|
html += '</tr></thead>';
|
|
16995
17011
|
html += tableBodyHtml;
|
|
@@ -22616,7 +22632,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22616
22632
|
this.deleteFromSuspense = async (suspenseKey, year) => {
|
|
22617
22633
|
let url = "https://" + this.apiId + "/deletefromsuspense";
|
|
22618
22634
|
//console.log('fetch calendar url', url);
|
|
22619
|
-
let urlBody = { "projectid": this.projectId, "eventid": suspenseKey.split(';')[
|
|
22635
|
+
let urlBody = { "projectid": this.projectId, "eventid": suspenseKey.split(';')[2], "entityid": suspenseKey.split(';')[0], "locationid": suspenseKey.split(';')[1], "year": year };
|
|
22620
22636
|
//console.log('urlbody', urlBody);
|
|
22621
22637
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22622
22638
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
package/src/sf-i-events.ts
CHANGED
|
@@ -17792,10 +17792,10 @@ export class SfIEvents extends LitElement {
|
|
|
17792
17792
|
html += '<div class="d-flex justify-end w-100 mb-10">'
|
|
17793
17793
|
html += '<textarea part="input" id="feedback-message" class="w-100 mt-10 mb-10 hide" placeholder="Type your feedback message here..."></textarea>'
|
|
17794
17794
|
html += '</div>'
|
|
17795
|
-
if (this.myRole == this.TAB_FUNCTION_HEAD) {
|
|
17796
|
-
html += '<div class="d-flex justify-
|
|
17797
|
-
html += '<input id="feedback-suspense" class="
|
|
17798
|
-
html += '<label part="input-label" id="feedback-suspense-label" class="ml-10
|
|
17795
|
+
if (this.myRole == this.TAB_FUNCTION_HEAD || this.myRole == this.TAB_VIEWER) {
|
|
17796
|
+
html += '<div part="suspense-container" class="d-flex justify-start w-100">'
|
|
17797
|
+
html += '<input part="input-checkbox" id="feedback-suspense" class="hide" type="checkbox"/>'
|
|
17798
|
+
html += '<label part="input-checkbox-label" id="feedback-suspense-label" class="ml-10 hide">Mark Suspense</label>'
|
|
17799
17799
|
html += '</div>'
|
|
17800
17800
|
}
|
|
17801
17801
|
html += '<div class="d-flex w-100">'
|
|
@@ -18177,6 +18177,9 @@ export class SfIEvents extends LitElement {
|
|
|
18177
18177
|
locationid: locationId,
|
|
18178
18178
|
reporters: event.reporters,
|
|
18179
18179
|
approvers: event.approvers,
|
|
18180
|
+
functionheads: event.functionheads,
|
|
18181
|
+
obligationtitle: event.obligationtitle,
|
|
18182
|
+
obligation: event.obligation,
|
|
18180
18183
|
}
|
|
18181
18184
|
);
|
|
18182
18185
|
// this.uploadTriggerMyEvent(
|
|
@@ -21733,7 +21736,7 @@ export class SfIEvents extends LitElement {
|
|
|
21733
21736
|
|
|
21734
21737
|
html += '<div class="d-flex justify-center align-center w-100 mt-20 scroll-x">';
|
|
21735
21738
|
if (Object.keys(_suspenseList).length === 0) {
|
|
21736
|
-
html += '<div part="
|
|
21739
|
+
html += '<div part="no-suspense-title-container" class="d-flex mb-20"><span part="no-suspense-title">No Suspense Items</span></div>';
|
|
21737
21740
|
} else {
|
|
21738
21741
|
html += '<table>';
|
|
21739
21742
|
let tableBodyHtml = ''
|
|
@@ -21741,14 +21744,15 @@ export class SfIEvents extends LitElement {
|
|
|
21741
21744
|
|
|
21742
21745
|
let uniqueKey = Object.keys(_suspenseList)[j];
|
|
21743
21746
|
console.log('uniqueKey', uniqueKey);
|
|
21744
|
-
let eventid = uniqueKey.split(';')[
|
|
21747
|
+
let eventid = uniqueKey.split(';')[2];
|
|
21745
21748
|
let suspenseObj = _suspenseList[uniqueKey];
|
|
21746
21749
|
console.log('suspenseObj', suspenseObj);
|
|
21747
21750
|
tableBodyHtml += '<tr>';
|
|
21748
21751
|
tableBodyHtml += ('<td class="td-body left-sticky" part="td-body-suspense"><button part="button-icon" id="button-icon-suspense-done-' + j + '" class="button-icon-suspense-done d-flex align-center"><span class="material-symbols-outlined">done</span> Done</button></td>');
|
|
21749
21752
|
|
|
21750
21753
|
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + eventid + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
21751
|
-
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + suspenseObj.
|
|
21754
|
+
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + suspenseObj.obligationtitle + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
21755
|
+
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + suspenseObj.obligation + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
21752
21756
|
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + suspenseObj.entityname + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
21753
21757
|
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + suspenseObj.locationname + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
21754
21758
|
let reporters = ""
|
|
@@ -21771,6 +21775,16 @@ export class SfIEvents extends LitElement {
|
|
|
21771
21775
|
}
|
|
21772
21776
|
}
|
|
21773
21777
|
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + approvers + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
21778
|
+
let functionheads = ""
|
|
21779
|
+
if (suspenseObj.functionheads != null && suspenseObj.functionheads.length > 0 && Array.isArray(suspenseObj.functionheads)) {
|
|
21780
|
+
for (let functionhead of suspenseObj.functionheads) {
|
|
21781
|
+
functionheads += functionhead.split(';')[0]
|
|
21782
|
+
if (suspenseObj.functionheads.indexOf(functionhead) < suspenseObj.functionheads.length - 1) {
|
|
21783
|
+
functionheads += ', '
|
|
21784
|
+
}
|
|
21785
|
+
}
|
|
21786
|
+
}
|
|
21787
|
+
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + functionheads + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
21774
21788
|
tableBodyHtml += ('<td class="td-body" part="td-body-suspense"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + (suspenseObj.message ?? "") + '" minLength="30" lineSize="4"></sf-i-elastic-text></td>');
|
|
21775
21789
|
tableBodyHtml += '</tr>';
|
|
21776
21790
|
}
|
|
@@ -21779,11 +21793,13 @@ export class SfIEvents extends LitElement {
|
|
|
21779
21793
|
|
|
21780
21794
|
|
|
21781
21795
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Complaince Id</span></th>'
|
|
21782
|
-
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">
|
|
21796
|
+
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Obligation Title</span></th>'
|
|
21797
|
+
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Obligation</span></th>'
|
|
21783
21798
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Entity</span></th>'
|
|
21784
21799
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Location</span></th>'
|
|
21785
21800
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Reporter</span></th>'
|
|
21786
21801
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Approver</span></th>'
|
|
21802
|
+
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Functionhead</span></th>'
|
|
21787
21803
|
html += '<th class="td-body" part="td-body-suspense"><div class="d-flex align-start"><span part="td-head">Message</span></th>'
|
|
21788
21804
|
|
|
21789
21805
|
html += '</tr></thead>';
|
|
@@ -28839,7 +28855,7 @@ export class SfIEvents extends LitElement {
|
|
|
28839
28855
|
let url = "https://" + this.apiId + "/deletefromsuspense";
|
|
28840
28856
|
|
|
28841
28857
|
//console.log('fetch calendar url', url);
|
|
28842
|
-
let urlBody: any = { "projectid": this.projectId, "eventid": suspenseKey.split(';')[
|
|
28858
|
+
let urlBody: any = { "projectid": this.projectId, "eventid": suspenseKey.split(';')[2], "entityid": suspenseKey.split(';')[0], "locationid": suspenseKey.split(';')[1], "year": year };
|
|
28843
28859
|
|
|
28844
28860
|
//console.log('urlbody', urlBody);
|
|
28845
28861
|
|