sf-i-events 1.0.835 → 1.0.837
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 -4
- package/package.json +1 -1
- package/sf-i-events.js +26 -20
- package/src/sf-i-events.ts +24 -20
package/dev/index.html
CHANGED
|
@@ -684,7 +684,7 @@
|
|
|
684
684
|
<!-- <sf-i-events projectid="a81b6ae1-98de-4b72-8cf0-9aaee5b61891" projectname="Khaitan" mode="onboarding" locations="{}" contractstartdate="01/01/2025" 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">
|
|
685
685
|
|
|
686
686
|
</sf-i-events> -->
|
|
687
|
-
|
|
687
|
+
<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="Precisionmed Reporter" userprofileid="fe5070fe-9982-4dcf-8458-f8d4f97c7b01" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" projectname="PrecisionMed ABC" countryid="f443b70d-6609-42e0-b6a4-446bfa05d20a" myrole="reporter" showregisterexport="false" features="[]" 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">
|
|
688
688
|
|
|
689
689
|
<div slot="uploader">
|
|
690
690
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
@@ -693,8 +693,8 @@
|
|
|
693
693
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
694
694
|
</div>
|
|
695
695
|
|
|
696
|
-
</sf-i-events>
|
|
697
|
-
<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="Precisionmed Functionhead" userprofileid="8b73b571-f993-49cf-96e1-bf84f628f26f" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" projectname="PrecisionMed ABC" countryid="f443b70d-6609-42e0-b6a4-446bfa05d20a" myrole="viewer" showregisterexport="false" features="[]" 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">
|
|
696
|
+
</sf-i-events>
|
|
697
|
+
<!-- <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="Precisionmed Functionhead" userprofileid="8b73b571-f993-49cf-96e1-bf84f628f26f" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" projectname="PrecisionMed ABC" countryid="f443b70d-6609-42e0-b6a4-446bfa05d20a" myrole="viewer" showregisterexport="false" features="[]" 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">
|
|
698
698
|
|
|
699
699
|
<div slot="uploader">
|
|
700
700
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="63d20443-b9cc-4a86-b39d-bf81c1c93ba5" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
@@ -703,7 +703,7 @@
|
|
|
703
703
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
704
704
|
</div>
|
|
705
705
|
|
|
706
|
-
</sf-i-events>
|
|
706
|
+
</sf-i-events> -->
|
|
707
707
|
<!-- <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="Auditor J1" userprofileid="bda0d59b-058b-4098-b0fc-54aa54aa5998" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="auditor" 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">
|
|
708
708
|
|
|
709
709
|
<div slot="uploader">
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -3873,6 +3873,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3873
3873
|
if (event.documentType != null) {
|
|
3874
3874
|
this._SfUploader[0].querySelector('#uploader').docType = event.documentType;
|
|
3875
3875
|
}
|
|
3876
|
+
else {
|
|
3877
|
+
this._SfUploader[0].querySelector('#uploader').docType = "";
|
|
3878
|
+
}
|
|
3876
3879
|
this._SfUploader[0].querySelector('#uploader').prepopulatedInputArr = JSON.stringify([]);
|
|
3877
3880
|
console.log('uploader', this._SfUploader[0].querySelector('#uploader'));
|
|
3878
3881
|
this._SfUploader[0].querySelector('#uploader').loadMode();
|
|
@@ -5244,8 +5247,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
5244
5247
|
}
|
|
5245
5248
|
};
|
|
5246
5249
|
this.processDateSelection = async (eventContainer, fetchData = true, showBackgroundButton = false) => {
|
|
5247
|
-
var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
|
|
5248
|
-
var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
5250
|
+
// var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
|
|
5251
|
+
// var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
5249
5252
|
var valueStart = this._SfCustomContainer.querySelector('#stream-start-date').value;
|
|
5250
5253
|
if (valueStart == "") {
|
|
5251
5254
|
valueStart = this._SfCustomContainer.querySelector('#stream-start-date-mobile').value;
|
|
@@ -5258,14 +5261,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
5258
5261
|
//console.log('valueend', valueEnd);
|
|
5259
5262
|
if (valueStart != "" && valueEnd != "") {
|
|
5260
5263
|
this.initCustomRightCol();
|
|
5261
|
-
if
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
}
|
|
5265
|
-
if
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
}
|
|
5264
|
+
// if(!this.checkStartDateEarliness(valueStart)) {
|
|
5265
|
+
// (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen Start Date cannot be earlier than " + startDateCalendar;
|
|
5266
|
+
// return;
|
|
5267
|
+
// }
|
|
5268
|
+
// if(!this.checkEndDateLateness(valueEnd)) {
|
|
5269
|
+
// (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen End Date cannot be later than " + endDateCalendar;
|
|
5270
|
+
// return;
|
|
5271
|
+
// }
|
|
5269
5272
|
if (new Date(valueStart).getTime() > new Date(valueEnd).getTime()) {
|
|
5270
5273
|
this._SfStreamEventStatus.innerHTML = "Chosen End Date cannot be earlier than chosen Start Date";
|
|
5271
5274
|
return;
|
|
@@ -5299,8 +5302,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
5299
5302
|
}
|
|
5300
5303
|
};
|
|
5301
5304
|
this.processDateSelectionViewer = async (eventContainer) => {
|
|
5302
|
-
var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
|
|
5303
|
-
var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
5305
|
+
// var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
|
|
5306
|
+
// var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
5304
5307
|
var valueStart = this._SfCustomContainer.querySelector('#stream-start-date').value;
|
|
5305
5308
|
if (valueStart == "") {
|
|
5306
5309
|
valueStart = this._SfCustomContainer.querySelector('#stream-start-date-mobile').value;
|
|
@@ -5370,14 +5373,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
5370
5373
|
console.log('subfiltercriteria, subfiltercriterianame', subfiltercriteria, subfiltercriterianame);
|
|
5371
5374
|
if (valueStart != "" && valueEnd != "") {
|
|
5372
5375
|
this.initCustomRightColViewer();
|
|
5373
|
-
if
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
}
|
|
5377
|
-
if
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
}
|
|
5376
|
+
// if(!this.checkStartDateEarliness(valueStart)) {
|
|
5377
|
+
// (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen Start Date cannot be earlier than " + startDateCalendar;
|
|
5378
|
+
// return;
|
|
5379
|
+
// }
|
|
5380
|
+
// if(!this.checkEndDateLateness(valueEnd)) {
|
|
5381
|
+
// (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen End Date cannot be later than " + endDateCalendar;
|
|
5382
|
+
// return;
|
|
5383
|
+
// }
|
|
5381
5384
|
if (new Date(valueStart).getTime() > new Date(valueEnd).getTime()) {
|
|
5382
5385
|
this._SfStreamEventStatus.innerHTML = "Chosen End Date cannot be earlier than chosen Start Date";
|
|
5383
5386
|
return;
|
|
@@ -10718,6 +10721,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10718
10721
|
if (documentType != null) {
|
|
10719
10722
|
this._SfUploader[0].querySelector('#uploader').docType = documentType;
|
|
10720
10723
|
}
|
|
10724
|
+
else {
|
|
10725
|
+
this._SfUploader[0].querySelector('#uploader').docType = "";
|
|
10726
|
+
}
|
|
10721
10727
|
this._SfUploader[0].querySelector('#uploader').prepopulatedInputArr = JSON.stringify([]);
|
|
10722
10728
|
console.log('uploader', this._SfUploader[0].querySelector('#uploader'));
|
|
10723
10729
|
this._SfUploader[0].querySelector('#uploader').loadMode();
|
package/src/sf-i-events.ts
CHANGED
|
@@ -6264,6 +6264,8 @@ export class SfIEvents extends LitElement {
|
|
|
6264
6264
|
|
|
6265
6265
|
if(event.documentType != null) {
|
|
6266
6266
|
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.docType = event.documentType;
|
|
6267
|
+
}else{
|
|
6268
|
+
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.docType = "";
|
|
6267
6269
|
}
|
|
6268
6270
|
|
|
6269
6271
|
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.prepopulatedInputArr = JSON.stringify([]);
|
|
@@ -7876,8 +7878,8 @@ export class SfIEvents extends LitElement {
|
|
|
7876
7878
|
|
|
7877
7879
|
processDateSelection = async (eventContainer: HTMLDivElement, fetchData: boolean = true, showBackgroundButton: boolean = false) => {
|
|
7878
7880
|
|
|
7879
|
-
var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
|
|
7880
|
-
var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
7881
|
+
// var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
|
|
7882
|
+
// var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
7881
7883
|
|
|
7882
7884
|
var valueStart = ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value;
|
|
7883
7885
|
if(valueStart == "") {
|
|
@@ -7894,14 +7896,14 @@ export class SfIEvents extends LitElement {
|
|
|
7894
7896
|
|
|
7895
7897
|
if(valueStart != "" && valueEnd != "") {
|
|
7896
7898
|
this.initCustomRightCol();
|
|
7897
|
-
if(!this.checkStartDateEarliness(valueStart)) {
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
}
|
|
7901
|
-
if(!this.checkEndDateLateness(valueEnd)) {
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
}
|
|
7899
|
+
// if(!this.checkStartDateEarliness(valueStart)) {
|
|
7900
|
+
// (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen Start Date cannot be earlier than " + startDateCalendar;
|
|
7901
|
+
// return;
|
|
7902
|
+
// }
|
|
7903
|
+
// if(!this.checkEndDateLateness(valueEnd)) {
|
|
7904
|
+
// (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen End Date cannot be later than " + endDateCalendar;
|
|
7905
|
+
// return;
|
|
7906
|
+
// }
|
|
7905
7907
|
if(new Date(valueStart).getTime() > new Date(valueEnd).getTime()) {
|
|
7906
7908
|
(this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen End Date cannot be earlier than chosen Start Date";
|
|
7907
7909
|
return;
|
|
@@ -7939,8 +7941,8 @@ export class SfIEvents extends LitElement {
|
|
|
7939
7941
|
|
|
7940
7942
|
processDateSelectionViewer = async (eventContainer: HTMLDivElement) => {
|
|
7941
7943
|
|
|
7942
|
-
var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
|
|
7943
|
-
var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
7944
|
+
// var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
|
|
7945
|
+
// var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
7944
7946
|
|
|
7945
7947
|
var valueStart = ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value;
|
|
7946
7948
|
if(valueStart == "") {
|
|
@@ -8011,14 +8013,14 @@ export class SfIEvents extends LitElement {
|
|
|
8011
8013
|
console.log('subfiltercriteria, subfiltercriterianame', subfiltercriteria, subfiltercriterianame)
|
|
8012
8014
|
if(valueStart != "" && valueEnd != "") {
|
|
8013
8015
|
this.initCustomRightColViewer();
|
|
8014
|
-
if(!this.checkStartDateEarliness(valueStart)) {
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
}
|
|
8018
|
-
if(!this.checkEndDateLateness(valueEnd)) {
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
}
|
|
8016
|
+
// if(!this.checkStartDateEarliness(valueStart)) {
|
|
8017
|
+
// (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen Start Date cannot be earlier than " + startDateCalendar;
|
|
8018
|
+
// return;
|
|
8019
|
+
// }
|
|
8020
|
+
// if(!this.checkEndDateLateness(valueEnd)) {
|
|
8021
|
+
// (this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen End Date cannot be later than " + endDateCalendar;
|
|
8022
|
+
// return;
|
|
8023
|
+
// }
|
|
8022
8024
|
if(new Date(valueStart).getTime() > new Date(valueEnd).getTime()) {
|
|
8023
8025
|
(this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Chosen End Date cannot be earlier than chosen Start Date";
|
|
8024
8026
|
return;
|
|
@@ -14517,6 +14519,8 @@ export class SfIEvents extends LitElement {
|
|
|
14517
14519
|
|
|
14518
14520
|
if(documentType != null) {
|
|
14519
14521
|
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.docType = documentType;
|
|
14522
|
+
}else{
|
|
14523
|
+
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.docType = ""
|
|
14520
14524
|
}
|
|
14521
14525
|
|
|
14522
14526
|
(this._SfUploader[0].querySelector('#uploader') as SfIUploader)!.prepopulatedInputArr = JSON.stringify([]);
|