sf-i-events 1.0.948 → 1.0.950

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
@@ -941,7 +941,7 @@
941
941
  </div>
942
942
 
943
943
  </sf-i-events> -->
944
- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
944
+ <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
945
945
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
946
946
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
947
947
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
@@ -970,7 +970,7 @@
970
970
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
971
971
  </div>
972
972
 
973
- </sf-i-events>
973
+ </sf-i-events> -->
974
974
  <!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event"
975
975
  apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
976
976
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
@@ -985,17 +985,18 @@
985
985
  allowdownload="yes"></sf-i-uploader></div>
986
986
  <div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div>
987
987
  </sf-i-events> -->
988
- <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
988
+ <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
989
989
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
990
990
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
991
991
  apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
992
992
  apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
993
993
  apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
994
- apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws" fill="solid"
994
+ apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
995
+ apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="solid"
995
996
  username="Local Approver 1" userprofileid="c44dcd04-aebb-4417-ba6b-fac170efd5d0"
996
997
  projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global"
997
998
  countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="approver" showregisterexport="false"
998
- features="[&quot;notices&quot;,&quot;contracts&quot;,&quot;licenses&quot;]"
999
+ features="[&quot;notices&quot;,&quot;contracts&quot;,&quot;licenses&quot;,&quot;rcmresources&quot;]"
999
1000
  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;}]"
1000
1001
  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;}]"
1001
1002
  eventpreviewfields="[&quot;obligation&quot;]"
@@ -1012,7 +1013,7 @@
1012
1013
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
1013
1014
  </div>
1014
1015
 
1015
- </sf-i-events> -->
1016
+ </sf-i-events>
1016
1017
  <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
1017
1018
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
1018
1019
  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.948",
4
+ "version": "1.0.950",
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
@@ -153,6 +153,7 @@ let SfIEvents = class SfIEvents extends LitElement {
153
153
  padding-left: 20px;
154
154
  padding-right: 20px;
155
155
  border-radius: 10px;
156
+ position: relative;
156
157
  }
157
158
  .certificate-section h1 {
158
159
  font-family: Belanosima;
@@ -276,11 +277,24 @@ let SfIEvents = class SfIEvents extends LitElement {
276
277
  .color-late-reported {
277
278
  color: #Ef9C66;
278
279
  }
280
+ .watermark {
281
+ background-image: url(https://flagggrc-images.s3.amazonaws.com/logo.png);
282
+ background-position: center;
283
+ background-repeat: repeat;
284
+ background-size: 20%;
285
+ opacity: 5%;
286
+ left: 0;
287
+ right: 0;
288
+ top: 0;
289
+ bottom: 0;
290
+ position: absolute;
291
+ }
279
292
  </style>
280
293
  </head>
281
294
  <body>
282
295
  <div class="certificate-section">
283
296
  <h1 class="text-center">Certificate</h1>
297
+ <div class="watermark"></div>
284
298
  <p>I, PERSON_NAME, working as <span class="person-designation">PERSON_DESIGNATION</span> in PERSON_COMPANY, hereby declare that I am entrusted with the responsibility of ensuring compliance with various laws applicable to the company in the administration of business and the affairs of the company</p>
285
299
  <p>After having examined and considered all relevant information and based on the information furnished by the concerned officers, I, do hereby certify that the Finance / Technical / Administration / Legal wings / department of PERSON_COMPANY for the period PERSON_PERIOD, has in the conduct of business:</p>
286
300
  <ol>
@@ -302,6 +316,7 @@ let SfIEvents = class SfIEvents extends LitElement {
302
316
  </div>
303
317
  </div>
304
318
  <br /><br />
319
+ <div class="watermark"></div>
305
320
  <h3>Compliance Status</h3>
306
321
  PERSON_COMPLIANCE_STATUS
307
322
  <br /><br />
@@ -13058,11 +13073,15 @@ let SfIEvents = class SfIEvents extends LitElement {
13058
13073
  let urlBody = { projectid: this.projectId, objectid: listEvent.id, newvalues: reportformatvalues == "" ? null : JSON.parse(reportformatvalues), published: true, terminated: ((_a = JSON.parse(reportformatvalues).terminated) !== null && _a !== void 0 ? _a : false) };
13059
13074
  console.log('reopen body', url, urlBody);
13060
13075
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
13061
- const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing'));
13076
+ const xhr = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Renewing'));
13062
13077
  this._SfLoader.innerHTML = '';
13063
13078
  if (xhr.status == 200) {
13064
13079
  const jsonRespose = JSON.parse(xhr.responseText);
13065
13080
  console.log('jsonRespose agreement reopen', jsonRespose);
13081
+ this.setSuccess("Renewal successful");
13082
+ setTimeout(() => {
13083
+ this.clearMessages();
13084
+ }, 3000);
13066
13085
  }
13067
13086
  else {
13068
13087
  if (xhr.status == 401) {
@@ -22049,7 +22068,7 @@ let SfIEvents = class SfIEvents extends LitElement {
22049
22068
  if (xhr.status == 200) {
22050
22069
  // const jsonRespose = JSON.parse(xhr.responseText);
22051
22070
  //console.log('jsonResponse sync', jsonRespose);
22052
- this.setSuccess("Report uploaded successfully!");
22071
+ this.setSuccess("Suggestion sent successfully!");
22053
22072
  setTimeout(() => {
22054
22073
  this.clearMessages();
22055
22074
  // this.showChosenMapping();
@@ -23291,7 +23310,7 @@ let SfIEvents = class SfIEvents extends LitElement {
23291
23310
  let path = "", view = "";
23292
23311
  this.sdate = startDate;
23293
23312
  this.edate = endDate;
23294
- this.suspenseCount = 0;
23313
+ this.suspenseCount = this.suspenseFlag ? this.suspenseCount : 0;
23295
23314
  if (this.tagId != null && this.tagId != "") {
23296
23315
  view = "tag";
23297
23316
  }
@@ -23339,7 +23358,7 @@ let SfIEvents = class SfIEvents extends LitElement {
23339
23358
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
23340
23359
  if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
23341
23360
  this.lastupdated = Util.getDateTimeStrings(new Date().getTime());
23342
- this.suspenseCount = (_a = jsonRespose.suspensecount) !== null && _a !== void 0 ? _a : 0;
23361
+ this.suspenseCount = this.suspenseFlag ? this.suspenseCount : ((_a = jsonRespose.suspensecount) !== null && _a !== void 0 ? _a : 0);
23343
23362
  console.log('rendering appropriate string', list, this.selectedTab);
23344
23363
  this.renderAppropriateStream(startDate, endDate, true);
23345
23364
  this.fetchBulkReportingData();
@@ -156,6 +156,7 @@ export class SfIEvents extends LitElement {
156
156
  padding-left: 20px;
157
157
  padding-right: 20px;
158
158
  border-radius: 10px;
159
+ position: relative;
159
160
  }
160
161
  .certificate-section h1 {
161
162
  font-family: Belanosima;
@@ -279,11 +280,24 @@ export class SfIEvents extends LitElement {
279
280
  .color-late-reported {
280
281
  color: #Ef9C66;
281
282
  }
283
+ .watermark {
284
+ background-image: url(https://flagggrc-images.s3.amazonaws.com/logo.png);
285
+ background-position: center;
286
+ background-repeat: repeat;
287
+ background-size: 20%;
288
+ opacity: 5%;
289
+ left: 0;
290
+ right: 0;
291
+ top: 0;
292
+ bottom: 0;
293
+ position: absolute;
294
+ }
282
295
  </style>
283
296
  </head>
284
297
  <body>
285
298
  <div class="certificate-section">
286
299
  <h1 class="text-center">Certificate</h1>
300
+ <div class="watermark"></div>
287
301
  <p>I, PERSON_NAME, working as <span class="person-designation">PERSON_DESIGNATION</span> in PERSON_COMPANY, hereby declare that I am entrusted with the responsibility of ensuring compliance with various laws applicable to the company in the administration of business and the affairs of the company</p>
288
302
  <p>After having examined and considered all relevant information and based on the information furnished by the concerned officers, I, do hereby certify that the Finance / Technical / Administration / Legal wings / department of PERSON_COMPANY for the period PERSON_PERIOD, has in the conduct of business:</p>
289
303
  <ol>
@@ -305,6 +319,7 @@ export class SfIEvents extends LitElement {
305
319
  </div>
306
320
  </div>
307
321
  <br /><br />
322
+ <div class="watermark"></div>
308
323
  <h3>Compliance Status</h3>
309
324
  PERSON_COMPLIANCE_STATUS
310
325
  <br /><br />
@@ -16886,12 +16901,16 @@ export class SfIEvents extends LitElement {
16886
16901
  let urlBody: any = { projectid: this.projectId, objectid: listEvent.id, newvalues: reportformatvalues == "" ? null : JSON.parse(reportformatvalues), published: true, terminated: (JSON.parse(reportformatvalues).terminated ?? false) };
16887
16902
  console.log('reopen body', url, urlBody)
16888
16903
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
16889
- const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Preparing')) as any;
16904
+ const xhr: any = (await this.prepareXhr(urlBody, url, this._SfLoader, authorization, 'Renewing')) as any;
16890
16905
  this._SfLoader.innerHTML = '';
16891
16906
  if (xhr.status == 200) {
16892
16907
 
16893
16908
  const jsonRespose = JSON.parse(xhr.responseText);
16894
16909
  console.log('jsonRespose agreement reopen', jsonRespose);
16910
+ this.setSuccess("Renewal successful");
16911
+ setTimeout(() => {
16912
+ this.clearMessages()
16913
+ },3000)
16895
16914
  } else {
16896
16915
  if (xhr.status == 401) {
16897
16916
  let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
@@ -27882,7 +27901,7 @@ export class SfIEvents extends LitElement {
27882
27901
 
27883
27902
  // const jsonRespose = JSON.parse(xhr.responseText);
27884
27903
  //console.log('jsonResponse sync', jsonRespose);
27885
- this.setSuccess("Report uploaded successfully!");
27904
+ this.setSuccess("Suggestion sent successfully!");
27886
27905
  setTimeout(() => {
27887
27906
  this.clearMessages()
27888
27907
  // this.showChosenMapping();
@@ -29512,7 +29531,7 @@ export class SfIEvents extends LitElement {
29512
29531
  let path = "", view = "";
29513
29532
  this.sdate = startDate;
29514
29533
  this.edate = endDate;
29515
- this.suspenseCount = 0;
29534
+ this.suspenseCount = this.suspenseFlag ? this.suspenseCount : 0;
29516
29535
  if (this.tagId != null && this.tagId != "") {
29517
29536
  view = "tag";
29518
29537
  } else if (this.countryId != null && this.countryId != "") {
@@ -29566,7 +29585,7 @@ export class SfIEvents extends LitElement {
29566
29585
  await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
29567
29586
  if (JSON.stringify(urlBody) == this.getallcountryevetsParams) {
29568
29587
  this.lastupdated = Util.getDateTimeStrings(new Date().getTime())
29569
- this.suspenseCount = jsonRespose.suspensecount ?? 0;
29588
+ this.suspenseCount = this.suspenseFlag ? this.suspenseCount : (jsonRespose.suspensecount ?? 0);
29570
29589
  console.log('rendering appropriate string', list, this.selectedTab);
29571
29590
  this.renderAppropriateStream(startDate, endDate, true);
29572
29591
  this.fetchBulkReportingData();