sf-i-events 1.0.775 → 1.0.776
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 +23 -23
- package/src/sf-i-events.ts +25 -19
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
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -9687,10 +9687,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9687
9687
|
this.renderRoleTabsNext(this.nextPage);
|
|
9688
9688
|
}
|
|
9689
9689
|
else {
|
|
9690
|
-
if
|
|
9691
|
-
|
|
9692
|
-
}
|
|
9693
|
-
|
|
9690
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
9691
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
9692
|
+
// } else
|
|
9693
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
9694
9694
|
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
9695
9695
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
9696
9696
|
}
|
|
@@ -9998,10 +9998,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9998
9998
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus);
|
|
9999
9999
|
}
|
|
10000
10000
|
else {
|
|
10001
|
-
if
|
|
10002
|
-
|
|
10003
|
-
}
|
|
10004
|
-
|
|
10001
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
10002
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
10003
|
+
// } else
|
|
10004
|
+
if (this.getCurrentTab() == this.TAB_FIND) {
|
|
10005
10005
|
const searchString = this._SfFindContainer.querySelector('#stream-search').value;
|
|
10006
10006
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
10007
10007
|
}
|
|
@@ -17592,7 +17592,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17592
17592
|
this.renderThis(parseInt(this.currentColumnIndex), showGraph, showBackgroundButton);
|
|
17593
17593
|
}
|
|
17594
17594
|
if (this.selectedTab == this.TAB_CUSTOM) {
|
|
17595
|
-
this.processDateSelection(this._SfCustomContainer, false);
|
|
17595
|
+
this.processDateSelection(this._SfCustomContainer, false, showBackgroundButton);
|
|
17596
17596
|
}
|
|
17597
17597
|
// if(this.selectedTab == this.TAB_PAST) {
|
|
17598
17598
|
// this.renderPast(parseInt(this.currentColumnIndex), false);
|
package/src/sf-i-events.ts
CHANGED
|
@@ -5588,7 +5588,8 @@ export class SfIEvents extends LitElement {
|
|
|
5588
5588
|
}else{
|
|
5589
5589
|
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
5590
5590
|
this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
5591
|
-
} else
|
|
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 {
|
|
@@ -5901,9 +5902,10 @@ export class SfIEvents extends LitElement {
|
|
|
5901
5902
|
if(this.mode == "next"){
|
|
5902
5903
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
|
|
5903
5904
|
}else{
|
|
5904
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
5905
|
-
|
|
5906
|
-
} else
|
|
5905
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
5906
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
5907
|
+
// } else
|
|
5908
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
5907
5909
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
5908
5910
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
5909
5911
|
} else {
|
|
@@ -7457,7 +7459,7 @@ export class SfIEvents extends LitElement {
|
|
|
7457
7459
|
}
|
|
7458
7460
|
}
|
|
7459
7461
|
|
|
7460
|
-
processDateSelection = async (eventContainer: HTMLDivElement, fetchData: boolean = true) => {
|
|
7462
|
+
processDateSelection = async (eventContainer: HTMLDivElement, fetchData: boolean = true, showBackgroundButton: boolean = false) => {
|
|
7461
7463
|
|
|
7462
7464
|
var startDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + this.calendarStartYYYY);
|
|
7463
7465
|
var endDateCalendar = new Date(this.calendarStartMM + '/' + this.calendarStartDD + '/' + (parseInt(this.calendarStartYYYY) + 1));
|
|
@@ -7501,7 +7503,7 @@ export class SfIEvents extends LitElement {
|
|
|
7501
7503
|
await this.renderWithFeatures((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear())
|
|
7502
7504
|
// await this.fetchAndYearlyRenderUserCalendar_2((tsStart.getMonth() + 1) + "/" + tsStart.getDate() + "/" + tsStart.getFullYear(), (tsEnd.getMonth() + 1) + "/" + tsEnd.getDate() + "/" + tsEnd.getFullYear());
|
|
7503
7505
|
}
|
|
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));
|
|
7506
|
+
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
7507
|
} else if(valueStart != "" && valueEnd == "") {
|
|
7506
7508
|
(this._SfStreamEventStatus as HTMLDivElement).innerHTML = "Please select End Date";
|
|
7507
7509
|
} else if(valueStart == "" && valueEnd != "") {
|
|
@@ -12097,9 +12099,10 @@ export class SfIEvents extends LitElement {
|
|
|
12097
12099
|
// this.fetchNext(this.nextPage)
|
|
12098
12100
|
this.renderRoleTabsNext(this.nextPage)
|
|
12099
12101
|
}else{
|
|
12100
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
12101
|
-
|
|
12102
|
-
} else
|
|
12102
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
12103
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
12104
|
+
// } else
|
|
12105
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
12103
12106
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
12104
12107
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
12105
12108
|
} else {
|
|
@@ -12445,9 +12448,10 @@ export class SfIEvents extends LitElement {
|
|
|
12445
12448
|
if(this.mode == "next"){
|
|
12446
12449
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
|
|
12447
12450
|
}else{
|
|
12448
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
12449
|
-
|
|
12450
|
-
} else
|
|
12451
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
12452
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
12453
|
+
// } else
|
|
12454
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
12451
12455
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
12452
12456
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
12453
12457
|
} else {
|
|
@@ -13375,9 +13379,10 @@ export class SfIEvents extends LitElement {
|
|
|
13375
13379
|
// this.fetchNext(this.nextPage)
|
|
13376
13380
|
this.renderRoleTabsNext(this.nextPage)
|
|
13377
13381
|
}else{
|
|
13378
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13379
|
-
|
|
13380
|
-
} else
|
|
13382
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13383
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
13384
|
+
// } else
|
|
13385
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
13381
13386
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
13382
13387
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
13383
13388
|
} else {
|
|
@@ -13735,9 +13740,10 @@ export class SfIEvents extends LitElement {
|
|
|
13735
13740
|
if(this.mode == "next"){
|
|
13736
13741
|
this.fetchNext(this.nextPage, this.nextTabRole, this.nextTabStatus)
|
|
13737
13742
|
}else{
|
|
13738
|
-
if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13739
|
-
|
|
13740
|
-
} else
|
|
13743
|
+
// if(this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
13744
|
+
// this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
|
|
13745
|
+
// } else
|
|
13746
|
+
if(this.getCurrentTab() == this.TAB_FIND) {
|
|
13741
13747
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
13742
13748
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
13743
13749
|
} else {
|
|
@@ -23562,7 +23568,7 @@ export class SfIEvents extends LitElement {
|
|
|
23562
23568
|
this.renderThis(parseInt(this.currentColumnIndex), showGraph, showBackgroundButton);
|
|
23563
23569
|
}
|
|
23564
23570
|
if(this.selectedTab == this.TAB_CUSTOM) {
|
|
23565
|
-
this.processDateSelection((this._SfCustomContainer as HTMLDivElement), false)
|
|
23571
|
+
this.processDateSelection((this._SfCustomContainer as HTMLDivElement), false, showBackgroundButton)
|
|
23566
23572
|
}
|
|
23567
23573
|
// if(this.selectedTab == this.TAB_PAST) {
|
|
23568
23574
|
// this.renderPast(parseInt(this.currentColumnIndex), false);
|