sf-i-events 1.0.731 → 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 +9 -6
- package/src/sf-i-events.ts +10 -6
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="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" 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
|
@@ -8423,7 +8423,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8423
8423
|
const selectedIndex = e.currentTarget.id.split('-')[1];
|
|
8424
8424
|
// taggingArray.data.mappings.mappings = [];
|
|
8425
8425
|
const tempArray = [];
|
|
8426
|
-
for (
|
|
8426
|
+
for (let count = 0; count < sourceArray.data.mappings.mappings.length; count++) {
|
|
8427
8427
|
//console.log('selectedindexchecking', selectedIndex, count, this.selectedCbs.includes(selectedIndex), this.selectedCbs.includes(count));
|
|
8428
8428
|
//taggingArray.data.mappings.mappings[count] = sourceArray.data.mappings.mappings[count];
|
|
8429
8429
|
//taggingArray.data.mappings.mappings.push(sourceArray.data.mappings.mappings[count]);
|
|
@@ -8579,7 +8579,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8579
8579
|
};
|
|
8580
8580
|
this.saveTagging = async (mapping, uploadFunction, refreshFunction, saveInBackground) => {
|
|
8581
8581
|
async function process() {
|
|
8582
|
-
|
|
8582
|
+
console.log = function () {
|
|
8583
|
+
console.log('Saving...', mapping);
|
|
8584
|
+
};
|
|
8583
8585
|
await uploadFunction(mapping);
|
|
8584
8586
|
if (!saveInBackground)
|
|
8585
8587
|
refreshFunction();
|
|
@@ -8914,7 +8916,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8914
8916
|
for (k = 0; k < taggingArray.data.mappings.mappings.length; k++) {
|
|
8915
8917
|
if (taggingArray.data.mappings.mappings[k].id == sourceArray.data.mappings.mappings[i].id) {
|
|
8916
8918
|
if (taggingArray.data.mappings.mappings[k].id == "62330e24-298d-4ef2-9449-c0e400e37cac") {
|
|
8917
|
-
console.log('found', taggingArray.data.mappings.mappings[k]);
|
|
8919
|
+
// console.log('found', taggingArray.data.mappings.mappings[k]);
|
|
8918
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);
|
|
8919
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]);
|
|
8920
8922
|
}
|
|
@@ -10437,7 +10439,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10437
10439
|
html += '<div id="reporters-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
10438
10440
|
html += '</div>';
|
|
10439
10441
|
this._SfOnboardingReportersContainer.innerHTML = html;
|
|
10440
|
-
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", "");
|
|
10441
10443
|
};
|
|
10442
10444
|
this.renderOnboardingApprovers = (mappedApprovers, mappedSerializedReporters, approversJobs, _arrFeedbackReference) => {
|
|
10443
10445
|
var html = '';
|
|
@@ -10488,7 +10490,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10488
10490
|
html += '<div id="tags-list-container" class="d-flex flex-col w-100 scroll-x">';
|
|
10489
10491
|
html += '</div>';
|
|
10490
10492
|
this._SfOnboardingTagsContainer.innerHTML = html;
|
|
10491
|
-
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, "", "");
|
|
10492
10494
|
};
|
|
10493
10495
|
this.renderOnboardingFunctions = (mappedFunctions, mappedSerializedLocations, functionsJobs) => {
|
|
10494
10496
|
var html = '';
|
|
@@ -10500,7 +10502,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10500
10502
|
}
|
|
10501
10503
|
}
|
|
10502
10504
|
this._SfOnboardingFunctionsContainer.innerHTML = html;
|
|
10503
|
-
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, "", "");
|
|
10504
10507
|
};
|
|
10505
10508
|
this.renderOnboardingLocations = (mappedLocations, mappedSerializedEntities, locationsJobs) => {
|
|
10506
10509
|
var html = '';
|
package/src/sf-i-events.ts
CHANGED
|
@@ -12010,7 +12010,7 @@ export class SfIEvents extends LitElement {
|
|
|
12010
12010
|
|
|
12011
12011
|
const tempArray = [];
|
|
12012
12012
|
|
|
12013
|
-
for(
|
|
12013
|
+
for(let count = 0; count < sourceArray.data.mappings.mappings.length; count++) {
|
|
12014
12014
|
|
|
12015
12015
|
//console.log('selectedindexchecking', selectedIndex, count, this.selectedCbs.includes(selectedIndex), this.selectedCbs.includes(count));
|
|
12016
12016
|
//taggingArray.data.mappings.mappings[count] = sourceArray.data.mappings.mappings[count];
|
|
@@ -12212,7 +12212,10 @@ export class SfIEvents extends LitElement {
|
|
|
12212
12212
|
|
|
12213
12213
|
async function process() {
|
|
12214
12214
|
|
|
12215
|
-
|
|
12215
|
+
console.log = function() {
|
|
12216
|
+
console.log('Saving...', mapping);
|
|
12217
|
+
}
|
|
12218
|
+
|
|
12216
12219
|
|
|
12217
12220
|
await uploadFunction(mapping);
|
|
12218
12221
|
if(!saveInBackground) refreshFunction();
|
|
@@ -12655,7 +12658,7 @@ export class SfIEvents extends LitElement {
|
|
|
12655
12658
|
if(taggingArray.data.mappings.mappings[k].id == sourceArray.data.mappings.mappings[i].id) {
|
|
12656
12659
|
if(taggingArray.data.mappings.mappings[k].id == "62330e24-298d-4ef2-9449-c0e400e37cac") {
|
|
12657
12660
|
|
|
12658
|
-
console.log('found', taggingArray.data.mappings.mappings[k]);
|
|
12661
|
+
// console.log('found', taggingArray.data.mappings.mappings[k]);
|
|
12659
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);
|
|
12660
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]);
|
|
12661
12664
|
|
|
@@ -14677,7 +14680,7 @@ export class SfIEvents extends LitElement {
|
|
|
14677
14680
|
|
|
14678
14681
|
(this._SfOnboardingReportersContainer as HTMLDivElement).innerHTML = html;
|
|
14679
14682
|
|
|
14680
|
-
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", "");
|
|
14681
14684
|
|
|
14682
14685
|
}
|
|
14683
14686
|
|
|
@@ -14772,7 +14775,7 @@ export class SfIEvents extends LitElement {
|
|
|
14772
14775
|
|
|
14773
14776
|
(this._SfOnboardingTagsContainer as HTMLDivElement).innerHTML = html;
|
|
14774
14777
|
|
|
14775
|
-
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, "", "");
|
|
14776
14779
|
|
|
14777
14780
|
}
|
|
14778
14781
|
|
|
@@ -14793,7 +14796,8 @@ export class SfIEvents extends LitElement {
|
|
|
14793
14796
|
|
|
14794
14797
|
(this._SfOnboardingFunctionsContainer as HTMLDivElement).innerHTML = html;
|
|
14795
14798
|
|
|
14796
|
-
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, "", "");
|
|
14797
14801
|
|
|
14798
14802
|
}
|
|
14799
14803
|
|