sf-i-events 1.0.143 → 1.0.145
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 +64 -18
- package/package.json +1 -1
- package/sf-i-events.d.ts +2 -1
- package/sf-i-events.d.ts.map +1 -1
- package/sf-i-events.js +120 -28
- package/sf-i-events.js.map +1 -1
- package/src/sf-i-events.ts +122 -30
package/dev/index.html
CHANGED
|
@@ -593,7 +593,7 @@
|
|
|
593
593
|
</sf-i-events>
|
|
594
594
|
-->
|
|
595
595
|
|
|
596
|
-
<sf-i-events
|
|
596
|
+
<!-- <sf-i-events
|
|
597
597
|
|
|
598
598
|
projectId="3237530b-17e1-411e-a438-dd42a4e3b9be"
|
|
599
599
|
projectName="ABC Tyres"
|
|
@@ -606,33 +606,33 @@
|
|
|
606
606
|
|
|
607
607
|
>
|
|
608
608
|
|
|
609
|
-
</sf-i-events>
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
609
|
+
</sf-i-events> -->
|
|
613
610
|
|
|
614
|
-
|
|
615
|
-
name="
|
|
611
|
+
<sf-i-events
|
|
612
|
+
name="Calendar"
|
|
616
613
|
apiId="8icpy39ru0"
|
|
614
|
+
mode="consumer"
|
|
615
|
+
userProfileId="4266edf5-cb77-4e0b-9eaa-51db52f0d89d"
|
|
616
|
+
countryId="7e1512a7-a474-4f62-9967-75d6b0fc25d2"
|
|
617
|
+
locationId="9903b44b-6714-4906-bf00-a219c4ecfe0a"
|
|
618
|
+
projectId="3237530b-17e1-411e-a438-dd42a4e3b9be"
|
|
617
619
|
apiIdUsers="rnmvvr922j"
|
|
618
620
|
apiIdTags="j385cxf2p0"
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
apiMethodList="detail"
|
|
622
|
-
apiBodyList="{"id": "10daf75f-cb8f-45a5-95b7-ff9f27c4600a"}"
|
|
623
|
-
apiResponseFieldList="compliance"
|
|
624
|
-
apiIdDetail="r42gyc2xx1"
|
|
625
|
-
apiMethodDetail="detail"
|
|
626
|
-
apiBodyDetail="{"id": "ID-DETAIL"}"
|
|
621
|
+
projectName="ABC Tyres"
|
|
622
|
+
userName="Madhura Zende"
|
|
627
623
|
eventFieldDependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
628
624
|
eventFields="[{"type": "sf-i-select", "apiId": "3z3fiubz8e", "field": "riskarea"},{"type": "sf-i-select", "apiId": "5s7ih5uw4h", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "oqze24s784", "field": "updatetype"},{"type": "sf-i-select", "apiId": "zu3kh9cq2c", "field": "country"},{"type": "sf-i-select", "apiId": "8ijy7mze67", "field": "specificity"},{"type": "sf-i-select", "apiId": "et1hdzg882", "field": "risk"},{"type": "sf-i-select", "apiId": "lhpn6gh0il", "field": "frequency"},{"type": "sf-i-select", "apiId": "8an2d4j1gc", "field": "category"},{"type": "sf-i-select", "apiId": "vofssiq1t3", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "clnu4kk1ah", "field": "state"},{"type": "sf-i-sub-select", "apiId": "aysa6i6723", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "mdkc0e2bo5", "field": "subcategory"},{"type": "sf-i-form", "apiId": "4wb2x6fkga", "field": "statute", "projectField": "name"}]"
|
|
629
625
|
eventPreviewFields="["obligationtitle"]"
|
|
630
|
-
eventHideFields="["comments","documents","lastupdated","approved"]"
|
|
626
|
+
eventHideFields="["comments","documents","lastupdated","approved","tags"]"
|
|
631
627
|
calendarStartDD="01"
|
|
632
628
|
calendarStartMM="04"
|
|
633
629
|
calendarStartYYYY="2023"
|
|
634
630
|
>
|
|
635
631
|
|
|
632
|
+
<div slot="uploader">
|
|
633
|
+
<sf-i-uploader id="uploader" max="10" apiId="1peg5170d3" allowedExtensions="["jpg","png"]"></sf-i-uploader>
|
|
634
|
+
</div>
|
|
635
|
+
|
|
636
636
|
<div slot="project">
|
|
637
637
|
|
|
638
638
|
<sf-i-form
|
|
@@ -650,7 +650,9 @@
|
|
|
650
650
|
|
|
651
651
|
</div>
|
|
652
652
|
|
|
653
|
-
</sf-i-events>
|
|
653
|
+
</sf-i-events>
|
|
654
|
+
|
|
655
|
+
<!-- Blank Entity-->
|
|
654
656
|
|
|
655
657
|
<!-- <sf-i-events
|
|
656
658
|
name="Calendar"
|
|
@@ -658,7 +660,7 @@
|
|
|
658
660
|
mode="consumer"
|
|
659
661
|
userProfileId="4266edf5-cb77-4e0b-9eaa-51db52f0d89d"
|
|
660
662
|
entityId="7e1512a7-a474-4f62-9967-75d6b0fc25d2"
|
|
661
|
-
locationId=""
|
|
663
|
+
locationId="9903b44b-6714-4906-bf00-a219c4ecfe0a"
|
|
662
664
|
projectId="3237530b-17e1-411e-a438-dd42a4e3b9be"
|
|
663
665
|
apiIdUsers="rnmvvr922j"
|
|
664
666
|
apiIdTags="j385cxf2p0"
|
|
@@ -696,6 +698,50 @@
|
|
|
696
698
|
|
|
697
699
|
</sf-i-events> -->
|
|
698
700
|
|
|
701
|
+
|
|
702
|
+
<!-- <sf-i-events
|
|
703
|
+
name="User Mapping"
|
|
704
|
+
apiId="8icpy39ru0"
|
|
705
|
+
apiIdUsers="rnmvvr922j"
|
|
706
|
+
apiIdTags="j385cxf2p0"
|
|
707
|
+
mode="admin"
|
|
708
|
+
apiIdList="tcic9iqenc"
|
|
709
|
+
apiMethodList="detail"
|
|
710
|
+
apiBodyList="{"id": "10daf75f-cb8f-45a5-95b7-ff9f27c4600a"}"
|
|
711
|
+
apiResponseFieldList="compliance"
|
|
712
|
+
apiIdDetail="r42gyc2xx1"
|
|
713
|
+
apiMethodDetail="detail"
|
|
714
|
+
apiBodyDetail="{"id": "ID-DETAIL"}"
|
|
715
|
+
eventFieldDependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]"
|
|
716
|
+
eventFields="[{"type": "sf-i-select", "apiId": "3z3fiubz8e", "field": "riskarea"},{"type": "sf-i-select", "apiId": "5s7ih5uw4h", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "oqze24s784", "field": "updatetype"},{"type": "sf-i-select", "apiId": "zu3kh9cq2c", "field": "country"},{"type": "sf-i-select", "apiId": "8ijy7mze67", "field": "specificity"},{"type": "sf-i-select", "apiId": "et1hdzg882", "field": "risk"},{"type": "sf-i-select", "apiId": "lhpn6gh0il", "field": "frequency"},{"type": "sf-i-select", "apiId": "8an2d4j1gc", "field": "category"},{"type": "sf-i-select", "apiId": "vofssiq1t3", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "clnu4kk1ah", "field": "state"},{"type": "sf-i-sub-select", "apiId": "aysa6i6723", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "mdkc0e2bo5", "field": "subcategory"},{"type": "sf-i-form", "apiId": "4wb2x6fkga", "field": "statute", "projectField": "name"}]"
|
|
717
|
+
eventPreviewFields="["obligationtitle"]"
|
|
718
|
+
eventHideFields="["comments","documents","lastupdated","approved"]"
|
|
719
|
+
calendarStartDD="01"
|
|
720
|
+
calendarStartMM="04"
|
|
721
|
+
calendarStartYYYY="2023"
|
|
722
|
+
>
|
|
723
|
+
|
|
724
|
+
<div slot="project">
|
|
725
|
+
|
|
726
|
+
<sf-i-form
|
|
727
|
+
id="sf-i-project"
|
|
728
|
+
name="Projects"
|
|
729
|
+
label="Select Project *"
|
|
730
|
+
apiId="tcic9iqenc"
|
|
731
|
+
mode="select"
|
|
732
|
+
selectProjection="name"
|
|
733
|
+
ignoreProjections="["compliance","search","updatetype","shortid"]"
|
|
734
|
+
searchPhrase=''
|
|
735
|
+
mandatory
|
|
736
|
+
>
|
|
737
|
+
</sf-i-form>
|
|
738
|
+
|
|
739
|
+
</div>
|
|
740
|
+
|
|
741
|
+
</sf-i-events> -->
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
699
745
|
<!-- <sf-i-events
|
|
700
746
|
name="Calendar"
|
|
701
747
|
apiId="8icpy39ru0"
|
package/package.json
CHANGED
package/sf-i-events.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare class SfIEvents extends LitElement {
|
|
|
62
62
|
userProfileId: string;
|
|
63
63
|
entityId: string;
|
|
64
64
|
locationId: string;
|
|
65
|
+
countryId: string;
|
|
65
66
|
userName: string;
|
|
66
67
|
projectName: string;
|
|
67
68
|
apiResponseFieldList: string;
|
|
@@ -285,7 +286,7 @@ export declare class SfIEvents extends LitElement {
|
|
|
285
286
|
uploadCompliancesMapping: (data: any) => Promise<void>;
|
|
286
287
|
uploadStatutesMapping: (data: any) => Promise<void>;
|
|
287
288
|
uploadUnTriggerEvent: (eventid: string, mmdd: string) => Promise<void>;
|
|
288
|
-
uploadTriggerEvent: (eventid: string, dateofoccurrence: string) => Promise<void>;
|
|
289
|
+
uploadTriggerEvent: (locationId: string, eventid: string, dateofoccurrence: string) => Promise<void>;
|
|
289
290
|
uploadReview: (mmddyyyy: string, eventid: string, comments: string, approved: any) => Promise<void>;
|
|
290
291
|
uploadReport: (mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any) => Promise<void>;
|
|
291
292
|
uploadMapping: () => Promise<void>;
|
package/sf-i-events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sf-i-events.d.ts","sourceRoot":"","sources":["src/sf-i-events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,UAAU,EAAa,gBAAgB,EAAC,MAAM,KAAK,CAAC;AAmB5D;;;;;;;;;;GAUG;AACH,qBACa,SAAU,SAAQ,UAAU;IAEvC,iBAAiB,SAAM;IACvB,QAAQ,SAAU;IAClB,UAAU,SAAY;IACtB,YAAY,SAAc;IAC1B,QAAQ,SAAU;IAClB,QAAQ,SAAU;IAClB,UAAU,SAAY;IACtB,SAAS,SAAW;IACpB,YAAY,SAAc;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BAAiB,aAmBhB;IAED,iBAAiB,aAqBhB;IAED,iBAAiB,aAqBhB;IAED,QAAQ,QAAU,MAAM,KAAK,MAAM,mBAAmB,OAAO,aAAY,OAAO,YAM9E;IAEF,kBAAkB,aA6DjB;IAED,QAAQ,sBAkCP;;cAMkB,YAAY,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG,IAAI;IAMnG,iBAAiB;IAIjB,MAAM;CAkQhB;AAGD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,SAAS,CAAC;KAC1B;CACF"}
|
package/sf-i-events.js
CHANGED
|
@@ -218,6 +218,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
218
218
|
</html>
|
|
219
219
|
|
|
220
220
|
`;
|
|
221
|
+
this.entityId = "";
|
|
222
|
+
this.locationId = "";
|
|
223
|
+
this.countryId = "";
|
|
221
224
|
this.myOnboardingTab = this.TAB_STATUTES;
|
|
222
225
|
this.myRole = this.TAB_REPORTER;
|
|
223
226
|
this.chart = null;
|
|
@@ -647,9 +650,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
647
650
|
html += '</th>';
|
|
648
651
|
html += '<th part="td-head">';
|
|
649
652
|
html += '</th>';
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
+
if (this.locationId == null || this.locationId == "") {
|
|
654
|
+
html += '<th part="td-head">';
|
|
655
|
+
html += 'Location';
|
|
656
|
+
html += '</th>';
|
|
657
|
+
}
|
|
658
|
+
if (this.countryId != null && this.countryId != "") {
|
|
659
|
+
html += '<th part="td-head">';
|
|
660
|
+
html += 'Country';
|
|
661
|
+
html += '</th>';
|
|
662
|
+
}
|
|
653
663
|
for (var k = 0; k < Object.keys(this.events[mmdd][j]).length; k++) {
|
|
654
664
|
if (this.getEventPreviewFields().includes(Object.keys(this.events[mmdd][j])[k])) {
|
|
655
665
|
html += '<th part="td-head" class="bg-left-no-border">';
|
|
@@ -745,7 +755,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
745
755
|
html += '<td id="td-expand-' + i + '" part="td-body">';
|
|
746
756
|
html += '<button id="button-unmapped-expand-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>';
|
|
747
757
|
html += '</td>';
|
|
748
|
-
|
|
758
|
+
if (this.locationId == null || this.locationId == "") {
|
|
759
|
+
html += '<td part="td-body"><sf-i-elastic-text text="' + this.events[mmdd][j]["locationname"] + '" minLength="20"></sf-i-elastic-text></td>';
|
|
760
|
+
}
|
|
761
|
+
if (this.countryId != null && this.countryId != "") {
|
|
762
|
+
html += '<td part="td-body"><sf-i-elastic-text text="' + this.events[mmdd][j]["countryname"] + '" minLength="10"></sf-i-elastic-text></td>';
|
|
763
|
+
}
|
|
749
764
|
for (var k = 0; k < Object.keys(this.events[mmdd][j]).length; k++) {
|
|
750
765
|
if (this.getEventPreviewFields().includes(Object.keys(this.events[mmdd][j])[k])) {
|
|
751
766
|
html += '<td part="td-body">';
|
|
@@ -938,9 +953,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
938
953
|
html += '</th>';
|
|
939
954
|
html += '<th part="td-head">';
|
|
940
955
|
html += '</th>';
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
956
|
+
if (this.locationId == null || this.locationId == "") {
|
|
957
|
+
html += '<th part="td-head">';
|
|
958
|
+
html += 'Location';
|
|
959
|
+
html += '</th>';
|
|
960
|
+
}
|
|
961
|
+
if (this.countryId != null && this.countryId != "") {
|
|
962
|
+
html += '<th part="td-head">';
|
|
963
|
+
html += 'Country';
|
|
964
|
+
html += '</th>';
|
|
965
|
+
}
|
|
944
966
|
for (var k = 0; k < Object.keys(this.events[mmdd][j]).length; k++) {
|
|
945
967
|
if (this.getEventPreviewFields().includes(Object.keys(this.events[mmdd][j])[k])) {
|
|
946
968
|
html += '<th part="td-head" class="bg-left-no-border">';
|
|
@@ -1031,7 +1053,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
1031
1053
|
html += '<td id="td-expand-' + i + '" part="td-body">';
|
|
1032
1054
|
html += '<button id="button-unmapped-expand-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>';
|
|
1033
1055
|
html += '</td>';
|
|
1034
|
-
|
|
1056
|
+
if (this.locationId == null || this.locationId == "") {
|
|
1057
|
+
html += '<td part="td-body"><sf-i-elastic-text text="' + this.events[mmdd][j]["locationname"] + '" minLength="20"></sf-i-elastic-text></td>';
|
|
1058
|
+
}
|
|
1059
|
+
if (this.countryId != null && this.countryId != "") {
|
|
1060
|
+
html += '<td part="td-body"><sf-i-elastic-text text="' + this.events[mmdd][j]["countryname"] + '" minLength="10"></sf-i-elastic-text></td>';
|
|
1061
|
+
}
|
|
1035
1062
|
for (var k = 0; k < Object.keys(this.events[mmdd][j]).length; k++) {
|
|
1036
1063
|
if (this.getEventPreviewFields().includes(Object.keys(this.events[mmdd][j])[k])) {
|
|
1037
1064
|
html += '<td part="td-body">';
|
|
@@ -1232,9 +1259,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
1232
1259
|
html += '</th>';
|
|
1233
1260
|
html += '<th part="td-head">';
|
|
1234
1261
|
html += '</th>';
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1262
|
+
if (this.locationId == null || this.locationId == "") {
|
|
1263
|
+
html += '<th part="td-head">';
|
|
1264
|
+
html += 'Location';
|
|
1265
|
+
html += '</th>';
|
|
1266
|
+
}
|
|
1267
|
+
if (this.countryId != null && this.countryId != "") {
|
|
1268
|
+
html += '<th part="td-head">';
|
|
1269
|
+
html += 'Country';
|
|
1270
|
+
html += '</th>';
|
|
1271
|
+
}
|
|
1238
1272
|
for (var k = 0; k < Object.keys(this.events[mmdd][j]).length; k++) {
|
|
1239
1273
|
if (this.getEventPreviewFields().includes(Object.keys(this.events[mmdd][j])[k])) {
|
|
1240
1274
|
html += '<th part="td-head" class="bg-left-no-border">';
|
|
@@ -1325,7 +1359,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
1325
1359
|
html += '<td id="td-expand-' + i + '" part="td-body">';
|
|
1326
1360
|
html += '<button id="button-unmapped-expand-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>';
|
|
1327
1361
|
html += '</td>';
|
|
1328
|
-
|
|
1362
|
+
if (this.locationId == null || this.locationId == "") {
|
|
1363
|
+
html += '<td part="td-body"><sf-i-elastic-text text="' + this.events[mmdd][j]["locationname"] + '" minLength="20"></sf-i-elastic-text></td>';
|
|
1364
|
+
}
|
|
1365
|
+
if (this.countryId != null && this.countryId != "") {
|
|
1366
|
+
html += '<td part="td-body"><sf-i-elastic-text text="' + this.events[mmdd][j]["countryname"] + '" minLength="10"></sf-i-elastic-text></td>';
|
|
1367
|
+
}
|
|
1329
1368
|
for (var k = 0; k < Object.keys(this.events[mmdd][j]).length; k++) {
|
|
1330
1369
|
if (this.getEventPreviewFields().includes(Object.keys(this.events[mmdd][j])[k])) {
|
|
1331
1370
|
html += '<td part="td-body">';
|
|
@@ -1527,9 +1566,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
1527
1566
|
html += '</th>';
|
|
1528
1567
|
html += '<th part="td-head">';
|
|
1529
1568
|
html += '</th>';
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1569
|
+
if (this.locationId == null || this.locationId == "") {
|
|
1570
|
+
html += '<th part="td-head">';
|
|
1571
|
+
html += 'Location';
|
|
1572
|
+
html += '</th>';
|
|
1573
|
+
}
|
|
1574
|
+
if (this.countryId != null && this.countryId != "") {
|
|
1575
|
+
html += '<th part="td-head">';
|
|
1576
|
+
html += 'Country';
|
|
1577
|
+
html += '</th>';
|
|
1578
|
+
}
|
|
1533
1579
|
for (var k = 0; k < Object.keys(this.events[mmdd][j]).length; k++) {
|
|
1534
1580
|
if (this.getEventPreviewFields().includes(Object.keys(this.events[mmdd][j])[k])) {
|
|
1535
1581
|
html += '<th part="td-head" class="bg-left-no-border">';
|
|
@@ -1620,7 +1666,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
1620
1666
|
html += '<td id="td-expand-' + i + '" part="td-body">';
|
|
1621
1667
|
html += '<button id="button-unmapped-expand-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>';
|
|
1622
1668
|
html += '</td>';
|
|
1623
|
-
|
|
1669
|
+
if (this.locationId == null || this.locationId == "") {
|
|
1670
|
+
html += '<td part="td-body"><sf-i-elastic-text text="' + this.events[mmdd][j]["locationname"] + '" minLength="20"></sf-i-elastic-text></td>';
|
|
1671
|
+
}
|
|
1672
|
+
if (this.countryId != null && this.countryId != "") {
|
|
1673
|
+
html += '<td part="td-body"><sf-i-elastic-text text="' + this.events[mmdd][j]["countryname"] + '" minLength="10"></sf-i-elastic-text></td>';
|
|
1674
|
+
}
|
|
1624
1675
|
for (var k = 0; k < Object.keys(this.events[mmdd][j]).length; k++) {
|
|
1625
1676
|
if (this.getEventPreviewFields().includes(Object.keys(this.events[mmdd][j])[k])) {
|
|
1626
1677
|
html += '<td part="td-body">';
|
|
@@ -1809,9 +1860,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
1809
1860
|
html += '</th>';
|
|
1810
1861
|
html += '<th part="td-head">';
|
|
1811
1862
|
html += '</th>';
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1863
|
+
if (this.locationId == null || this.locationId == "") {
|
|
1864
|
+
html += '<th part="td-head">';
|
|
1865
|
+
html += 'Location';
|
|
1866
|
+
html += '</th>';
|
|
1867
|
+
}
|
|
1868
|
+
if (this.countryId != null && this.countryId != "") {
|
|
1869
|
+
html += '<th part="td-head">';
|
|
1870
|
+
html += 'Country';
|
|
1871
|
+
html += '</th>';
|
|
1872
|
+
}
|
|
1815
1873
|
for (var k = 0; k < Object.keys(this.events[mmdd][j]).length; k++) {
|
|
1816
1874
|
if (this.getEventPreviewFields().includes(Object.keys(this.events[mmdd][j])[k])) {
|
|
1817
1875
|
html += '<th part="td-head" class="bg-left-no-border">';
|
|
@@ -1904,7 +1962,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
1904
1962
|
html += '<td id="td-expand-' + i + '" part="td-body">';
|
|
1905
1963
|
html += '<button id="button-unmapped-expand-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-small" class="material-icons button-expand mr-10">open_in_new</button>';
|
|
1906
1964
|
html += '</td>';
|
|
1907
|
-
|
|
1965
|
+
if (this.locationId == null || this.locationId == "") {
|
|
1966
|
+
html += '<td part="td-body"><sf-i-elastic-text text="' + this.events[mmdd][j]["locationname"] + '" minLength="20"></sf-i-elastic-text></td>';
|
|
1967
|
+
}
|
|
1968
|
+
if (this.countryId != null && this.countryId != "") {
|
|
1969
|
+
html += '<td part="td-body"><sf-i-elastic-text text="' + this.events[mmdd][j]["countryname"] + '" minLength="10"></sf-i-elastic-text></td>';
|
|
1970
|
+
}
|
|
1908
1971
|
for (var k = 0; k < Object.keys(this.events[mmdd][j]).length; k++) {
|
|
1909
1972
|
if (this.getEventPreviewFields().includes(Object.keys(this.events[mmdd][j])[k])) {
|
|
1910
1973
|
html += '<td part="td-body">';
|
|
@@ -2462,6 +2525,9 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2462
2525
|
html += '<div class="mb-10 flex-grow" part="adhoc-question">' + events[i].question.replace(/"/g, '') + '</div>';
|
|
2463
2526
|
html += '<button id="button-bolt-' + i + '" part="button-icon" class="material-icons">electric_bolt</button>';
|
|
2464
2527
|
html += '</div>';
|
|
2528
|
+
html += '<div class="d-flex align-start mb-10">';
|
|
2529
|
+
html += '<div part="input-labal">' + events[i].locationname + '</div>';
|
|
2530
|
+
html += '</div>';
|
|
2465
2531
|
html += '<div class="d-flex align-center flex-wrap">';
|
|
2466
2532
|
html += '<div class="mr-20" part="adhoc-triggers">';
|
|
2467
2533
|
html += "Triggers: " + (triggers[events[i].id].length > 0 ? triggers[events[i].id].length : 0);
|
|
@@ -2475,6 +2541,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2475
2541
|
html += '</div>';
|
|
2476
2542
|
}
|
|
2477
2543
|
html += '</div>';
|
|
2544
|
+
console.log('triggers', events[i].id, triggers[events[i].id].length);
|
|
2478
2545
|
if (triggers[events[i].id].length > 0) {
|
|
2479
2546
|
html += '<div id="adhoc-history-' + i + '" class="hide">';
|
|
2480
2547
|
html += '<table class="mt-20">';
|
|
@@ -2562,7 +2629,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2562
2629
|
html += '<input id="dateofoccurrence_' + events[i].id + '" part="input" type="date" />';
|
|
2563
2630
|
html += '</div>';
|
|
2564
2631
|
html += '</div>';
|
|
2565
|
-
html += '<button id="trigger_' + events[i].id + '" part="button" class="button-trigger mt-10 cursor">Trigger</button>';
|
|
2632
|
+
html += '<button id="trigger_' + events[i].id + '_' + events[i].locationid + '" part="button" class="button-trigger mt-10 cursor">Trigger</button>';
|
|
2566
2633
|
html += '</div>';
|
|
2567
2634
|
html += '</div>';
|
|
2568
2635
|
// html += '</div>';
|
|
@@ -2622,10 +2689,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2622
2689
|
triggerBs[i].addEventListener('click', (ev) => {
|
|
2623
2690
|
//const button = (ev.target as HTMLDivElement);
|
|
2624
2691
|
const eventid = ev.target.id.split('_')[1];
|
|
2692
|
+
const locationid = ev.target.id.split('_')[2];
|
|
2625
2693
|
if (this._SfAdhocContainer.querySelector('#dateofoccurrence_' + eventid).value.trim().length > 0) {
|
|
2626
2694
|
const dateofoccurrence = new Date(this._SfAdhocContainer.querySelector('#dateofoccurrence_' + eventid).value).getTime();
|
|
2627
2695
|
console.log('eventid', eventid, dateofoccurrence);
|
|
2628
|
-
this.uploadTriggerEvent(eventid, dateofoccurrence + "");
|
|
2696
|
+
this.uploadTriggerEvent(locationid, eventid, dateofoccurrence + "");
|
|
2629
2697
|
}
|
|
2630
2698
|
});
|
|
2631
2699
|
}
|
|
@@ -5364,15 +5432,16 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
5364
5432
|
}, 2000);
|
|
5365
5433
|
}
|
|
5366
5434
|
};
|
|
5367
|
-
this.uploadTriggerEvent = async (eventid, dateofoccurrence) => {
|
|
5435
|
+
this.uploadTriggerEvent = async (locationId, eventid, dateofoccurrence) => {
|
|
5368
5436
|
let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/triggermyevent";
|
|
5369
5437
|
const body = {
|
|
5370
5438
|
"dateofoccurrence": dateofoccurrence,
|
|
5371
5439
|
"projectid": this.projectId,
|
|
5372
5440
|
"eventid": eventid,
|
|
5373
5441
|
"entityid": this.entityId,
|
|
5374
|
-
"locationid":
|
|
5442
|
+
"locationid": locationId
|
|
5375
5443
|
};
|
|
5444
|
+
console.log('uploading...', body);
|
|
5376
5445
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
5377
5446
|
const xhr = (await this.prepareXhr(body, url, this._SfLoader, authorization));
|
|
5378
5447
|
this._SfLoader.innerHTML = '';
|
|
@@ -6040,10 +6109,20 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6040
6109
|
}
|
|
6041
6110
|
}
|
|
6042
6111
|
this.cleanLocalStorage();
|
|
6043
|
-
let
|
|
6112
|
+
let path = "";
|
|
6113
|
+
if (this.countryId != null && this.countryId != "") {
|
|
6114
|
+
path = "getallcountryevents";
|
|
6115
|
+
}
|
|
6116
|
+
else if (this.locationId != null && this.locationId != "") {
|
|
6117
|
+
path = "getmyevents";
|
|
6118
|
+
}
|
|
6119
|
+
else {
|
|
6120
|
+
path = "getallmyevents";
|
|
6121
|
+
}
|
|
6122
|
+
let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/" + path;
|
|
6044
6123
|
console.log('fetch calendar url', url);
|
|
6045
6124
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
6046
|
-
const xhr = (await this.prepareXhr({ "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "locationid": this.locationId, "adhoc": "false" }, url, this._SfLoader, authorization));
|
|
6125
|
+
const xhr = (await this.prepareXhr({ "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "locationid": this.locationId, "adhoc": "false" }, url, this._SfLoader, authorization));
|
|
6047
6126
|
this._SfLoader.innerHTML = '';
|
|
6048
6127
|
if (xhr.status == 200) {
|
|
6049
6128
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
@@ -6151,9 +6230,19 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6151
6230
|
}
|
|
6152
6231
|
};
|
|
6153
6232
|
this.fetchAdhoc = async (reprogramTriggers = false) => {
|
|
6154
|
-
let
|
|
6233
|
+
let path = "";
|
|
6234
|
+
if (this.countryId != null && this.countryId != "") {
|
|
6235
|
+
path = "getallcountryevents";
|
|
6236
|
+
}
|
|
6237
|
+
else if (this.locationId != null && this.locationId != "") {
|
|
6238
|
+
path = "getmyevents";
|
|
6239
|
+
}
|
|
6240
|
+
else {
|
|
6241
|
+
path = "getallmyevents";
|
|
6242
|
+
}
|
|
6243
|
+
let url = "https://" + this.apiId + ".execute-api.us-east-1.amazonaws.com/test/" + path;
|
|
6155
6244
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
6156
|
-
const xhr = (await this.prepareXhr({ "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "locationid": this.locationId, "adhoc": "true" }, url, this._SfLoader, authorization));
|
|
6245
|
+
const xhr = (await this.prepareXhr({ "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "locationid": this.locationId, "adhoc": "true" }, url, this._SfLoader, authorization));
|
|
6157
6246
|
this._SfLoader.innerHTML = '';
|
|
6158
6247
|
if (xhr.status == 200) {
|
|
6159
6248
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
@@ -7406,6 +7495,9 @@ __decorate([
|
|
|
7406
7495
|
__decorate([
|
|
7407
7496
|
property()
|
|
7408
7497
|
], SfIEvents.prototype, "locationId", void 0);
|
|
7498
|
+
__decorate([
|
|
7499
|
+
property()
|
|
7500
|
+
], SfIEvents.prototype, "countryId", void 0);
|
|
7409
7501
|
__decorate([
|
|
7410
7502
|
property()
|
|
7411
7503
|
], SfIEvents.prototype, "userName", void 0);
|