sf-i-events 1.0.730 → 1.0.732
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 -9
- package/package.json +1 -1
- package/sf-i-events.js +20 -37
- package/src/sf-i-events.ts +23 -42
package/dev/index.html
CHANGED
|
@@ -625,20 +625,15 @@
|
|
|
625
625
|
</head>
|
|
626
626
|
<body>
|
|
627
627
|
|
|
628
|
-
<sf-i-events
|
|
628
|
+
<sf-i-events projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" mode="onboarding" locations="{"India":{"Telangana":["Corporate Office","Telangana Plant"],"Karnataka":["Prime","Stopak","Wintek","Tools","Conversion"],"Gujarat":["Dahej"],"Dadra and Nagar Haveli and Daman and Diu":["Silvassa"],"Uttarakhand":["Uttarakhand"],"Maharashtra":["Pune"],"Andhra Pradesh":["AP"],"Chhattisgarh":["Chhattisgarh"],"Goa":["Goa"],"Himachal Pradesh":["HP"],"Haryana":["Haryana"],"Jharkhand":["Jharkhand"],"Madhya Pradesh":["MP"],"Odisha":["Odisha"],"Punjab":["Punjab"],"Tamil Nadu":["TN"],"Uttar Pradesh":["UP"],"West Bengal":["WB"]}}" contractstartdate="01/04/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="hrushi.mehendale@gmail.com" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
|
|
629
629
|
|
|
630
|
-
|
|
631
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
632
|
-
</div>
|
|
633
|
-
<div slot="reporting">
|
|
634
|
-
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
635
|
-
</div>
|
|
636
|
-
|
|
637
|
-
</sf-i-events>
|
|
630
|
+
</sf-i-events>
|
|
638
631
|
|
|
639
632
|
|
|
640
633
|
<script>
|
|
641
634
|
|
|
635
|
+
console.log = function() {}
|
|
636
|
+
|
|
642
637
|
function setCookie(name,value,days) {
|
|
643
638
|
var expires = "";
|
|
644
639
|
if (days) {
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -2542,13 +2542,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2542
2542
|
hide = this.getCalendarRowHide(this.events[mmdd], i, lastDay, month, firstDate, currDate);
|
|
2543
2543
|
}
|
|
2544
2544
|
if (this.events[mmdd] != null) {
|
|
2545
|
-
// if(this.myRole != this.TAB_VIEWER) {
|
|
2546
2545
|
html += this.renderCalendarRowDivStart(i, firstDate, mmdd.split("/")[1] + "/" + mmdd.split("/")[0]);
|
|
2547
|
-
// }
|
|
2548
|
-
let countNotStarted = 0;
|
|
2549
|
-
let countPendingApproval = 0;
|
|
2550
|
-
let countRejected = 0;
|
|
2551
|
-
let countApproved = 0;
|
|
2552
2546
|
for (var j = 0; j < this.events[mmdd].length; j++) {
|
|
2553
2547
|
total++;
|
|
2554
2548
|
this.events[mmdd][j]['mmdd'] = mmdd;
|
|
@@ -2576,10 +2570,6 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2576
2570
|
partiallyComplied = partiallyComplied + (complianceStatus == "partially-complied" ? 1 : 0);
|
|
2577
2571
|
notComplied = notComplied + (complianceStatus == "not-complied" ? 1 : 0);
|
|
2578
2572
|
complied = complied + (complianceStatus == "complied" ? 1 : 0);
|
|
2579
|
-
countNotStarted += (partStatus == "not-started" ? 1 : 0);
|
|
2580
|
-
countPendingApproval += (partStatus == "pending-approval" ? 1 : 0);
|
|
2581
|
-
countRejected += (partStatus == "rejected" ? 1 : 0);
|
|
2582
|
-
countApproved += (partStatus == "approved" ? 1 : 0);
|
|
2583
2573
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLETENESS] = partStatus;
|
|
2584
2574
|
this.events[mmdd][j][this.FLOW_GRAPH_TIMELINESS] = lateStatus;
|
|
2585
2575
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] = complianceStatus;
|
|
@@ -2587,9 +2577,6 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2587
2577
|
//console.log('commentsinlist 1', JSON.stringify(this.events[mmdd][j].comments), mmdd, j)
|
|
2588
2578
|
}
|
|
2589
2579
|
this.updateStats(this.events[mmdd][j], partStatus, lateStatus, complianceStatus);
|
|
2590
|
-
if (this.myRole == this.TAB_VIEWER && this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
2591
|
-
continue;
|
|
2592
|
-
}
|
|
2593
2580
|
csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
|
|
2594
2581
|
csvValues += ('"' + (this.events[mmdd][j]["country"] + '",'));
|
|
2595
2582
|
csvValues += ('"' + (this.events[mmdd][j]["state"] + '",'));
|
|
@@ -2671,9 +2658,6 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2671
2658
|
html += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>';
|
|
2672
2659
|
html += this.renderCalendarRowDivItemDivEnd();
|
|
2673
2660
|
}
|
|
2674
|
-
if (this.myRole == this.TAB_VIEWER && this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
2675
|
-
html += ('<div class="d-flex"><div part="chip-not-started" class="color-not-started">Not Started ' + countNotStarted + '</div> <div part="chip-color-pending" class="color-pending">Pending Approval ' + countPendingApproval + '</div> <div part="chip-rejected" class="color-rejected">Rejected ' + countRejected + '</div> <div part="chip-approved" class="color-approved">Approved ' + countApproved + '</div></div>');
|
|
2676
|
-
}
|
|
2677
2661
|
html += this.renderCalendarRowDivEnd();
|
|
2678
2662
|
}
|
|
2679
2663
|
else {
|
|
@@ -6275,8 +6259,6 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6275
6259
|
document.addEventListener('scroll', () => {
|
|
6276
6260
|
// console.log('scroll',window.scrollY)
|
|
6277
6261
|
let buttonRefresh = eventsContainer.querySelector('#button-refresh');
|
|
6278
|
-
if (buttonRefresh == null)
|
|
6279
|
-
return;
|
|
6280
6262
|
if (window.scrollY > 720) {
|
|
6281
6263
|
if (buttonRefresh.style.display == "flex") {
|
|
6282
6264
|
}
|
|
@@ -8441,7 +8423,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8441
8423
|
const selectedIndex = e.currentTarget.id.split('-')[1];
|
|
8442
8424
|
// taggingArray.data.mappings.mappings = [];
|
|
8443
8425
|
const tempArray = [];
|
|
8444
|
-
for (
|
|
8426
|
+
for (let count = 0; count < sourceArray.data.mappings.mappings.length; count++) {
|
|
8445
8427
|
//console.log('selectedindexchecking', selectedIndex, count, this.selectedCbs.includes(selectedIndex), this.selectedCbs.includes(count));
|
|
8446
8428
|
//taggingArray.data.mappings.mappings[count] = sourceArray.data.mappings.mappings[count];
|
|
8447
8429
|
//taggingArray.data.mappings.mappings.push(sourceArray.data.mappings.mappings[count]);
|
|
@@ -8597,7 +8579,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8597
8579
|
};
|
|
8598
8580
|
this.saveTagging = async (mapping, uploadFunction, refreshFunction, saveInBackground) => {
|
|
8599
8581
|
async function process() {
|
|
8600
|
-
|
|
8582
|
+
console.log = function () {
|
|
8583
|
+
console.log('Saving...', mapping);
|
|
8584
|
+
};
|
|
8601
8585
|
await uploadFunction(mapping);
|
|
8602
8586
|
if (!saveInBackground)
|
|
8603
8587
|
refreshFunction();
|
|
@@ -8932,7 +8916,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8932
8916
|
for (k = 0; k < taggingArray.data.mappings.mappings.length; k++) {
|
|
8933
8917
|
if (taggingArray.data.mappings.mappings[k].id == sourceArray.data.mappings.mappings[i].id) {
|
|
8934
8918
|
if (taggingArray.data.mappings.mappings[k].id == "62330e24-298d-4ef2-9449-c0e400e37cac") {
|
|
8935
|
-
console.log('found', taggingArray.data.mappings.mappings[k]);
|
|
8919
|
+
// console.log('found', taggingArray.data.mappings.mappings[k]);
|
|
8936
8920
|
//console.log('before before filtermatch',sourceCols[l],JSON.parse(sourceArray.data.mappings.mappings[0].cols)[j], colCountry, (sourceArray.data.mappings.mappings[i]), (sourceArray.data.mappings.mappings[i].data), colState);
|
|
8937
8921
|
//console.log('before filtermatch', colCountry, JSON.parse(sourceArray.data.mappings.mappings[i].data)[colCountry], colState, JSON.parse(sourceArray.data.mappings.mappings[i].data)[colState], JSON.parse(sourceArray.data.mappings.mappings[i].data)[colSubcategory]);
|
|
8938
8922
|
}
|
|
@@ -9979,10 +9963,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9979
9963
|
this._SfLoader.innerHTML = '<div class="lds-dual-ring"></div>';
|
|
9980
9964
|
this._SfLoader.innerHTML += ('<div class="lds-text"><div class="lds-text-c"></div></div>');
|
|
9981
9965
|
}
|
|
9982
|
-
setTimeout(() => {
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
}, 1000);
|
|
9966
|
+
// setTimeout(() => {
|
|
9967
|
+
// this.renderMappingTable(divElement, jsonData, cursor, fetchFunction, searchString, mappedArray, found, uploadFunction, refreshFunction, extraFields, uploadBlock, extraFieldPosition, colName, inputFilter.value, statuteColName, extraHintsArr)
|
|
9968
|
+
// this._SfLoader.innerHTML = '';
|
|
9969
|
+
// }, 1000);
|
|
9986
9970
|
}
|
|
9987
9971
|
});
|
|
9988
9972
|
// More button handlers
|
|
@@ -10108,9 +10092,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10108
10092
|
arrCheckBoxes[i].addEventListener('change', async (_e) => {
|
|
10109
10093
|
//console.log(e.currentTarget, (e.currentTarget as HTMLInputElement).checked);
|
|
10110
10094
|
divElement.querySelector('.button-save').disabled = false;
|
|
10111
|
-
if
|
|
10112
|
-
|
|
10113
|
-
}
|
|
10095
|
+
// if(extraFieldPosition === 1) {
|
|
10096
|
+
// await this.saveMapping (divElement, uploadBlock, jsonData, extraFields, searchString, uploadFunction, refreshFunction, true)
|
|
10097
|
+
// }
|
|
10114
10098
|
});
|
|
10115
10099
|
}
|
|
10116
10100
|
(_a = divElement.querySelector('.checkbox-all')) === null || _a === void 0 ? void 0 : _a.addEventListener('change', (e) => {
|
|
@@ -10455,7 +10439,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10455
10439
|
html += '<div id="reporters-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
10456
10440
|
html += '</div>';
|
|
10457
10441
|
this._SfOnboardingReportersContainer.innerHTML = html;
|
|
10458
|
-
this.renderTaggingTable(this._SfOnboardingReportersListContainer, mappedSerializedTags, mappedReporters, [
|
|
10442
|
+
this.renderTaggingTable(this._SfOnboardingReportersListContainer, mappedSerializedTags, mappedReporters, [], this.uploadReportersMapping, this.loadOnboardingReporters, "reporters", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["reporters"], reportersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
10459
10443
|
};
|
|
10460
10444
|
this.renderOnboardingApprovers = (mappedApprovers, mappedSerializedReporters, approversJobs, _arrFeedbackReference) => {
|
|
10461
10445
|
var html = '';
|
|
@@ -10506,7 +10490,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10506
10490
|
html += '<div id="tags-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
10507
10491
|
html += '</div>';
|
|
10508
10492
|
this._SfOnboardingTagsContainer.innerHTML = html;
|
|
10509
|
-
this.renderTaggingTable(this._SfOnboardingTagsListContainer, mappedSerializedFunctions, mappedTags, [
|
|
10493
|
+
this.renderTaggingTable(this._SfOnboardingTagsListContainer, mappedSerializedFunctions, mappedTags, [], this.uploadTagsMapping, this.loadOnboardingTags, "tags", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Tag", ["tags"], tagsJobs, "tagtype", ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
10510
10494
|
};
|
|
10511
10495
|
this.renderOnboardingFunctions = (mappedFunctions, mappedSerializedLocations, functionsJobs) => {
|
|
10512
10496
|
var html = '';
|
|
@@ -10518,7 +10502,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10518
10502
|
}
|
|
10519
10503
|
}
|
|
10520
10504
|
this._SfOnboardingFunctionsContainer.innerHTML = html;
|
|
10521
|
-
this.renderTaggingTable(this._SfOnboardingFunctionsListContainer,
|
|
10505
|
+
// this.renderTaggingTable((this._SfOnboardingFunctionsListContainer as HTMLDivElement),mappedSerializedLocations, mappedFunctions, ["obligation","firstlineofdefence", "country", "statute", "reference"], this.uploadFunctionsMapping, this.loadOnboardingFunctions, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function", ["functions"], functionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
10506
|
+
this.renderTaggingTable(this._SfOnboardingFunctionsListContainer, mappedSerializedLocations, mappedFunctions, [], this.uploadFunctionsMapping, this.loadOnboardingFunctions, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function", ["functions"], functionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
10522
10507
|
};
|
|
10523
10508
|
this.renderOnboardingLocations = (mappedLocations, mappedSerializedEntities, locationsJobs) => {
|
|
10524
10509
|
var html = '';
|
|
@@ -15872,12 +15857,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
15872
15857
|
let eventid = sortidArr[3];
|
|
15873
15858
|
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
|
|
15874
15859
|
console.log('mmdd', mmdd, Object.keys(this.events));
|
|
15875
|
-
|
|
15876
|
-
|
|
15877
|
-
|
|
15878
|
-
|
|
15879
|
-
break;
|
|
15880
|
-
}
|
|
15860
|
+
for (let i = 0; i < this.events[mmdd].length; i++) {
|
|
15861
|
+
if (this.events[mmdd][i].entityid == entityid && this.events[mmdd][i].locationid == locationid && this.events[mmdd][i].id == eventid) {
|
|
15862
|
+
this.events[mmdd][i].isbulk = true;
|
|
15863
|
+
break;
|
|
15881
15864
|
}
|
|
15882
15865
|
}
|
|
15883
15866
|
}
|
package/src/sf-i-events.ts
CHANGED
|
@@ -4710,15 +4710,9 @@ export class SfIEvents extends LitElement {
|
|
|
4710
4710
|
|
|
4711
4711
|
if(this.events[mmdd] != null) {
|
|
4712
4712
|
|
|
4713
|
-
// if(this.myRole != this.TAB_VIEWER) {
|
|
4714
|
-
html += this.renderCalendarRowDivStart(i, firstDate, mmdd.split("/")[1] + "/" + mmdd.split("/")[0]);
|
|
4715
|
-
// }
|
|
4716
4713
|
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
let countRejected = 0;
|
|
4720
|
-
let countApproved = 0;
|
|
4721
|
-
|
|
4714
|
+
html += this.renderCalendarRowDivStart(i, firstDate, mmdd.split("/")[1] + "/" + mmdd.split("/")[0]);
|
|
4715
|
+
|
|
4722
4716
|
for(var j = 0; j < (this.events[mmdd] as Array<any>).length; j++) {
|
|
4723
4717
|
|
|
4724
4718
|
total++;
|
|
@@ -4754,11 +4748,6 @@ export class SfIEvents extends LitElement {
|
|
|
4754
4748
|
notComplied = notComplied + (complianceStatus == "not-complied" ? 1 : 0);
|
|
4755
4749
|
complied = complied + (complianceStatus == "complied" ? 1 : 0);
|
|
4756
4750
|
|
|
4757
|
-
countNotStarted += (partStatus == "not-started" ? 1 : 0);
|
|
4758
|
-
countPendingApproval += (partStatus == "pending-approval" ? 1 : 0);
|
|
4759
|
-
countRejected += (partStatus == "rejected" ? 1 : 0);
|
|
4760
|
-
countApproved += (partStatus == "approved" ? 1 : 0);
|
|
4761
|
-
|
|
4762
4751
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLETENESS] = partStatus;
|
|
4763
4752
|
this.events[mmdd][j][this.FLOW_GRAPH_TIMELINESS] = lateStatus;
|
|
4764
4753
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] = complianceStatus;
|
|
@@ -4772,10 +4761,6 @@ export class SfIEvents extends LitElement {
|
|
|
4772
4761
|
|
|
4773
4762
|
this.updateStats(this.events[mmdd][j], partStatus, lateStatus, complianceStatus);
|
|
4774
4763
|
|
|
4775
|
-
if(this.myRole == this.TAB_VIEWER && this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
4776
|
-
continue;
|
|
4777
|
-
}
|
|
4778
|
-
|
|
4779
4764
|
csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
|
|
4780
4765
|
csvValues += ('"' + (this.events[mmdd][j]["country"] + '",'));
|
|
4781
4766
|
csvValues += ('"' + (this.events[mmdd][j]["state"] + '",'));
|
|
@@ -4863,10 +4848,6 @@ export class SfIEvents extends LitElement {
|
|
|
4863
4848
|
|
|
4864
4849
|
}
|
|
4865
4850
|
|
|
4866
|
-
if(this.myRole == this.TAB_VIEWER && this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
4867
|
-
html += ('<div class="d-flex"><div part="chip-not-started" class="color-not-started">Not Started ' + countNotStarted + '</div> <div part="chip-color-pending" class="color-pending">Pending Approval ' + countPendingApproval + '</div> <div part="chip-rejected" class="color-rejected">Rejected ' + countRejected + '</div> <div part="chip-approved" class="color-approved">Approved '+countApproved+'</div></div>')
|
|
4868
|
-
}
|
|
4869
|
-
|
|
4870
4851
|
html += this.renderCalendarRowDivEnd();
|
|
4871
4852
|
|
|
4872
4853
|
} else {
|
|
@@ -4882,7 +4863,6 @@ export class SfIEvents extends LitElement {
|
|
|
4882
4863
|
|
|
4883
4864
|
html += this.renderCalendarContainerDivEnd();
|
|
4884
4865
|
|
|
4885
|
-
|
|
4886
4866
|
//console.log('final risk severities', this.riskSeverityData);
|
|
4887
4867
|
|
|
4888
4868
|
//this.period = firstDay?.getDate() + '/' + (firstDay!.getMonth()+1) + '/' + firstDay?.getFullYear() + " - " + endDay?.getDate() + '/' + (endDay!.getMonth()+1) + '/' + endDay?.getFullYear();
|
|
@@ -9295,7 +9275,6 @@ export class SfIEvents extends LitElement {
|
|
|
9295
9275
|
document.addEventListener('scroll',() => {
|
|
9296
9276
|
// console.log('scroll',window.scrollY)
|
|
9297
9277
|
let buttonRefresh = eventsContainer.querySelector('#button-refresh') as HTMLButtonElement
|
|
9298
|
-
if(buttonRefresh == null) return;
|
|
9299
9278
|
if(window.scrollY > 720){
|
|
9300
9279
|
if(buttonRefresh.style.display == "flex"){
|
|
9301
9280
|
|
|
@@ -12031,7 +12010,7 @@ export class SfIEvents extends LitElement {
|
|
|
12031
12010
|
|
|
12032
12011
|
const tempArray = [];
|
|
12033
12012
|
|
|
12034
|
-
for(
|
|
12013
|
+
for(let count = 0; count < sourceArray.data.mappings.mappings.length; count++) {
|
|
12035
12014
|
|
|
12036
12015
|
//console.log('selectedindexchecking', selectedIndex, count, this.selectedCbs.includes(selectedIndex), this.selectedCbs.includes(count));
|
|
12037
12016
|
//taggingArray.data.mappings.mappings[count] = sourceArray.data.mappings.mappings[count];
|
|
@@ -12233,7 +12212,10 @@ export class SfIEvents extends LitElement {
|
|
|
12233
12212
|
|
|
12234
12213
|
async function process() {
|
|
12235
12214
|
|
|
12236
|
-
|
|
12215
|
+
console.log = function() {
|
|
12216
|
+
console.log('Saving...', mapping);
|
|
12217
|
+
}
|
|
12218
|
+
|
|
12237
12219
|
|
|
12238
12220
|
await uploadFunction(mapping);
|
|
12239
12221
|
if(!saveInBackground) refreshFunction();
|
|
@@ -12676,7 +12658,7 @@ export class SfIEvents extends LitElement {
|
|
|
12676
12658
|
if(taggingArray.data.mappings.mappings[k].id == sourceArray.data.mappings.mappings[i].id) {
|
|
12677
12659
|
if(taggingArray.data.mappings.mappings[k].id == "62330e24-298d-4ef2-9449-c0e400e37cac") {
|
|
12678
12660
|
|
|
12679
|
-
console.log('found', taggingArray.data.mappings.mappings[k]);
|
|
12661
|
+
// console.log('found', taggingArray.data.mappings.mappings[k]);
|
|
12680
12662
|
//console.log('before before filtermatch',sourceCols[l],JSON.parse(sourceArray.data.mappings.mappings[0].cols)[j], colCountry, (sourceArray.data.mappings.mappings[i]), (sourceArray.data.mappings.mappings[i].data), colState);
|
|
12681
12663
|
//console.log('before filtermatch', colCountry, JSON.parse(sourceArray.data.mappings.mappings[i].data)[colCountry], colState, JSON.parse(sourceArray.data.mappings.mappings[i].data)[colState], JSON.parse(sourceArray.data.mappings.mappings[i].data)[colSubcategory]);
|
|
12682
12664
|
|
|
@@ -14051,10 +14033,10 @@ export class SfIEvents extends LitElement {
|
|
|
14051
14033
|
this._SfLoader.innerHTML = '<div class="lds-dual-ring"></div>';
|
|
14052
14034
|
this._SfLoader.innerHTML += ('<div class="lds-text"><div class="lds-text-c"></div></div>');
|
|
14053
14035
|
}
|
|
14054
|
-
setTimeout(() => {
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
}, 1000);
|
|
14036
|
+
// setTimeout(() => {
|
|
14037
|
+
// this.renderMappingTable(divElement, jsonData, cursor, fetchFunction, searchString, mappedArray, found, uploadFunction, refreshFunction, extraFields, uploadBlock, extraFieldPosition, colName, inputFilter.value, statuteColName, extraHintsArr)
|
|
14038
|
+
// this._SfLoader.innerHTML = '';
|
|
14039
|
+
// }, 1000);
|
|
14058
14040
|
|
|
14059
14041
|
}
|
|
14060
14042
|
|
|
@@ -14229,9 +14211,9 @@ export class SfIEvents extends LitElement {
|
|
|
14229
14211
|
arrCheckBoxes[i].addEventListener('change', async (_e: any) => {
|
|
14230
14212
|
//console.log(e.currentTarget, (e.currentTarget as HTMLInputElement).checked);
|
|
14231
14213
|
((divElement as HTMLDivElement).querySelector('.button-save') as HTMLButtonElement).disabled = false;
|
|
14232
|
-
if(extraFieldPosition === 1) {
|
|
14233
|
-
|
|
14234
|
-
}
|
|
14214
|
+
// if(extraFieldPosition === 1) {
|
|
14215
|
+
// await this.saveMapping (divElement, uploadBlock, jsonData, extraFields, searchString, uploadFunction, refreshFunction, true)
|
|
14216
|
+
// }
|
|
14235
14217
|
});
|
|
14236
14218
|
}
|
|
14237
14219
|
|
|
@@ -14698,7 +14680,7 @@ export class SfIEvents extends LitElement {
|
|
|
14698
14680
|
|
|
14699
14681
|
(this._SfOnboardingReportersContainer as HTMLDivElement).innerHTML = html;
|
|
14700
14682
|
|
|
14701
|
-
this.renderTaggingTable((this._SfOnboardingReportersListContainer as HTMLDivElement),mappedSerializedTags, mappedReporters, [
|
|
14683
|
+
this.renderTaggingTable((this._SfOnboardingReportersListContainer as HTMLDivElement),mappedSerializedTags, mappedReporters, [], this.uploadReportersMapping, this.loadOnboardingReporters, "reporters", ["id", "entityname", "locationname"], this.apiIdUsers, "", ["reporters"], reportersJobs, null, ["Client remarks", "FlaggGRC response"], null, "Guidelines", "");
|
|
14702
14684
|
|
|
14703
14685
|
}
|
|
14704
14686
|
|
|
@@ -14793,7 +14775,7 @@ export class SfIEvents extends LitElement {
|
|
|
14793
14775
|
|
|
14794
14776
|
(this._SfOnboardingTagsContainer as HTMLDivElement).innerHTML = html;
|
|
14795
14777
|
|
|
14796
|
-
this.renderTaggingTable((this._SfOnboardingTagsListContainer as HTMLDivElement),mappedSerializedFunctions, mappedTags, [
|
|
14778
|
+
this.renderTaggingTable((this._SfOnboardingTagsListContainer as HTMLDivElement),mappedSerializedFunctions, mappedTags, [], this.uploadTagsMapping, this.loadOnboardingTags, "tags", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Tag", ["tags"], tagsJobs, "tagtype", ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14797
14779
|
|
|
14798
14780
|
}
|
|
14799
14781
|
|
|
@@ -14814,7 +14796,8 @@ export class SfIEvents extends LitElement {
|
|
|
14814
14796
|
|
|
14815
14797
|
(this._SfOnboardingFunctionsContainer as HTMLDivElement).innerHTML = html;
|
|
14816
14798
|
|
|
14817
|
-
this.renderTaggingTable((this._SfOnboardingFunctionsListContainer as HTMLDivElement),mappedSerializedLocations, mappedFunctions, ["obligation","firstlineofdefence", "country", "statute", "reference"], this.uploadFunctionsMapping, this.loadOnboardingFunctions, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function", ["functions"], functionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14799
|
+
// this.renderTaggingTable((this._SfOnboardingFunctionsListContainer as HTMLDivElement),mappedSerializedLocations, mappedFunctions, ["obligation","firstlineofdefence", "country", "statute", "reference"], this.uploadFunctionsMapping, this.loadOnboardingFunctions, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function", ["functions"], functionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14800
|
+
this.renderTaggingTable((this._SfOnboardingFunctionsListContainer as HTMLDivElement),mappedSerializedLocations, mappedFunctions, [], this.uploadFunctionsMapping, this.loadOnboardingFunctions, "functions", ["id", "countryname", "entityname", "locationname"], this.apiIdTags, "&Function", ["functions"], functionsJobs, null, ["Client remarks", "FlaggGRC response"], null, "", "");
|
|
14818
14801
|
|
|
14819
14802
|
}
|
|
14820
14803
|
|
|
@@ -21684,12 +21667,10 @@ export class SfIEvents extends LitElement {
|
|
|
21684
21667
|
let eventid = sortidArr[3]
|
|
21685
21668
|
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
|
|
21686
21669
|
console.log('mmdd', mmdd, Object.keys(this.events));
|
|
21687
|
-
|
|
21688
|
-
|
|
21689
|
-
|
|
21690
|
-
|
|
21691
|
-
break
|
|
21692
|
-
}
|
|
21670
|
+
for (let i = 0 ; i < this.events[mmdd].length; i ++){
|
|
21671
|
+
if(this.events[mmdd][i].entityid == entityid && this.events[mmdd][i].locationid == locationid && this.events[mmdd][i].id == eventid){
|
|
21672
|
+
this.events[mmdd][i].isbulk = true;
|
|
21673
|
+
break
|
|
21693
21674
|
}
|
|
21694
21675
|
}
|
|
21695
21676
|
}
|