sf-i-events 1.0.785 → 1.0.786
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 +12 -13
- package/src/sf-i-events.ts +12 -12
package/dev/index.html
CHANGED
|
@@ -648,7 +648,7 @@
|
|
|
648
648
|
</div>
|
|
649
649
|
|
|
650
650
|
</sf-i-events> -->
|
|
651
|
-
<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="Viewer J1" userprofileid="344c84d2-5976-47ff-949b-49f6fa9627eb" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="viewer" showregisterexport="true" 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">
|
|
651
|
+
<!-- <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="Viewer J1" userprofileid="344c84d2-5976-47ff-949b-49f6fa9627eb" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="viewer" showregisterexport="true" 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">
|
|
652
652
|
|
|
653
653
|
<div slot="uploader">
|
|
654
654
|
<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>
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
658
658
|
</div>
|
|
659
659
|
|
|
660
|
-
</sf-i-events>
|
|
660
|
+
</sf-i-events> -->
|
|
661
661
|
<!-- <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="Viewer J1" userprofileid="344c84d2-5976-47ff-949b-49f6fa9627eb" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="viewer" 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">
|
|
662
662
|
|
|
663
663
|
<div slot="uploader">
|
|
@@ -681,7 +681,7 @@
|
|
|
681
681
|
</div>
|
|
682
682
|
|
|
683
683
|
</sf-i-events> -->
|
|
684
|
-
|
|
684
|
+
<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" fill="solid" username="Local Approver 1" userprofileid="c44dcd04-aebb-4417-ba6b-fac170efd5d0" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="approver" showregisterexport="false" 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">
|
|
685
685
|
|
|
686
686
|
<div slot="uploader">
|
|
687
687
|
<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>
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
691
691
|
</div>
|
|
692
692
|
|
|
693
|
-
</sf-i-events>
|
|
693
|
+
</sf-i-events>
|
|
694
694
|
|
|
695
695
|
|
|
696
696
|
<script>
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -7892,17 +7892,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7892
7892
|
const divs = divContainer.querySelectorAll('.chip');
|
|
7893
7893
|
divs.forEach(div => {
|
|
7894
7894
|
div.addEventListener('click', () => {
|
|
7895
|
-
const spans = div.querySelectorAll('span')
|
|
7896
|
-
if
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
}
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
}
|
|
7895
|
+
// const spans = div.querySelectorAll('span') as NodeListOf<HTMLSpanElement>;
|
|
7896
|
+
// if(spans[2].innerHTML == "0") {
|
|
7897
|
+
// this.setError('No items present for the selected filter!')
|
|
7898
|
+
// setTimeout(() => {
|
|
7899
|
+
// this.clearMessages();
|
|
7900
|
+
// }, 2000);
|
|
7901
|
+
// } else {
|
|
7902
|
+
// this.clickOnPie(false, parseInt(div.id.split('-')[2]))
|
|
7903
|
+
// this.chart.update();
|
|
7904
|
+
// }
|
|
7906
7905
|
});
|
|
7907
7906
|
});
|
|
7908
7907
|
};
|
|
@@ -16510,7 +16509,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16510
16509
|
}
|
|
16511
16510
|
};
|
|
16512
16511
|
this.uploadReview = async (entityId, locationId, mmddyyyy, eventid, comments, approved, module = "events") => {
|
|
16513
|
-
let url = "https://" + this.apiId + "/
|
|
16512
|
+
let url = "https://" + this.apiId + "/uploadreview2";
|
|
16514
16513
|
const body = {
|
|
16515
16514
|
"mmddyyyy": mmddyyyy,
|
|
16516
16515
|
"projectid": this.projectId,
|
|
@@ -16565,7 +16564,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16565
16564
|
}
|
|
16566
16565
|
};
|
|
16567
16566
|
this.uploadReviewsBulk = async (bulkBody) => {
|
|
16568
|
-
let url = "https://" + this.apiId + "/
|
|
16567
|
+
let url = "https://" + this.apiId + "/uploadreviewsbulk2";
|
|
16569
16568
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
16570
16569
|
const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
|
|
16571
16570
|
this._SfLoader.innerHTML = '';
|
package/src/sf-i-events.ts
CHANGED
|
@@ -11165,16 +11165,16 @@ export class SfIEvents extends LitElement {
|
|
|
11165
11165
|
divs.forEach(div => {
|
|
11166
11166
|
div.addEventListener('click', () => {
|
|
11167
11167
|
|
|
11168
|
-
const spans = div.querySelectorAll('span') as NodeListOf<HTMLSpanElement>;
|
|
11169
|
-
if(spans[2].innerHTML == "0") {
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
-
} else {
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
}
|
|
11168
|
+
// const spans = div.querySelectorAll('span') as NodeListOf<HTMLSpanElement>;
|
|
11169
|
+
// if(spans[2].innerHTML == "0") {
|
|
11170
|
+
// this.setError('No items present for the selected filter!')
|
|
11171
|
+
// setTimeout(() => {
|
|
11172
|
+
// this.clearMessages();
|
|
11173
|
+
// }, 2000);
|
|
11174
|
+
// } else {
|
|
11175
|
+
// this.clickOnPie(false, parseInt(div.id.split('-')[2]))
|
|
11176
|
+
// this.chart.update();
|
|
11177
|
+
// }
|
|
11178
11178
|
|
|
11179
11179
|
})
|
|
11180
11180
|
|
|
@@ -22007,7 +22007,7 @@ export class SfIEvents extends LitElement {
|
|
|
22007
22007
|
}
|
|
22008
22008
|
|
|
22009
22009
|
uploadReview = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module: string = "events") => {
|
|
22010
|
-
let url = "https://"+this.apiId+"/
|
|
22010
|
+
let url = "https://"+this.apiId+"/uploadreview2";
|
|
22011
22011
|
|
|
22012
22012
|
const body = {
|
|
22013
22013
|
"mmddyyyy": mmddyyyy,
|
|
@@ -22066,7 +22066,7 @@ export class SfIEvents extends LitElement {
|
|
|
22066
22066
|
}
|
|
22067
22067
|
}
|
|
22068
22068
|
uploadReviewsBulk = async (bulkBody: any) => {
|
|
22069
|
-
let url = "https://"+this.apiId+"/
|
|
22069
|
+
let url = "https://"+this.apiId+"/uploadreviewsbulk2";
|
|
22070
22070
|
|
|
22071
22071
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
22072
22072
|
const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
|