sf-i-events 1.0.818 → 1.0.820

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
@@ -26,6 +26,7 @@
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.2/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';
@@ -39,6 +40,7 @@
39
40
  // import {SfIElasticText} from 'https://unpkg.com/sf-i-elastic-text@1.0.7/sf-i-elastic-text.js?module';
40
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: large;
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,8 +723,8 @@
717
723
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
718
724
  </div>
719
725
 
720
- </sf-i-events>
721
- <!-- <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">
726
+ </sf-i-events> -->
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">
724
730
  <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>
@@ -727,7 +733,7 @@
727
733
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
728
734
  </div>
729
735
 
730
- </sf-i-events> -->
736
+ </sf-i-events>
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> -->
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.818",
4
+ "version": "1.0.820",
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.js CHANGED
@@ -2431,7 +2431,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2431
2431
  html += '<div class="stream-events-container flex-grow" part="' + bgStatus + '">';
2432
2432
  html += '<div class="hidden-tags hide">' + JSON.stringify(event['tags']) + '</div>';
2433
2433
  html += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>';
2434
- html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-' + mmdd.replace('/', '-') + '-' + itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '-' + (((_a = event.isnotice) !== null && _a !== void 0 ? _a : false) ? 'isnotice' : 'isevent') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true)) ? 'hide' : '') + '" type="checkbox"/>' + (event.isbulk != null && event.isbulk == true ? '<div class="lds-dual-ring1 bulk-loader mr-10"></div>' : '') + '<sf-i-elastic-text class="stream-event-title' + (event.isbulk == null || event.isbulk == false ? ' button-event-title' : '') + '" id="stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + itemNumber + '-' + (((_b = event.isnotice) !== null && _b !== void 0 ? _b : false) ? 'isnotice' : 'isevent') + '" text="' + event['obligationtitle'] + '" minLength="' + (event.reporters != null ? "100" : "60") + '"></sf-i-elastic-text>' + (event.reporters != null ? ('') : ('<div part="stream-event-location" class="stream-event-location ml-5">' + event.locationname.replace(/ *\([^)]*\) */g, "") + '</div><button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + itemNumber + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>')) + ((event.reporters != null && lastUpdated.length > 0) ? ('&nbsp;&nbsp;<div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
2434
+ html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-' + mmdd.replace('/', '-') + '-' + itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g, '_') + '-' + (((_a = event.isnotice) !== null && _a !== void 0 ? _a : false) ? 'isnotice' : 'isevent') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true)) ? 'hide' : '') + '" type="checkbox"/>' + (event.isbulk != null && event.isbulk == true ? '<div class="lds-dual-ring1 bulk-loader mr-10"></div>' : '') + '<sf-i-elastic-text class="stream-event-title' + (event.isbulk == null || event.isbulk == false ? ' button-event-title' : '') + '" id="stream-event-title-' + mmdd.replace(/\//g, '-') + '-' + itemNumber + '-' + (((_b = event.isnotice) !== null && _b !== void 0 ? _b : false) ? 'isnotice' : 'isevent') + '" text="' + event['obligationtitle'] + '" minLength="' + (event.reporters != null ? "100" : "60") + '"></sf-i-elastic-text>' + (event.reporters != null ? ('') : ('<div part="stream-event-location" class="stream-event-location ml-5">' + event.locationname.replace(/ *\([^)]*\) */g, "") + '</div><div part="stream-event-risk" class="stream-event-risk ml-5">' + event.risk[0] + '</div><button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + itemNumber + '" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>')) + ((event.reporters != null && lastUpdated.length > 0) ? ('&nbsp;&nbsp;<div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
2435
2435
  if (event.reporters != null && remarks.length > 0) {
2436
2436
  html += '<div part="stream-events-event-subtitle" class="stream-events-event-subtitle">' + remarks + ', occurred on ' + occurrenceDate + '</div>';
2437
2437
  }
@@ -2491,6 +2491,11 @@ let SfIEvents = class SfIEvents extends LitElement {
2491
2491
  html += 'Function';
2492
2492
  html += '</th>';
2493
2493
  }
2494
+ if (event.risk != null) {
2495
+ html += '<th part="td-head">';
2496
+ html += 'Risk';
2497
+ html += '</th>';
2498
+ }
2494
2499
  for (var k = 0; k < Object.keys(event).length; k++) {
2495
2500
  if (this.getEventPreviewFields().includes(Object.keys(event)[k])) {
2496
2501
  html += '<th part="td-head" class="bg-left-no-border">';
@@ -2568,6 +2573,9 @@ let SfIEvents = class SfIEvents extends LitElement {
2568
2573
  functions = functions.replace(/,\s*$/, "");
2569
2574
  html += '<td part="td-body"><sf-i-elastic-text text="' + functions + '" minLength="10"></sf-i-elastic-text></td>';
2570
2575
  }
2576
+ if (event["risk"] != null) {
2577
+ html += '<td part="td-body"><sf-i-elastic-text text="' + event["risk"][0] + '" minLength="10"></sf-i-elastic-text></td>';
2578
+ }
2571
2579
  for (var k = 0; k < Object.keys(event).length; k++) {
2572
2580
  if (this.getEventPreviewFields().includes(Object.keys(event)[k])) {
2573
2581
  html += '<td part="td-body">';
@@ -3417,6 +3425,14 @@ let SfIEvents = class SfIEvents extends LitElement {
3417
3425
  buttonClick.innerHTML = "Saving...";
3418
3426
  const comments = listReportingContainer.querySelector('#input-approver-comments').value;
3419
3427
  const approved = listReportingContainer.querySelector('#input-approve-yes').checked;
3428
+ if (approved == event.approved) {
3429
+ buttonClick.innerHTML = "Save";
3430
+ this.setError('Already Approved!');
3431
+ setTimeout(() => {
3432
+ this.clearMessages();
3433
+ }, 3000);
3434
+ return;
3435
+ }
3420
3436
  let flagBulk = false;
3421
3437
  if (this.selectedItemIds.length == 0) {
3422
3438
  await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events");
@@ -9088,6 +9104,14 @@ let SfIEvents = class SfIEvents extends LitElement {
9088
9104
  buttonClick.innerHTML = "Saving...";
9089
9105
  const comments = this._SfDetailContainer.querySelector('#input-approver-comments').value;
9090
9106
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
9107
+ if (approved == listEvent.approved) {
9108
+ buttonClick.innerHTML = "Save";
9109
+ this.setError('Already Approved!');
9110
+ setTimeout(() => {
9111
+ this.clearMessages();
9112
+ }, 3000);
9113
+ return;
9114
+ }
9091
9115
  var clickEvent = new MouseEvent("click", {
9092
9116
  "view": window,
9093
9117
  "bubbles": true,
@@ -9197,6 +9221,14 @@ let SfIEvents = class SfIEvents extends LitElement {
9197
9221
  buttonClick.innerHTML = "Saving...";
9198
9222
  const comments = this._SfDetailContainer.querySelector('#input-auditor-comments').value;
9199
9223
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
9224
+ if (approved == listEvent.approved) {
9225
+ buttonClick.innerHTML = "Save";
9226
+ this.setError('Already Approved!');
9227
+ setTimeout(() => {
9228
+ this.clearMessages();
9229
+ }, 3000);
9230
+ return;
9231
+ }
9200
9232
  if (comments.trim().length === 0) {
9201
9233
  buttonClick.innerHTML = "Save";
9202
9234
  this.setError('Comments cannot be blank!');
@@ -9869,6 +9901,7 @@ let SfIEvents = class SfIEvents extends LitElement {
9869
9901
  }
9870
9902
  html += '</div>';
9871
9903
  html += '</div>';
9904
+ html += '<sf-new-feature class="new-feature m-10" exportparts="new-feature-text-container,new-feature-text" updatetime="1743405417000"></sf-new-feature>';
9872
9905
  html += '<div class="accordian-section section-feedback pl-20 pr-20" part="accordian-section">';
9873
9906
  html += '<div class="d-flex justify-between accordian-head head-feedback" part="accordian-head">';
9874
9907
  html += '<h3>Feedback</h3>';
@@ -10160,6 +10193,14 @@ let SfIEvents = class SfIEvents extends LitElement {
10160
10193
  buttonClick.innerHTML = "Saving...";
10161
10194
  const comments = this._SfDetailContainer.querySelector('#input-approver-comments').value;
10162
10195
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
10196
+ if (approved == event.approved) {
10197
+ buttonClick.innerHTML = "Save";
10198
+ this.setError('Already Approved!');
10199
+ setTimeout(() => {
10200
+ this.clearMessages();
10201
+ }, 3000);
10202
+ return;
10203
+ }
10163
10204
  var clickEvent = new MouseEvent("click", {
10164
10205
  "view": window,
10165
10206
  "bubbles": true,
@@ -10267,6 +10308,14 @@ let SfIEvents = class SfIEvents extends LitElement {
10267
10308
  buttonClick.innerHTML = "Saving...";
10268
10309
  const comments = this._SfDetailContainer.querySelector('#input-auditor-comments').value;
10269
10310
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
10311
+ if (approved == event.approved) {
10312
+ buttonClick.innerHTML = "Save";
10313
+ this.setError('Already Approved!');
10314
+ setTimeout(() => {
10315
+ this.clearMessages();
10316
+ }, 3000);
10317
+ return;
10318
+ }
10270
10319
  if (comments.trim().length === 0) {
10271
10320
  buttonClick.innerHTML = "Save";
10272
10321
  this.setError('Comments cannot be blank!');
@@ -20227,6 +20276,7 @@ let SfIEvents = class SfIEvents extends LitElement {
20227
20276
  `;
20228
20277
  }
20229
20278
  else if (this.mode == "downloader") {
20279
+ //disable
20230
20280
  return html `
20231
20281
 
20232
20282
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
@@ -20240,7 +20290,7 @@ let SfIEvents = class SfIEvents extends LitElement {
20240
20290
  <div class="lb" part="lb"></div>
20241
20291
  <div class="d-flex align-end justify-between flex-grow">
20242
20292
  <div class="d-flex flex-col">
20243
- <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="">
20293
+ <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>
20244
20294
  </sf-i-form>
20245
20295
  </div>
20246
20296
  <div class="d-flex flex-col">
@@ -21295,9 +21345,6 @@ SfIEvents.styles = css `
21295
21345
  font-size: 90%;
21296
21346
  }
21297
21347
 
21298
- .lds-text-c-i {
21299
- }
21300
-
21301
21348
  .lds-dual-ring {
21302
21349
  display: inline-block;
21303
21350
  width: 50px;
@@ -21481,6 +21528,11 @@ SfIEvents.styles = css `
21481
21528
  .small-icon {
21482
21529
  font-size: 98%
21483
21530
  }
21531
+
21532
+ .new-feature{
21533
+ display: block;
21534
+ width: fit-content;
21535
+ }
21484
21536
  `;
21485
21537
  __decorate([
21486
21538
  query('#decrypt-container')
@@ -21507,7 +21559,7 @@ __decorate([
21507
21559
  property()
21508
21560
  ], SfIEvents.prototype, "locations", void 0);
21509
21561
  __decorate([
21510
- property()
21562
+ property({ type: Array })
21511
21563
  ], SfIEvents.prototype, "selectedCbs", void 0);
21512
21564
  __decorate([
21513
21565
  property()
@@ -21669,7 +21721,7 @@ __decorate([
21669
21721
  property()
21670
21722
  ], SfIEvents.prototype, "calendarStartYYYY", void 0);
21671
21723
  __decorate([
21672
- property()
21724
+ property({ type: Array })
21673
21725
  ], SfIEvents.prototype, "calendar", void 0);
21674
21726
  __decorate([
21675
21727
  property()
@@ -21690,7 +21742,7 @@ __decorate([
21690
21742
  property()
21691
21743
  ], SfIEvents.prototype, "triggers", void 0);
21692
21744
  __decorate([
21693
- property()
21745
+ property({ type: Array })
21694
21746
  ], SfIEvents.prototype, "monthNames", void 0);
21695
21747
  __decorate([
21696
21748
  property()
@@ -21768,7 +21820,7 @@ __decorate([
21768
21820
  property()
21769
21821
  ], SfIEvents.prototype, "mode", void 0);
21770
21822
  __decorate([
21771
- property()
21823
+ property({ type: Number })
21772
21824
  ], SfIEvents.prototype, "flowRcmNotification", void 0);
21773
21825
  __decorate([
21774
21826
  property()
@@ -21780,7 +21832,7 @@ __decorate([
21780
21832
  property()
21781
21833
  ], SfIEvents.prototype, "fill", void 0);
21782
21834
  __decorate([
21783
- property()
21835
+ property({ type: Array })
21784
21836
  ], SfIEvents.prototype, "filterTags", void 0);
21785
21837
  __decorate([
21786
21838
  property()
@@ -21801,10 +21853,10 @@ __decorate([
21801
21853
  property()
21802
21854
  ], SfIEvents.prototype, "riskSeverityData", void 0);
21803
21855
  __decorate([
21804
- property()
21856
+ property({ type: Array })
21805
21857
  ], SfIEvents.prototype, "arrCols", void 0);
21806
21858
  __decorate([
21807
- property()
21859
+ property({ type: Array })
21808
21860
  ], SfIEvents.prototype, "arrRcmProjectCols", void 0);
21809
21861
  __decorate([
21810
21862
  property()
@@ -21891,10 +21943,10 @@ __decorate([
21891
21943
  property()
21892
21944
  ], SfIEvents.prototype, "locationComplianceStatusData", void 0);
21893
21945
  __decorate([
21894
- property()
21946
+ property({ type: Array })
21895
21947
  ], SfIEvents.prototype, "selectedItemIds", void 0);
21896
21948
  __decorate([
21897
- property()
21949
+ property({ type: Array })
21898
21950
  ], SfIEvents.prototype, "selectedItems", void 0);
21899
21951
  __decorate([
21900
21952
  property()
@@ -21903,7 +21955,7 @@ __decorate([
21903
21955
  property()
21904
21956
  ], SfIEvents.prototype, "selectedTab", void 0);
21905
21957
  __decorate([
21906
- property()
21958
+ property({ type: Number })
21907
21959
  ], SfIEvents.prototype, "selectedCountryTab", void 0);
21908
21960
  __decorate([
21909
21961
  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')
@@ -4615,7 +4617,7 @@ export class SfIEvents extends LitElement {
4615
4617
  html += '<div class="stream-events-container flex-grow" part="' + bgStatus + '">';
4616
4618
  html += '<div class="hidden-tags hide">'+JSON.stringify(event['tags'])+'</div>'
4617
4619
  html += '<div class="hidden-title hide"><table><thead><th part="badge-filtered"><i>not filtered</i></th></thead></table></div>'
4618
- html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-'+mmdd.replace('/', '-')+'-'+itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g,'_') + '-' + ((event.isnotice ?? false) ? 'isnotice' : 'isevent') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true)) ? 'hide' : '') + '" type="checkbox"/>' + (event.isbulk != null && event.isbulk == true ? '<div class="lds-dual-ring1 bulk-loader mr-10"></div>' : '') + '<sf-i-elastic-text class="stream-event-title' + (event.isbulk == null || event.isbulk == false ? ' button-event-title' : '') + '" id="stream-event-title-' + mmdd.replace(/\//g,'-') + '-' + itemNumber + '-'+((event.isnotice ?? false)?'isnotice':'isevent')+ '" text="'+event['obligationtitle']+'" minLength="' + (event.reporters != null ? "100" : "60") + '"></sf-i-elastic-text>' + (event.reporters != null ? ('') : ('<div part="stream-event-location" class="stream-event-location ml-5">' + event.locationname.replace(/ *\([^)]*\) */g, "") + '</div><button id="button-list-reporting-'+mmdd.replace('/', '-')+'-' + itemNumber +'" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>')) + ((event.reporters != null && lastUpdated.length > 0) ? ('&nbsp;&nbsp;<div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
4620
+ html += '<div part="stream-events-event-title" class="stream-events-event-title d-flex align-center pl-5 pb-5">' + '<input id="button-select-'+mmdd.replace('/', '-')+'-'+ itemNumber + '-' + (((event.makercheckers != null && (event.makercheckers).length > 0)) ? '1' : '0') + '-' + (((event.docs != null && (event.docs).length > 0)) ? '1' : '0') + '-' + event.entityid.replace(/-/g, '_') + '-' + event.locationid.replace(/-/g, '_') + '-' + event.id.replace(/-/g, '_') + '-' + event.duedate.split('/')[1] + '-' + event.duedate.split('/')[0] + '-' + event.duedate.split('/')[2] + '-' + partStatus.replace(/-/g,'_') + '-' + ((event.isnotice ?? false) ? 'isnotice' : 'isevent') + '-' + ((event.isbulk == null || event.isbulk == false) ? "" : "bulk") + '" class="button-select mr-10 ' + (((event.reportformat != null && event.reportformat.length > 0) || (event.isbulk != null && event.isbulk == true)) ? 'hide' : '') + '" type="checkbox"/>' + (event.isbulk != null && event.isbulk == true ? '<div class="lds-dual-ring1 bulk-loader mr-10"></div>' : '') + '<sf-i-elastic-text class="stream-event-title' + (event.isbulk == null || event.isbulk == false ? ' button-event-title' : '') + '" id="stream-event-title-' + mmdd.replace(/\//g,'-') + '-' + itemNumber + '-'+((event.isnotice ?? false)?'isnotice':'isevent')+ '" text="'+event['obligationtitle']+'" minLength="' + (event.reporters != null ? "100" : "60") + '"></sf-i-elastic-text>' + (event.reporters != null ? ('') : ('<div part="stream-event-location" class="stream-event-location ml-5">' + event.locationname.replace(/ *\([^)]*\) */g, "") + '</div><div part="stream-event-risk" class="stream-event-risk ml-5">' + event.risk[0] + '</div><button id="button-list-reporting-'+mmdd.replace('/', '-')+'-' + itemNumber +'" part="button-list-reporting" class="material-icons ml-10 button-list-reporting">edit_note</button>')) + ((event.reporters != null && lastUpdated.length > 0) ? ('&nbsp;&nbsp;<div part="event-last-updated-time" class="d-flex align-center">' + lastUpdated + '</div>') : "") + '</div>';
4619
4621
  if(event.reporters != null && remarks.length > 0) {
4620
4622
  html += '<div part="stream-events-event-subtitle" class="stream-events-event-subtitle">'+remarks+', occurred on '+occurrenceDate+'</div>';
4621
4623
  }
@@ -4689,6 +4691,11 @@ export class SfIEvents extends LitElement {
4689
4691
  html += 'Function'
4690
4692
  html += '</th>'
4691
4693
  }
4694
+ if(event.risk != null){
4695
+ html += '<th part="td-head">';
4696
+ html += 'Risk'
4697
+ html += '</th>'
4698
+ }
4692
4699
  for(var k = 0; k < Object.keys(event).length; k++) {
4693
4700
  if(this.getEventPreviewFields().includes(Object.keys(event)[k])) {
4694
4701
  html += '<th part="td-head" class="bg-left-no-border">';
@@ -4771,6 +4778,9 @@ export class SfIEvents extends LitElement {
4771
4778
  functions = functions.replace(/,\s*$/, "");
4772
4779
  html += '<td part="td-body"><sf-i-elastic-text text="'+functions+'" minLength="10"></sf-i-elastic-text></td>';
4773
4780
  }
4781
+ if(event["risk"] != null){
4782
+ html += '<td part="td-body"><sf-i-elastic-text text="'+event["risk"][0]+'" minLength="10"></sf-i-elastic-text></td>';
4783
+ }
4774
4784
  for(var k = 0; k < Object.keys(event).length; k++) {
4775
4785
  if(this.getEventPreviewFields().includes(Object.keys(event)[k])) {
4776
4786
 
@@ -5754,8 +5764,17 @@ export class SfIEvents extends LitElement {
5754
5764
  buttonClick.innerHTML = "Saving..."
5755
5765
  const comments = (listReportingContainer.querySelector('#input-approver-comments') as HTMLInputElement).value;
5756
5766
  const approved = (listReportingContainer.querySelector('#input-approve-yes') as HTMLInputElement).checked;
5767
+ if(approved == event.approved){
5768
+ buttonClick.innerHTML = "Save"
5769
+ this.setError('Already Approved!');
5770
+ setTimeout(() => {
5771
+ this.clearMessages();
5772
+ }, 3000);
5773
+ return;
5774
+ }
5757
5775
  let flagBulk = false;
5758
5776
  if(this.selectedItemIds.length == 0){
5777
+
5759
5778
  await this.uploadReview(event.entityid, event.locationid, mmddyyyy, event["id"], comments, approved, event.isnotice != null ? "notices" : "events")
5760
5779
  for( var p = 0 ; p < this.events[mmdd].length; p ++){
5761
5780
  if(this.events[mmdd][p].id == event.id && this.events[mmdd][p].locationid == event.locationid && this.events[mmdd][p].entityid == event.entityid){
@@ -12620,7 +12639,14 @@ export class SfIEvents extends LitElement {
12620
12639
  buttonClick.innerHTML = "Saving..."
12621
12640
  const comments = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approver-comments') as HTMLInputElement).value;
12622
12641
  const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
12623
-
12642
+ if(approved == listEvent.approved){
12643
+ buttonClick.innerHTML = "Save"
12644
+ this.setError('Already Approved!');
12645
+ setTimeout(() => {
12646
+ this.clearMessages();
12647
+ }, 3000);
12648
+ return;
12649
+ }
12624
12650
  var clickEvent = new MouseEvent("click", {
12625
12651
  "view": window,
12626
12652
  "bubbles": true,
@@ -12740,7 +12766,14 @@ export class SfIEvents extends LitElement {
12740
12766
  buttonClick.innerHTML = "Saving..."
12741
12767
  const comments = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-auditor-comments') as HTMLInputElement).value;
12742
12768
  const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
12743
-
12769
+ if(approved == listEvent.approved){
12770
+ buttonClick.innerHTML = "Save"
12771
+ this.setError('Already Approved!');
12772
+ setTimeout(() => {
12773
+ this.clearMessages();
12774
+ }, 3000);
12775
+ return;
12776
+ }
12744
12777
  if(comments.trim().length === 0) {
12745
12778
  buttonClick.innerHTML = "Save"
12746
12779
  this.setError('Comments cannot be blank!');
@@ -13534,6 +13567,7 @@ export class SfIEvents extends LitElement {
13534
13567
  html += '</div>';
13535
13568
  html += '</div>';
13536
13569
 
13570
+ html += '<sf-new-feature class="new-feature m-10" exportparts="new-feature-text-container,new-feature-text" updatetime="1743405417000"></sf-new-feature>'
13537
13571
  html += '<div class="accordian-section section-feedback pl-20 pr-20" part="accordian-section">';
13538
13572
  html += '<div class="d-flex justify-between accordian-head head-feedback" part="accordian-head">';
13539
13573
  html += '<h3>Feedback</h3>'
@@ -13900,7 +13934,14 @@ export class SfIEvents extends LitElement {
13900
13934
  buttonClick.innerHTML = "Saving..."
13901
13935
  const comments = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approver-comments') as HTMLInputElement).value;
13902
13936
  const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
13903
-
13937
+ if(approved == event.approved){
13938
+ buttonClick.innerHTML = "Save"
13939
+ this.setError('Already Approved!');
13940
+ setTimeout(() => {
13941
+ this.clearMessages();
13942
+ }, 3000);
13943
+ return;
13944
+ }
13904
13945
  var clickEvent = new MouseEvent("click", {
13905
13946
  "view": window,
13906
13947
  "bubbles": true,
@@ -14018,7 +14059,14 @@ export class SfIEvents extends LitElement {
14018
14059
  buttonClick.innerHTML = "Saving..."
14019
14060
  const comments = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-auditor-comments') as HTMLInputElement).value;
14020
14061
  const approved = ((this._SfDetailContainer as HTMLDivElement).querySelector('#input-approve-yes') as HTMLInputElement).checked;
14021
-
14062
+ if(approved == event.approved){
14063
+ buttonClick.innerHTML = "Save"
14064
+ this.setError('Already Approved!');
14065
+ setTimeout(() => {
14066
+ this.clearMessages();
14067
+ }, 3000);
14068
+ return;
14069
+ }
14022
14070
  if(comments.trim().length === 0) {
14023
14071
  buttonClick.innerHTML = "Save"
14024
14072
  this.setError('Comments cannot be blank!');
@@ -26538,7 +26586,7 @@ export class SfIEvents extends LitElement {
26538
26586
  `;
26539
26587
 
26540
26588
  } else if(this.mode == "downloader") {
26541
-
26589
+ //disable
26542
26590
  return html`
26543
26591
 
26544
26592
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
@@ -26552,7 +26600,7 @@ export class SfIEvents extends LitElement {
26552
26600
  <div class="lb" part="lb"></div>
26553
26601
  <div class="d-flex align-end justify-between flex-grow">
26554
26602
  <div class="d-flex flex-col">
26555
- <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="">
26603
+ <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>
26556
26604
  </sf-i-form>
26557
26605
  </div>
26558
26606
  <div class="d-flex flex-col">