sf-i-events 1.0.922 → 1.0.924
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 +8 -8
- package/package.json +1 -1
- package/sf-i-events.d.ts +1 -0
- package/sf-i-events.js +24 -6
- package/src/sf-i-events.ts +36 -12
package/dev/index.html
CHANGED
|
@@ -838,12 +838,12 @@
|
|
|
838
838
|
eventhidefields="["comments","documents","lastupdated","approved","tags"]"
|
|
839
839
|
blocksize="10" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
|
|
840
840
|
<div slot="uploader"><sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
|
|
841
|
-
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx"]"
|
|
841
|
+
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx","zip"]"
|
|
842
842
|
extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="31457280"
|
|
843
843
|
allowdownload="yes"></sf-i-uploader></div>
|
|
844
844
|
<div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div>
|
|
845
845
|
</sf-i-events> -->
|
|
846
|
-
|
|
846
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
847
847
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
848
848
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
849
849
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -853,8 +853,8 @@
|
|
|
853
853
|
apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="solid"
|
|
854
854
|
username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410"
|
|
855
855
|
projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global"
|
|
856
|
-
|
|
857
|
-
showregisterexport="false"
|
|
856
|
+
entityid="c989a44e-7d3d-427e-b712-90eacf585075" locationid="38dc8c53-643f-4fee-83fe-f15239606277"
|
|
857
|
+
selectedcriteria="Location - Mumbai" myrole="reporter" showregisterexport="false"
|
|
858
858
|
features="["notices","contracts","licenses","rcmresources"]"
|
|
859
859
|
eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
860
860
|
eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]"
|
|
@@ -864,7 +864,7 @@
|
|
|
864
864
|
|
|
865
865
|
<div slot="uploader">
|
|
866
866
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
|
|
867
|
-
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx"]"
|
|
867
|
+
allowedextensions="["jpg","jpeg","png","pdf","xls","xlsx","doc","docx","zip"]"
|
|
868
868
|
extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="31457280"
|
|
869
869
|
allowdownload="yes"></sf-i-uploader>
|
|
870
870
|
</div>
|
|
@@ -872,8 +872,8 @@
|
|
|
872
872
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
873
873
|
</div>
|
|
874
874
|
|
|
875
|
-
</sf-i-events>
|
|
876
|
-
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
875
|
+
</sf-i-events>
|
|
876
|
+
<!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
|
|
877
877
|
apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
|
|
878
878
|
apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
|
|
879
879
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
|
@@ -901,7 +901,7 @@
|
|
|
901
901
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
902
902
|
</div>
|
|
903
903
|
|
|
904
|
-
</sf-i-events>
|
|
904
|
+
</sf-i-events> -->
|
|
905
905
|
<!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
|
|
906
906
|
apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
|
|
907
907
|
apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
|
package/package.json
CHANGED
package/sf-i-events.d.ts
CHANGED
|
@@ -292,6 +292,7 @@ export declare class SfIEvents extends LitElement {
|
|
|
292
292
|
changedOnboardingItemIds: string[];
|
|
293
293
|
selectedCountryIndex: number;
|
|
294
294
|
selectedRegisterIndex: number;
|
|
295
|
+
showReportedLocations: boolean;
|
|
295
296
|
selectallblock: string;
|
|
296
297
|
graphFilter: string;
|
|
297
298
|
recentlyReported: any;
|
package/sf-i-events.js
CHANGED
|
@@ -1250,6 +1250,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
1250
1250
|
this.changedOnboardingItemIds = [];
|
|
1251
1251
|
this.selectedCountryIndex = 0;
|
|
1252
1252
|
this.selectedRegisterIndex = -1;
|
|
1253
|
+
this.showReportedLocations = false;
|
|
1253
1254
|
this.selectallblock = "100";
|
|
1254
1255
|
this.graphFilter = "";
|
|
1255
1256
|
this.recentlyReported = {};
|
|
@@ -2290,6 +2291,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2290
2291
|
else {
|
|
2291
2292
|
html += '<div class="align-center d-flex flex-wrap align-center mb-10 w-100-m-0" part="last-update-title-container"><h6 part="last-update-title" class="align-center d-flex"><span class="material-symbols-outlined">update</span> Last Updated on ' + this.lastupdated + '</h6></div>';
|
|
2292
2293
|
}
|
|
2294
|
+
// html += '<div class="align-center d-flex flex-wrap align-center mb-10 w-100-m-0" part="show-reported-locations-container"><input class="mr-10" type="checkbox" part="input" id="input-show-reported-locations" ' + (this.showReportedLocations ? 'checked' : '' ) +'/><span part="show-reported-locations-title">Show reporting daviations</span></div>';
|
|
2293
2295
|
if (showGraph) {
|
|
2294
2296
|
html += '<div part="stream-event-chart-selection" class="mb-20">';
|
|
2295
2297
|
html += '<div part="td-head" class="mb-5">Select Chart</div>';
|
|
@@ -18507,6 +18509,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18507
18509
|
console.log('rendering chart settings', selectedSummary);
|
|
18508
18510
|
var html = '';
|
|
18509
18511
|
html += '<div class="d-flex justify-end align-start">';
|
|
18512
|
+
html += '<button class="tab-button" id="input-show-reported-locations" part="' + (this.showReportedLocations ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '" class="mr-10"><span class="material-symbols-outlined">arrow_or_edge</span></button>';
|
|
18510
18513
|
if (selectedTab === 0) {
|
|
18511
18514
|
//html += '<button class="tab-button" id="chart-control-filters" part="calendar-tab-button-selected" class="mr-10"><span class="material-icons">filter_list</span></button>';
|
|
18512
18515
|
}
|
|
@@ -18535,6 +18538,15 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18535
18538
|
console.log('summary clicked');
|
|
18536
18539
|
this.renderChartSummary();
|
|
18537
18540
|
});
|
|
18541
|
+
const buttonRefresh = container.querySelector('#button-refresh');
|
|
18542
|
+
if (buttonRefresh != null) {
|
|
18543
|
+
const inputShowReportedLocations = container.querySelector('#input-show-reported-locations');
|
|
18544
|
+
inputShowReportedLocations === null || inputShowReportedLocations === void 0 ? void 0 : inputShowReportedLocations.addEventListener('click', () => {
|
|
18545
|
+
this.showReportedLocations = !this.showReportedLocations;
|
|
18546
|
+
let clickEvent = new Event('click', {});
|
|
18547
|
+
buttonRefresh === null || buttonRefresh === void 0 ? void 0 : buttonRefresh.dispatchEvent(clickEvent);
|
|
18548
|
+
});
|
|
18549
|
+
}
|
|
18538
18550
|
}
|
|
18539
18551
|
// (container.querySelector('#chart-settings-controls') as HTMLDivElement).querySelector('#chart-control-filters')?.addEventListener('click', () => {
|
|
18540
18552
|
// this.renderChartSettings(container, 0, ctx);
|
|
@@ -22600,7 +22612,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22600
22612
|
else {
|
|
22601
22613
|
view = "entity";
|
|
22602
22614
|
}
|
|
22603
|
-
path = "
|
|
22615
|
+
path = "getallcountryevents3";
|
|
22604
22616
|
let sDate = "";
|
|
22605
22617
|
let eDate = "";
|
|
22606
22618
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -22618,6 +22630,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22618
22630
|
if (searchString.length > 0) {
|
|
22619
22631
|
urlBody["searchstring"] = searchString;
|
|
22620
22632
|
}
|
|
22633
|
+
if (this.showReportedLocations) {
|
|
22634
|
+
urlBody["reportedlocations"] = "yes";
|
|
22635
|
+
}
|
|
22621
22636
|
//console.log('urlbody', urlBody);
|
|
22622
22637
|
this.getallcountryevetsParams = JSON.stringify(urlBody);
|
|
22623
22638
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
@@ -22704,7 +22719,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22704
22719
|
else {
|
|
22705
22720
|
view = "entity";
|
|
22706
22721
|
}
|
|
22707
|
-
path = "
|
|
22722
|
+
path = "getallcountryevents3";
|
|
22708
22723
|
let url = "https://" + this.apiId + "/" + path;
|
|
22709
22724
|
let temptagid = tagid;
|
|
22710
22725
|
if (temptagid == "" && locationid != "") {
|
|
@@ -22718,6 +22733,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
22718
22733
|
if (searchString.length > 0) {
|
|
22719
22734
|
urlBody["searchstring"] = searchString;
|
|
22720
22735
|
}
|
|
22736
|
+
if (this.showReportedLocations) {
|
|
22737
|
+
urlBody["reportedlocations"] = "yes";
|
|
22738
|
+
}
|
|
22721
22739
|
console.log('fetchOnlyYearlyUserCalendar', `TagId:${this.tagId}, CountryId:${this.countryId}, LocationId:${this.locationId}, EntityId:${this.entityId}, FunctionId:${this.functionId}, View:${view}, urlBody:`, urlBody);
|
|
22722
22740
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22723
22741
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
@@ -23846,10 +23864,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
23846
23864
|
console.log('next isBulk', eventsData[role][mmdd][j].isbulk);
|
|
23847
23865
|
if (eventsData[role][mmdd][j].isbulk == null || eventsData[role][mmdd][j].isbulk == false) {
|
|
23848
23866
|
eventHtml += '<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '-" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>';
|
|
23849
|
-
eventHtml += '</div>';
|
|
23850
|
-
eventHtml += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>';
|
|
23851
23867
|
}
|
|
23852
23868
|
eventHtml += '</div>';
|
|
23869
|
+
eventHtml += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>';
|
|
23870
|
+
eventHtml += '</div>';
|
|
23853
23871
|
html += eventHtml;
|
|
23854
23872
|
}
|
|
23855
23873
|
html += '</div>';
|
|
@@ -24174,7 +24192,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
24174
24192
|
day = '0' + day;
|
|
24175
24193
|
let eDate = month + "/" + day + "/" + year;
|
|
24176
24194
|
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": complianceEntityId, "countryid": "", "functionid": "", "locationid": complianceLocationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": "location", "year": this.calendarStartYYYY };
|
|
24177
|
-
let url = "https://" + this.apiId + "/
|
|
24195
|
+
let url = "https://" + this.apiId + "/getallcountryevents3";
|
|
24178
24196
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24179
24197
|
const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
|
|
24180
24198
|
this._SfLoader.innerHTML = '';
|
|
@@ -24259,7 +24277,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
24259
24277
|
console.log('fetching compliances', sortid);
|
|
24260
24278
|
let complianceEntityId = sortid.split(';')[1];
|
|
24261
24279
|
let complianceLocationId = sortid.split(';')[2];
|
|
24262
|
-
let url = "https://" + this.apiId + "/
|
|
24280
|
+
let url = "https://" + this.apiId + "/getallcountryevents3";
|
|
24263
24281
|
let sDateObj = selectedDate;
|
|
24264
24282
|
sDateObj.setDate(selectedDate.getDate() - 60);
|
|
24265
24283
|
let day = '' + sDateObj.getDate();
|
package/src/sf-i-events.ts
CHANGED
|
@@ -1676,6 +1676,8 @@ export class SfIEvents extends LitElement {
|
|
|
1676
1676
|
|
|
1677
1677
|
selectedRegisterIndex: number = -1;
|
|
1678
1678
|
|
|
1679
|
+
showReportedLocations: boolean = false;
|
|
1680
|
+
|
|
1679
1681
|
@property()
|
|
1680
1682
|
selectallblock: string = "100";
|
|
1681
1683
|
|
|
@@ -4445,6 +4447,7 @@ export class SfIEvents extends LitElement {
|
|
|
4445
4447
|
} else {
|
|
4446
4448
|
html += '<div class="align-center d-flex flex-wrap align-center mb-10 w-100-m-0" part="last-update-title-container"><h6 part="last-update-title" class="align-center d-flex"><span class="material-symbols-outlined">update</span> Last Updated on ' + this.lastupdated + '</h6></div>';
|
|
4447
4449
|
}
|
|
4450
|
+
// html += '<div class="align-center d-flex flex-wrap align-center mb-10 w-100-m-0" part="show-reported-locations-container"><input class="mr-10" type="checkbox" part="input" id="input-show-reported-locations" ' + (this.showReportedLocations ? 'checked' : '' ) +'/><span part="show-reported-locations-title">Show reporting daviations</span></div>';
|
|
4448
4451
|
if (showGraph) {
|
|
4449
4452
|
html += '<div part="stream-event-chart-selection" class="mb-20">';
|
|
4450
4453
|
html += '<div part="td-head" class="mb-5">Select Chart</div>';
|
|
@@ -7206,6 +7209,7 @@ export class SfIEvents extends LitElement {
|
|
|
7206
7209
|
buttonRefresh.addEventListener('click', async () => {
|
|
7207
7210
|
this.processDateSelection(eventsContainer)
|
|
7208
7211
|
})
|
|
7212
|
+
|
|
7209
7213
|
this.attachListReportingListeners(eventsContainer);
|
|
7210
7214
|
const buttonArr = eventsContainer.querySelectorAll('.button-expand') as NodeListOf<HTMLButtonElement>;
|
|
7211
7215
|
|
|
@@ -8468,21 +8472,21 @@ export class SfIEvents extends LitElement {
|
|
|
8468
8472
|
filterString += "filtered by \"" + searchFilterString + "\""
|
|
8469
8473
|
}
|
|
8470
8474
|
}
|
|
8471
|
-
if(filterString != "") {
|
|
8475
|
+
if (filterString != "") {
|
|
8472
8476
|
filterString += '<span class="material-symbols-outlined ml-5" id="filter-delete" part="filter-delete">delete</span>'
|
|
8473
8477
|
}
|
|
8474
8478
|
divFilterString.innerHTML = filterString
|
|
8475
8479
|
const filterDeleteButton = divFilterString.querySelector('#filter-delete') as HTMLSpanElement;
|
|
8476
8480
|
filterDeleteButton?.addEventListener('click', () => {
|
|
8477
|
-
for(let col of Object.keys(this.registerFilters)){
|
|
8478
|
-
for(let filterVal of Object.keys(this.registerFilters[col])){
|
|
8481
|
+
for (let col of Object.keys(this.registerFilters)) {
|
|
8482
|
+
for (let filterVal of Object.keys(this.registerFilters[col])) {
|
|
8479
8483
|
this.registerFilters[col][filterVal] = true;
|
|
8480
8484
|
}
|
|
8481
8485
|
}
|
|
8482
8486
|
this.processRegisterFilters(events, meta, searchCountryIndex, searchIndex, "");
|
|
8483
8487
|
})
|
|
8484
8488
|
}
|
|
8485
|
-
|
|
8489
|
+
|
|
8486
8490
|
const arrButtonCountries = (this._SfRegisterContainer.querySelector('.calendar-right-data-register') as HTMLDivElement).querySelectorAll('.button-icon-country') as NodeListOf<HTMLButtonElement>;
|
|
8487
8491
|
|
|
8488
8492
|
for (i = 0; i < arrButtonCountries.length; i++) {
|
|
@@ -8570,12 +8574,12 @@ export class SfIEvents extends LitElement {
|
|
|
8570
8574
|
for (i = 0; i < arrButtonStatuteSearch.length; i++) {
|
|
8571
8575
|
const button = Util.clearListeners(arrButtonStatuteSearch[i]);
|
|
8572
8576
|
button.addEventListener('click', (e: any) => {
|
|
8573
|
-
const inputId = e.currentTarget.id.replace('button-','stream-')
|
|
8577
|
+
const inputId = e.currentTarget.id.replace('button-', 'stream-')
|
|
8574
8578
|
const searchedValue = (this._SfRegisterContainer.querySelector('.calendar-right-data-register') as HTMLDivElement).querySelector(inputId).value;
|
|
8575
8579
|
const countryIndex = e.currentTarget.id.split('-')[3];
|
|
8576
8580
|
const searchIndex = e.currentTarget.id.split('-')[4];
|
|
8577
8581
|
this.processRegisterFilters(events, meta, countryIndex, searchIndex, searchedValue);
|
|
8578
|
-
|
|
8582
|
+
|
|
8579
8583
|
})
|
|
8580
8584
|
}
|
|
8581
8585
|
|
|
@@ -11797,6 +11801,7 @@ export class SfIEvents extends LitElement {
|
|
|
11797
11801
|
await this.renderWithFeatures(dateResult.startDate, dateResult.endDate);
|
|
11798
11802
|
this.renderThis(index, showGraph, showBackgroundButton);
|
|
11799
11803
|
})
|
|
11804
|
+
|
|
11800
11805
|
this.attachListReportingListeners(this._SfThisContainer as HTMLDivElement);
|
|
11801
11806
|
const buttonArr = (this._SfThisContainer as HTMLDivElement).querySelectorAll('.button-expand') as NodeListOf<HTMLButtonElement>;
|
|
11802
11807
|
|
|
@@ -12417,6 +12422,7 @@ export class SfIEvents extends LitElement {
|
|
|
12417
12422
|
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
12418
12423
|
this.renderStream(index, showGraph, showBackgroundButton);
|
|
12419
12424
|
})
|
|
12425
|
+
|
|
12420
12426
|
this.attachListReportingListeners(this._SfStreamContainer as HTMLDivElement);
|
|
12421
12427
|
const buttonArr = (this._SfStreamContainer as HTMLDivElement).querySelectorAll('.button-expand') as NodeListOf<HTMLButtonElement>;
|
|
12422
12428
|
|
|
@@ -23795,6 +23801,7 @@ export class SfIEvents extends LitElement {
|
|
|
23795
23801
|
var html = '';
|
|
23796
23802
|
|
|
23797
23803
|
html += '<div class="d-flex justify-end align-start">';
|
|
23804
|
+
html += '<button class="tab-button" id="input-show-reported-locations" part="' + (this.showReportedLocations ? 'calendar-tab-button-selected' : 'calendar-tab-button-not-selected') + '" class="mr-10"><span class="material-symbols-outlined">arrow_or_edge</span></button>';
|
|
23798
23805
|
if (selectedTab === 0) {
|
|
23799
23806
|
//html += '<button class="tab-button" id="chart-control-filters" part="calendar-tab-button-selected" class="mr-10"><span class="material-icons">filter_list</span></button>';
|
|
23800
23807
|
} else {
|
|
@@ -23825,6 +23832,15 @@ export class SfIEvents extends LitElement {
|
|
|
23825
23832
|
this.renderChartSummary();
|
|
23826
23833
|
|
|
23827
23834
|
});
|
|
23835
|
+
const buttonRefresh = container.querySelector('#button-refresh') as HTMLButtonElement
|
|
23836
|
+
if (buttonRefresh != null) {
|
|
23837
|
+
const inputShowReportedLocations = container.querySelector('#input-show-reported-locations') as HTMLButtonElement
|
|
23838
|
+
inputShowReportedLocations?.addEventListener('click', () => {
|
|
23839
|
+
this.showReportedLocations = !this.showReportedLocations;
|
|
23840
|
+
let clickEvent = new Event('click', {})
|
|
23841
|
+
buttonRefresh?.dispatchEvent(clickEvent);
|
|
23842
|
+
})
|
|
23843
|
+
}
|
|
23828
23844
|
}
|
|
23829
23845
|
|
|
23830
23846
|
// (container.querySelector('#chart-settings-controls') as HTMLDivElement).querySelector('#chart-control-filters')?.addEventListener('click', () => {
|
|
@@ -28812,7 +28828,7 @@ export class SfIEvents extends LitElement {
|
|
|
28812
28828
|
view = "entity";
|
|
28813
28829
|
}
|
|
28814
28830
|
|
|
28815
|
-
path = "
|
|
28831
|
+
path = "getallcountryevents3";
|
|
28816
28832
|
|
|
28817
28833
|
let sDate = "";
|
|
28818
28834
|
let eDate = "";
|
|
@@ -28836,6 +28852,9 @@ export class SfIEvents extends LitElement {
|
|
|
28836
28852
|
if (searchString.length > 0) {
|
|
28837
28853
|
urlBody["searchstring"] = searchString;
|
|
28838
28854
|
}
|
|
28855
|
+
if (this.showReportedLocations) {
|
|
28856
|
+
urlBody["reportedlocations"] = "yes";
|
|
28857
|
+
}
|
|
28839
28858
|
|
|
28840
28859
|
//console.log('urlbody', urlBody);
|
|
28841
28860
|
this.getallcountryevetsParams = JSON.stringify(urlBody);
|
|
@@ -28949,7 +28968,7 @@ export class SfIEvents extends LitElement {
|
|
|
28949
28968
|
view = "entity";
|
|
28950
28969
|
}
|
|
28951
28970
|
|
|
28952
|
-
path = "
|
|
28971
|
+
path = "getallcountryevents3";
|
|
28953
28972
|
|
|
28954
28973
|
let url = "https://" + this.apiId + "/" + path;
|
|
28955
28974
|
let temptagid = tagid;
|
|
@@ -28964,6 +28983,9 @@ export class SfIEvents extends LitElement {
|
|
|
28964
28983
|
if (searchString.length > 0) {
|
|
28965
28984
|
urlBody["searchstring"] = searchString;
|
|
28966
28985
|
}
|
|
28986
|
+
if (this.showReportedLocations) {
|
|
28987
|
+
urlBody["reportedlocations"] = "yes";
|
|
28988
|
+
}
|
|
28967
28989
|
|
|
28968
28990
|
console.log('fetchOnlyYearlyUserCalendar', `TagId:${this.tagId}, CountryId:${this.countryId}, LocationId:${this.locationId}, EntityId:${this.entityId}, FunctionId:${this.functionId}, View:${view}, urlBody:`, urlBody);
|
|
28969
28991
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
@@ -30237,6 +30259,7 @@ export class SfIEvents extends LitElement {
|
|
|
30237
30259
|
|
|
30238
30260
|
|
|
30239
30261
|
for (var j = 0; j < (eventsData[role][mmdd] as Array<any>).length; j++) {
|
|
30262
|
+
|
|
30240
30263
|
let eventHtml = '';
|
|
30241
30264
|
eventsData[role][mmdd][j]['mmdd'] = mmdd
|
|
30242
30265
|
|
|
@@ -30290,9 +30313,10 @@ export class SfIEvents extends LitElement {
|
|
|
30290
30313
|
console.log('next isBulk', eventsData[role][mmdd][j].isbulk);
|
|
30291
30314
|
if (eventsData[role][mmdd][j].isbulk == null || eventsData[role][mmdd][j].isbulk == false) {
|
|
30292
30315
|
eventHtml += '<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '-" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>'
|
|
30293
|
-
eventHtml += '</div>';
|
|
30294
|
-
eventHtml += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>'
|
|
30295
30316
|
}
|
|
30317
|
+
eventHtml += '</div>';
|
|
30318
|
+
eventHtml += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>'
|
|
30319
|
+
|
|
30296
30320
|
eventHtml += '</div>';
|
|
30297
30321
|
html += eventHtml
|
|
30298
30322
|
|
|
@@ -30670,7 +30694,7 @@ export class SfIEvents extends LitElement {
|
|
|
30670
30694
|
day = '0' + day;
|
|
30671
30695
|
let eDate = month + "/" + day + "/" + year
|
|
30672
30696
|
let urlBody: any = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": complianceEntityId, "countryid": "", "functionid": "", "locationid": complianceLocationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": "location", "year": this.calendarStartYYYY };
|
|
30673
|
-
let url = "https://" + this.apiId + "/
|
|
30697
|
+
let url = "https://" + this.apiId + "/getallcountryevents3";
|
|
30674
30698
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
30675
30699
|
const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
|
|
30676
30700
|
this._SfLoader.innerHTML = '';
|
|
@@ -30763,7 +30787,7 @@ export class SfIEvents extends LitElement {
|
|
|
30763
30787
|
console.log('fetching compliances', sortid)
|
|
30764
30788
|
let complianceEntityId = sortid.split(';')[1]
|
|
30765
30789
|
let complianceLocationId = sortid.split(';')[2]
|
|
30766
|
-
let url = "https://" + this.apiId + "/
|
|
30790
|
+
let url = "https://" + this.apiId + "/getallcountryevents3";
|
|
30767
30791
|
let sDateObj = selectedDate
|
|
30768
30792
|
sDateObj.setDate(selectedDate.getDate() - 60)
|
|
30769
30793
|
let day = '' + sDateObj.getDate();
|