sf-i-events 1.0.866 → 1.0.867

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 CHANGED
@@ -738,7 +738,7 @@
738
738
  </div>
739
739
 
740
740
  </sf-i-events> -->
741
- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
741
+ <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
742
742
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
743
743
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
744
744
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
@@ -764,8 +764,8 @@
764
764
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
765
765
  </div>
766
766
 
767
- </sf-i-events>
768
- <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
767
+ </sf-i-events> -->
768
+ <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
769
769
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
770
770
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
771
771
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
@@ -791,7 +791,7 @@
791
791
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
792
792
  </div>
793
793
 
794
- </sf-i-events> -->
794
+ </sf-i-events>
795
795
  <!-- <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="[&quot;notices&quot;]" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
796
796
 
797
797
  <div slot="uploader">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.866",
4
+ "version": "1.0.867",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.js CHANGED
@@ -3311,7 +3311,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3311
3311
  html += '<button class="invisible" part="button">Save</button>';
3312
3312
  html += '<button id="button-uploader-submit-approve" class="button-submit" part="button">Save</button>';
3313
3313
  html += '</div>';
3314
- if (this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0) {
3314
+ if (this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0 && event.module != 'agreement') {
3315
3315
  html += '<div class="m-20">';
3316
3316
  html += '<label part="input-label">Supporting Documents</label>';
3317
3317
  html += '<slot name="uploader"></slot>';
@@ -3376,10 +3376,8 @@ let SfIEvents = class SfIEvents extends LitElement {
3376
3376
  html += '<label part="input-label">Completion Percentage*</label>';
3377
3377
  html += '<input id="input-reporter-percentage" part="input" type="number" value="' + percentage + '" max="100" min="0" step="1"/><br />';
3378
3378
  html += '<div part="input-reporter-percentage-message" class="input-reporter-percentage-message mb-20">For reporting full non-compliance, choose 0%. For reporting compliance with gaps, choose the appropriate % value.</div><br />';
3379
- }
3380
- // if(docsOptional.length === 0) {
3381
- html += '<label part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
3382
- if (event.module != 'agreement') {
3379
+ // if(docsOptional.length === 0) {
3380
+ html += '<label part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
3383
3381
  html += '<slot name="uploader"></slot>';
3384
3382
  if (uploadGuidance == 1) {
3385
3383
  html += '<div id="upload-guidance-button" part="upload-guidance-button" class="d-flex button-icon-small align-center align-self-start mt-10"><span class="material-symbols-outlined">help</span>&nbsp;<span>Get Help</span></div>';
@@ -10145,6 +10143,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10145
10143
  reportingReporting.configjson = reportingSchemaJson;
10146
10144
  if (reportingSchemaValues != "")
10147
10145
  reportingReporting.prepopulateValJson = reportingSchemaValues;
10146
+ reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
10148
10147
  reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
10149
10148
  reportingReporting.flow = "reporting";
10150
10149
  setTimeout(() => {
@@ -10344,7 +10343,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10344
10343
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
10345
10344
  if (approved == listEvent.approved) {
10346
10345
  buttonClick.innerHTML = "Save";
10347
- this.setError('Already Approved!');
10346
+ this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
10348
10347
  setTimeout(() => {
10349
10348
  this.clearMessages();
10350
10349
  }, 3000);
@@ -5626,7 +5626,7 @@ export class SfIEvents extends LitElement {
5626
5626
  html += '<button id="button-uploader-submit-approve" class="button-submit" part="button">Save</button>'
5627
5627
  html += '</div>'
5628
5628
 
5629
- if (this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0) {
5629
+ if (this.myRole != this.TAB_FUNCTION_HEAD && docs.length > 0 && event.module != 'agreement') {
5630
5630
  html += '<div class="m-20">';
5631
5631
  html += '<label part="input-label">Supporting Documents</label>';
5632
5632
  html += '<slot name="uploader"></slot>';
@@ -5704,11 +5704,11 @@ export class SfIEvents extends LitElement {
5704
5704
  html += '<label part="input-label">Completion Percentage*</label>';
5705
5705
  html += '<input id="input-reporter-percentage" part="input" type="number" value="' + percentage + '" max="100" min="0" step="1"/><br />';
5706
5706
  html += '<div part="input-reporter-percentage-message" class="input-reporter-percentage-message mb-20">For reporting full non-compliance, choose 0%. For reporting compliance with gaps, choose the appropriate % value.</div><br />'
5707
- }
5708
- // if(docsOptional.length === 0) {
5709
- html += '<label part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
5710
5707
 
5711
- if (event.module != 'agreement') {
5708
+ // if(docsOptional.length === 0) {
5709
+ html += '<label part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
5710
+
5711
+
5712
5712
  html += '<slot name="uploader"></slot>';
5713
5713
  if (uploadGuidance == 1) {
5714
5714
  html += '<div id="upload-guidance-button" part="upload-guidance-button" class="d-flex button-icon-small align-center align-self-start mt-10"><span class="material-symbols-outlined">help</span>&nbsp;<span>Get Help</span></div>'
@@ -13778,6 +13778,7 @@ export class SfIEvents extends LitElement {
13778
13778
  if (reportingSchemaJson != "" && reportingReporting != null) {
13779
13779
  reportingReporting.configjson = reportingSchemaJson;
13780
13780
  if (reportingSchemaValues != "") reportingReporting.prepopulateValJson = reportingSchemaValues
13781
+ reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view"
13781
13782
  reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true"
13782
13783
  reportingReporting.flow = "reporting"
13783
13784
  setTimeout(() => {
@@ -13993,7 +13994,7 @@ export class SfIEvents extends LitElement {
13993
13994
  const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
13994
13995
  if (approved == listEvent.approved) {
13995
13996
  buttonClick.innerHTML = "Save"
13996
- this.setError('Already Approved!');
13997
+ this.setError(approved ? 'Already Approved!' : 'Already Rejected!');
13997
13998
  setTimeout(() => {
13998
13999
  this.clearMessages();
13999
14000
  }, 3000);