sf-i-events 1.0.715 → 1.0.717
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 +5 -1
- package/package.json +1 -1
- package/sf-i-events.js +48 -25
- package/src/sf-i-events.ts +48 -28
package/dev/index.html
CHANGED
|
@@ -722,10 +722,14 @@
|
|
|
722
722
|
|
|
723
723
|
</sf-i-events> -->
|
|
724
724
|
|
|
725
|
-
<sf-i-events projectid="
|
|
725
|
+
<sf-i-events projectid="411aa07b-6104-443b-8e9b-bb17e1ea5768" projectname="Inzpera" mode="onboarding" locations="{"India":{"Maharashtra":["Mumbai CO","Bhiwandi Warehouse"],"Tamil Nadu":["Chennai Warehouse"],"Delhi":["Delhi Warehouse"]}}" contractstartdate="25/09/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">
|
|
726
726
|
|
|
727
727
|
</sf-i-events>
|
|
728
728
|
|
|
729
|
+
<!-- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding" 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"]}}" contractstartdate="1/4/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
|
|
730
|
+
|
|
731
|
+
</sf-i-events> -->
|
|
732
|
+
|
|
729
733
|
<!-- <sf-i-events projectid="5c073644-5dce-4d8f-b82e-2bc2def2390f" projectname="ABC Hospitals" mode="onboarding" locations="{}" 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">
|
|
730
734
|
|
|
731
735
|
</sf-i-events> -->
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -2902,8 +2902,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2902
2902
|
await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved);
|
|
2903
2903
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
2904
2904
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
|
|
2905
|
-
this.events[mmdd][p].
|
|
2906
|
-
this.events[mmdd][p].
|
|
2905
|
+
this.events[mmdd][p].approved = approved;
|
|
2906
|
+
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
|
|
2907
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
2908
|
+
if (approved) {
|
|
2909
|
+
this.events[mmdd][p].dateofcompletion = new Date().getTime() + "";
|
|
2910
|
+
}
|
|
2907
2911
|
}
|
|
2908
2912
|
}
|
|
2909
2913
|
if (this.mode == "next") {
|
|
@@ -2919,9 +2923,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2919
2923
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
2920
2924
|
}
|
|
2921
2925
|
else {
|
|
2922
|
-
if
|
|
2923
|
-
|
|
2924
|
-
}
|
|
2926
|
+
// if(this.selectedItemIds.length > 0) {
|
|
2927
|
+
// await this.fetchBulkReportingData();
|
|
2928
|
+
// }
|
|
2929
|
+
console.log('events', this.events);
|
|
2925
2930
|
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
2926
2931
|
}
|
|
2927
2932
|
}
|
|
@@ -2940,8 +2945,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2940
2945
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
2941
2946
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
|
|
2942
2947
|
this.events[mmdd][p].approved = approved;
|
|
2943
|
-
this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().
|
|
2944
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
2948
|
+
this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
|
|
2949
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
2950
|
+
if (approved) {
|
|
2951
|
+
this.events[mmdd][p].dateofcompletion = new Date().getTime() + "";
|
|
2952
|
+
}
|
|
2945
2953
|
}
|
|
2946
2954
|
}
|
|
2947
2955
|
if (this.mode == "next") {
|
|
@@ -3022,8 +3030,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3022
3030
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
3023
3031
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
|
|
3024
3032
|
this.events[mmdd][p].documents = docs;
|
|
3025
|
-
this.events[mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().
|
|
3026
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
3033
|
+
this.events[mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() });
|
|
3034
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
3027
3035
|
}
|
|
3028
3036
|
}
|
|
3029
3037
|
if (event.makercheckers.length > 0) {
|
|
@@ -3032,8 +3040,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3032
3040
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
|
|
3033
3041
|
this.events[mmdd][p].approved = true;
|
|
3034
3042
|
// this.events[mmdd][p].documents = docs
|
|
3035
|
-
this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().
|
|
3036
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
3043
|
+
this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
|
|
3044
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
3037
3045
|
}
|
|
3038
3046
|
}
|
|
3039
3047
|
}
|
|
@@ -3112,6 +3120,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3112
3120
|
this._SfUploader[0].querySelector('#uploader').callbackUrlHost = callbackUrlHost;
|
|
3113
3121
|
this._SfUploader[0].querySelector('#uploader').callbackUrlPath = callbackUrlPath;
|
|
3114
3122
|
this._SfUploader[0].querySelector('#uploader').loadMode();
|
|
3123
|
+
console.log('uploader prepopulate', this._SfUploader[0].querySelector('#uploader').prepopulatedInputArr);
|
|
3115
3124
|
}
|
|
3116
3125
|
//console.log('approved 1', event["approved"], this.myRole, this.TAB_APPROVER);
|
|
3117
3126
|
if (this.myRole == this.TAB_APPROVER || this.myRole == this.TAB_VIEWER || this.myRole == this.TAB_AUDITOR || this.myRole == this.TAB_FUNCTION_HEAD) {
|
|
@@ -7387,7 +7396,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7387
7396
|
html += '</div>';
|
|
7388
7397
|
|
|
7389
7398
|
} */
|
|
7399
|
+
html += '<div part="reporting-view-container">';
|
|
7390
7400
|
html += this.renderReporting(event, mmddyyyy);
|
|
7401
|
+
html += "</div>";
|
|
7391
7402
|
html += '<div class="d-flex justify-between m-20">';
|
|
7392
7403
|
html += '<h3 part="results-title" class="m-0"><br />Comments</h3>';
|
|
7393
7404
|
html += '</div>';
|
|
@@ -7586,8 +7597,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7586
7597
|
await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved);
|
|
7587
7598
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
7588
7599
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
7589
|
-
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().
|
|
7590
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
7600
|
+
this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
|
|
7601
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
7591
7602
|
}
|
|
7592
7603
|
}
|
|
7593
7604
|
}
|
|
@@ -7680,8 +7691,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7680
7691
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
7681
7692
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
7682
7693
|
this.events[mmdd][p].approved = approved;
|
|
7683
|
-
this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().
|
|
7684
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
7694
|
+
this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString() });
|
|
7695
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
7685
7696
|
}
|
|
7686
7697
|
}
|
|
7687
7698
|
}
|
|
@@ -7821,8 +7832,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7821
7832
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
7822
7833
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
7823
7834
|
this.events[mmdd][p].documents = docs;
|
|
7824
|
-
this.events[mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().
|
|
7825
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
7835
|
+
this.events[mmdd][p].comments.push({ 'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString() });
|
|
7836
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
7826
7837
|
}
|
|
7827
7838
|
}
|
|
7828
7839
|
if (makercheckers.length > 0) {
|
|
@@ -7831,8 +7842,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7831
7842
|
if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
7832
7843
|
this.events[mmdd][p].approved = true;
|
|
7833
7844
|
// this.events[mmdd][p].documents = docs
|
|
7834
|
-
this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().
|
|
7835
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
7845
|
+
this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
|
|
7846
|
+
this.events[mmdd][p].lastupdated = new Date().toString();
|
|
7836
7847
|
}
|
|
7837
7848
|
}
|
|
7838
7849
|
}
|
|
@@ -10362,13 +10373,15 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10362
10373
|
for (var i = 0; i < resultStatutes.values.length; i++) {
|
|
10363
10374
|
var mapped = false;
|
|
10364
10375
|
var extraFields = null;
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10376
|
+
if (mappedStatutes.data != null && mappedStatutes.data.mappings != null && mappedStatutes.data.mappings.mappings != null) {
|
|
10377
|
+
for (var j = 0; j < mappedStatutes.data.mappings.mappings.length; j++) {
|
|
10378
|
+
if (mappedStatutes.data.mappings.mappings[j].id == resultStatutes.values[i].id) {
|
|
10379
|
+
//console.log('comparing',mappedStatutes.data.mappings.mappings[j].id,resultStatutes.values[i].id);
|
|
10380
|
+
if (mappedStatutes.data.mappings.mappings[j].selected) {
|
|
10381
|
+
mapped = true;
|
|
10382
|
+
}
|
|
10383
|
+
extraFields = mappedStatutes.data.mappings.mappings[j].extraFields;
|
|
10370
10384
|
}
|
|
10371
|
-
extraFields = mappedStatutes.data.mappings.mappings[j].extraFields;
|
|
10372
10385
|
}
|
|
10373
10386
|
}
|
|
10374
10387
|
jsonData.push({ id: resultStatutes.values[i].id, mapped: mapped, data: resultStatutes.values[i].fields, cols: ["country", "jurisdiction", "state", "name", "category", "subcategory", "applicability"], extraFields: extraFields });
|
|
@@ -12745,6 +12758,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12745
12758
|
const graphparamnames3 = eventContainer.querySelectorAll('.graphparamname3');
|
|
12746
12759
|
const streamEventSummary = eventContainer.querySelector('#stream-event-summary');
|
|
12747
12760
|
const streamEventFilters = eventContainer.querySelector('#stream-event-filter');
|
|
12761
|
+
const buttonListReporting = eventContainer.querySelector('.button-list-reporting');
|
|
12748
12762
|
if (hide) {
|
|
12749
12763
|
//this.graphParam = clickedValue;
|
|
12750
12764
|
streamEventSummary.style.display = 'none';
|
|
@@ -12791,6 +12805,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12791
12805
|
if (eventSubTitles[i] != null) {
|
|
12792
12806
|
eventSubTitles[i].style.display = 'flex';
|
|
12793
12807
|
}
|
|
12808
|
+
buttonListReporting.style.display = "block";
|
|
12794
12809
|
}
|
|
12795
12810
|
else {
|
|
12796
12811
|
var found = false;
|
|
@@ -12815,6 +12830,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12815
12830
|
if (eventSubTitles[i] != null) {
|
|
12816
12831
|
eventSubTitles[i].style.display = 'none';
|
|
12817
12832
|
}
|
|
12833
|
+
buttonListReporting.style.display = 'none';
|
|
12818
12834
|
}
|
|
12819
12835
|
}
|
|
12820
12836
|
// var found = false;
|
|
@@ -12873,6 +12889,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12873
12889
|
const graphparamnames3 = eventContainer.querySelectorAll('.graphparamname3');
|
|
12874
12890
|
const streamEventSummary = eventContainer.querySelector('#stream-event-summary');
|
|
12875
12891
|
const streamEventFilters = eventContainer.querySelector('#stream-event-filter');
|
|
12892
|
+
const buttonListReporting = eventContainer.querySelectorAll('.button-list-reporting');
|
|
12876
12893
|
if (streamEventSummary == null) {
|
|
12877
12894
|
return;
|
|
12878
12895
|
}
|
|
@@ -12920,6 +12937,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12920
12937
|
if (eventSubTitles[i] != null) {
|
|
12921
12938
|
eventSubTitles[i].style.display = 'flex';
|
|
12922
12939
|
}
|
|
12940
|
+
if (buttonListReporting[i] != null) {
|
|
12941
|
+
buttonListReporting[i].style.display = 'block';
|
|
12942
|
+
}
|
|
12923
12943
|
}
|
|
12924
12944
|
else {
|
|
12925
12945
|
tables[i].style.display = 'none';
|
|
@@ -12933,6 +12953,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12933
12953
|
if (eventSubTitles[i] != null) {
|
|
12934
12954
|
eventSubTitles[i].style.display = 'none';
|
|
12935
12955
|
}
|
|
12956
|
+
if (buttonListReporting[i] != null) {
|
|
12957
|
+
buttonListReporting[i].style.display = 'none';
|
|
12958
|
+
}
|
|
12936
12959
|
}
|
|
12937
12960
|
}
|
|
12938
12961
|
};
|
package/src/sf-i-events.ts
CHANGED
|
@@ -5141,9 +5141,12 @@ export class SfIEvents extends LitElement {
|
|
|
5141
5141
|
await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved)
|
|
5142
5142
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
5143
5143
|
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
|
|
5144
|
-
|
|
5145
|
-
this.events[mmdd][p].comments.push({'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().
|
|
5146
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
5144
|
+
this.events[mmdd][p].approved = approved
|
|
5145
|
+
this.events[mmdd][p].comments.push({'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString()})
|
|
5146
|
+
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
5147
|
+
if(approved){
|
|
5148
|
+
this.events[mmdd][p].dateofcompletion = new Date().getTime() + ""
|
|
5149
|
+
}
|
|
5147
5150
|
}
|
|
5148
5151
|
}
|
|
5149
5152
|
|
|
@@ -5157,9 +5160,10 @@ export class SfIEvents extends LitElement {
|
|
|
5157
5160
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
5158
5161
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
5159
5162
|
} else {
|
|
5160
|
-
if(this.selectedItemIds.length > 0) {
|
|
5161
|
-
|
|
5162
|
-
}
|
|
5163
|
+
// if(this.selectedItemIds.length > 0) {
|
|
5164
|
+
// await this.fetchBulkReportingData();
|
|
5165
|
+
// }
|
|
5166
|
+
console.log('events', this.events);
|
|
5163
5167
|
this.renderAppropriateStream(this.sdate,this.edate, true);
|
|
5164
5168
|
}
|
|
5165
5169
|
}
|
|
@@ -5183,8 +5187,11 @@ export class SfIEvents extends LitElement {
|
|
|
5183
5187
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
5184
5188
|
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
|
|
5185
5189
|
this.events[mmdd][p].approved = approved
|
|
5186
|
-
this.events[mmdd][p].comments.push({'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().
|
|
5187
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
5190
|
+
this.events[mmdd][p].comments.push({'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString()})
|
|
5191
|
+
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
5192
|
+
if(approved){
|
|
5193
|
+
this.events[mmdd][p].dateofcompletion = new Date().getTime() + ""
|
|
5194
|
+
}
|
|
5188
5195
|
}
|
|
5189
5196
|
}
|
|
5190
5197
|
if(this.mode == "next"){
|
|
@@ -5290,8 +5297,8 @@ export class SfIEvents extends LitElement {
|
|
|
5290
5297
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
5291
5298
|
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
|
|
5292
5299
|
this.events[mmdd][p].documents = docs
|
|
5293
|
-
this.events[mmdd][p].comments.push({'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().
|
|
5294
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
5300
|
+
this.events[mmdd][p].comments.push({'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString()})
|
|
5301
|
+
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
5295
5302
|
}
|
|
5296
5303
|
}
|
|
5297
5304
|
if(event.makercheckers.length > 0) {
|
|
@@ -5301,8 +5308,8 @@ export class SfIEvents extends LitElement {
|
|
|
5301
5308
|
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
|
|
5302
5309
|
this.events[mmdd][p].approved = true
|
|
5303
5310
|
// this.events[mmdd][p].documents = docs
|
|
5304
|
-
this.events[mmdd][p].comments.push({'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().
|
|
5305
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
5311
|
+
this.events[mmdd][p].comments.push({'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString()})
|
|
5312
|
+
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
5306
5313
|
}
|
|
5307
5314
|
}
|
|
5308
5315
|
}
|
|
@@ -5393,6 +5400,7 @@ export class SfIEvents extends LitElement {
|
|
|
5393
5400
|
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.callbackUrlHost = callbackUrlHost;
|
|
5394
5401
|
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.callbackUrlPath = callbackUrlPath;
|
|
5395
5402
|
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.loadMode();
|
|
5403
|
+
console.log('uploader prepopulate', (this._SfUploader[0].querySelector('#uploader') as SfIUploader).prepopulatedInputArr)
|
|
5396
5404
|
|
|
5397
5405
|
}
|
|
5398
5406
|
|
|
@@ -10772,7 +10780,9 @@ export class SfIEvents extends LitElement {
|
|
|
10772
10780
|
html += '</div>';
|
|
10773
10781
|
|
|
10774
10782
|
} */
|
|
10783
|
+
html += '<div part="reporting-view-container">'
|
|
10775
10784
|
html += this.renderReporting(event, mmddyyyy);
|
|
10785
|
+
html += "</div>"
|
|
10776
10786
|
|
|
10777
10787
|
html += '<div class="d-flex justify-between m-20">';
|
|
10778
10788
|
html += '<h3 part="results-title" class="m-0"><br />Comments</h3>';
|
|
@@ -11010,8 +11020,8 @@ export class SfIEvents extends LitElement {
|
|
|
11010
11020
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
11011
11021
|
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
|
|
11012
11022
|
|
|
11013
|
-
this.events[mmdd][p].comments.push({'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().
|
|
11014
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
11023
|
+
this.events[mmdd][p].comments.push({'author': 'Approver', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString()})
|
|
11024
|
+
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
11015
11025
|
}
|
|
11016
11026
|
}
|
|
11017
11027
|
} else {
|
|
@@ -11116,8 +11126,8 @@ export class SfIEvents extends LitElement {
|
|
|
11116
11126
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
11117
11127
|
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
|
|
11118
11128
|
this.events[mmdd][p].approved = approved
|
|
11119
|
-
this.events[mmdd][p].comments.push({'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().
|
|
11120
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
11129
|
+
this.events[mmdd][p].comments.push({'author': 'Auditor', 'comment': comments + ` (Approved: ${approved ? 'Yes' : 'No'})`, 'timestamp': new Date().toString()})
|
|
11130
|
+
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
11121
11131
|
}
|
|
11122
11132
|
}
|
|
11123
11133
|
} else {
|
|
@@ -11294,8 +11304,8 @@ export class SfIEvents extends LitElement {
|
|
|
11294
11304
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
11295
11305
|
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
|
|
11296
11306
|
this.events[mmdd][p].documents = docs
|
|
11297
|
-
this.events[mmdd][p].comments.push({'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().
|
|
11298
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
11307
|
+
this.events[mmdd][p].comments.push({'author': 'Reporter', 'comment': reportercomments + ` (Documents Saved: ${docs.length}})`, 'timestamp': new Date().toString()})
|
|
11308
|
+
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
11299
11309
|
}
|
|
11300
11310
|
}
|
|
11301
11311
|
if(makercheckers.length > 0) {
|
|
@@ -11305,8 +11315,8 @@ export class SfIEvents extends LitElement {
|
|
|
11305
11315
|
if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
|
|
11306
11316
|
this.events[mmdd][p].approved = true
|
|
11307
11317
|
// this.events[mmdd][p].documents = docs
|
|
11308
|
-
this.events[mmdd][p].comments.push({'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().
|
|
11309
|
-
this.events[mmdd][p].lastupdated = new Date().
|
|
11318
|
+
this.events[mmdd][p].comments.push({'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString()})
|
|
11319
|
+
this.events[mmdd][p].lastupdated = new Date().toString()
|
|
11310
11320
|
}
|
|
11311
11321
|
}
|
|
11312
11322
|
}
|
|
@@ -14696,13 +14706,15 @@ export class SfIEvents extends LitElement {
|
|
|
14696
14706
|
for(var i = 0; i < resultStatutes.values.length; i++) {
|
|
14697
14707
|
var mapped = false;
|
|
14698
14708
|
var extraFields = null;
|
|
14699
|
-
|
|
14700
|
-
|
|
14701
|
-
|
|
14702
|
-
|
|
14703
|
-
|
|
14709
|
+
if(mappedStatutes.data != null && mappedStatutes.data.mappings != null && mappedStatutes.data.mappings.mappings != null) {
|
|
14710
|
+
for(var j = 0; j < mappedStatutes.data.mappings.mappings.length; j++) {
|
|
14711
|
+
if(mappedStatutes.data.mappings.mappings[j].id == resultStatutes.values[i].id) {
|
|
14712
|
+
//console.log('comparing',mappedStatutes.data.mappings.mappings[j].id,resultStatutes.values[i].id);
|
|
14713
|
+
if(mappedStatutes.data.mappings.mappings[j].selected) {
|
|
14714
|
+
mapped = true;
|
|
14715
|
+
}
|
|
14716
|
+
extraFields = mappedStatutes.data.mappings.mappings[j].extraFields;
|
|
14704
14717
|
}
|
|
14705
|
-
extraFields = mappedStatutes.data.mappings.mappings[j].extraFields;
|
|
14706
14718
|
}
|
|
14707
14719
|
}
|
|
14708
14720
|
|
|
@@ -17622,7 +17634,7 @@ export class SfIEvents extends LitElement {
|
|
|
17622
17634
|
const graphparamnames3 = eventContainer!.querySelectorAll('.graphparamname3') as NodeListOf<HTMLTableCellElement>;
|
|
17623
17635
|
const streamEventSummary = eventContainer!.querySelector('#stream-event-summary') as HTMLDivElement;
|
|
17624
17636
|
const streamEventFilters = eventContainer!.querySelector('#stream-event-filter') as HTMLDivElement;
|
|
17625
|
-
|
|
17637
|
+
const buttonListReporting = eventContainer!.querySelector('.button-list-reporting') as HTMLButtonElement;
|
|
17626
17638
|
if(hide) {
|
|
17627
17639
|
//this.graphParam = clickedValue;
|
|
17628
17640
|
streamEventSummary.style.display = 'none';
|
|
@@ -17674,7 +17686,7 @@ export class SfIEvents extends LitElement {
|
|
|
17674
17686
|
if(eventSubTitles[i] != null) {
|
|
17675
17687
|
(eventSubTitles[i] as HTMLDivElement).style.display = 'flex';
|
|
17676
17688
|
}
|
|
17677
|
-
|
|
17689
|
+
buttonListReporting.style.display = "block";
|
|
17678
17690
|
} else {
|
|
17679
17691
|
|
|
17680
17692
|
var found = false;
|
|
@@ -17700,6 +17712,7 @@ export class SfIEvents extends LitElement {
|
|
|
17700
17712
|
if(eventSubTitles[i] != null) {
|
|
17701
17713
|
(eventSubTitles[i] as HTMLDivElement).style.display = 'none';
|
|
17702
17714
|
}
|
|
17715
|
+
buttonListReporting.style.display = 'none';
|
|
17703
17716
|
}
|
|
17704
17717
|
}
|
|
17705
17718
|
|
|
@@ -17773,6 +17786,7 @@ export class SfIEvents extends LitElement {
|
|
|
17773
17786
|
const graphparamnames3 = eventContainer!.querySelectorAll('.graphparamname3') as NodeListOf<HTMLTableCellElement>;
|
|
17774
17787
|
const streamEventSummary = eventContainer!.querySelector('#stream-event-summary') as HTMLDivElement;
|
|
17775
17788
|
const streamEventFilters = eventContainer!.querySelector('#stream-event-filter') as HTMLDivElement;
|
|
17789
|
+
const buttonListReporting = eventContainer!.querySelectorAll('.button-list-reporting') as NodeListOf<HTMLButtonElement>;
|
|
17776
17790
|
|
|
17777
17791
|
if(streamEventSummary == null) {
|
|
17778
17792
|
return;
|
|
@@ -17825,6 +17839,9 @@ export class SfIEvents extends LitElement {
|
|
|
17825
17839
|
if(eventSubTitles[i] != null) {
|
|
17826
17840
|
(eventSubTitles[i] as HTMLDivElement).style.display = 'flex';
|
|
17827
17841
|
}
|
|
17842
|
+
if(buttonListReporting[i] != null){
|
|
17843
|
+
buttonListReporting[i].style.display = 'block';
|
|
17844
|
+
}
|
|
17828
17845
|
} else {
|
|
17829
17846
|
(tables[i] as HTMLDivElement).style.display = 'none';
|
|
17830
17847
|
//(hiddenFilternames[i] as HTMLDivElement).style.display = 'none';
|
|
@@ -17835,6 +17852,9 @@ export class SfIEvents extends LitElement {
|
|
|
17835
17852
|
if(eventSubTitles[i] != null) {
|
|
17836
17853
|
(eventSubTitles[i] as HTMLDivElement).style.display = 'none';
|
|
17837
17854
|
}
|
|
17855
|
+
if(buttonListReporting[i] != null){
|
|
17856
|
+
buttonListReporting[i].style.display = 'none';
|
|
17857
|
+
}
|
|
17838
17858
|
}
|
|
17839
17859
|
|
|
17840
17860
|
}
|