sf-i-events 1.0.775 → 1.0.777
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/Untitled-1.json +4835 -0
- package/dev/Untitled-2.json +38553 -0
- package/dev/index.html +1 -1
- package/package.json +1 -1
- package/sf-i-events.d.ts +1 -1
- package/sf-i-events.js +51 -53
- package/src/sf-i-events.ts +47 -38
package/dev/index.html
CHANGED
|
@@ -628,7 +628,7 @@
|
|
|
628
628
|
</style>
|
|
629
629
|
</head>
|
|
630
630
|
<body>
|
|
631
|
-
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="
|
|
631
|
+
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws" fill="solid" username="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" showregisterexport="false" features="["notices"]" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" 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"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
632
632
|
|
|
633
633
|
<div slot="uploader">
|
|
634
634
|
<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>
|
package/package.json
CHANGED
package/sf-i-events.d.ts
CHANGED
|
@@ -495,7 +495,7 @@ export declare class SfIEvents extends LitElement {
|
|
|
495
495
|
checkEndDateLateness: (value: string) => boolean;
|
|
496
496
|
attachHandlers: (eventContainer: HTMLDivElement, valueStart: string, valueEnd: string) => void;
|
|
497
497
|
processFindSelection: (eventContainer: HTMLDivElement, searchString: string) => Promise<void>;
|
|
498
|
-
processDateSelection: (eventContainer: HTMLDivElement, fetchData?: boolean) => Promise<void>;
|
|
498
|
+
processDateSelection: (eventContainer: HTMLDivElement, fetchData?: boolean, showBackgroundButton?: boolean) => Promise<void>;
|
|
499
499
|
processDateSelectionViewer: (eventContainer: HTMLDivElement) => Promise<void>;
|
|
500
500
|
initFindRightCol: () => void;
|
|
501
501
|
initCustomRightCol: () => void;
|
package/sf-i-events.js
CHANGED
|
@@ -3259,10 +3259,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3259
3259
|
this.renderRoleTabsNext(this.nextPage);
|
|
3260
3260
|
}
|
|
3261
3261
|
else {
|
|
3262
|
-
if
|
|
3263
|
-
|
|
3264
|
-
}
|
|
3265
|
-
|
|
3262
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
3263
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
3264
|
+
// } else
|
|
3265
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
3266
3266
|
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
3267
3267
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
3268
3268
|
}
|
|
@@ -3349,10 +3349,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3349
3349
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
|
|
3350
3350
|
}
|
|
3351
3351
|
else {
|
|
3352
|
-
if
|
|
3353
|
-
|
|
3354
|
-
}
|
|
3355
|
-
|
|
3352
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
3353
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
3354
|
+
// } else
|
|
3355
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
3356
3356
|
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
3357
3357
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
3358
3358
|
}
|
|
@@ -3532,10 +3532,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3532
3532
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
|
|
3533
3533
|
}
|
|
3534
3534
|
else {
|
|
3535
|
-
if
|
|
3536
|
-
|
|
3537
|
-
}
|
|
3538
|
-
|
|
3535
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
3536
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
3537
|
+
// } else
|
|
3538
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
3539
3539
|
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
3540
3540
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
3541
3541
|
}
|
|
@@ -4848,7 +4848,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4848
4848
|
this.renderCompletenessGraph(eventContainer);
|
|
4849
4849
|
}
|
|
4850
4850
|
};
|
|
4851
|
-
this.processDateSelection = async (eventContainer, fetchData = true) => {
|
|
4851
|
+
this.processDateSelection = async (eventContainer, fetchData = true, showBackgroundButton = false) => {
|
|
4852
4852
|
var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
|
|
4853
4853
|
var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
4854
4854
|
var valueStart = this._SfCustomContainer.querySelector('#stream-start-date').value;
|
|
@@ -4887,7 +4887,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4887
4887
|
await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
|
|
4888
4888
|
// await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
|
|
4889
4889
|
}
|
|
4890
|
-
this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime() + 24 * 60 * 60 * 1000) - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24), this._SfCustomContainer);
|
|
4890
|
+
this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime() + 24 * 60 * 60 * 1000) - new Date(valueStart).getTime()) / (1000 * 60 * 60 * 24), this._SfCustomContainer, showBackgroundButton);
|
|
4891
4891
|
}
|
|
4892
4892
|
else if (valueStart != "" && valueEnd == "") {
|
|
4893
4893
|
this._SfStreamEventStatus.innerHTML = "Please select End Date";
|
|
@@ -8591,10 +8591,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8591
8591
|
this.renderRoleTabsNext(this.nextPage);
|
|
8592
8592
|
}
|
|
8593
8593
|
else {
|
|
8594
|
-
if
|
|
8595
|
-
|
|
8596
|
-
}
|
|
8597
|
-
|
|
8594
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
8595
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
8596
|
+
// } else
|
|
8597
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
8598
8598
|
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
8599
8599
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
8600
8600
|
}
|
|
@@ -8694,10 +8694,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8694
8694
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
|
|
8695
8695
|
}
|
|
8696
8696
|
else {
|
|
8697
|
-
if
|
|
8698
|
-
|
|
8699
|
-
}
|
|
8700
|
-
|
|
8697
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
8698
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
8699
|
+
// } else
|
|
8700
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
8701
8701
|
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
8702
8702
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
8703
8703
|
}
|
|
@@ -8887,10 +8887,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8887
8887
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
|
|
8888
8888
|
}
|
|
8889
8889
|
else {
|
|
8890
|
-
if
|
|
8891
|
-
|
|
8892
|
-
}
|
|
8893
|
-
|
|
8890
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
8891
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
8892
|
+
// } else
|
|
8893
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
8894
8894
|
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
8895
8895
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
8896
8896
|
}
|
|
@@ -9498,14 +9498,13 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9498
9498
|
this.clearMessages();
|
|
9499
9499
|
}, 3000);
|
|
9500
9500
|
//console.log('deleted', resultDelete);
|
|
9501
|
-
if
|
|
9502
|
-
|
|
9503
|
-
}
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
currentColumnButton.click();
|
|
9507
|
-
}
|
|
9501
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
9502
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
9503
|
+
// } else {
|
|
9504
|
+
if (currentColumnButton != null) {
|
|
9505
|
+
currentColumnButton.click();
|
|
9508
9506
|
}
|
|
9507
|
+
// }
|
|
9509
9508
|
var clickEvent = new MouseEvent("click", {
|
|
9510
9509
|
"view": window,
|
|
9511
9510
|
"bubbles": true,
|
|
@@ -9550,14 +9549,13 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9550
9549
|
await this.uploadReviewsBulk(bulkBodyReview);
|
|
9551
9550
|
}
|
|
9552
9551
|
//console.log('deleted', resultDelete);
|
|
9553
|
-
if
|
|
9554
|
-
|
|
9555
|
-
}
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
currentColumnButton.click();
|
|
9559
|
-
}
|
|
9552
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
9553
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
9554
|
+
// } else {
|
|
9555
|
+
if (currentColumnButton != null) {
|
|
9556
|
+
currentColumnButton.click();
|
|
9560
9557
|
}
|
|
9558
|
+
// }
|
|
9561
9559
|
var clickEvent = new MouseEvent("click", {
|
|
9562
9560
|
"view": window,
|
|
9563
9561
|
"bubbles": true,
|
|
@@ -9687,10 +9685,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9687
9685
|
this.renderRoleTabsNext(this.nextPage);
|
|
9688
9686
|
}
|
|
9689
9687
|
else {
|
|
9690
|
-
if
|
|
9691
|
-
|
|
9692
|
-
}
|
|
9693
|
-
|
|
9688
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
9689
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
9690
|
+
// } else
|
|
9691
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
9694
9692
|
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
9695
9693
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
9696
9694
|
}
|
|
@@ -9788,10 +9786,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9788
9786
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
|
|
9789
9787
|
}
|
|
9790
9788
|
else {
|
|
9791
|
-
if
|
|
9792
|
-
|
|
9793
|
-
}
|
|
9794
|
-
|
|
9789
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
9790
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
9791
|
+
// } else
|
|
9792
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
9795
9793
|
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
9796
9794
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
9797
9795
|
}
|
|
@@ -9998,10 +9996,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9998
9996
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
|
|
9999
9997
|
}
|
|
10000
9998
|
else {
|
|
10001
|
-
if
|
|
10002
|
-
|
|
10003
|
-
}
|
|
10004
|
-
|
|
9999
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
10000
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
10001
|
+
// } else
|
|
10002
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
10005
10003
|
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
10006
10004
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
10007
10005
|
}
|
|
@@ -17592,7 +17590,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17592
17590
|
this.renderThis(parseInt(this.currentColumnIndex), showGraph, showBackgroundButton);
|
|
17593
17591
|
}
|
|
17594
17592
|
if (this.selectedTab == this.TAB_CUSTOM) {
|
|
17595
|
-
this.processDateSelection(this._SfCustomContainer, false);
|
|
17593
|
+
this.processDateSelection(this._SfCustomContainer, false, showBackgroundButton);
|
|
17596
17594
|
}
|
|
17597
17595
|
// if(this.selectedTab == this.TAB_PAST) {
|
|
17598
17596
|
// this.renderPast(parseInt(this.currentColumnIndex), false);
|
package/src/sf-i-events.ts
CHANGED
|
@@ -5586,9 +5586,10 @@ export class SfIEvents extends LitElement {
|
|
|
5586
5586
|
// this.fetchNext(this.nextPage)
|
|
5587
5587
|
this.renderRoleTabsNext(this.nextPage)
|
|
5588
5588
|
}else{
|
|
5589
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
5590
|
-
|
|
5591
|
-
} else
|
|
5589
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
5590
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
5591
|
+
// } else
|
|
5592
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
5592
5593
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
5593
5594
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
5594
5595
|
} else {
|
|
@@ -5683,9 +5684,10 @@ export class SfIEvents extends LitElement {
|
|
|
5683
5684
|
if(this.mode == "next"){
|
|
5684
5685
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
|
|
5685
5686
|
}else{
|
|
5686
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
5687
|
-
|
|
5688
|
-
} else
|
|
5687
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
5688
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
5689
|
+
// } else
|
|
5690
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
5689
5691
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
5690
5692
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
5691
5693
|
} else {
|
|
@@ -5901,9 +5903,10 @@ export class SfIEvents extends LitElement {
|
|
|
5901
5903
|
if(this.mode == "next"){
|
|
5902
5904
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
|
|
5903
5905
|
}else{
|
|
5904
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
5905
|
-
|
|
5906
|
-
} else
|
|
5906
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
5907
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
5908
|
+
// } else
|
|
5909
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
5907
5910
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
5908
5911
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
5909
5912
|
} else {
|
|
@@ -7457,7 +7460,7 @@ export class SfIEvents extends LitElement {
|
|
|
7457
7460
|
}
|
|
7458
7461
|
}
|
|
7459
7462
|
|
|
7460
|
-
processDateSelection = async (eventContainer: HTMLDivElement, fetchData: boolean = true) => {
|
|
7463
|
+
processDateSelection = async (eventContainer: HTMLDivElement, fetchData: boolean = true, showBackgroundButton: boolean = false) => {
|
|
7461
7464
|
|
|
7462
7465
|
var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
|
|
7463
7466
|
var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
@@ -7501,7 +7504,7 @@ export class SfIEvents extends LitElement {
|
|
|
7501
7504
|
await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear())
|
|
7502
7505
|
// await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
|
|
7503
7506
|
}
|
|
7504
|
-
this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime()+24*60*60*1000) - new Date(valueStart).getTime())/(1000*60*60*24), (this._SfCustomContainer as HTMLDivElement));
|
|
7507
|
+
this.renderRangeEvents(new Date(valueStart), ((new Date(valueEnd).getTime()+24*60*60*1000) - new Date(valueStart).getTime())/(1000*60*60*24), (this._SfCustomContainer as HTMLDivElement), showBackgroundButton);
|
|
7505
7508
|
} else if(valueStart != "" && valueEnd == "") {
|
|
7506
7509
|
(this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Please select End Date";
|
|
7507
7510
|
} else if(valueStart == "" && valueEnd != "") {
|
|
@@ -12097,9 +12100,10 @@ export class SfIEvents extends LitElement {
|
|
|
12097
12100
|
// this.fetchNext(this.nextPage)
|
|
12098
12101
|
this.renderRoleTabsNext(this.nextPage)
|
|
12099
12102
|
}else{
|
|
12100
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
12101
|
-
|
|
12102
|
-
} else
|
|
12103
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
12104
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
12105
|
+
// } else
|
|
12106
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
12103
12107
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
12104
12108
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
12105
12109
|
} else {
|
|
@@ -12212,9 +12216,10 @@ export class SfIEvents extends LitElement {
|
|
|
12212
12216
|
if(this.mode == "next"){
|
|
12213
12217
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
|
|
12214
12218
|
}else{
|
|
12215
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
12216
|
-
|
|
12217
|
-
} else
|
|
12219
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
12220
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
12221
|
+
// } else
|
|
12222
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
12218
12223
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
12219
12224
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
12220
12225
|
} else {
|
|
@@ -12445,9 +12450,10 @@ export class SfIEvents extends LitElement {
|
|
|
12445
12450
|
if(this.mode == "next"){
|
|
12446
12451
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
|
|
12447
12452
|
}else{
|
|
12448
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
12449
|
-
|
|
12450
|
-
} else
|
|
12453
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
12454
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
12455
|
+
// } else
|
|
12456
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
12451
12457
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
12452
12458
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
12453
12459
|
} else {
|
|
@@ -13165,13 +13171,13 @@ export class SfIEvents extends LitElement {
|
|
|
13165
13171
|
this.clearMessages()
|
|
13166
13172
|
}, 3000);
|
|
13167
13173
|
//console.log('deleted', resultDelete);
|
|
13168
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13169
|
-
|
|
13170
|
-
} else {
|
|
13174
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13175
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
13176
|
+
// } else {
|
|
13171
13177
|
if(currentColumnButton != null) {
|
|
13172
13178
|
currentColumnButton.click();
|
|
13173
13179
|
}
|
|
13174
|
-
}
|
|
13180
|
+
// }
|
|
13175
13181
|
|
|
13176
13182
|
var clickEvent = new MouseEvent("click", {
|
|
13177
13183
|
"view": window,
|
|
@@ -13219,13 +13225,13 @@ export class SfIEvents extends LitElement {
|
|
|
13219
13225
|
await this.uploadReviewsBulk(bulkBodyReview);
|
|
13220
13226
|
}
|
|
13221
13227
|
//console.log('deleted', resultDelete);
|
|
13222
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13223
|
-
|
|
13224
|
-
} else {
|
|
13228
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13229
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
13230
|
+
// } else {
|
|
13225
13231
|
if(currentColumnButton != null) {
|
|
13226
13232
|
currentColumnButton.click();
|
|
13227
13233
|
}
|
|
13228
|
-
}
|
|
13234
|
+
// }
|
|
13229
13235
|
|
|
13230
13236
|
var clickEvent = new MouseEvent("click", {
|
|
13231
13237
|
"view": window,
|
|
@@ -13375,9 +13381,10 @@ export class SfIEvents extends LitElement {
|
|
|
13375
13381
|
// this.fetchNext(this.nextPage)
|
|
13376
13382
|
this.renderRoleTabsNext(this.nextPage)
|
|
13377
13383
|
}else{
|
|
13378
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13379
|
-
|
|
13380
|
-
} else
|
|
13384
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13385
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
13386
|
+
// } else
|
|
13387
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
13381
13388
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
13382
13389
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
13383
13390
|
} else {
|
|
@@ -13487,9 +13494,10 @@ export class SfIEvents extends LitElement {
|
|
|
13487
13494
|
if(this.mode == "next"){
|
|
13488
13495
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
|
|
13489
13496
|
}else{
|
|
13490
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13491
|
-
|
|
13492
|
-
} else
|
|
13497
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13498
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
13499
|
+
// } else
|
|
13500
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
13493
13501
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
13494
13502
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
13495
13503
|
} else {
|
|
@@ -13735,9 +13743,10 @@ export class SfIEvents extends LitElement {
|
|
|
13735
13743
|
if(this.mode == "next"){
|
|
13736
13744
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
|
|
13737
13745
|
}else{
|
|
13738
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13739
|
-
|
|
13740
|
-
} else
|
|
13746
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13747
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
13748
|
+
// } else
|
|
13749
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
13741
13750
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
13742
13751
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
13743
13752
|
} else {
|
|
@@ -23562,7 +23571,7 @@ export class SfIEvents extends LitElement {
|
|
|
23562
23571
|
this.renderThis(parseInt(this.currentColumnIndex), showGraph, showBackgroundButton);
|
|
23563
23572
|
}
|
|
23564
23573
|
if(this.selectedTab == this.TAB_CUSTOM) {
|
|
23565
|
-
this.processDateSelection((this._SfCustomContainer as HTMLDivElement), false)
|
|
23574
|
+
this.processDateSelection((this._SfCustomContainer as HTMLDivElement), false, showBackgroundButton)
|
|
23566
23575
|
}
|
|
23567
23576
|
// if(this.selectedTab == this.TAB_PAST) {
|
|
23568
23577
|
// this.renderPast(parseInt(this.currentColumnIndex), false);
|