sf-i-events 1.0.706 → 1.0.707
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 +11 -1
- package/package.json +1 -1
- package/sf-i-events.js +10 -7
- package/src/sf-i-events.ts +11 -7
package/dev/index.html
CHANGED
|
@@ -693,7 +693,7 @@
|
|
|
693
693
|
</div>
|
|
694
694
|
|
|
695
695
|
</sf-i-events> -->
|
|
696
|
-
<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="
|
|
696
|
+
<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="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" 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">
|
|
697
697
|
|
|
698
698
|
<div slot="uploader">
|
|
699
699
|
<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>
|
|
@@ -703,6 +703,16 @@
|
|
|
703
703
|
</div>
|
|
704
704
|
|
|
705
705
|
</sf-i-events>
|
|
706
|
+
<!-- <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="pattern" 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" enabledeletelatestreport="true" 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="["obligationtitle"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
707
|
+
|
|
708
|
+
<div slot="uploader">
|
|
709
|
+
<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>
|
|
710
|
+
</div>
|
|
711
|
+
<div slot="reporting">
|
|
712
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
713
|
+
</div>
|
|
714
|
+
|
|
715
|
+
</sf-i-events> -->
|
|
706
716
|
|
|
707
717
|
<!-- <sf-i-events projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" mode="onboarding" locations="{"India":{"Telangana":["Corporate Office","Telangana Plant"],"Karnataka":["Prime","Stopak","Wintek","Tools","Conversion"],"Gujarat":["Dahej"],"Dadra and Nagar Haveli and Daman and Diu":["Silvassa"],"Uttarakhand":["Uttarakhand"],"Maharashtra":["Pune"],"Andhra Pradesh":["AP"],"Chhattisgarh":["Chhattisgarh"],"Goa":["Goa"],"Himachal Pradesh":["HP"],"Haryana":["Haryana"],"Jharkhand":["Jharkhand"],"Madhya Pradesh":["MP"],"Odisha":["Odisha"],"Punjab":["Punjab"],"Tamil Nadu":["TN"],"Uttar Pradesh":["UP"],"West Bengal":["WB"]}}" contractstartdate="01/04/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="hrushi.mehendale@gmail.com" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
|
|
708
718
|
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -6962,6 +6962,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6962
6962
|
locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
6963
6963
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
6964
6964
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
6965
|
+
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
|
|
6965
6966
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
6966
6967
|
if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
6967
6968
|
this.events[mmdd][p].isbulk = true;
|
|
@@ -6982,6 +6983,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6982
6983
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
6983
6984
|
}
|
|
6984
6985
|
else {
|
|
6986
|
+
if (this.selectedItemIds.length > 0) {
|
|
6987
|
+
await this.fetchBulkReportingData();
|
|
6988
|
+
}
|
|
6985
6989
|
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
6986
6990
|
var clickEvent = new MouseEvent("click", {
|
|
6987
6991
|
"view": window,
|
|
@@ -6989,9 +6993,6 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6989
6993
|
"cancelable": false
|
|
6990
6994
|
});
|
|
6991
6995
|
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
6992
|
-
if (this.selectedItemIds.length > 0) {
|
|
6993
|
-
await this.fetchBulkReportingData();
|
|
6994
|
-
}
|
|
6995
6996
|
// if(currentColumnButton != null) {
|
|
6996
6997
|
// currentColumnButton.click();
|
|
6997
6998
|
// }
|
|
@@ -7052,6 +7053,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7052
7053
|
locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
7053
7054
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
7054
7055
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
7056
|
+
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
|
|
7055
7057
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
7056
7058
|
if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
7057
7059
|
this.events[mmdd][p].isbulk = true;
|
|
@@ -7077,10 +7079,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7077
7079
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
7078
7080
|
}
|
|
7079
7081
|
else {
|
|
7080
|
-
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
7081
7082
|
if (this.selectedItemIds.length > 0) {
|
|
7082
7083
|
await this.fetchBulkReportingData();
|
|
7083
7084
|
}
|
|
7085
|
+
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
7084
7086
|
// if(currentColumnButton != null) {
|
|
7085
7087
|
// currentColumnButton.click();
|
|
7086
7088
|
// }
|
|
@@ -7233,6 +7235,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7233
7235
|
locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
7234
7236
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
7235
7237
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
7238
|
+
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1];
|
|
7236
7239
|
for (var p = 0; p < this.events[mmdd].length; p++) {
|
|
7237
7240
|
if (this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
|
|
7238
7241
|
this.events[mmdd][p].isbulk = true;
|
|
@@ -7252,10 +7255,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
7252
7255
|
this.processFindSelection(this._SfFindContainer, searchString);
|
|
7253
7256
|
}
|
|
7254
7257
|
else {
|
|
7258
|
+
if (this.selectedItemIds.length > 0) {
|
|
7259
|
+
await this.fetchBulkReportingData();
|
|
7260
|
+
}
|
|
7255
7261
|
this.renderAppropriateStream(this.sdate, this.edate, true);
|
|
7256
|
-
// if(this.selectedItemIds.length > 0) {
|
|
7257
|
-
await this.fetchBulkReportingData();
|
|
7258
|
-
// }
|
|
7259
7262
|
// if(currentColumnButton != null) {
|
|
7260
7263
|
// currentColumnButton.click();
|
|
7261
7264
|
// }
|
package/src/sf-i-events.ts
CHANGED
|
@@ -10331,6 +10331,7 @@ export class SfIEvents extends LitElement {
|
|
|
10331
10331
|
locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
10332
10332
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
10333
10333
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
10334
|
+
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
|
|
10334
10335
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
10335
10336
|
if(this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
|
|
10336
10337
|
|
|
@@ -10350,6 +10351,9 @@ export class SfIEvents extends LitElement {
|
|
|
10350
10351
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
10351
10352
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
10352
10353
|
} else {
|
|
10354
|
+
if(this.selectedItemIds.length > 0) {
|
|
10355
|
+
await this.fetchBulkReportingData();
|
|
10356
|
+
}
|
|
10353
10357
|
this.renderAppropriateStream(this.sdate,this.edate, true);
|
|
10354
10358
|
var clickEvent = new MouseEvent("click", {
|
|
10355
10359
|
"view": window,
|
|
@@ -10357,9 +10361,7 @@ export class SfIEvents extends LitElement {
|
|
|
10357
10361
|
"cancelable": false
|
|
10358
10362
|
});
|
|
10359
10363
|
((this._SfDetailContainer as HTMLDivElement).querySelector('#button-detail-close') as HTMLButtonElement)!.dispatchEvent(clickEvent);
|
|
10360
|
-
|
|
10361
|
-
await this.fetchBulkReportingData();
|
|
10362
|
-
}
|
|
10364
|
+
|
|
10363
10365
|
// if(currentColumnButton != null) {
|
|
10364
10366
|
// currentColumnButton.click();
|
|
10365
10367
|
// }
|
|
@@ -10432,6 +10434,7 @@ export class SfIEvents extends LitElement {
|
|
|
10432
10434
|
locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
10433
10435
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
10434
10436
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
10437
|
+
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
|
|
10435
10438
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
10436
10439
|
if(this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
|
|
10437
10440
|
|
|
@@ -10457,10 +10460,10 @@ export class SfIEvents extends LitElement {
|
|
|
10457
10460
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
10458
10461
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
10459
10462
|
} else {
|
|
10460
|
-
this.renderAppropriateStream(this.sdate,this.edate,true);
|
|
10461
10463
|
if(this.selectedItemIds.length > 0) {
|
|
10462
10464
|
await this.fetchBulkReportingData();
|
|
10463
10465
|
}
|
|
10466
|
+
this.renderAppropriateStream(this.sdate,this.edate,true);
|
|
10464
10467
|
// if(currentColumnButton != null) {
|
|
10465
10468
|
// currentColumnButton.click();
|
|
10466
10469
|
// }
|
|
@@ -10654,6 +10657,7 @@ export class SfIEvents extends LitElement {
|
|
|
10654
10657
|
locationId = selectedId.split('-')[8].replace(/_/g, '-');
|
|
10655
10658
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
10656
10659
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
10660
|
+
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
|
|
10657
10661
|
for( var p = 0 ; p < this.events[mmdd].length; p ++){
|
|
10658
10662
|
if(this.events[mmdd][p].id == eventId && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
|
|
10659
10663
|
|
|
@@ -10673,10 +10677,10 @@ export class SfIEvents extends LitElement {
|
|
|
10673
10677
|
const searchString = ((this._SfFindContainer as HTMLDivElement).querySelector('#stream-search') as HTMLInputElement).value;
|
|
10674
10678
|
this.processFindSelection((this._SfFindContainer as HTMLDivElement), searchString);
|
|
10675
10679
|
} else {
|
|
10680
|
+
if(this.selectedItemIds.length > 0) {
|
|
10681
|
+
await this.fetchBulkReportingData();
|
|
10682
|
+
}
|
|
10676
10683
|
this.renderAppropriateStream(this.sdate,this.edate,true)
|
|
10677
|
-
// if(this.selectedItemIds.length > 0) {
|
|
10678
|
-
await this.fetchBulkReportingData();
|
|
10679
|
-
// }
|
|
10680
10684
|
// if(currentColumnButton != null) {
|
|
10681
10685
|
// currentColumnButton.click();
|
|
10682
10686
|
// }
|