sf-i-events 1.0.817 → 1.0.819

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/.eslintrc.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": ["plugin:lit/recommended"],
3
+ "rules": {
4
+ "lit/no-unknown-attribute": "off"
5
+ }
6
+ }
package/dev/index.html CHANGED
@@ -22,10 +22,11 @@
22
22
  import {SfISubSelect} from 'https://esm.run/sf-i-sub-select@1.0.83/sf-i-sub-select.js';
23
23
  import {SfIForm} from 'https://esm.run/sf-i-form@1.0.184/sf-i-form.js';
24
24
  import {SfIElasticText} from 'https://esm.run/sf-i-elastic-text@1.0.17/sf-i-elastic-text.js';
25
- import {SfIUploader} from 'https://esm.run/sf-i-uploader@1.0.105/sf-i-uploader.js';
25
+ import {SfIUploader} from 'https://esm.run/sf-i-uploader@1.0.108/sf-i-uploader.js';
26
26
  import {SfIMultitextarea} from 'https://esm.run/sf-i-multitextarea@1.0.23/sf-i-multitextarea.js';
27
27
  import {SfIReporting} from 'https://esm.run/sf-i-reporting@1.0.73/sf-i-reporting.js';
28
28
  import {SfIBricks} from 'https://esm.run/sf-i-bricks@1.0.8/sf-i-bricks.js';
29
+ import {SfNewFeature} from 'https://esm.run/sf-new-feature@1.0.1/sf-new-feature.js';
29
30
 
30
31
  // import {LitElement, html, css} from 'https://unpkg.com/lit-element@3.3.3/lit-element.js?module';
31
32
  // import {SfNav} from 'https://unpkg.com/sf-nav@1.0.73/sf-nav.js?module';
@@ -37,8 +38,9 @@
37
38
  // import {SfIForm} from 'https://unpkg.com/sf-i-form@1.0.184/sf-i-form.js?module';
38
39
  // import {SfIEvents} from 'https://unpkg.com/sf-i-events@1.0.423/sf-i-events.js?module';
39
40
  // import {SfIElasticText} from 'https://unpkg.com/sf-i-elastic-text@1.0.7/sf-i-elastic-text.js?module';
40
- // import {SfIUploader} from 'https://unpkg.com/sf-i-uploader@1.0.102/sf-i-uploader.js?module';
41
+ // import {SfIUploader} from 'https://unpkg.com/sf-i-uploader@1.0.108/sf-i-uploader.js?module';
41
42
  // import {SfRandomText} from 'https://unpkg.com/sf-random-text@1.0.2/sf-random-text.js?module';
43
+ // import {SfNewFeature} from 'https://unpkg.com/sf-new-feature@1.0.1/sf-new-feature.js?module';
42
44
 
43
45
  </script>
44
46
  <!-- <script type="module">
@@ -669,6 +671,10 @@
669
671
  border-bottom-right-radius: 5px;
670
672
 
671
673
  }
674
+ sf-i-events::part(new-feature-text) {
675
+ font-weight: 400;
676
+ font-size: small;
677
+ }
672
678
  </style>
673
679
  </head>
674
680
  <body>
@@ -708,7 +714,7 @@
708
714
  </div>
709
715
 
710
716
  </sf-i-events> -->
711
- <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="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="reporter" 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="2024">
717
+ <!-- <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="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="reporter" 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="2024">
712
718
 
713
719
  <div slot="uploader">
714
720
  <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
@@ -717,7 +723,7 @@
717
723
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
718
724
  </div>
719
725
 
720
- </sf-i-events>
726
+ </sf-i-events> -->
721
727
  <!-- <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="2024">
722
728
 
723
729
  <div slot="uploader">
@@ -731,7 +737,7 @@
731
737
  <!-- <sf-i-events projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" mode="onboarding" locations="{&quot;India&quot;:{&quot;Telangana&quot;:[&quot;Corporate Office&quot;,&quot;Telangana Plant&quot;],&quot;Karnataka&quot;:[&quot;Prime&quot;,&quot;Stopak&quot;,&quot;Wintek&quot;,&quot;Tools&quot;,&quot;Conversion&quot;],&quot;Gujarat&quot;:[&quot;Dahej&quot;],&quot;Dadra and Nagar Haveli and Daman and Diu&quot;:[&quot;Silvassa&quot;],&quot;Uttarakhand&quot;:[&quot;Uttarakhand&quot;],&quot;Maharashtra&quot;:[&quot;Pune&quot;],&quot;Andhra Pradesh&quot;:[&quot;AP&quot;],&quot;Chhattisgarh&quot;:[&quot;Chhattisgarh&quot;],&quot;Goa&quot;:[&quot;Goa&quot;],&quot;Himachal Pradesh&quot;:[&quot;HP&quot;],&quot;Haryana&quot;:[&quot;Haryana&quot;],&quot;Jharkhand&quot;:[&quot;Jharkhand&quot;],&quot;Madhya Pradesh&quot;:[&quot;MP&quot;],&quot;Odisha&quot;:[&quot;Odisha&quot;],&quot;Punjab&quot;:[&quot;Punjab&quot;],&quot;Tamil Nadu&quot;:[&quot;TN&quot;],&quot;Uttar Pradesh&quot;:[&quot;UP&quot;],&quot;West Bengal&quot;:[&quot;WB&quot;]}}" contractstartdate="01/04/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
732
738
 
733
739
  </sf-i-events> -->
734
- <!-- <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="[{&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="2024">
740
+ <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="[{&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="2024">
735
741
 
736
742
  <div slot="uploader">
737
743
  <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
@@ -740,7 +746,7 @@
740
746
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
741
747
  </div>
742
748
 
743
- </sf-i-events> -->
749
+ </sf-i-events>
744
750
  <!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" mode="next" fill="solid" username="Sachin Bhat" userprofileid="347e23a2-5ff8-4d3a-b1ab-639faf342f25" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" myroles="[&quot;reporter&quot;]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" blocksize="10" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024"><div slot="uploader"><sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" extract="yes" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" maxsize="5242880" allowdownload="yes"></sf-i-uploader></div><div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div></sf-i-events> -->
745
751
  <!-- <sf-i-events id="sf-i-events-next" name="Next Compliances" apiid="dwqyez2puoxmu.cloudfront.net/event" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" mode="next" fill="solid" username="Local Reporter 1" userprofileid="e9684b5d-ddbc-46d3-ae07-51706bf75410" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" myroles="[&quot;reporter&quot;]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" blocksize="10" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024"><div slot="uploader"><sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader></div><div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div></sf-i-events> -->
746
752
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.817",
4
+ "version": "1.0.819",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
@@ -63,6 +63,7 @@
63
63
  "sf-i-select": "^1.0.80",
64
64
  "sf-i-sub-select": "^1.0.68",
65
65
  "sf-i-uploader": "^1.0.98",
66
+ "sf-new-feature": "^1.0.1",
66
67
  "sinon": "^15.0.1",
67
68
  "update": "^0.7.4"
68
69
  },
@@ -85,6 +86,7 @@
85
86
  "@web/test-runner-playwright": "^0.8.8",
86
87
  "@webcomponents/webcomponentsjs": "^2.6.0",
87
88
  "eslint": "^8.15.0",
89
+ "eslint-plugin-lit": "^1.15.0",
88
90
  "lit-analyzer": "^1.2.1",
89
91
  "prettier": "^2.6.2",
90
92
  "rimraf": "^3.0.2",
package/sf-i-events.d.ts CHANGED
@@ -721,7 +721,7 @@ export declare class SfIEvents extends LitElement {
721
721
  uploadReview: (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, approved: any, module?: string) => Promise<void>;
722
722
  uploadReportsReviewsBulk: (bulkBody: any) => Promise<void>;
723
723
  uploadReviewsBulk: (bulkBody: any) => Promise<void>;
724
- uploadReport: (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues?: string, reportformatschema?: string, module?: string, percentage?: string) => Promise<void>;
724
+ uploadReport: (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string | undefined, reportformatschema: string | undefined, module: string | undefined, percentage: string | undefined, makercheckers: any) => Promise<void>;
725
725
  uploadReportsBulk: (bulkBody: any, showSuccess?: boolean) => Promise<void>;
726
726
  uploadMapping: () => Promise<void>;
727
727
  uploadEvents: () => Promise<void>;
package/sf-i-events.js CHANGED
@@ -3680,7 +3680,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3680
3680
  else {
3681
3681
  let flagBulk = false;
3682
3682
  if (this.selectedItemIds.length == 0) {
3683
- await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage);
3683
+ await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage, event.makercheckers);
3684
3684
  console.log('this.events', this.events);
3685
3685
  if (this.mode != "next") {
3686
3686
  for (var p = 0; p < this.events[mmdd].length; p++) {
@@ -3691,7 +3691,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3691
3691
  }
3692
3692
  }
3693
3693
  if (event.makercheckers.length > 0) {
3694
- await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
3694
+ // await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
3695
3695
  for (var p = 0; p < this.events[mmdd].length; p++) {
3696
3696
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid) {
3697
3697
  this.events[mmdd][p].approved = true;
@@ -3721,52 +3721,52 @@ let SfIEvents = class SfIEvents extends LitElement {
3721
3721
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
3722
3722
  //console.log(entityId, locationId, eventId, mmddyyyy);
3723
3723
  // await this.uploadReport(entityId, locationId, mmddyyyy, eventId, reportercomments, reporterdoc, docs, null)
3724
- if (parseInt(makercheckersL) > 0) {
3725
- bulkBodyReview.push({
3726
- "mmddyyyy": mmddyyyy,
3727
- "projectid": this.projectId,
3728
- "type": "report",
3729
- "eventid": eventId,
3730
- "comments": reportercomments,
3731
- "dateofcompletion": reporterdoc,
3732
- "percentage": percentage,
3733
- "entityid": entityId,
3734
- "locationid": locationId,
3735
- "event": null,
3736
- "docs": JSON.stringify(docs),
3737
- "approved": true,
3738
- "username": this.userName,
3739
- "reportformatvalues": reportformatvalues,
3740
- "reportformatschema": reportformatschema,
3741
- "userid": this.userProfileId,
3742
- "userrole": this.myRole,
3743
- "year": this.calendarStartYYYY,
3744
- "module": event.isnotice != null ? "notices" : "events"
3745
- });
3746
- // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
3747
- }
3748
- else {
3749
- bulkBody.push({
3750
- "mmddyyyy": mmddyyyy,
3751
- "projectid": this.projectId,
3752
- "type": "report",
3753
- "eventid": eventId,
3754
- "comments": reportercomments,
3755
- "dateofcompletion": reporterdoc,
3756
- "percentage": percentage,
3757
- "entityid": entityId,
3758
- "locationid": locationId,
3759
- "event": null,
3760
- "docs": JSON.stringify(docs),
3761
- "username": this.userName,
3762
- "reportformatvalues": reportformatvalues,
3763
- "reportformatschema": reportformatschema,
3764
- "userid": this.userProfileId,
3765
- "userrole": this.myRole,
3766
- "year": this.calendarStartYYYY,
3767
- "module": event.isnotice != null ? "notices" : "events"
3768
- });
3769
- }
3724
+ // if(parseInt(makercheckersL) > 0) {
3725
+ // bulkBodyReview.push({
3726
+ // "mmddyyyy": mmddyyyy,
3727
+ // "projectid": this.projectId,
3728
+ // "type": "report",
3729
+ // "eventid": eventId,
3730
+ // "comments": reportercomments,
3731
+ // "dateofcompletion": reporterdoc,
3732
+ // "percentage": percentage,
3733
+ // "entityid": entityId,
3734
+ // "locationid": locationId,
3735
+ // "event": null,
3736
+ // "docs": JSON.stringify(docs),
3737
+ // "approved": true,
3738
+ // "username": this.userName,
3739
+ // "reportformatvalues": reportformatvalues,
3740
+ // "reportformatschema": reportformatschema,
3741
+ // "userid": this.userProfileId,
3742
+ // "userrole": this.myRole,
3743
+ // "year": this.calendarStartYYYY,
3744
+ // "module": event.isnotice != null ? "notices" : "events"
3745
+ // } )
3746
+ // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
3747
+ // }else{
3748
+ bulkBody.push({
3749
+ "mmddyyyy": mmddyyyy,
3750
+ "projectid": this.projectId,
3751
+ "type": "report",
3752
+ "eventid": eventId,
3753
+ "comments": reportercomments,
3754
+ "dateofcompletion": reporterdoc,
3755
+ "percentage": percentage,
3756
+ "entityid": entityId,
3757
+ "locationid": locationId,
3758
+ "event": null,
3759
+ "docs": JSON.stringify(docs),
3760
+ "username": this.userName,
3761
+ "reportformatvalues": reportformatvalues,
3762
+ "reportformatschema": reportformatschema,
3763
+ "userid": this.userProfileId,
3764
+ "userrole": this.myRole,
3765
+ "year": this.calendarStartYYYY,
3766
+ "module": event.isnotice != null ? "notices" : "events",
3767
+ "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
3768
+ });
3769
+ // }
3770
3770
  // this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
3771
3771
  // await this.sleep(2000);
3772
3772
  // this.clearMessages();
@@ -3776,9 +3776,9 @@ let SfIEvents = class SfIEvents extends LitElement {
3776
3776
  if (bulkBody.length > 0) {
3777
3777
  await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
3778
3778
  }
3779
- if (bulkBodyReview.length > 0) {
3780
- await this.uploadReportsReviewsBulk(bulkBodyReview);
3781
- }
3779
+ // if(bulkBodyReview.length > 0){
3780
+ // await this.uploadReportsReviewsBulk(bulkBodyReview)
3781
+ // }
3782
3782
  for (var k = 0; k < this.selectedItemIds.length; k++) {
3783
3783
  const selectedId = this.selectedItemIds[k];
3784
3784
  //console.log('selectedid', selectedId);
@@ -9375,7 +9375,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9375
9375
  this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
9376
9376
  let flagBulk = false;
9377
9377
  if (this.selectedItemIds.length === 0) {
9378
- await this.uploadReport(entityId, locationId, mmddyyyy, listEvent["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, "notices", percentage);
9378
+ await this.uploadReport(entityId, locationId, mmddyyyy, listEvent["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, "notices", percentage, makercheckers);
9379
9379
  console.log('this.events', this.events);
9380
9380
  for (var p = 0; p < this.events[mmdd].length; p++) {
9381
9381
  if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
@@ -9386,7 +9386,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9386
9386
  }
9387
9387
  console.log('uploadReport single');
9388
9388
  if (makercheckers.length > 0) {
9389
- await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], "Auto approved", true, "notices");
9389
+ // await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], "Auto approved", true, "notices");
9390
9390
  for (var p = 0; p < this.events[mmdd].length; p++) {
9391
9391
  if (this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
9392
9392
  this.events[mmdd][p].approved = true;
@@ -9415,52 +9415,52 @@ let SfIEvents = class SfIEvents extends LitElement {
9415
9415
  mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
9416
9416
  //console.log(entityId, locationId, eventId, mmddyyyy);
9417
9417
  // await this.uploadReport(entityId, locationId, mmddyyyy, eventId, reportercomments, reporterdoc, docs, null)
9418
- if (parseInt(makercheckersL) > 0) {
9419
- bulkBodyReview.push({
9420
- "mmddyyyy": mmddyyyy,
9421
- "projectid": this.projectId,
9422
- "type": "report",
9423
- "eventid": eventId,
9424
- "comments": reportercomments,
9425
- "dateofcompletion": reporterdoc,
9426
- "percentage": percentage,
9427
- "entityid": entityId,
9428
- "locationid": locationId,
9429
- "event": null,
9430
- "docs": JSON.stringify(docs),
9431
- "approved": true,
9432
- "username": this.userName,
9433
- "reportformatvalues": reportformatvalues,
9434
- "reportformatschema": reportformatschema,
9435
- "userid": this.userProfileId,
9436
- "userrole": this.myRole,
9437
- "year": this.calendarStartYYYY,
9438
- "module": listEvent.isnotice != null ? "notices" : "events"
9439
- });
9440
- // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
9441
- }
9442
- else {
9443
- bulkBody.push({
9444
- "mmddyyyy": mmddyyyy,
9445
- "projectid": this.projectId,
9446
- "type": "report",
9447
- "eventid": eventId,
9448
- "comments": reportercomments,
9449
- "dateofcompletion": reporterdoc,
9450
- "percentage": percentage,
9451
- "entityid": entityId,
9452
- "locationid": locationId,
9453
- "event": null,
9454
- "docs": JSON.stringify(docs),
9455
- "username": this.userName,
9456
- "reportformatvalues": reportformatvalues,
9457
- "reportformatschema": reportformatschema,
9458
- "userid": this.userProfileId,
9459
- "userrole": this.myRole,
9460
- "year": this.calendarStartYYYY,
9461
- "module": listEvent.isnotice != null ? "notices" : "events"
9462
- });
9463
- }
9418
+ // if(parseInt(makercheckersL) > 0) {
9419
+ // bulkBodyReview.push({
9420
+ // "mmddyyyy": mmddyyyy,
9421
+ // "projectid": this.projectId,
9422
+ // "type": "report",
9423
+ // "eventid": eventId,
9424
+ // "comments": reportercomments,
9425
+ // "dateofcompletion": reporterdoc,
9426
+ // "percentage": percentage,
9427
+ // "entityid": entityId,
9428
+ // "locationid": locationId,
9429
+ // "event": null,
9430
+ // "docs": JSON.stringify(docs),
9431
+ // "approved": true,
9432
+ // "username": this.userName,
9433
+ // "reportformatvalues": reportformatvalues,
9434
+ // "reportformatschema": reportformatschema,
9435
+ // "userid": this.userProfileId,
9436
+ // "userrole": this.myRole,
9437
+ // "year": this.calendarStartYYYY,
9438
+ // "module": listEvent.isnotice != null ? "notices" : "events"
9439
+ // } )
9440
+ // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
9441
+ // }else{
9442
+ bulkBody.push({
9443
+ "mmddyyyy": mmddyyyy,
9444
+ "projectid": this.projectId,
9445
+ "type": "report",
9446
+ "eventid": eventId,
9447
+ "comments": reportercomments,
9448
+ "dateofcompletion": reporterdoc,
9449
+ "percentage": percentage,
9450
+ "entityid": entityId,
9451
+ "locationid": locationId,
9452
+ "event": null,
9453
+ "docs": JSON.stringify(docs),
9454
+ "username": this.userName,
9455
+ "reportformatvalues": reportformatvalues,
9456
+ "reportformatschema": reportformatschema,
9457
+ "userid": this.userProfileId,
9458
+ "userrole": this.myRole,
9459
+ "year": this.calendarStartYYYY,
9460
+ "module": listEvent.isnotice != null ? "notices" : "events",
9461
+ "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
9462
+ });
9463
+ // }
9464
9464
  // this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
9465
9465
  // await this.sleep(2000);
9466
9466
  // this.clearMessages();
@@ -9470,9 +9470,9 @@ let SfIEvents = class SfIEvents extends LitElement {
9470
9470
  if (bulkBody.length > 0) {
9471
9471
  await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
9472
9472
  }
9473
- if (bulkBodyReview.length > 0) {
9474
- await this.uploadReportsReviewsBulk(bulkBodyReview);
9475
- }
9473
+ // if(bulkBodyReview.length > 0){
9474
+ // await this.uploadReportsReviewsBulk(bulkBodyReview)
9475
+ // }
9476
9476
  await this.fetchBulkReportingData();
9477
9477
  console.log('uploadReport bulk');
9478
9478
  for (var k = 0; k < this.selectedItemIds.length; k++) {
@@ -9869,6 +9869,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9869
9869
  }
9870
9870
  html += '</div>';
9871
9871
  html += '</div>';
9872
+ html += '<sf-new-feature class="new-feature m-10" exportparts="new-feature-text-container,new-feature-text" updatetime="1743405417000"></sf-new-feature>';
9872
9873
  html += '<div class="accordian-section section-feedback pl-20 pr-20" part="accordian-section">';
9873
9874
  html += '<div class="d-flex justify-between accordian-head head-feedback" part="accordian-head">';
9874
9875
  html += '<h3>Feedback</h3>';
@@ -10446,7 +10447,7 @@ let SfIEvents = class SfIEvents extends LitElement {
10446
10447
  //console.log('makerscheckers', makercheckers, reportercomments);
10447
10448
  // console.log('reportformatvalues', reportformatvalues)
10448
10449
  // console.log('reportformatschema',reportformatschema)
10449
- await this.uploadReport(entityId, locationId, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage);
10450
+ await this.uploadReport(entityId, locationId, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage, makercheckers);
10450
10451
  console.log('this.events', this.events);
10451
10452
  for (var p = 0; p < this.events[mmdd].length; p++) {
10452
10453
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
@@ -10456,12 +10457,12 @@ let SfIEvents = class SfIEvents extends LitElement {
10456
10457
  }
10457
10458
  }
10458
10459
  if (makercheckers.length > 0) {
10459
- await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
10460
+ // await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
10460
10461
  for (var p = 0; p < this.events[mmdd].length; p++) {
10461
10462
  if (this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId) {
10462
10463
  this.events[mmdd][p].approved = true;
10463
10464
  // this.events[mmdd][p].documents = docs
10464
- this.events[mmdd][p].comments.push({ 'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
10465
+ this.events[mmdd][p].comments.push({ 'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString() });
10465
10466
  this.events[mmdd][p].lastupdated = new Date().toString();
10466
10467
  }
10467
10468
  }
@@ -10503,52 +10504,52 @@ let SfIEvents = class SfIEvents extends LitElement {
10503
10504
  // "module": event.isnotice != null ? "notices" : "events"
10504
10505
  // })
10505
10506
  // await this.uploadReport(entityId, locationId, mmddyyyy, eventId, reportercomments, reporterdoc, docs, null)
10506
- if (parseInt(makercheckersL) > 0) {
10507
- bulkBodyReview.push({
10508
- "mmddyyyy": mmddyyyy,
10509
- "projectid": this.projectId,
10510
- "type": "report",
10511
- "eventid": eventId,
10512
- "comments": reportercomments,
10513
- "dateofcompletion": reporterdoc,
10514
- "percentage": percentage,
10515
- "entityid": entityId,
10516
- "locationid": locationId,
10517
- "event": null,
10518
- "docs": JSON.stringify(docs),
10519
- "approved": true,
10520
- "username": this.userName,
10521
- "reportformatvalues": reportformatvalues,
10522
- "reportformatschema": reportformatschema,
10523
- "userid": this.userProfileId,
10524
- "userrole": this.myRole,
10525
- "year": this.calendarStartYYYY,
10526
- "module": event.isnotice != null ? "notices" : "events"
10527
- });
10528
- // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
10529
- }
10530
- else {
10531
- bulkBody.push({
10532
- "mmddyyyy": mmddyyyy,
10533
- "projectid": this.projectId,
10534
- "type": "report",
10535
- "eventid": eventId,
10536
- "comments": reportercomments,
10537
- "dateofcompletion": reporterdoc,
10538
- "percentage": percentage,
10539
- "entityid": entityId,
10540
- "locationid": locationId,
10541
- "event": null,
10542
- "docs": JSON.stringify(docs),
10543
- "username": this.userName,
10544
- "reportformatvalues": reportformatvalues,
10545
- "reportformatschema": reportformatschema,
10546
- "userid": this.userProfileId,
10547
- "userrole": this.myRole,
10548
- "year": this.calendarStartYYYY,
10549
- "module": event.isnotice != null ? "notices" : "events"
10550
- });
10551
- }
10507
+ // if(parseInt(makercheckersL) > 0) {
10508
+ // bulkBodyReview.push({
10509
+ // "mmddyyyy": mmddyyyy,
10510
+ // "projectid": this.projectId,
10511
+ // "type": "report",
10512
+ // "eventid": eventId,
10513
+ // "comments": reportercomments,
10514
+ // "dateofcompletion": reporterdoc,
10515
+ // "percentage": percentage,
10516
+ // "entityid": entityId,
10517
+ // "locationid": locationId,
10518
+ // "event": null,
10519
+ // "docs": JSON.stringify(docs),
10520
+ // "approved": true,
10521
+ // "username": this.userName,
10522
+ // "reportformatvalues": reportformatvalues,
10523
+ // "reportformatschema": reportformatschema,
10524
+ // "userid": this.userProfileId,
10525
+ // "userrole": this.myRole,
10526
+ // "year": this.calendarStartYYYY,
10527
+ // "module": event.isnotice != null ? "notices" : "events"
10528
+ // } )
10529
+ // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
10530
+ // }else{
10531
+ bulkBody.push({
10532
+ "mmddyyyy": mmddyyyy,
10533
+ "projectid": this.projectId,
10534
+ "type": "report",
10535
+ "eventid": eventId,
10536
+ "comments": reportercomments,
10537
+ "dateofcompletion": reporterdoc,
10538
+ "percentage": percentage,
10539
+ "entityid": entityId,
10540
+ "locationid": locationId,
10541
+ "event": null,
10542
+ "docs": JSON.stringify(docs),
10543
+ "username": this.userName,
10544
+ "reportformatvalues": reportformatvalues,
10545
+ "reportformatschema": reportformatschema,
10546
+ "userid": this.userProfileId,
10547
+ "userrole": this.myRole,
10548
+ "year": this.calendarStartYYYY,
10549
+ "module": event.isnotice != null ? "notices" : "events",
10550
+ "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
10551
+ });
10552
+ // }
10552
10553
  // this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
10553
10554
  // await this.sleep(2000);
10554
10555
  // this.clearMessages();
@@ -10557,9 +10558,9 @@ let SfIEvents = class SfIEvents extends LitElement {
10557
10558
  await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
10558
10559
  }
10559
10560
  // await this.fetchBulkReportingData();
10560
- if (bulkBodyReview.length > 0) {
10561
- await this.uploadReportsReviewsBulk(bulkBodyReview);
10562
- }
10561
+ // if(bulkBodyReview.length > 0){
10562
+ // await this.uploadReportsReviewsBulk(bulkBodyReview)
10563
+ // }
10563
10564
  for (var k = 0; k < this.selectedItemIds.length; k++) {
10564
10565
  const selectedId = this.selectedItemIds[k];
10565
10566
  //console.log('selectedid', selectedId);
@@ -17011,8 +17012,8 @@ let SfIEvents = class SfIEvents extends LitElement {
17011
17012
  }, 3000);
17012
17013
  }
17013
17014
  };
17014
- this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "events", percentage = "100") => {
17015
- let url = "https://" + this.apiId + "/uploadreport";
17015
+ this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "events", percentage = "100", makercheckers) => {
17016
+ let url = "https://" + this.apiId + "/uploadreport1";
17016
17017
  let body = {
17017
17018
  "mmddyyyy": mmddyyyy,
17018
17019
  "projectid": this.projectId,
@@ -17031,7 +17032,8 @@ let SfIEvents = class SfIEvents extends LitElement {
17031
17032
  "userid": this.userProfileId,
17032
17033
  "userrole": this.myRole,
17033
17034
  "year": this.calendarStartYYYY,
17034
- "module": module
17035
+ "module": module,
17036
+ "makercheckers": makercheckers
17035
17037
  };
17036
17038
  //console.log(body);
17037
17039
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
@@ -17061,7 +17063,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17061
17063
  }
17062
17064
  };
17063
17065
  this.uploadReportsBulk = async (bulkBody, showSuccess = true) => {
17064
- let url = "https://" + this.apiId + "/uploadreportsbulk";
17066
+ let url = "https://" + this.apiId + "/uploadreportsbulk1";
17065
17067
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
17066
17068
  const xhr = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization));
17067
17069
  if (showSuccess) {
@@ -20226,6 +20228,7 @@ let SfIEvents = class SfIEvents extends LitElement {
20226
20228
  `;
20227
20229
  }
20228
20230
  else if (this.mode == "downloader") {
20231
+ //disable
20229
20232
  return html `
20230
20233
 
20231
20234
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
@@ -20239,7 +20242,7 @@ let SfIEvents = class SfIEvents extends LitElement {
20239
20242
  <div class="lb" part="lb"></div>
20240
20243
  <div class="d-flex align-end justify-between flex-grow">
20241
20244
  <div class="d-flex flex-col">
20242
- <sf-i-form id="sf-i-project-decrypt" class="mr-10" name="Projects" label="Select Project *" apiid="dnytrdlrmxgsy.cloudfront.net/project" mode="multiselect-dropdown" selectprojection="name" searchphrase="" ignoreprojections="[&quot;locations&quot;,&quot;plan&quot;,&quot;logo&quot;,&quot;shortid&quot;,&quot;plan&quot;]" mandatory="">
20245
+ <sf-i-form id="sf-i-project-decrypt" class="mr-10" name="Projects" label="Select Project *" apiid="dnytrdlrmxgsy.cloudfront.net/project" mode="multiselect-dropdown" selectprojection="name" searchphrase="" ignoreprojections="[&quot;locations&quot;,&quot;plan&quot;,&quot;logo&quot;,&quot;shortid&quot;,&quot;plan&quot;]" mandatory>
20243
20246
  </sf-i-form>
20244
20247
  </div>
20245
20248
  <div class="d-flex flex-col">
@@ -21294,9 +21297,6 @@ SfIEvents.styles = css `
21294
21297
  font-size: 90%;
21295
21298
  }
21296
21299
 
21297
- .lds-text-c-i {
21298
- }
21299
-
21300
21300
  .lds-dual-ring {
21301
21301
  display: inline-block;
21302
21302
  width: 50px;
@@ -21480,6 +21480,11 @@ SfIEvents.styles = css `
21480
21480
  .small-icon {
21481
21481
  font-size: 98%
21482
21482
  }
21483
+
21484
+ .new-feature{
21485
+ display: block;
21486
+ width: fit-content;
21487
+ }
21483
21488
  `;
21484
21489
  __decorate([
21485
21490
  query('#decrypt-container')
@@ -21506,7 +21511,7 @@ __decorate([
21506
21511
  property()
21507
21512
  ], SfIEvents.prototype, "locations", void 0);
21508
21513
  __decorate([
21509
- property()
21514
+ property({ type: Array })
21510
21515
  ], SfIEvents.prototype, "selectedCbs", void 0);
21511
21516
  __decorate([
21512
21517
  property()
@@ -21668,7 +21673,7 @@ __decorate([
21668
21673
  property()
21669
21674
  ], SfIEvents.prototype, "calendarStartYYYY", void 0);
21670
21675
  __decorate([
21671
- property()
21676
+ property({ type: Array })
21672
21677
  ], SfIEvents.prototype, "calendar", void 0);
21673
21678
  __decorate([
21674
21679
  property()
@@ -21689,7 +21694,7 @@ __decorate([
21689
21694
  property()
21690
21695
  ], SfIEvents.prototype, "triggers", void 0);
21691
21696
  __decorate([
21692
- property()
21697
+ property({ type: Array })
21693
21698
  ], SfIEvents.prototype, "monthNames", void 0);
21694
21699
  __decorate([
21695
21700
  property()
@@ -21767,7 +21772,7 @@ __decorate([
21767
21772
  property()
21768
21773
  ], SfIEvents.prototype, "mode", void 0);
21769
21774
  __decorate([
21770
- property()
21775
+ property({ type: Number })
21771
21776
  ], SfIEvents.prototype, "flowRcmNotification", void 0);
21772
21777
  __decorate([
21773
21778
  property()
@@ -21779,7 +21784,7 @@ __decorate([
21779
21784
  property()
21780
21785
  ], SfIEvents.prototype, "fill", void 0);
21781
21786
  __decorate([
21782
- property()
21787
+ property({ type: Array })
21783
21788
  ], SfIEvents.prototype, "filterTags", void 0);
21784
21789
  __decorate([
21785
21790
  property()
@@ -21800,10 +21805,10 @@ __decorate([
21800
21805
  property()
21801
21806
  ], SfIEvents.prototype, "riskSeverityData", void 0);
21802
21807
  __decorate([
21803
- property()
21808
+ property({ type: Array })
21804
21809
  ], SfIEvents.prototype, "arrCols", void 0);
21805
21810
  __decorate([
21806
- property()
21811
+ property({ type: Array })
21807
21812
  ], SfIEvents.prototype, "arrRcmProjectCols", void 0);
21808
21813
  __decorate([
21809
21814
  property()
@@ -21890,10 +21895,10 @@ __decorate([
21890
21895
  property()
21891
21896
  ], SfIEvents.prototype, "locationComplianceStatusData", void 0);
21892
21897
  __decorate([
21893
- property()
21898
+ property({ type: Array })
21894
21899
  ], SfIEvents.prototype, "selectedItemIds", void 0);
21895
21900
  __decorate([
21896
- property()
21901
+ property({ type: Array })
21897
21902
  ], SfIEvents.prototype, "selectedItems", void 0);
21898
21903
  __decorate([
21899
21904
  property()
@@ -21902,7 +21907,7 @@ __decorate([
21902
21907
  property()
21903
21908
  ], SfIEvents.prototype, "selectedTab", void 0);
21904
21909
  __decorate([
21905
- property()
21910
+ property({ type: Number })
21906
21911
  ], SfIEvents.prototype, "selectedCountryTab", void 0);
21907
21912
  __decorate([
21908
21913
  property()
@@ -1184,7 +1184,7 @@ export class SfIEvents extends LitElement {
1184
1184
 
1185
1185
  }
1186
1186
 
1187
- @property()
1187
+ @property({type:Array})
1188
1188
  selectedCbs: Array<any> = [];
1189
1189
 
1190
1190
  @property()
@@ -1346,7 +1346,7 @@ export class SfIEvents extends LitElement {
1346
1346
  @property()
1347
1347
  calendarStartYYYY!: string;
1348
1348
 
1349
- @property()
1349
+ @property({type:Array})
1350
1350
  calendar: Date [] = [];
1351
1351
 
1352
1352
  @property()
@@ -1367,7 +1367,7 @@ export class SfIEvents extends LitElement {
1367
1367
  @property()
1368
1368
  triggers: any = null;
1369
1369
 
1370
- @property()
1370
+ @property({type:Array})
1371
1371
  monthNames: string [] = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
1372
1372
 
1373
1373
  @property()
@@ -1474,7 +1474,7 @@ export class SfIEvents extends LitElement {
1474
1474
  @property()
1475
1475
  mode!: string;
1476
1476
 
1477
- @property()
1477
+ @property({type:Number})
1478
1478
  flowRcmNotification: number = 0;
1479
1479
 
1480
1480
  @property()
@@ -1486,7 +1486,7 @@ export class SfIEvents extends LitElement {
1486
1486
  @property()
1487
1487
  fill: string = "solid";
1488
1488
 
1489
- @property()
1489
+ @property({type:Array})
1490
1490
  filterTags: string [] = [];
1491
1491
 
1492
1492
 
@@ -1509,10 +1509,10 @@ export class SfIEvents extends LitElement {
1509
1509
  @property()
1510
1510
  riskSeverityData: any = null;
1511
1511
 
1512
- @property()
1512
+ @property({type:Array})
1513
1513
  arrCols: Array<string> = ["country", "state", "obligationtitle", "statute", "category"];
1514
1514
 
1515
- @property()
1515
+ @property({type:Array})
1516
1516
  arrRcmProjectCols: Array<string> = ["name"];
1517
1517
 
1518
1518
  @property()
@@ -1599,10 +1599,10 @@ export class SfIEvents extends LitElement {
1599
1599
  @property()
1600
1600
  locationComplianceStatusData: any = null;
1601
1601
 
1602
- @property()
1602
+ @property({type:Array})
1603
1603
  selectedItemIds: Array<string> = [];
1604
1604
 
1605
- @property()
1605
+ @property({type:Array})
1606
1606
  selectedItems: Array<any> = [];
1607
1607
 
1608
1608
  @property()
@@ -1611,7 +1611,7 @@ export class SfIEvents extends LitElement {
1611
1611
  @property()
1612
1612
  selectedTab: string = "";
1613
1613
 
1614
- @property()
1614
+ @property({type:Number})
1615
1615
  selectedCountryTab: number = -1;
1616
1616
 
1617
1617
  @property()
@@ -2545,9 +2545,6 @@ export class SfIEvents extends LitElement {
2545
2545
  font-size: 90%;
2546
2546
  }
2547
2547
 
2548
- .lds-text-c-i {
2549
- }
2550
-
2551
2548
  .lds-dual-ring {
2552
2549
  display: inline-block;
2553
2550
  width: 50px;
@@ -2731,6 +2728,11 @@ export class SfIEvents extends LitElement {
2731
2728
  .small-icon {
2732
2729
  font-size: 98%
2733
2730
  }
2731
+
2732
+ .new-feature{
2733
+ display: block;
2734
+ width: fit-content;
2735
+ }
2734
2736
  `;
2735
2737
 
2736
2738
  @query('.SfIEventsC')
@@ -6052,7 +6054,7 @@ export class SfIEvents extends LitElement {
6052
6054
  let flagBulk = false;
6053
6055
  if(this.selectedItemIds.length == 0){
6054
6056
 
6055
- await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage)
6057
+ await this.uploadReport(event.entityid, event.locationid, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage, event.makercheckers)
6056
6058
 
6057
6059
  console.log('this.events', this.events);
6058
6060
  if(this.mode != "next"){
@@ -6066,7 +6068,7 @@ export class SfIEvents extends LitElement {
6066
6068
 
6067
6069
  if(event.makercheckers.length > 0) {
6068
6070
 
6069
- await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
6071
+ // await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
6070
6072
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
6071
6073
  if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
6072
6074
  this.events[mmdd][p].approved = true
@@ -6099,31 +6101,31 @@ export class SfIEvents extends LitElement {
6099
6101
  //console.log(entityId, locationId, eventId, mmddyyyy);
6100
6102
 
6101
6103
  // await this.uploadReport(entityId, locationId, mmddyyyy, eventId, reportercomments, reporterdoc, docs, null)
6102
- if(parseInt(makercheckersL) > 0) {
6103
- bulkBodyReview.push({
6104
- "mmddyyyy": mmddyyyy,
6105
- "projectid": this.projectId,
6106
- "type": "report",
6107
- "eventid": eventId,
6108
- "comments": reportercomments,
6109
- "dateofcompletion": reporterdoc,
6110
- "percentage": percentage,
6111
- "entityid": entityId,
6112
- "locationid": locationId,
6113
- "event": null,
6114
- "docs": JSON.stringify(docs),
6115
- "approved": true,
6116
- "username": this.userName,
6117
- "reportformatvalues": reportformatvalues,
6118
- "reportformatschema": reportformatschema,
6119
- "userid": this.userProfileId,
6120
- "userrole": this.myRole,
6121
- "year": this.calendarStartYYYY,
6122
- "module": event.isnotice != null ? "notices" : "events"
6123
- } )
6124
- // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
6125
-
6126
- }else{
6104
+ // if(parseInt(makercheckersL) > 0) {
6105
+ // bulkBodyReview.push({
6106
+ // "mmddyyyy": mmddyyyy,
6107
+ // "projectid": this.projectId,
6108
+ // "type": "report",
6109
+ // "eventid": eventId,
6110
+ // "comments": reportercomments,
6111
+ // "dateofcompletion": reporterdoc,
6112
+ // "percentage": percentage,
6113
+ // "entityid": entityId,
6114
+ // "locationid": locationId,
6115
+ // "event": null,
6116
+ // "docs": JSON.stringify(docs),
6117
+ // "approved": true,
6118
+ // "username": this.userName,
6119
+ // "reportformatvalues": reportformatvalues,
6120
+ // "reportformatschema": reportformatschema,
6121
+ // "userid": this.userProfileId,
6122
+ // "userrole": this.myRole,
6123
+ // "year": this.calendarStartYYYY,
6124
+ // "module": event.isnotice != null ? "notices" : "events"
6125
+ // } )
6126
+ // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
6127
+
6128
+ // }else{
6127
6129
  bulkBody.push({
6128
6130
  "mmddyyyy": mmddyyyy,
6129
6131
  "projectid": this.projectId,
@@ -6142,9 +6144,10 @@ export class SfIEvents extends LitElement {
6142
6144
  "userid": this.userProfileId,
6143
6145
  "userrole": this.myRole,
6144
6146
  "year": this.calendarStartYYYY,
6145
- "module": event.isnotice != null ? "notices" : "events"
6147
+ "module": event.isnotice != null ? "notices" : "events",
6148
+ "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
6146
6149
  })
6147
- }
6150
+ // }
6148
6151
 
6149
6152
  // this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
6150
6153
  // await this.sleep(2000);
@@ -6158,9 +6161,9 @@ export class SfIEvents extends LitElement {
6158
6161
  await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
6159
6162
  }
6160
6163
 
6161
- if(bulkBodyReview.length > 0){
6162
- await this.uploadReportsReviewsBulk(bulkBodyReview)
6163
- }
6164
+ // if(bulkBodyReview.length > 0){
6165
+ // await this.uploadReportsReviewsBulk(bulkBodyReview)
6166
+ // }
6164
6167
  for(var k = 0; k < this.selectedItemIds.length; k++) {
6165
6168
 
6166
6169
  const selectedId = this.selectedItemIds[k];
@@ -12953,7 +12956,7 @@ export class SfIEvents extends LitElement {
12953
12956
  let flagBulk = false;
12954
12957
  if(this.selectedItemIds.length === 0) {
12955
12958
 
12956
- await this.uploadReport(entityId, locationId, mmddyyyy, listEvent["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, "notices", percentage)
12959
+ await this.uploadReport(entityId, locationId, mmddyyyy, listEvent["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, "notices", percentage, makercheckers)
12957
12960
  console.log('this.events', this.events);
12958
12961
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
12959
12962
  if(this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
@@ -12965,7 +12968,7 @@ export class SfIEvents extends LitElement {
12965
12968
  console.log('uploadReport single')
12966
12969
  if(makercheckers.length > 0) {
12967
12970
 
12968
- await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], "Auto approved", true, "notices");
12971
+ // await this.uploadReview(entityId, locationId, mmddyyyy, listEvent["id"], "Auto approved", true, "notices");
12969
12972
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
12970
12973
  if(this.events[mmdd][p].id == listEvent.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
12971
12974
  this.events[mmdd][p].approved = true
@@ -12998,31 +13001,31 @@ export class SfIEvents extends LitElement {
12998
13001
  //console.log(entityId, locationId, eventId, mmddyyyy);
12999
13002
 
13000
13003
  // await this.uploadReport(entityId, locationId, mmddyyyy, eventId, reportercomments, reporterdoc, docs, null)
13001
- if(parseInt(makercheckersL) > 0) {
13002
- bulkBodyReview.push({
13003
- "mmddyyyy": mmddyyyy,
13004
- "projectid": this.projectId,
13005
- "type": "report",
13006
- "eventid": eventId,
13007
- "comments": reportercomments,
13008
- "dateofcompletion": reporterdoc,
13009
- "percentage": percentage,
13010
- "entityid": entityId,
13011
- "locationid": locationId,
13012
- "event": null,
13013
- "docs": JSON.stringify(docs),
13014
- "approved": true,
13015
- "username": this.userName,
13016
- "reportformatvalues": reportformatvalues,
13017
- "reportformatschema": reportformatschema,
13018
- "userid": this.userProfileId,
13019
- "userrole": this.myRole,
13020
- "year": this.calendarStartYYYY,
13021
- "module": listEvent.isnotice != null ? "notices" : "events"
13022
- } )
13023
- // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
13024
-
13025
- }else{
13004
+ // if(parseInt(makercheckersL) > 0) {
13005
+ // bulkBodyReview.push({
13006
+ // "mmddyyyy": mmddyyyy,
13007
+ // "projectid": this.projectId,
13008
+ // "type": "report",
13009
+ // "eventid": eventId,
13010
+ // "comments": reportercomments,
13011
+ // "dateofcompletion": reporterdoc,
13012
+ // "percentage": percentage,
13013
+ // "entityid": entityId,
13014
+ // "locationid": locationId,
13015
+ // "event": null,
13016
+ // "docs": JSON.stringify(docs),
13017
+ // "approved": true,
13018
+ // "username": this.userName,
13019
+ // "reportformatvalues": reportformatvalues,
13020
+ // "reportformatschema": reportformatschema,
13021
+ // "userid": this.userProfileId,
13022
+ // "userrole": this.myRole,
13023
+ // "year": this.calendarStartYYYY,
13024
+ // "module": listEvent.isnotice != null ? "notices" : "events"
13025
+ // } )
13026
+ // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
13027
+
13028
+ // }else{
13026
13029
  bulkBody.push({
13027
13030
  "mmddyyyy": mmddyyyy,
13028
13031
  "projectid": this.projectId,
@@ -13041,9 +13044,10 @@ export class SfIEvents extends LitElement {
13041
13044
  "userid": this.userProfileId,
13042
13045
  "userrole": this.myRole,
13043
13046
  "year": this.calendarStartYYYY,
13044
- "module": listEvent.isnotice != null ? "notices" : "events"
13047
+ "module": listEvent.isnotice != null ? "notices" : "events",
13048
+ "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
13045
13049
  })
13046
- }
13050
+ // }
13047
13051
 
13048
13052
  // this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
13049
13053
  // await this.sleep(2000);
@@ -13057,9 +13061,9 @@ export class SfIEvents extends LitElement {
13057
13061
  await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
13058
13062
  }
13059
13063
 
13060
- if(bulkBodyReview.length > 0){
13061
- await this.uploadReportsReviewsBulk(bulkBodyReview)
13062
- }
13064
+ // if(bulkBodyReview.length > 0){
13065
+ // await this.uploadReportsReviewsBulk(bulkBodyReview)
13066
+ // }
13063
13067
  await this.fetchBulkReportingData();
13064
13068
  console.log('uploadReport bulk')
13065
13069
  for(var k = 0; k < this.selectedItemIds.length; k++) {
@@ -13532,6 +13536,7 @@ export class SfIEvents extends LitElement {
13532
13536
  html += '</div>';
13533
13537
  html += '</div>';
13534
13538
 
13539
+ html += '<sf-new-feature class="new-feature m-10" exportparts="new-feature-text-container,new-feature-text" updatetime="1743405417000"></sf-new-feature>'
13535
13540
  html += '<div class="accordian-section section-feedback pl-20 pr-20" part="accordian-section">';
13536
13541
  html += '<div class="d-flex justify-between accordian-head head-feedback" part="accordian-head">';
13537
13542
  html += '<h3>Feedback</h3>'
@@ -14230,7 +14235,7 @@ export class SfIEvents extends LitElement {
14230
14235
  //console.log('makerscheckers', makercheckers, reportercomments);
14231
14236
  // console.log('reportformatvalues', reportformatvalues)
14232
14237
  // console.log('reportformatschema',reportformatschema)
14233
- await this.uploadReport(entityId, locationId, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage)
14238
+ await this.uploadReport(entityId, locationId, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event, reportformatvalues, reportformatschema, event.isnotice != null ? "notices" : "events", percentage, makercheckers)
14234
14239
  console.log('this.events', this.events);
14235
14240
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
14236
14241
  if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
@@ -14241,12 +14246,12 @@ export class SfIEvents extends LitElement {
14241
14246
  }
14242
14247
  if(makercheckers.length > 0) {
14243
14248
 
14244
- await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
14249
+ // await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], "Auto approved", true, event.isnotice != null ? "notices" : "events");
14245
14250
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
14246
14251
  if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == locationId && this.events[mmdd][p].entityid == entityId){
14247
14252
  this.events[mmdd][p].approved = true
14248
14253
  // this.events[mmdd][p].documents = docs
14249
- this.events[mmdd][p].comments.push({'author': 'Auditor', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString()})
14254
+ this.events[mmdd][p].comments.push({'author': 'Approver', 'comment': `Auto approved (Approved: Yes})`, 'timestamp': new Date().toString()})
14250
14255
  this.events[mmdd][p].lastupdated = new Date().toString()
14251
14256
  }
14252
14257
  }
@@ -14291,31 +14296,31 @@ export class SfIEvents extends LitElement {
14291
14296
  // "module": event.isnotice != null ? "notices" : "events"
14292
14297
  // })
14293
14298
  // await this.uploadReport(entityId, locationId, mmddyyyy, eventId, reportercomments, reporterdoc, docs, null)
14294
- if(parseInt(makercheckersL) > 0) {
14295
- bulkBodyReview.push({
14296
- "mmddyyyy": mmddyyyy,
14297
- "projectid": this.projectId,
14298
- "type": "report",
14299
- "eventid": eventId,
14300
- "comments": reportercomments,
14301
- "dateofcompletion": reporterdoc,
14302
- "percentage": percentage,
14303
- "entityid": entityId,
14304
- "locationid": locationId,
14305
- "event": null,
14306
- "docs": JSON.stringify(docs),
14307
- "approved": true,
14308
- "username": this.userName,
14309
- "reportformatvalues": reportformatvalues,
14310
- "reportformatschema": reportformatschema,
14311
- "userid": this.userProfileId,
14312
- "userrole": this.myRole,
14313
- "year": this.calendarStartYYYY,
14314
- "module": event.isnotice != null ? "notices" : "events"
14315
- } )
14316
- // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
14317
-
14318
- }else{
14299
+ // if(parseInt(makercheckersL) > 0) {
14300
+ // bulkBodyReview.push({
14301
+ // "mmddyyyy": mmddyyyy,
14302
+ // "projectid": this.projectId,
14303
+ // "type": "report",
14304
+ // "eventid": eventId,
14305
+ // "comments": reportercomments,
14306
+ // "dateofcompletion": reporterdoc,
14307
+ // "percentage": percentage,
14308
+ // "entityid": entityId,
14309
+ // "locationid": locationId,
14310
+ // "event": null,
14311
+ // "docs": JSON.stringify(docs),
14312
+ // "approved": true,
14313
+ // "username": this.userName,
14314
+ // "reportformatvalues": reportformatvalues,
14315
+ // "reportformatschema": reportformatschema,
14316
+ // "userid": this.userProfileId,
14317
+ // "userrole": this.myRole,
14318
+ // "year": this.calendarStartYYYY,
14319
+ // "module": event.isnotice != null ? "notices" : "events"
14320
+ // } )
14321
+ // // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
14322
+
14323
+ // }else{
14319
14324
  bulkBody.push({
14320
14325
  "mmddyyyy": mmddyyyy,
14321
14326
  "projectid": this.projectId,
@@ -14334,9 +14339,10 @@ export class SfIEvents extends LitElement {
14334
14339
  "userid": this.userProfileId,
14335
14340
  "userrole": this.myRole,
14336
14341
  "year": this.calendarStartYYYY,
14337
- "module": event.isnotice != null ? "notices" : "events"
14342
+ "module": event.isnotice != null ? "notices" : "events",
14343
+ "makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
14338
14344
  })
14339
- }
14345
+ // }
14340
14346
 
14341
14347
  // this.setSuccess("Updating " + (k + 1) + "/" + this.selectedItemIds.length + ", please wait...");
14342
14348
  // await this.sleep(2000);
@@ -14348,9 +14354,9 @@ export class SfIEvents extends LitElement {
14348
14354
  await this.uploadReportsBulk(bulkBody, bulkBodyReview.length == 0);
14349
14355
  }
14350
14356
  // await this.fetchBulkReportingData();
14351
- if(bulkBodyReview.length > 0){
14352
- await this.uploadReportsReviewsBulk(bulkBodyReview)
14353
- }
14357
+ // if(bulkBodyReview.length > 0){
14358
+ // await this.uploadReportsReviewsBulk(bulkBodyReview)
14359
+ // }
14354
14360
  for(var k = 0; k < this.selectedItemIds.length; k++) {
14355
14361
 
14356
14362
  const selectedId = this.selectedItemIds[k];
@@ -22525,8 +22531,8 @@ export class SfIEvents extends LitElement {
22525
22531
  }
22526
22532
  }
22527
22533
 
22528
- uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "events", percentage: string = "100") => {
22529
- let url = "https://"+this.apiId+"/uploadreport";
22534
+ uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "events", percentage: string = "100", makercheckers: any) => {
22535
+ let url = "https://"+this.apiId+"/uploadreport1";
22530
22536
 
22531
22537
  let body = {
22532
22538
  "mmddyyyy": mmddyyyy,
@@ -22546,7 +22552,8 @@ export class SfIEvents extends LitElement {
22546
22552
  "userid": this.userProfileId,
22547
22553
  "userrole": this.myRole,
22548
22554
  "year": this.calendarStartYYYY,
22549
- "module": module
22555
+ "module": module,
22556
+ "makercheckers": makercheckers
22550
22557
  }
22551
22558
 
22552
22559
  //console.log(body);
@@ -22580,7 +22587,7 @@ export class SfIEvents extends LitElement {
22580
22587
  }
22581
22588
 
22582
22589
  uploadReportsBulk = async (bulkBody: any, showSuccess: boolean = true) => {
22583
- let url = "https://"+this.apiId+"/uploadreportsbulk"
22590
+ let url = "https://"+this.apiId+"/uploadreportsbulk1"
22584
22591
 
22585
22592
  const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
22586
22593
  const xhr : any = (await this.prepareXhr(bulkBody, url, this._SfLoader, authorization)) as any;
@@ -26534,7 +26541,7 @@ export class SfIEvents extends LitElement {
26534
26541
  `;
26535
26542
 
26536
26543
  } else if(this.mode == "downloader") {
26537
-
26544
+ //disable
26538
26545
  return html`
26539
26546
 
26540
26547
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
@@ -26548,7 +26555,7 @@ export class SfIEvents extends LitElement {
26548
26555
  <div class="lb" part="lb"></div>
26549
26556
  <div class="d-flex align-end justify-between flex-grow">
26550
26557
  <div class="d-flex flex-col">
26551
- <sf-i-form id="sf-i-project-decrypt" class="mr-10" name="Projects" label="Select Project *" apiid="dnytrdlrmxgsy.cloudfront.net/project" mode="multiselect-dropdown" selectprojection="name" searchphrase="" ignoreprojections="[&quot;locations&quot;,&quot;plan&quot;,&quot;logo&quot;,&quot;shortid&quot;,&quot;plan&quot;]" mandatory="">
26558
+ <sf-i-form id="sf-i-project-decrypt" class="mr-10" name="Projects" label="Select Project *" apiid="dnytrdlrmxgsy.cloudfront.net/project" mode="multiselect-dropdown" selectprojection="name" searchphrase="" ignoreprojections="[&quot;locations&quot;,&quot;plan&quot;,&quot;logo&quot;,&quot;shortid&quot;,&quot;plan&quot;]" mandatory>
26552
26559
  </sf-i-form>
26553
26560
  </div>
26554
26561
  <div class="d-flex flex-col">