sf-i-events 1.0.884 → 1.0.886
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 +47 -33
- package/src/sf-i-events.ts +33 -20
package/dev/index.html
CHANGED
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
</div>
|
|
758
758
|
|
|
759
759
|
</sf-i-events> -->
|
|
760
|
-
|
|
760
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
761
761
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
762
762
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
763
763
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -785,7 +785,7 @@
|
|
|
785
785
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
786
786
|
</div>
|
|
787
787
|
|
|
788
|
-
</sf-i-events>
|
|
788
|
+
</sf-i-events>
|
|
789
789
|
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
790
790
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
791
791
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
@@ -911,13 +911,13 @@
|
|
|
911
911
|
disablesignoff="yes" disableclientresponse="yes">
|
|
912
912
|
|
|
913
913
|
</sf-i-events> -->
|
|
914
|
-
<sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}"
|
|
914
|
+
<!-- <sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}"
|
|
915
915
|
contractstartdate="01/01/2025" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
|
|
916
916
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
917
917
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile"
|
|
918
918
|
disablesignoff="yes" disableclientresponse="yes">
|
|
919
919
|
|
|
920
|
-
</sf-i-events>
|
|
920
|
+
</sf-i-events> -->
|
|
921
921
|
<script>
|
|
922
922
|
|
|
923
923
|
function setCookie(name, value, days) {
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -2452,16 +2452,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2452
2452
|
this.renderStatisticsFiltersTableRow = (index, filterUser = false) => {
|
|
2453
2453
|
var html = '';
|
|
2454
2454
|
html += '<tr class="tablerow">';
|
|
2455
|
-
html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center">FILTER_CRITERIA_NAME</div><div>DASHBOARD_FILTER_NAME</div>';
|
|
2455
|
+
html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center">FILTER_CRITERIA_NAME</div><div part="td-head-click" id="filter-' + index + '">DASHBOARD_FILTER_NAME</div>';
|
|
2456
2456
|
if (filterUser) {
|
|
2457
2457
|
html += '<div part="td-head" class="pl-0-imp w-100 d-flex align-center">Last Access</div><div>DASHBOARD_LAST_ACTIVE</div><div part="td-head" class="pl-0-imp w-100 d-flex align-center">Last Action</div><div>DASHBOARD_LAST_ACTION</div>';
|
|
2458
2458
|
}
|
|
2459
2459
|
html += '</div></td>';
|
|
2460
|
-
html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" id="filter-not-started-' + index + '" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-icons color-not-started">schedule</span> Not Started</div><div>DASHBOARD_NOT_STARTED</div></div></td>';
|
|
2461
|
-
html += '<td part="td-body" id="filter-pending-approval-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-pending">pending</span> Pending Approval</div><div>DASHBOARD_PENDING_APPROVAL</div></div></td>';
|
|
2462
|
-
html += '<td part="td-body" id="filter-rejected-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-rejected">block</span> Rejected</div><div>DASHBOARD_REJECTED</div></div></td>';
|
|
2463
|
-
html += '<td part="td-body" id="filter-approved-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-done">check_circle</span> Approved</div><div>DASHBOARD_APPROVED</div></div></td>';
|
|
2464
|
-
html += '<td part="td-body" id="filter-total-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center">Total</div><div>DASHBOARD_TOTAL</div></div></td>';
|
|
2460
|
+
html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head-click" id="filter-not-started-' + index + '" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-icons color-not-started">schedule</span> Not Started</div><div>DASHBOARD_NOT_STARTED</div></div></td>';
|
|
2461
|
+
html += '<td part="td-body" id="filter-pending-approval-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head-click" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-pending">pending</span> Pending Approval</div><div>DASHBOARD_PENDING_APPROVAL</div></div></td>';
|
|
2462
|
+
html += '<td part="td-body" id="filter-rejected-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head-click" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-rejected">block</span> Rejected</div><div>DASHBOARD_REJECTED</div></div></td>';
|
|
2463
|
+
html += '<td part="td-body" id="filter-approved-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head-click" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-done">check_circle</span> Approved</div><div>DASHBOARD_APPROVED</div></div></td>';
|
|
2464
|
+
html += '<td part="td-body" id="filter-total-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head-click" class="pl-0-imp w-100 d-flex align-center">Total</div><div>DASHBOARD_TOTAL</div></div></td>';
|
|
2465
2465
|
html += '</tr>';
|
|
2466
2466
|
return html;
|
|
2467
2467
|
};
|
|
@@ -2888,7 +2888,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2888
2888
|
};
|
|
2889
2889
|
//(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton)
|
|
2890
2890
|
this.renderEvents = (_firstDay, _endDay, iInit, iLast, showGraph, index, month, period, firstDate = null, parametersTitle, showBackgroundButton, fromDrilldown = false) => {
|
|
2891
|
-
var _a, _b, _c, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44;
|
|
2891
|
+
var _a, _b, _c, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45;
|
|
2892
2892
|
var total = 0, notStarted = 0, approved = 0, pendingApproval = 0, rejected = 0, inTime = 0, pastDueDate = 0, lateExecuted = 0, lateApproved = 0, lateReported = 0, scheduled = 0, partiallyComplied = 0, notComplied = 0, complied = 0, compliedWithGaps = 0, reportedNonCompliance = 0, active = 0, aboutToExpire = 0, expired = 0, terminated = 0;
|
|
2893
2893
|
var html = '';
|
|
2894
2894
|
this.selectedItemIds = [];
|
|
@@ -3058,14 +3058,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3058
3058
|
csvValues += ('"' + ((((_p = ((_o = this.events[mmdd][j]["functionheads"]) !== null && _o !== void 0 ? _o : [])[0]) !== null && _p !== void 0 ? _p : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3059
3059
|
csvValues += ('"' + (((_u = (_t = (_s = (_r = (_q = this.events) === null || _q === void 0 ? void 0 : _q[mmdd]) === null || _r === void 0 ? void 0 : _r[j]) === null || _s === void 0 ? void 0 : _s.statute) === null || _t === void 0 ? void 0 : _t.state) !== null && _u !== void 0 ? _u : "") + '",'));
|
|
3060
3060
|
csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
|
|
3061
|
-
csvValues += ('"' + ((_z = (_y = (_x = (_w = (_v = this.events) === null || _v === void 0 ? void 0 : _v[mmdd]) === null || _w === void 0 ? void 0 : _w[j]) === null || _x === void 0 ? void 0 : _x.complianceobj) === null || _y === void 0 ? void 0 : _y.category) !== null && _z !== void 0 ? _z : "" + '",'));
|
|
3061
|
+
csvValues += ('"' + (((_z = (_y = (_x = (_w = (_v = this.events) === null || _v === void 0 ? void 0 : _v[mmdd]) === null || _w === void 0 ? void 0 : _w[j]) === null || _x === void 0 ? void 0 : _x.complianceobj) === null || _y === void 0 ? void 0 : _y.category) !== null && _z !== void 0 ? _z : "") + '",'));
|
|
3062
3062
|
csvValues += ('"' + (this.events[mmdd][j]["subcategory"] + '",'));
|
|
3063
|
-
csvValues += ('"' + (((_3 = (_2 = (_1 = (_0 = this.events) === null || _0 === void 0 ? void 0 : _0[mmdd]) === null || _1 === void 0 ? void 0 : _1[j]) === null || _2 === void 0 ? void 0 : _2.statute) === null || _3 === void 0 ? void 0 : _3.name) + '",'));
|
|
3063
|
+
csvValues += ('"' + (((_4 = (_3 = (_2 = (_1 = (_0 = this.events) === null || _0 === void 0 ? void 0 : _0[mmdd]) === null || _1 === void 0 ? void 0 : _1[j]) === null || _2 === void 0 ? void 0 : _2.statute) === null || _3 === void 0 ? void 0 : _3.name) !== null && _4 !== void 0 ? _4 : "") + '",'));
|
|
3064
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtype"] + "").replace(/"/g, "") + '",'));
|
|
3064
3065
|
csvValues += ('"' + ((this.events[mmdd][j]["risk"] + "").replace(/"/g, "") + '",'));
|
|
3065
3066
|
csvValues += ('"' + ((this.events[mmdd][j]["riskarea"] + "").replace(/"/g, "") + '",'));
|
|
3066
3067
|
csvValues += ('"' + ((this.events[mmdd][j]["frequency"] + "").replace(/"/g, "") + '",'));
|
|
3067
|
-
csvValues += ('"' + ((((_8 = (_7 = (_6 = (_5 =
|
|
3068
|
-
csvValues += ('"' + ((this.events[mmdd][j]["obligationtype"] + "").replace(/"/g, "") + '",'));
|
|
3068
|
+
csvValues += ('"' + ((((_9 = (_8 = (_7 = (_6 = (_5 = this.events) === null || _5 === void 0 ? void 0 : _5[mmdd]) === null || _6 === void 0 ? void 0 : _6[j]) === null || _7 === void 0 ? void 0 : _7.complianceobj) === null || _8 === void 0 ? void 0 : _8.subfrequency) !== null && _9 !== void 0 ? _9 : "") + "").replace(/"/g, "") + '",'));
|
|
3069
3069
|
csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
|
|
3070
3070
|
csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
|
|
3071
3071
|
csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
|
|
@@ -3076,16 +3076,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3076
3076
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
3077
3077
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
3078
3078
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
|
|
3079
|
-
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + ((_13 = (_12 = (_11 = (_10 =
|
|
3079
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + ((_14 = (_13 = (_12 = (_11 = (_10 = this.events) === null || _10 === void 0 ? void 0 : _10[mmdd]) === null || _11 === void 0 ? void 0 : _11[j]) === null || _12 === void 0 ? void 0 : _12.statute) === null || _13 === void 0 ? void 0 : _13.state) !== null && _14 !== void 0 ? _14 : "") + '</td>'
|
|
3080
3080
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["jurisdiction"] + '</td>'
|
|
3081
|
-
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + ((_18 = (_17 = (_16 = (_15 =
|
|
3081
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + ((_19 = (_18 = (_17 = (_16 = (_15 = this.events) === null || _15 === void 0 ? void 0 : _15[mmdd]) === null || _16 === void 0 ? void 0 : _16[j]) === null || _17 === void 0 ? void 0 : _17.complianceobj) === null || _18 === void 0 ? void 0 : _18.category) !== null && _19 !== void 0 ? _19 : "") + '</td>'
|
|
3082
3082
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["subcategory"] + '</td>'
|
|
3083
|
-
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + ((_23 = (_22 = (_21 = (_20 =
|
|
3083
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + ((_24 = (_23 = (_22 = (_21 = (_20 = this.events) === null || _20 === void 0 ? void 0 : _20[mmdd]) === null || _21 === void 0 ? void 0 : _21[j]) === null || _22 === void 0 ? void 0 : _22.statute) === null || _23 === void 0 ? void 0 : _23.name) !== null && _24 !== void 0 ? _24 : "") + '</td>'
|
|
3084
3084
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["obligationtype"] + '</td>'
|
|
3085
3085
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["risk"] + '</td>'
|
|
3086
3086
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["riskarea"] + '</td>'
|
|
3087
3087
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["frequency"] + '</td>'
|
|
3088
|
-
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (((_28 = (_27 = (_26 = (_25 =
|
|
3088
|
+
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (((_29 = (_28 = (_27 = (_26 = (_25 = this.events) === null || _25 === void 0 ? void 0 : _25[mmdd]) === null || _26 === void 0 ? void 0 : _26[j]) === null || _27 === void 0 ? void 0 : _27.complianceobj) === null || _28 === void 0 ? void 0 : _28.subfrequency) !== null && _29 !== void 0 ? _29 : "") + "").replace(/"/g, "") + '</td>'
|
|
3089
3089
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["duedate"] + '</td>'
|
|
3090
3090
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide text-center status-format">' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '</td>'
|
|
3091
3091
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide status-format">' + this.getGraphParam(this.events[mmdd][j]) + '</td>'
|
|
@@ -3099,9 +3099,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3099
3099
|
csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3100
3100
|
csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3101
3101
|
csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3102
|
-
csvValues += ('"' + ((((
|
|
3103
|
-
csvValues += ('"' + ((((
|
|
3104
|
-
csvValues += ('"' + ((((
|
|
3102
|
+
csvValues += ('"' + ((((_31 = ((_30 = this.events[mmdd][j]["reporters"]) !== null && _30 !== void 0 ? _30 : [])[0]) !== null && _31 !== void 0 ? _31 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3103
|
+
csvValues += ('"' + ((((_33 = ((_32 = this.events[mmdd][j]["approvers"]) !== null && _32 !== void 0 ? _32 : [])[0]) !== null && _33 !== void 0 ? _33 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3104
|
+
csvValues += ('"' + ((((_35 = ((_34 = this.events[mmdd][j]["functionheads"]) !== null && _34 !== void 0 ? _34 : [])[0]) !== null && _35 !== void 0 ? _35 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3105
3105
|
csvValues += ('"' + (this.events[mmdd][j]["lastcheckeddate"] + '",'));
|
|
3106
3106
|
csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
|
|
3107
3107
|
csvValues += ('"' + ((this.events[mmdd][j]["terminated"] ? "Yes" : "No").replace(/"/g, "") + '",'));
|
|
@@ -3127,10 +3127,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3127
3127
|
csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3128
3128
|
csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3129
3129
|
csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3130
|
-
csvValues += ('"' + ((((
|
|
3131
|
-
csvValues += ('"' + ((((
|
|
3132
|
-
csvValues += ('"' + ((((
|
|
3133
|
-
csvValues += ('"' + ((((
|
|
3130
|
+
csvValues += ('"' + ((((_37 = ((_36 = this.events[mmdd][j]["functions"]) !== null && _36 !== void 0 ? _36 : [])[0]) !== null && _37 !== void 0 ? _37 : "").split(';')[0] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
3131
|
+
csvValues += ('"' + ((((_39 = ((_38 = this.events[mmdd][j]["reporters"]) !== null && _38 !== void 0 ? _38 : [])[0]) !== null && _39 !== void 0 ? _39 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3132
|
+
csvValues += ('"' + ((((_41 = ((_40 = this.events[mmdd][j]["approvers"]) !== null && _40 !== void 0 ? _40 : [])[0]) !== null && _41 !== void 0 ? _41 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3133
|
+
csvValues += ('"' + ((((_43 = ((_42 = this.events[mmdd][j]["functionheads"]) !== null && _42 !== void 0 ? _42 : [])[0]) !== null && _43 !== void 0 ? _43 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
3134
3134
|
csvValues += ('"' + (this.events[mmdd][j]["state"] + '",'));
|
|
3135
3135
|
csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
|
|
3136
3136
|
csvValues += ('"' + (this.events[mmdd][j]["category"] + '",'));
|
|
@@ -3199,7 +3199,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3199
3199
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.events[mmdd][j]["obligationtitle"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
3200
3200
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
3201
3201
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
|
|
3202
|
-
for (let document of (
|
|
3202
|
+
for (let document of (_44 = this.events[mmdd][j].contractdocuments) !== null && _44 !== void 0 ? _44 : []) {
|
|
3203
3203
|
htmlSummaryValues += `<sf-i-uploader class="summary-report-doc" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": document.key, "ext": document.ext }]).replace(/"/g, '"')}" projectid="${this.projectId} " extract="no" mode="view" maximize="yes" hidepreview="yes"></sf-i-uploader><br />`;
|
|
3204
3204
|
}
|
|
3205
3205
|
htmlSummaryValues += '</td></tr>';
|
|
@@ -3209,7 +3209,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3209
3209
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.events[mmdd][j]["obligationtitle"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
3210
3210
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text text="' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
|
|
3211
3211
|
+ '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
|
|
3212
|
-
for (let document of (
|
|
3212
|
+
for (let document of (_45 = this.events[mmdd][j].licensedocuments) !== null && _45 !== void 0 ? _45 : []) {
|
|
3213
3213
|
htmlSummaryValues += `<sf-i-uploader class="summary-report-doc" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" prepopulatedInputArr="${JSON.stringify([{ "key": document.key, "ext": document.ext }]).replace(/"/g, '"')}" projectid="${this.projectId} " extract="no" mode="view" maximize="yes" hidepreview="yes"></sf-i-uploader><br />`;
|
|
3214
3214
|
}
|
|
3215
3215
|
htmlSummaryValues += '</td></tr>';
|
|
@@ -5179,6 +5179,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
5179
5179
|
let filterVal = sortedFilters[rowIndex];
|
|
5180
5180
|
let filterValue = filterVal.split(';')[1];
|
|
5181
5181
|
let filterName = filterVal.split(';')[0].replace(/\([^)]*\)/g, "");
|
|
5182
|
+
let filterNameDiv = row.querySelector('#filter-' + rowIndex);
|
|
5183
|
+
filterNameDiv.addEventListener('click', () => {
|
|
5184
|
+
console.log('clicked name filter', rowIndex);
|
|
5185
|
+
console.log('filter', filtercriteria, filterValue, filterName);
|
|
5186
|
+
this.renderStatisticsDetails(filtercriteria, filterValue, filterName, "");
|
|
5187
|
+
});
|
|
5182
5188
|
let notStartedDiv = row.querySelector('#filter-not-started-' + rowIndex);
|
|
5183
5189
|
notStartedDiv.addEventListener('click', () => {
|
|
5184
5190
|
console.log('clicked not started filter', rowIndex);
|
|
@@ -5298,7 +5304,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
5298
5304
|
if (sortedSubfilters.length > 1) {
|
|
5299
5305
|
let option = new Option();
|
|
5300
5306
|
option.value = "";
|
|
5301
|
-
option.innerHTML = "
|
|
5307
|
+
option.innerHTML = "None";
|
|
5302
5308
|
selectSubfilterCriteria.add(option);
|
|
5303
5309
|
}
|
|
5304
5310
|
for (let subfilter of sortedSubfilters) {
|
|
@@ -9437,12 +9443,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9437
9443
|
filterString = `${filter} - ${filtervalue}`;
|
|
9438
9444
|
}
|
|
9439
9445
|
else if (filter == "function") {
|
|
9440
|
-
await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, this.userProfileId, rolestr, this.entityId,
|
|
9446
|
+
await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, this.userProfileId, rolestr, this.entityId, "", "", filterid, this.functionId);
|
|
9441
9447
|
// filterString = `tagid="${filterid}" selectedcriteria="Tag - ${filtervalue}"`;
|
|
9442
9448
|
filterString = `Function - ${filtervalue}`;
|
|
9443
9449
|
}
|
|
9444
9450
|
else if (filter == "location") {
|
|
9445
|
-
await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, this.userProfileId, rolestr, this.entityId,
|
|
9451
|
+
await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, this.userProfileId, rolestr, this.entityId, "", filterid, this.tagId, this.functionId);
|
|
9446
9452
|
// filterString = `locationid="${filterid}" selectedcriteria="Location - ${filtervalue}"`;
|
|
9447
9453
|
filterString = `Location - ${filtervalue}`;
|
|
9448
9454
|
}
|
|
@@ -21723,25 +21729,33 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
21723
21729
|
};
|
|
21724
21730
|
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) => {
|
|
21725
21731
|
let path = "", view = "";
|
|
21726
|
-
if (
|
|
21732
|
+
if (tagid != null && tagid != "") {
|
|
21727
21733
|
view = "tag";
|
|
21728
21734
|
}
|
|
21729
|
-
else if (
|
|
21730
|
-
view = "
|
|
21735
|
+
else if (countryid != null && countryid != "") {
|
|
21736
|
+
view = "tag";
|
|
21731
21737
|
}
|
|
21732
|
-
else if (
|
|
21733
|
-
view = "
|
|
21738
|
+
else if (locationid != null && locationid != "") {
|
|
21739
|
+
view = "tag";
|
|
21734
21740
|
}
|
|
21735
21741
|
else {
|
|
21736
21742
|
view = "entity";
|
|
21737
21743
|
}
|
|
21738
21744
|
path = "getallcountryevents";
|
|
21739
21745
|
let url = "https://" + this.apiId + "/" + path;
|
|
21746
|
+
let temptagid = tagid;
|
|
21747
|
+
if (temptagid == "" && locationid != "") {
|
|
21748
|
+
temptagid = locationid;
|
|
21749
|
+
}
|
|
21750
|
+
else if (temptagid == "" && userprofileid != this.userProfileId) {
|
|
21751
|
+
temptagid = "allevents";
|
|
21752
|
+
}
|
|
21740
21753
|
//console.log('fetch calendar url', url);
|
|
21741
|
-
let urlBody = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid":
|
|
21754
|
+
let urlBody = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid": "", "tagid": temptagid, "adhoc": "false", "exclusivestartkey": 0, "sdate": startDate, "edate": endDate, "view": view, "year": year, "list": list, "month": month };
|
|
21742
21755
|
if (searchString.length > 0) {
|
|
21743
21756
|
urlBody["searchstring"] = searchString;
|
|
21744
21757
|
}
|
|
21758
|
+
console.log('fetchOnlyYearlyUserCalendar', `TagId:${this.tagId}, CountryId:${this.countryId}, LocationId:${this.locationId}, EntityId:${this.entityId}, FunctionId:${this.functionId}, View:${view}, urlBody:`, urlBody);
|
|
21745
21759
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
21746
21760
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
21747
21761
|
this._SfLoader.innerHTML = '';
|
package/src/sf-i-events.ts
CHANGED
|
@@ -4635,16 +4635,16 @@ export class SfIEvents extends LitElement {
|
|
|
4635
4635
|
|
|
4636
4636
|
var html = '';
|
|
4637
4637
|
html += '<tr class="tablerow">'
|
|
4638
|
-
html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center">FILTER_CRITERIA_NAME</div><div>DASHBOARD_FILTER_NAME</div>'
|
|
4638
|
+
html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center">FILTER_CRITERIA_NAME</div><div part="td-head-click" id="filter-' + index + '">DASHBOARD_FILTER_NAME</div>'
|
|
4639
4639
|
if (filterUser) {
|
|
4640
4640
|
html += '<div part="td-head" class="pl-0-imp w-100 d-flex align-center">Last Access</div><div>DASHBOARD_LAST_ACTIVE</div><div part="td-head" class="pl-0-imp w-100 d-flex align-center">Last Action</div><div>DASHBOARD_LAST_ACTION</div>'
|
|
4641
4641
|
}
|
|
4642
4642
|
html += '</div></td>'
|
|
4643
|
-
html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" id="filter-not-started-' + index + '" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-icons color-not-started">schedule</span> Not Started</div><div>DASHBOARD_NOT_STARTED</div></div></td>'
|
|
4644
|
-
html += '<td part="td-body" id="filter-pending-approval-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-pending">pending</span> Pending Approval</div><div>DASHBOARD_PENDING_APPROVAL</div></div></td>'
|
|
4645
|
-
html += '<td part="td-body" id="filter-rejected-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-rejected">block</span> Rejected</div><div>DASHBOARD_REJECTED</div></div></td>'
|
|
4646
|
-
html += '<td part="td-body" id="filter-approved-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-done">check_circle</span> Approved</div><div>DASHBOARD_APPROVED</div></div></td>'
|
|
4647
|
-
html += '<td part="td-body" id="filter-total-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head" class="pl-0-imp w-100 d-flex align-center">Total</div><div>DASHBOARD_TOTAL</div></div></td>'
|
|
4643
|
+
html += '<td part="td-body" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head-click" id="filter-not-started-' + index + '" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-icons color-not-started">schedule</span> Not Started</div><div>DASHBOARD_NOT_STARTED</div></div></td>'
|
|
4644
|
+
html += '<td part="td-body" id="filter-pending-approval-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head-click" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-pending">pending</span> Pending Approval</div><div>DASHBOARD_PENDING_APPROVAL</div></div></td>'
|
|
4645
|
+
html += '<td part="td-body" id="filter-rejected-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head-click" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-rejected">block</span> Rejected</div><div>DASHBOARD_REJECTED</div></div></td>'
|
|
4646
|
+
html += '<td part="td-body" id="filter-approved-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head-click" class="pl-0-imp w-100 d-flex align-center"><span class="small-icon material-symbols-outlined color-done">check_circle</span> Approved</div><div>DASHBOARD_APPROVED</div></div></td>'
|
|
4647
|
+
html += '<td part="td-body" id="filter-total-' + index + '" class="td-body TD_BODY_CLASS"><div class="d-flex align-center flex-wrap"><div part="td-head-click" class="pl-0-imp w-100 d-flex align-center">Total</div><div>DASHBOARD_TOTAL</div></div></td>'
|
|
4648
4648
|
html += '</tr>';
|
|
4649
4649
|
|
|
4650
4650
|
return html;
|
|
@@ -5327,14 +5327,14 @@ export class SfIEvents extends LitElement {
|
|
|
5327
5327
|
csvValues += ('"' + ((((this.events[mmdd][j]["functionheads"] ?? [])[0] ?? "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
5328
5328
|
csvValues += ('"' + ((this.events?.[mmdd]?.[j]?.statute?.state ?? "") + '",'));
|
|
5329
5329
|
csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
|
|
5330
|
-
csvValues += ('"' + (this.events?.[mmdd]?.[j]?.complianceobj?.category ?? "" + '",'));
|
|
5330
|
+
csvValues += ('"' + ((this.events?.[mmdd]?.[j]?.complianceobj?.category ?? "") + '",'));
|
|
5331
5331
|
csvValues += ('"' + (this.events[mmdd][j]["subcategory"] + '",'));
|
|
5332
|
-
csvValues += ('"' + (this.events?.[mmdd]?.[j]?.statute?.name + '",'));
|
|
5332
|
+
csvValues += ('"' + ((this.events?.[mmdd]?.[j]?.statute?.name ?? "") + '",'));
|
|
5333
|
+
csvValues += ('"' + ((this.events[mmdd][j]["obligationtype"] + "").replace(/"/g, "") + '",'));
|
|
5333
5334
|
csvValues += ('"' + ((this.events[mmdd][j]["risk"] + "").replace(/"/g, "") + '",'));
|
|
5334
5335
|
csvValues += ('"' + ((this.events[mmdd][j]["riskarea"] + "").replace(/"/g, "") + '",'));
|
|
5335
5336
|
csvValues += ('"' + ((this.events[mmdd][j]["frequency"] + "").replace(/"/g, "") + '",'));
|
|
5336
5337
|
csvValues += ('"' + (((this.events?.[mmdd]?.[j]?.complianceobj?.subfrequency ?? "") + "").replace(/"/g, "") + '",'));
|
|
5337
|
-
csvValues += ('"' + ((this.events[mmdd][j]["obligationtype"] + "").replace(/"/g, "") + '",'));
|
|
5338
5338
|
csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
|
|
5339
5339
|
csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
|
|
5340
5340
|
csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
|
|
@@ -7722,6 +7722,12 @@ export class SfIEvents extends LitElement {
|
|
|
7722
7722
|
let filterValue = filterVal.split(';')[1]
|
|
7723
7723
|
let filterName = filterVal.split(';')[0].replace(/\([^)]*\)/g, "")
|
|
7724
7724
|
|
|
7725
|
+
let filterNameDiv = row.querySelector('#filter-' + rowIndex) as HTMLDivElement
|
|
7726
|
+
filterNameDiv.addEventListener('click', () => {
|
|
7727
|
+
console.log('clicked name filter', rowIndex)
|
|
7728
|
+
console.log('filter', filtercriteria, filterValue, filterName)
|
|
7729
|
+
this.renderStatisticsDetails(filtercriteria, filterValue, filterName, "")
|
|
7730
|
+
})
|
|
7725
7731
|
let notStartedDiv = row.querySelector('#filter-not-started-' + rowIndex) as HTMLDivElement
|
|
7726
7732
|
notStartedDiv.addEventListener('click', () => {
|
|
7727
7733
|
console.log('clicked not started filter', rowIndex)
|
|
@@ -7845,7 +7851,7 @@ export class SfIEvents extends LitElement {
|
|
|
7845
7851
|
if (sortedSubfilters.length > 1) {
|
|
7846
7852
|
let option = new Option()
|
|
7847
7853
|
option.value = "";
|
|
7848
|
-
option.innerHTML = "
|
|
7854
|
+
option.innerHTML = "None";
|
|
7849
7855
|
selectSubfilterCriteria.add(option)
|
|
7850
7856
|
}
|
|
7851
7857
|
for (let subfilter of sortedSubfilters) {
|
|
@@ -12887,6 +12893,7 @@ export class SfIEvents extends LitElement {
|
|
|
12887
12893
|
// let username = this.userName;
|
|
12888
12894
|
let filterString = `countryid="${this.countryId}" locationid="${this.locationId}" entityid="${this.entityId}" tagid="${this.tagId}" selectedcriteria="${this.selectedCriteria}"`;
|
|
12889
12895
|
let rolestr = "viewer"
|
|
12896
|
+
;
|
|
12890
12897
|
if (filter == "reporter" || filter == "approver" || filter == "functionhead") {
|
|
12891
12898
|
userid = filterid;
|
|
12892
12899
|
// username = filtervalue;
|
|
@@ -12894,11 +12901,11 @@ export class SfIEvents extends LitElement {
|
|
|
12894
12901
|
await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, userid, rolestr, this.entityId, this.countryId, this.locationId, this.tagId, this.functionId);
|
|
12895
12902
|
filterString = `${filter} - ${filtervalue}`;
|
|
12896
12903
|
} else if (filter == "function") {
|
|
12897
|
-
await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, this.userProfileId, rolestr, this.entityId,
|
|
12904
|
+
await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, this.userProfileId, rolestr, this.entityId, "", "", filterid, this.functionId);
|
|
12898
12905
|
// filterString = `tagid="${filterid}" selectedcriteria="Tag - ${filtervalue}"`;
|
|
12899
12906
|
filterString = `Function - ${filtervalue}`;
|
|
12900
12907
|
} else if (filter == "location") {
|
|
12901
|
-
await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, this.userProfileId, rolestr, this.entityId,
|
|
12908
|
+
await this.fetchOnlyYearlyUserCalendar(this.sdate, this.edate, "", "yes", "00", this.calendarStartYYYY, this.userProfileId, rolestr, this.entityId, "", filterid, this.tagId, this.functionId);
|
|
12902
12909
|
// filterString = `locationid="${filterid}" selectedcriteria="Location - ${filtervalue}"`;
|
|
12903
12910
|
filterString = `Location - ${filtervalue}`;
|
|
12904
12911
|
}
|
|
@@ -27949,27 +27956,33 @@ export class SfIEvents extends LitElement {
|
|
|
27949
27956
|
fetchOnlyYearlyUserCalendar = async (startDate: string = "", endDate: string = "", searchString: string = "", list: string = "yes", month: string = "00", year: string = this.calendarStartYYYY, userprofileid: string = this.userProfileId, userrole: string = this.myRole, entityid = this.entityId, countryid = this.countryId, locationid = this.locationId, tagid = this.tagId, functionid = this.functionId) => {
|
|
27950
27957
|
|
|
27951
27958
|
let path = "", view = "";
|
|
27952
|
-
if (
|
|
27959
|
+
if (tagid != null && tagid != "") {
|
|
27960
|
+
view = "tag";
|
|
27961
|
+
} else if (countryid != null && countryid != "") {
|
|
27962
|
+
view = "tag";
|
|
27963
|
+
} else if (locationid != null && locationid != "") {
|
|
27953
27964
|
view = "tag";
|
|
27954
|
-
} else if (this.countryId != null && this.countryId != "") {
|
|
27955
|
-
view = "country";
|
|
27956
|
-
} else if (this.locationId != null && this.locationId != "") {
|
|
27957
|
-
view = "location";
|
|
27958
27965
|
} else {
|
|
27959
27966
|
view = "entity";
|
|
27960
27967
|
}
|
|
27961
|
-
|
|
27968
|
+
|
|
27962
27969
|
path = "getallcountryevents";
|
|
27963
27970
|
|
|
27964
27971
|
let url = "https://" + this.apiId + "/" + path;
|
|
27965
|
-
|
|
27972
|
+
let temptagid = tagid;
|
|
27973
|
+
if(temptagid == "" && locationid != "") {
|
|
27974
|
+
temptagid = locationid
|
|
27975
|
+
}else if(temptagid == "" && userprofileid != this.userProfileId) {
|
|
27976
|
+
temptagid = "allevents"
|
|
27977
|
+
}
|
|
27966
27978
|
//console.log('fetch calendar url', url);
|
|
27967
|
-
let urlBody: any = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid":
|
|
27979
|
+
let urlBody: any = { "projectid": this.projectId, "userprofileid": userprofileid, "role": userrole, "entityid": entityid, "countryid": countryid, "functionid": functionid, "locationid": "", "tagid": temptagid, "adhoc": "false", "exclusivestartkey": 0, "sdate": startDate, "edate": endDate, "view": view, "year": year, "list": list, "month": month };
|
|
27968
27980
|
|
|
27969
27981
|
if (searchString.length > 0) {
|
|
27970
27982
|
urlBody["searchstring"] = searchString;
|
|
27971
27983
|
}
|
|
27972
27984
|
|
|
27985
|
+
console.log('fetchOnlyYearlyUserCalendar', `TagId:${this.tagId}, CountryId:${this.countryId}, LocationId:${this.locationId}, EntityId:${this.entityId}, FunctionId:${this.functionId}, View:${view}, urlBody:`, urlBody);
|
|
27973
27986
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
27974
27987
|
const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
27975
27988
|
this._SfLoader.innerHTML = '';
|