sf-i-events 1.0.764 → 1.0.765

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dev/index.html CHANGED
@@ -631,16 +631,26 @@
631
631
  <!-- <sf-i-events projectid="c7d18a84-c2df-4dc2-b75f-5820549f5e5c" projectname="Chitale" mode="onboarding" locations="{&quot;India&quot;:{&quot;Maharashtra&quot;:[&quot;Reg_Offce&quot;,&quot;SHRIKRISHNA&quot;,&quot;SHEDNO25&quot;,&quot;SHEDNO31&quot;,&quot;SHEDNO44&quot;,&quot;CBM_SADAN&quot;,&quot;RANJE_CBM&quot;,&quot;ISHITA_TOWER&quot;,&quot;CBM_ANAND&quot;,&quot;CBM_SADAN_WH&quot;,&quot;CBM_ANAND_SHED25&quot;,&quot;CBM_KATRAJ&quot;,&quot;CBM_KHADKI&quot;,&quot;CBM_PANVEL&quot;,&quot;CBM_NAGPUR&quot;,&quot;CBM_ISHITA&quot;,&quot;Dugdhalaya&quot;,&quot;ExpressStores_MH&quot;,&quot;FranchiseStore_MH&quot;],&quot;Goa&quot;:[&quot;ExpressStores_Goa&quot;]},&quot;United States of America&quot;:{&quot;USA&quot;:[&quot;North_Carolina&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">
632
632
 
633
633
  </sf-i-events> -->
634
- <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="58c90fb5-9d1d-46bc-9b1a-2cf3e353eed0" 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">
634
+ <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="Ankur Singhal" userprofileid="010834e8-108e-4a87-b58d-f5b429f184be" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" countryid="4ab8901c-4407-4c4d-a2c7-df1a690aa0a3" myrole="viewer" showregisterexport="false" features="[]" 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">
635
635
 
636
636
  <div slot="uploader">
637
- <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>
637
+ <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>
638
638
  </div>
639
639
  <div slot="reporting">
640
640
  <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
641
641
  </div>
642
642
 
643
643
  </sf-i-events>
644
+ <!-- <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="58c90fb5-9d1d-46bc-9b1a-2cf3e353eed0" 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">
645
+
646
+ <div slot="uploader">
647
+ <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>
648
+ </div>
649
+ <div slot="reporting">
650
+ <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
651
+ </div>
652
+
653
+ </sf-i-events> -->
644
654
  <!-- <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="pattern" username="GJR Sharma" userprofileid="bc259a1f-9ee7-4141-85dd-824aa63f983b" projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" countryid="4ab8901c-4407-4c4d-a2c7-df1a690aa0a3" enabledeletelatestreport="true" 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;obligationtitle&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
645
655
 
646
656
  <div slot="uploader">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.764",
4
+ "version": "1.0.765",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.js CHANGED
@@ -1610,24 +1610,32 @@ let SfIEvents = class SfIEvents extends LitElement {
1610
1610
  html += '</div>';
1611
1611
  return html;
1612
1612
  };
1613
+ // getYearFromMonthAndCalendarStart = (mm: string) => {
1614
+ // var yyyy = "";
1615
+ // var currMonth = new Date().getMonth() + 1;
1616
+ // console.log('CurrentMonth', currMonth, "MM", mm);
1617
+ // if(parseInt(mm) < parseInt(this.calendarStartMM) && currMonth < parseInt(this.calendarStartMM)) {
1618
+ // //console.log('getpastduedate returning', 0);
1619
+ // yyyy = parseInt(this.calendarStartYYYY) + "";
1620
+ // } else if(parseInt(mm) >= parseInt(this.calendarStartMM) && currMonth < parseInt(this.calendarStartMM)) {
1621
+ // //console.log('getpastduedate returning', 1);
1622
+ // yyyy = (parseInt(this.calendarStartYYYY) - 1) + "";
1623
+ // } else if(parseInt(mm) < parseInt(this.calendarStartMM) && currMonth >= parseInt(this.calendarStartMM)) {
1624
+ // //console.log('getpastduedate returning', 2);
1625
+ // yyyy = (parseInt(this.calendarStartYYYY) + 1) + "";
1626
+ // } else if(parseInt(mm) >= parseInt(this.calendarStartMM) && currMonth >= parseInt(this.calendarStartMM)) {
1627
+ // //console.log('getpastduedate returning', 3);
1628
+ // yyyy = (parseInt(this.calendarStartYYYY)) + "";
1629
+ // }
1630
+ // return yyyy;
1631
+ // }
1613
1632
  this.getYearFromMonthAndCalendarStart = (mm) => {
1614
1633
  var yyyy = "";
1615
- var currMonth = new Date().getMonth() + 1;
1616
- if (parseInt(mm) < parseInt(this.calendarStartMM) && currMonth < parseInt(this.calendarStartMM)) {
1617
- //console.log('getpastduedate returning', 0);
1618
- yyyy = parseInt(this.calendarStartYYYY) + "";
1619
- }
1620
- else if (parseInt(mm) >= parseInt(this.calendarStartMM) && currMonth < parseInt(this.calendarStartMM)) {
1621
- //console.log('getpastduedate returning', 1);
1622
- yyyy = (parseInt(this.calendarStartYYYY) - 1) + "";
1623
- }
1624
- else if (parseInt(mm) < parseInt(this.calendarStartMM) && currMonth >= parseInt(this.calendarStartMM)) {
1625
- //console.log('getpastduedate returning', 2);
1634
+ if (parseInt(mm) < parseInt(this.calendarStartMM)) {
1626
1635
  yyyy = (parseInt(this.calendarStartYYYY) + 1) + "";
1627
1636
  }
1628
- else if (parseInt(mm) >= parseInt(this.calendarStartMM) && currMonth >= parseInt(this.calendarStartMM)) {
1629
- //console.log('getpastduedate returning', 3);
1630
- yyyy = (parseInt(this.calendarStartYYYY)) + "";
1637
+ else {
1638
+ yyyy = parseInt(this.calendarStartYYYY) + "";
1631
1639
  }
1632
1640
  return yyyy;
1633
1641
  };
@@ -5788,6 +5796,7 @@ let SfIEvents = class SfIEvents extends LitElement {
5788
5796
  let nowYear = parseInt(this.getCurrentYear(nowMonth + ""));
5789
5797
  let lastMonth = -1;
5790
5798
  let nextMonth = -1;
5799
+ console.log('calculating startAndEndOfStream', index, nowMonth, currentMonth);
5791
5800
  let lastMonthsYear = -1;
5792
5801
  let nextMonthsYear = -1;
5793
5802
  if (currentMonth === 1) {
@@ -5975,8 +5984,8 @@ let SfIEvents = class SfIEvents extends LitElement {
5975
5984
  // } else {
5976
5985
  // nextMonthsYear = parseInt(this.calendarStartYYYY) + 1;
5977
5986
  // }
5978
- let startDate = lastMonth + "/25/" + lastMonthsYear;
5979
- let endDate = nextMonth + "/01/" + nextMonthsYear;
5987
+ let startDate = ("0" + lastMonth).slice(-2) + "/25/" + lastMonthsYear;
5988
+ let endDate = ("0" + nextMonth).slice(-2) + "/01/" + nextMonthsYear;
5980
5989
  return { startDate: startDate, endDate: endDate };
5981
5990
  }
5982
5991
  else {
@@ -7622,6 +7631,11 @@ let SfIEvents = class SfIEvents extends LitElement {
7622
7631
  // } else if(parseInt(mm) >= parseInt(this.calendarStartMM) && currMonth >= parseInt(this.calendarStartMM)) {
7623
7632
  // yyyy = (parseInt(this.calendarStartYYYY) + 1) + "";
7624
7633
  // }
7634
+ // if(parseInt(mm) >= 4){
7635
+ // return new Date().getFullYear() + ""
7636
+ // }else{
7637
+ // return (new Date().getFullYear() + 1) + ""
7638
+ // }
7625
7639
  var yyyy = this.getYearFromMonthAndCalendarStart(mm);
7626
7640
  return yyyy;
7627
7641
  };
@@ -3581,26 +3581,38 @@ export class SfIEvents extends LitElement {
3581
3581
 
3582
3582
  }
3583
3583
 
3584
- getYearFromMonthAndCalendarStart = (mm: string) => {
3584
+ // getYearFromMonthAndCalendarStart = (mm: string) => {
3585
+
3586
+ // var yyyy = "";
3587
+
3588
+ // var currMonth = new Date().getMonth() + 1;
3589
+ // console.log('CurrentMonth', currMonth, "MM", mm);
3590
+ // if(parseInt(mm) < parseInt(this.calendarStartMM) && currMonth < parseInt(this.calendarStartMM)) {
3591
+ // //console.log('getpastduedate returning', 0);
3592
+ // yyyy = parseInt(this.calendarStartYYYY) + "";
3593
+ // } else if(parseInt(mm) >= parseInt(this.calendarStartMM) && currMonth < parseInt(this.calendarStartMM)) {
3594
+ // //console.log('getpastduedate returning', 1);
3595
+ // yyyy = (parseInt(this.calendarStartYYYY) - 1) + "";
3596
+ // } else if(parseInt(mm) < parseInt(this.calendarStartMM) && currMonth >= parseInt(this.calendarStartMM)) {
3597
+ // //console.log('getpastduedate returning', 2);
3598
+ // yyyy = (parseInt(this.calendarStartYYYY) + 1) + "";
3599
+ // } else if(parseInt(mm) >= parseInt(this.calendarStartMM) && currMonth >= parseInt(this.calendarStartMM)) {
3600
+ // //console.log('getpastduedate returning', 3);
3601
+ // yyyy = (parseInt(this.calendarStartYYYY)) + "";
3602
+ // }
3585
3603
 
3586
- var yyyy = "";
3604
+ // return yyyy;
3587
3605
 
3588
- var currMonth = new Date().getMonth() + 1;
3606
+ // }
3607
+ getYearFromMonthAndCalendarStart = (mm: string) => {
3589
3608
 
3590
- if(parseInt(mm) < parseInt(this.calendarStartMM) && currMonth < parseInt(this.calendarStartMM)) {
3591
- //console.log('getpastduedate returning', 0);
3592
- yyyy = parseInt(this.calendarStartYYYY) + "";
3593
- } else if(parseInt(mm) >= parseInt(this.calendarStartMM) && currMonth < parseInt(this.calendarStartMM)) {
3594
- //console.log('getpastduedate returning', 1);
3595
- yyyy = (parseInt(this.calendarStartYYYY) - 1) + "";
3596
- } else if(parseInt(mm) < parseInt(this.calendarStartMM) && currMonth >= parseInt(this.calendarStartMM)) {
3597
- //console.log('getpastduedate returning', 2);
3609
+ var yyyy = "";
3610
+ if(parseInt(mm) < parseInt(this.calendarStartMM)){
3598
3611
  yyyy = (parseInt(this.calendarStartYYYY) + 1) + "";
3599
- } else if(parseInt(mm) >= parseInt(this.calendarStartMM) && currMonth >= parseInt(this.calendarStartMM)) {
3600
- //console.log('getpastduedate returning', 3);
3601
- yyyy = (parseInt(this.calendarStartYYYY)) + "";
3612
+ }else{
3613
+ yyyy = parseInt(this.calendarStartYYYY) + "";
3602
3614
  }
3603
-
3615
+
3604
3616
  return yyyy;
3605
3617
 
3606
3618
  }
@@ -8617,14 +8629,14 @@ export class SfIEvents extends LitElement {
8617
8629
 
8618
8630
  for(var j = 0; j < 12; j++) {
8619
8631
  if(j === index) {
8620
-
8632
+
8621
8633
  let currentMonth = month;
8622
8634
  let nowMonth = new Date().getMonth() + 1;
8623
8635
  //let nowYear = new Date().getFullYear();
8624
8636
  let nowYear = parseInt(this.getCurrentYear(nowMonth + ""));
8625
8637
  let lastMonth = -1;
8626
8638
  let nextMonth = -1;
8627
-
8639
+ console.log('calculating startAndEndOfStream', index, nowMonth, currentMonth)
8628
8640
  let lastMonthsYear = -1;
8629
8641
  let nextMonthsYear = -1;
8630
8642
 
@@ -8824,8 +8836,8 @@ export class SfIEvents extends LitElement {
8824
8836
  // nextMonthsYear = parseInt(this.calendarStartYYYY) + 1;
8825
8837
  // }
8826
8838
 
8827
- let startDate = lastMonth + "/25/" + lastMonthsYear;
8828
- let endDate = nextMonth + "/01/" + nextMonthsYear;
8839
+ let startDate = ("0" + lastMonth).slice(-2) + "/25/" + lastMonthsYear;
8840
+ let endDate = ("0" + nextMonth).slice(-2) + "/01/" + nextMonthsYear;
8829
8841
 
8830
8842
  return {startDate: startDate, endDate: endDate};
8831
8843
 
@@ -10873,6 +10885,12 @@ export class SfIEvents extends LitElement {
10873
10885
  // yyyy = (parseInt(this.calendarStartYYYY) + 1) + "";
10874
10886
  // }
10875
10887
 
10888
+ // if(parseInt(mm) >= 4){
10889
+ // return new Date().getFullYear() + ""
10890
+ // }else{
10891
+ // return (new Date().getFullYear() + 1) + ""
10892
+ // }
10893
+
10876
10894
  var yyyy = this.getYearFromMonthAndCalendarStart(mm);
10877
10895
 
10878
10896
  return yyyy;
package/src/util.ts CHANGED
@@ -457,8 +457,16 @@ function percentageString(val: number, valTotal: number){
457
457
  return " (" + (Math.round((num + Number.EPSILON) * 100) / 100) + "%)"
458
458
  }
459
459
 
460
+ function getCurrentFiscal(){
461
+ let date = new Date()
462
+ if(date.getMonth() < 4){
463
+ return (date.getFullYear() - 1)
464
+ }
465
+ return date.getFullYear();
466
+ }
467
+
460
468
  const exportFunctions = {
461
- callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString
469
+ callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal
462
470
  };
463
471
 
464
472
  export default exportFunctions;
package/util.d.ts CHANGED
@@ -15,6 +15,7 @@ declare function parseCsv(csv: string): any;
15
15
  declare function titleCase(str: string): string;
16
16
  declare function alphabeticalSort(arr: string[]): string[];
17
17
  declare function percentageString(val: number, valTotal: number): string;
18
+ declare function getCurrentFiscal(): number;
18
19
  declare const exportFunctions: {
19
20
  callApiPresignedDelete: typeof callApiPresignedDelete;
20
21
  callApiPresignedGet: typeof callApiPresignedGet;
@@ -35,6 +36,7 @@ declare const exportFunctions: {
35
36
  titleCase: typeof titleCase;
36
37
  alphabeticalSort: typeof alphabeticalSort;
37
38
  percentageString: typeof percentageString;
39
+ getCurrentFiscal: typeof getCurrentFiscal;
38
40
  };
39
41
  export default exportFunctions;
40
42
  //# sourceMappingURL=util.d.ts.map
package/util.js CHANGED
@@ -382,8 +382,15 @@ function percentageString(val, valTotal) {
382
382
  let num = (100 * val) / valTotal;
383
383
  return " (" + (Math.round((num + Number.EPSILON) * 100) / 100) + "%)";
384
384
  }
385
+ function getCurrentFiscal() {
386
+ let date = new Date();
387
+ if (date.getMonth() < 4) {
388
+ return (date.getFullYear() - 1);
389
+ }
390
+ return date.getFullYear();
391
+ }
385
392
  const exportFunctions = {
386
- callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString
393
+ callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal
387
394
  };
388
395
  export default exportFunctions;
389
396
  //# sourceMappingURL=util.js.map