sf-i-events 1.0.908 → 1.0.909

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
@@ -787,7 +787,7 @@
787
787
  </div>
788
788
 
789
789
  </sf-i-events> -->
790
- <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
790
+ <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
791
791
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
792
792
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
793
793
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
@@ -815,8 +815,8 @@
815
815
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
816
816
  </div>
817
817
 
818
- </sf-i-events> -->
819
- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
818
+ </sf-i-events>
819
+ <!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
820
820
  apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
821
821
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
822
822
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" mode="next" fill="solid" username="Local Reporter 1"
@@ -829,7 +829,7 @@
829
829
  extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="31457280"
830
830
  allowdownload="yes"></sf-i-uploader></div>
831
831
  <div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div>
832
- </sf-i-events>
832
+ </sf-i-events> -->
833
833
  <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
834
834
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
835
835
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.908",
4
+ "version": "1.0.909",
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
@@ -3632,7 +3632,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3632
3632
  html += '</div>';
3633
3633
  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 />';
3634
3634
  // if(docsOptional.length === 0) {
3635
- html += '<label part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
3635
+ html += '<label id="input-label-docs" part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
3636
3636
  html += '<slot name="uploader"></slot>';
3637
3637
  if (uploadGuidance == 1) {
3638
3638
  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>';
@@ -3877,6 +3877,12 @@ let SfIEvents = class SfIEvents extends LitElement {
3877
3877
  else {
3878
3878
  listReportingContainer.querySelector('#reporting-location-container').classList.add('hide');
3879
3879
  }
3880
+ if ((percentage != null && parseInt(percentage) == 0) || event.docsOptional.length > 0) {
3881
+ listReportingContainer.querySelector('#input-label-docs').innerHTML = 'Supporting Documents';
3882
+ }
3883
+ else {
3884
+ listReportingContainer.querySelector('#input-label-docs').innerHTML = 'Supporting Documents*';
3885
+ }
3880
3886
  }, 200);
3881
3887
  });
3882
3888
  let selectReportingLocation = listReportingContainer.querySelector('#input-reporter-location');
@@ -4185,7 +4191,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4185
4191
  }, 3000);
4186
4192
  }
4187
4193
  else {
4188
- if (docs.length == 0 && event.docsOptional != null && event.docsOptional.length === 0) {
4194
+ if (docs.length == 0 && event.docsOptional != null && event.docsOptional.length === 0 && parseInt(percentage) > 0) {
4189
4195
  //console.log('reporter comments 3', reportercomments);
4190
4196
  buttonClick.innerHTML = "Save";
4191
4197
  this.setError('No documents uploaded!');
@@ -13654,6 +13660,12 @@ let SfIEvents = class SfIEvents extends LitElement {
13654
13660
  else {
13655
13661
  this._SfDetailContainer.querySelector('#reporting-location-container').classList.add('hide');
13656
13662
  }
13663
+ if ((percentage != null && parseInt(percentage) == 0) || docsOptional.length > 0) {
13664
+ this._SfDetailContainer.querySelector('#input-label-docs').innerHTML = 'Supporting Documents';
13665
+ }
13666
+ else {
13667
+ this._SfDetailContainer.querySelector('#input-label-docs').innerHTML = 'Supporting Documents*';
13668
+ }
13657
13669
  }, 200);
13658
13670
  });
13659
13671
  let selectReportingLocation = this._SfDetailContainer.querySelector('#input-reporter-location');
@@ -13999,7 +14011,7 @@ let SfIEvents = class SfIEvents extends LitElement {
13999
14011
  }, 3000);
14000
14012
  }
14001
14013
  else {
14002
- if (docs.length === 0 && docsOptional.length === 0) {
14014
+ if (docs.length === 0 && docsOptional.length === 0 && parseInt(percentage) > 0) {
14003
14015
  //console.log('reporter comments 3', reportercomments);
14004
14016
  buttonClick.innerHTML = "Save";
14005
14017
  this.setError('No documents uploaded!');
@@ -5977,7 +5977,7 @@ export class SfIEvents extends LitElement {
5977
5977
  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 />'
5978
5978
 
5979
5979
  // if(docsOptional.length === 0) {
5980
- html += '<label part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
5980
+ html += '<label id="input-label-docs" part="input-label">Supporting Documents' + ((docsOptional.length > 0) ? '' : '*') + '</label>';
5981
5981
 
5982
5982
 
5983
5983
  html += '<slot name="uploader"></slot>';
@@ -6232,6 +6232,11 @@ export class SfIEvents extends LitElement {
6232
6232
  } else {
6233
6233
  (listReportingContainer.querySelector('#reporting-location-container') as HTMLDivElement).classList.add('hide')
6234
6234
  }
6235
+ if ((percentage != null && parseInt(percentage) == 0) || event.docsOptional.length > 0) {
6236
+ (listReportingContainer.querySelector('#input-label-docs') as HTMLLabelElement).innerHTML = 'Supporting Documents';
6237
+ }else{
6238
+ (listReportingContainer.querySelector('#input-label-docs') as HTMLLabelElement).innerHTML = 'Supporting Documents*';
6239
+ }
6235
6240
  }, 200);
6236
6241
  })
6237
6242
  let selectReportingLocation = listReportingContainer.querySelector('#input-reporter-location') as HTMLSelectElement;
@@ -6564,7 +6569,7 @@ export class SfIEvents extends LitElement {
6564
6569
  }, 3000);
6565
6570
 
6566
6571
  } else {
6567
- if (docs.length == 0 && event.docsOptional != null && event.docsOptional.length === 0) {
6572
+ if (docs.length == 0 && event.docsOptional != null && event.docsOptional.length === 0 && parseInt(percentage) > 0) {
6568
6573
 
6569
6574
  //console.log('reporter comments 3', reportercomments);
6570
6575
  buttonClick.innerHTML = "Save"
@@ -17721,6 +17726,11 @@ export class SfIEvents extends LitElement {
17721
17726
  } else {
17722
17727
  ((this._SfDetailContainer as HTMLDivElement).querySelector('#reporting-location-container') as HTMLDivElement).classList.add('hide')
17723
17728
  }
17729
+ if ((percentage != null && parseInt(percentage) == 0) || docsOptional.length > 0) {
17730
+ ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-label-docs') as HTMLLabelElement).innerHTML = 'Supporting Documents';
17731
+ }else{
17732
+ ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-label-docs') as HTMLLabelElement).innerHTML = 'Supporting Documents*';
17733
+ }
17724
17734
  }, 200);
17725
17735
  })
17726
17736
  let selectReportingLocation = (this._SfDetailContainer as HTMLDivElement).querySelector('#input-reporter-location') as HTMLSelectElement;
@@ -18098,7 +18108,7 @@ export class SfIEvents extends LitElement {
18098
18108
  }, 3000);
18099
18109
 
18100
18110
  } else {
18101
- if (docs.length === 0 && docsOptional.length === 0) {
18111
+ if (docs.length === 0 && docsOptional.length === 0 && parseInt(percentage) > 0) {
18102
18112
 
18103
18113
  //console.log('reporter comments 3', reportercomments);
18104
18114
  buttonClick.innerHTML = "Save"