sf-i-events 1.0.726 → 1.0.727
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 +10 -10
- package/package.json +1 -1
- package/sf-i-events.js +1 -1
- package/src/sf-i-events.ts +2 -1
package/dev/index.html
CHANGED
|
@@ -625,16 +625,16 @@
|
|
|
625
625
|
</head>
|
|
626
626
|
<body>
|
|
627
627
|
|
|
628
|
-
<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="
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
628
|
+
<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">
|
|
629
|
+
|
|
630
|
+
<div slot="uploader">
|
|
631
|
+
<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>
|
|
632
|
+
</div>
|
|
633
|
+
<div slot="reporting">
|
|
634
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
635
|
+
</div>
|
|
636
|
+
|
|
637
|
+
</sf-i-events>
|
|
638
638
|
|
|
639
639
|
|
|
640
640
|
<script>
|
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -2723,7 +2723,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2723
2723
|
html += '<button class="invisible" part="button">Save</button>';
|
|
2724
2724
|
html += '<button id="button-uploader-submit-approve" class="button-submit" part="button">Save</button>';
|
|
2725
2725
|
html += '</div>';
|
|
2726
|
-
if (this.myRole != this.TAB_FUNCTION_HEAD &&
|
|
2726
|
+
if (this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0) {
|
|
2727
2727
|
html += '<div class="m-20">';
|
|
2728
2728
|
html += '<label part="input-label">Supporting Documents</label>';
|
|
2729
2729
|
html += '<slot name="uploader"></slot>';
|
package/src/sf-i-events.ts
CHANGED
|
@@ -4933,7 +4933,7 @@ export class SfIEvents extends LitElement {
|
|
|
4933
4933
|
html += '<button id="button-uploader-submit-approve" class="button-submit" part="button">Save</button>'
|
|
4934
4934
|
html += '</div>'
|
|
4935
4935
|
|
|
4936
|
-
if(this.myRole != this.TAB_FUNCTION_HEAD &&
|
|
4936
|
+
if(this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0) {
|
|
4937
4937
|
html += '<div class="m-20">';
|
|
4938
4938
|
html += '<label part="input-label">Supporting Documents</label>';
|
|
4939
4939
|
html += '<slot name="uploader"></slot>';
|
|
@@ -5087,6 +5087,7 @@ export class SfIEvents extends LitElement {
|
|
|
5087
5087
|
}
|
|
5088
5088
|
return html;
|
|
5089
5089
|
}
|
|
5090
|
+
|
|
5090
5091
|
renderListReporting = (listReportingContainer: HTMLDivElement, event: any, mmddyyyy: any, eventsContainer: HTMLDivElement) => {
|
|
5091
5092
|
let html = ''
|
|
5092
5093
|
let mmdd = mmddyyyy.split('/')[0] + '/' + mmddyyyy.split('/')[1]
|