sf-i-events 1.0.764 → 1.0.766

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.766",
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 {
@@ -6494,15 +6503,19 @@ let SfIEvents = class SfIEvents extends LitElement {
6494
6503
  (_g = this._SfCustomContainer.querySelector('#button-year-to-date')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', () => {
6495
6504
  this._SfCustomContainer.querySelector('#stream-start-date-mobile').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
6496
6505
  this._SfCustomContainer.querySelector('#stream-start-date').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
6497
- this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
6498
- this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
6506
+ this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
6507
+ ;
6508
+ this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
6509
+ ;
6499
6510
  this.processDateSelection(this._SfCustomContainer);
6500
6511
  });
6501
6512
  (_h = this._SfCustomContainer.querySelector('#button-year-to-date-mobile')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', () => {
6502
6513
  this._SfCustomContainer.querySelector('#stream-start-date-mobile').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
6503
6514
  this._SfCustomContainer.querySelector('#stream-start-date').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
6504
- this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
6505
- this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
6515
+ this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
6516
+ ;
6517
+ this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
6518
+ ;
6506
6519
  this.processDateSelection(this._SfCustomContainer);
6507
6520
  });
6508
6521
  (_j = this._SfCustomContainer.querySelector('#button-this-year-mobile')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', () => {
@@ -6536,7 +6549,7 @@ let SfIEvents = class SfIEvents extends LitElement {
6536
6549
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
6537
6550
  }
6538
6551
  else {
6539
- startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
6552
+ startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
6540
6553
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
6541
6554
  }
6542
6555
  this._SfCustomContainer.querySelector('#stream-start-date').value = startDate;
@@ -6562,7 +6575,7 @@ let SfIEvents = class SfIEvents extends LitElement {
6562
6575
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
6563
6576
  }
6564
6577
  else {
6565
- startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
6578
+ startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
6566
6579
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
6567
6580
  }
6568
6581
  this._SfCustomContainer.querySelector('#stream-start-date').value = startDate;
@@ -6669,15 +6682,17 @@ let SfIEvents = class SfIEvents extends LitElement {
6669
6682
  (_g = this._SfCustomContainer.querySelector('#button-year-to-date')) === null || _g === void 0 ? void 0 : _g.addEventListener('click', () => {
6670
6683
  this._SfCustomContainer.querySelector('#stream-start-date-mobile').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
6671
6684
  this._SfCustomContainer.querySelector('#stream-start-date').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
6672
- this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
6673
- this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
6685
+ this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
6686
+ this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
6674
6687
  this.processDateSelectionViewer(this._SfCustomContainer);
6675
6688
  });
6676
6689
  (_h = this._SfCustomContainer.querySelector('#button-year-to-date-mobile')) === null || _h === void 0 ? void 0 : _h.addEventListener('click', () => {
6677
6690
  this._SfCustomContainer.querySelector('#stream-start-date-mobile').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
6678
6691
  this._SfCustomContainer.querySelector('#stream-start-date').value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
6679
- this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
6680
- this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
6692
+ this._SfCustomContainer.querySelector('#stream-end-date-mobile').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
6693
+ ;
6694
+ this._SfCustomContainer.querySelector('#stream-end-date').value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
6695
+ ;
6681
6696
  this.processDateSelectionViewer(this._SfCustomContainer);
6682
6697
  });
6683
6698
  (_j = this._SfCustomContainer.querySelector('#button-this-year-mobile')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', () => {
@@ -6711,7 +6726,7 @@ let SfIEvents = class SfIEvents extends LitElement {
6711
6726
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
6712
6727
  }
6713
6728
  else {
6714
- startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
6729
+ startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
6715
6730
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
6716
6731
  }
6717
6732
  this._SfCustomContainer.querySelector('#stream-start-date').value = startDate;
@@ -6737,7 +6752,7 @@ let SfIEvents = class SfIEvents extends LitElement {
6737
6752
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
6738
6753
  }
6739
6754
  else {
6740
- startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
6755
+ startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
6741
6756
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
6742
6757
  }
6743
6758
  this._SfCustomContainer.querySelector('#stream-start-date').value = startDate;
@@ -7622,6 +7637,11 @@ let SfIEvents = class SfIEvents extends LitElement {
7622
7637
  // } else if(parseInt(mm) >= parseInt(this.calendarStartMM) && currMonth >= parseInt(this.calendarStartMM)) {
7623
7638
  // yyyy = (parseInt(this.calendarStartYYYY) + 1) + "";
7624
7639
  // }
7640
+ // if(parseInt(mm) >= 4){
7641
+ // return new Date().getFullYear() + ""
7642
+ // }else{
7643
+ // return (new Date().getFullYear() + 1) + ""
7644
+ // }
7625
7645
  var yyyy = this.getYearFromMonthAndCalendarStart(mm);
7626
7646
  return yyyy;
7627
7647
  };
@@ -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
 
@@ -9487,16 +9499,16 @@ export class SfIEvents extends LitElement {
9487
9499
  (this._SfCustomContainer as HTMLDivElement).querySelector('#button-year-to-date')?.addEventListener('click', () => {
9488
9500
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date-mobile') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
9489
9501
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
9490
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
9491
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
9502
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
9503
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
9492
9504
  this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
9493
9505
  });
9494
9506
 
9495
9507
  (this._SfCustomContainer as HTMLDivElement).querySelector('#button-year-to-date-mobile')?.addEventListener('click', () => {
9496
9508
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date-mobile') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
9497
9509
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
9498
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
9499
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
9510
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
9511
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
9500
9512
  this.processDateSelection((this._SfCustomContainer as HTMLDivElement));
9501
9513
  });
9502
9514
 
@@ -9538,7 +9550,7 @@ export class SfIEvents extends LitElement {
9538
9550
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
9539
9551
 
9540
9552
  } else {
9541
- startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
9553
+ startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
9542
9554
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
9543
9555
  }
9544
9556
 
@@ -9571,7 +9583,7 @@ export class SfIEvents extends LitElement {
9571
9583
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
9572
9584
 
9573
9585
  } else {
9574
- startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
9586
+ startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
9575
9587
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
9576
9588
  }
9577
9589
 
@@ -9699,16 +9711,16 @@ export class SfIEvents extends LitElement {
9699
9711
  (this._SfCustomContainer as HTMLDivElement).querySelector('#button-year-to-date')?.addEventListener('click', () => {
9700
9712
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date-mobile') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
9701
9713
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
9702
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
9703
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
9714
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" + (new Date().getMonth() + 1)).slice(-2) + '-' + ("0" +(new Date().getDate())).slice(-2);
9715
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);
9704
9716
  this.processDateSelectionViewer((this._SfCustomContainer as HTMLDivElement));
9705
9717
  });
9706
9718
 
9707
9719
  (this._SfCustomContainer as HTMLDivElement).querySelector('#button-year-to-date-mobile')?.addEventListener('click', () => {
9708
9720
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date-mobile') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
9709
9721
  ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-start-date') as HTMLInputElement).value = this.calendarStartYYYY + '-' + this.calendarStartMM + '-' + this.calendarStartDD;
9710
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
9711
- ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + (new Date().getDate());
9722
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date-mobile') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
9723
+ ((this._SfCustomContainer as HTMLDivElement).querySelector('#stream-end-date') as HTMLInputElement).value = new Date().getFullYear() + '-' + ("0" +(new Date().getMonth() + 1)).slice(-2) + '-' + ("0" + (new Date().getDate())).slice(-2);;
9712
9724
  this.processDateSelectionViewer((this._SfCustomContainer as HTMLDivElement));
9713
9725
  });
9714
9726
 
@@ -9750,7 +9762,7 @@ export class SfIEvents extends LitElement {
9750
9762
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
9751
9763
 
9752
9764
  } else {
9753
- startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
9765
+ startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
9754
9766
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
9755
9767
  }
9756
9768
 
@@ -9783,7 +9795,7 @@ export class SfIEvents extends LitElement {
9783
9795
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
9784
9796
 
9785
9797
  } else {
9786
- startDate = this.calendarStartYYYY + '-' + '01' + '-' + "01";
9798
+ startDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '01' + '-' + "01";
9787
9799
  endDate = (parseInt(this.calendarStartYYYY) + 1) + '-' + '04' + '-' + "01";
9788
9800
  }
9789
9801
 
@@ -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