sf-i-events 1.0.966 → 1.0.967

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
@@ -864,6 +864,14 @@
864
864
  allowdownload="yes"></sf-i-uploader></div>
865
865
  <div slot="reporting"><sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting></div>
866
866
  </sf-i-events> -->
867
+ <!-- <sf-i-events projectid="7f928276-a9ff-4bcd-a8db-874f618a92ea" projectname="Transvolt" mode="onboarding"
868
+ locations="{&quot;India&quot;:{&quot;Maharashtra&quot;:[&quot;Head Office&quot;]}}" contractstartdate="01/04/2024"
869
+ apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
870
+ apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance"
871
+ apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile"
872
+ disablesignoff="yes" disableclientresponse="yes">
873
+
874
+ </sf-i-events> -->
867
875
  <!-- <sf-i-events name="Calendar" apiid="api2.flagggrc.tech/event-api" mode="consumer"
868
876
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
869
877
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
@@ -894,35 +902,6 @@
894
902
  </div>
895
903
 
896
904
  </sf-i-events> -->
897
- <sf-i-events name="Calendar" apiid="api2.flagggrc.tech/event-api" mode="consumer"
898
- apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
899
- apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
900
- apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
901
- apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
902
- apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
903
- apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
904
- apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="pattern"
905
- username="Nirmal Rathod" userprofileid="d4d92385-1fa4-4055-b23c-d7ef5e18bc3d"
906
- projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" projectname="Standard Radiators Private Limited"
907
- countryid="17f9c73b-886d-40d7-b8f2-2ace42763d47" selectedcriteria="Country - India" enabledeletelatestreport="true"
908
- features="[]"
909
- 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;}]"
910
- 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;}]"
911
- eventpreviewfields="[&quot;obligationtitle&quot;]"
912
- eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]"
913
- calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
914
-
915
- <div slot="uploader">
916
- <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
917
- allowedextensions="[&quot;jpg&quot;,&quot;jpeg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;,&quot;zip&quot;]"
918
- extract="yes" projectid="5a05b884-d7ed-4f63-b623-4d305ea2cfd6" maxsize="31457280"
919
- allowdownload="yes"></sf-i-uploader>
920
- </div>
921
- <div slot="reporting">
922
- <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
923
- </div>
924
-
925
- </sf-i-events>
926
905
  <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer"
927
906
  apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
928
907
  apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
@@ -1121,6 +1100,34 @@
1121
1100
  </div>
1122
1101
 
1123
1102
  </sf-i-events> -->
1103
+ <sf-i-events name="Calendar" apiid="api2.flagggrc.tech/event" mode="consumer"
1104
+ apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute"
1105
+ apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition"
1106
+ apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat"
1107
+ apiidnotices="gghnbi7hku2qj5twrea6xxcaya0aqeis.lambda-url.us-east-1.on.aws"
1108
+ apiidagreements="swago3unro2te55ikvjuqwcrr40wluqh.lambda-url.us-east-1.on.aws"
1109
+ apiidlicenses="lbtsbsctcdsyah4qdszkv4rctq0tnvel.lambda-url.us-east-1.on.aws"
1110
+ apiidrcmresources="jra3sghasmaxn5aiq7rtv6pjzq0oeuaw.lambda-url.us-east-1.on.aws" fill="solid" username="Mihir Vasa"
1111
+ userprofileid="ee4609a3-1223-4f54-b0d4-f08b1b5053f7" projectid="7f928276-a9ff-4bcd-a8db-874f618a92ea"
1112
+ projectname="Transvolt" countryid="8c5ebfbc-f1c7-4f77-84ee-0f2234f29ded" selectedcriteria="Country - India"
1113
+ myrole="viewer" showregisterexport="false" features="[&quot;contracts&quot;]"
1114
+ 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;}]"
1115
+ 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;}]"
1116
+ eventpreviewfields="[&quot;obligation&quot;]"
1117
+ eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]"
1118
+ calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2025">
1119
+
1120
+ <div slot="uploader">
1121
+ <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
1122
+ allowedextensions="[&quot;jpg&quot;,&quot;jpeg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;,&quot;zip&quot;]"
1123
+ extract="yes" projectid="7f928276-a9ff-4bcd-a8db-874f618a92ea" maxsize="31457280"
1124
+ allowdownload="yes"></sf-i-uploader>
1125
+ </div>
1126
+ <div slot="reporting">
1127
+ <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
1128
+ </div>
1129
+
1130
+ </sf-i-events>
1124
1131
  <!-- <sf-i-events projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" mode="onboarding"
1125
1132
  locations="{&quot;India&quot;:{&quot;Maharashtra&quot;:[&quot;Pune&quot;,&quot;Mumbai&quot;],&quot;Telangana&quot;:[&quot;Telangana&quot;]},&quot;Canada&quot;:{&quot;CanadaSO&quot;:[&quot;CanadaLO&quot;]},&quot;Singapore&quot;:{&quot;SingaporeSO&quot;:[&quot;Orchard&quot;,&quot;Raffles&quot;,&quot;Robinson&quot;,&quot;Tanjong&quot;,&quot;Tras&quot;]},&quot;United Kingdom&quot;:{&quot;UnitedSO&quot;:[&quot;UnitedLO&quot;]},&quot;United States of America&quot;:{&quot;AmericaSO&quot;:[&quot;AmericaLO&quot;]}}"
1126
1133
  contractstartdate="1/4/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="ninad.t@flagggrc.tech"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.966",
4
+ "version": "1.0.967",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.d.ts CHANGED
@@ -503,7 +503,7 @@ export declare class SfIEvents extends LitElement {
503
503
  getCalendarRowHide: (events: any, i: number, lastDay: number, month: number, firstDate?: any, currDate?: any) => boolean;
504
504
  renderCalendarRowDivStart: (i: number, firstDate?: any, ddmm?: string) => string;
505
505
  renderCalendarRowDivEnd: () => string;
506
- renderCalendarRowDivItemDivStart: (mmdd: string, event: any, itemNumber: number, partStatus: string, bgStatus: string) => string;
506
+ renderCalendarRowDivItemDivStart: (mmdd: string, event: any, itemNumber: number, partStatus: string, bgStatus: string, fromDrilldown: boolean) => string;
507
507
  renderCalendarRowDivItemDivEnd: () => string;
508
508
  renderCalendarBlankRowDiv: (hide: boolean, slice: number, i: number, firstDate?: any, ddmm?: string) => {
509
509
  html: string;
@@ -514,7 +514,7 @@ export declare class SfIEvents extends LitElement {
514
514
  renderStatusHtml: (partStatus: string, lateStatus: string, complianceStatus: string, i: number) => string;
515
515
  renderStatusString: (partStatus: string, lateStatus: string, complianceStatus: string) => string;
516
516
  getGraphParam: (event: any) => string;
517
- renderCalendarAnnotations: (event: any, mmdd: string, j: number) => string;
517
+ renderCalendarAnnotations: (event: any, mmdd: string, j: number, fromDrilldown: boolean) => string;
518
518
  renderEvents: (_firstDay: any, _endDay: any, iInit: number, iLast: number, showGraph: boolean, index: number, month: number, period: string, firstDate: any, parametersTitle: string, showBackgroundButton: boolean, fromDrilldown?: boolean) => string;
519
519
  renderStatistics: (_firstDay: any, _endDay: any, iInit: number, iLast: number, showGraph: boolean, index: number, month: number, period: string, firstDate: any, parametersTitle: string) => string;
520
520
  renderReporting: (event: any, mmddyyyy: any) => string;
@@ -648,8 +648,8 @@ export declare class SfIEvents extends LitElement {
648
648
  fetchRCMResourceDetails: (listEvent: any, mmddyyyy: string) => Promise<void>;
649
649
  renewRCMResource: (listEvent: any, reportformatvalues: any) => Promise<void>;
650
650
  renderRCMResourceDetails: (listEvent: any, mmddyyyy: string) => Promise<void>;
651
- fetchEventDetails: (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, previousId?: string, nextId?: string, flagUploadGuidance?: boolean, listEventContainer?: HTMLDivElement | null, reportercomments?: string | null, approvercomments?: string | null, inputReportingPercentage?: string | null, selectReportedLocation?: string | null, documents?: any | null, dateOfCompletion?: string | null) => Promise<void>;
652
- renderEventDetail: (event: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, previousId: string, nextId: string) => void;
651
+ fetchEventDetails: (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, previousId?: string, nextId?: string, flagUploadGuidance?: boolean, listEventContainer?: HTMLDivElement | null, reportercomments?: string | null, approvercomments?: string | null, inputReportingPercentage?: string | null, selectReportedLocation?: string | null, documents?: any | null, dateOfCompletion?: string | null, fromDrilldown?: boolean) => Promise<void>;
652
+ renderEventDetail: (event: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, previousId: string, nextId: string, fromDrilldown: boolean) => void;
653
653
  renderEventDetailReporting: (eventDetailReportingContainer: HTMLDivElement, event: any, mmddyyyy: any, eventDetailContainer: HTMLDivElement) => void;
654
654
  renderCalendar: () => void;
655
655
  matchesOnBoardingFilter: (country: string, state: string, subcategory: string, statute: string) => boolean;
package/sf-i-events.js CHANGED
@@ -2597,7 +2597,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2597
2597
  html += '</div>';
2598
2598
  return html;
2599
2599
  };
2600
- this.renderCalendarRowDivItemDivStart = (mmdd, event, itemNumber, partStatus, bgStatus) => {
2600
+ this.renderCalendarRowDivItemDivStart = (mmdd, event, itemNumber, partStatus, bgStatus, fromDrilldown) => {
2601
2601
  var _a, _b, _c, _f, _g;
2602
2602
  var html = '';
2603
2603
  var remarks = "";
@@ -2644,7 +2644,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2644
2644
  const isReviewed = event.review == true;
2645
2645
  const showCheckbox = !(hasReportFormat || isBulk || hasCustomReporting || isReportedLocation);
2646
2646
  // const showReportingButton = !hasReportFormat && !hasCustomReporting && event.reporters == null;
2647
- const showReportingButton = !hasReportFormat && !hasCustomReporting && event.concise != null && !isReportedLocation;
2647
+ const showReportingButton = !hasReportFormat && !hasCustomReporting && event.concise != null && !isReportedLocation && !fromDrilldown;
2648
2648
  const showLocationRisk = event.concise != null;
2649
2649
  const configHome = Util.getProjectConfigHome();
2650
2650
  const showReview = event.concise != null && configHome.features != null && configHome.features.indexOf("understood") >= 0;
@@ -2983,7 +2983,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2983
2983
  }
2984
2984
  return graphParam;
2985
2985
  };
2986
- this.renderCalendarAnnotations = (event, mmdd, j) => {
2986
+ this.renderCalendarAnnotations = (event, mmdd, j, fromDrilldown) => {
2987
2987
  var html = '';
2988
2988
  html += '<div class="hidden-filtername hide"><table><thead><th part="badge-filter-name" class="filtername"></th></thead></table></div>';
2989
2989
  // if(event.concise == null && event.approvers != null){
@@ -2993,7 +2993,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2993
2993
  // console.log("graphParam", graphParam.split(';')[0]);
2994
2994
  const configHome = Util.getProjectConfigHome();
2995
2995
  const configFlag = configHome.features != null && configHome.features.indexOf("understood") >= 0;
2996
- html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.concise == null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + (((event.module == "compliances" || event.module == null) && event.concise == null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null) && (event.reportedlocationsflag != true))) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '-" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + (((event.module == "compliances" || event.module == null) && event.concise == null && configFlag) ? (event.review ? ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-reviewed" class="material-symbols-outlined d-flex align-center mb-20 ml-10 button-icon-review">flag_check</button>') : ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-review" class="d-flex align-center mb-20 ml-10 button-icon-review"><span class="material-symbols-outlined" title="Mark as reviewed">flag</span>&nbsp;&nbsp;Mark Understood</button>')) : '') + '</div>';
2996
+ html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.concise == null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + (((event.module == "compliances" || event.module == null) && event.concise == null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null) && (event.reportedlocationsflag != true)) && !fromDrilldown) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '-" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + (((event.module == "compliances" || event.module == null) && event.concise == null && configFlag) ? (event.review ? ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-reviewed" class="material-symbols-outlined d-flex align-center mb-20 ml-10 button-icon-review">flag_check</button>') : ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-review" class="d-flex align-center mb-20 ml-10 button-icon-review"><span class="material-symbols-outlined" title="Mark as reviewed">flag</span>&nbsp;&nbsp;Mark Understood</button>')) : '') + '</div>';
2997
2997
  // }
2998
2998
  return html;
2999
2999
  };
@@ -3378,13 +3378,13 @@ let SfIEvents = class SfIEvents extends LitElement {
3378
3378
  htmlSummaryValues += '</td></tr>';
3379
3379
  }
3380
3380
  }
3381
- html += this.renderCalendarRowDivItemDivStart(mmdd, this.events[mmdd][j], j, partStatus, bgStatus);
3381
+ html += this.renderCalendarRowDivItemDivStart(mmdd, this.events[mmdd][j], j, partStatus, bgStatus, fromDrilldown);
3382
3382
  // if (this.events[mmdd][j]["countryname"] != null) {
3383
3383
  if (this.events[mmdd][j]["concise"] == null) {
3384
3384
  html += this.renderCalendarRowDivItemDivTableHead(this.events[mmdd][j], partStatus);
3385
3385
  html += this.renderCalendarRowDivItemDivTableBody(this.events[mmdd][j], partStatus, lateStatus, complianceStatus, mmdd, i, j);
3386
3386
  }
3387
- html += this.renderCalendarAnnotations(this.events[mmdd][j], mmdd, j);
3387
+ html += this.renderCalendarAnnotations(this.events[mmdd][j], mmdd, j, fromDrilldown);
3388
3388
  html += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>';
3389
3389
  html += this.renderCalendarRowDivItemDivEnd();
3390
3390
  }
@@ -10745,42 +10745,8 @@ let SfIEvents = class SfIEvents extends LitElement {
10745
10745
  html += `
10746
10746
  <div id="list-container" class="list-container m-20 pb-20" part="list-container"></div>
10747
10747
  `;
10748
- // html += `
10749
- // <sf-i-events id="statistics-drilldown" name="Statistics" apiid="dwqyez2puoxmu.cloudfront.net/event" exportparts="detail-container" mode="viewer"
10750
- // apiidtags="${this.apiIdTags}"
10751
- // apiidusers="${this.apiIdUsers}"
10752
- // apiidstatutes="${this.apiIdStatutes}"
10753
- // apiiddefinitions="${this.apiIdDefinitions}"
10754
- // apiidreportformats="${this.apiidReportformats}"
10755
- // apiidnotices="${this.apiIdNotices}"
10756
- // apiidagreements="${this.apiIdAgreements}"
10757
- // apiidlicenses="${this.apiIdLicenses}" username="${username}"
10758
- // userprofileid="${userid}" projectid="${this.projectId}"
10759
- // projectname="${this.projectName}" ${filterString}
10760
- // myrole="${rolestr}" showregisterexport="false"
10761
- // features="${this.features.replace(/"/g, "&quot;")}"
10762
- // selectedfeatures="${JSON.stringify(this.selectedFeatures).replace(/"/g, "&quot;")}"
10763
- // eventfielddependencies="${this.eventFieldDependencies.replace(/"/g, "&quot;")}"
10764
- // eventfields="${this.eventFields.replace(/"/g, "&quot;")}"
10765
- // eventpreviewfields="${this.eventPreviewFields.replace(/"/g, "&quot;")}"
10766
- // eventhidefields="${this.eventHideFields.replace(/"/g, "&quot;")}"
10767
- // calendarstartdd="${this.calendarStartDD}" calendarstartmm="${this.calendarStartMM}" calendarstartyyyy="${this.calendarStartYYYY}"
10768
- // sdate="${this.sdate}" edate="${this.edate}"
10769
- // flowgraphcompleteness="${this.FLOW_GRAPH_COMPLETENESS}">
10770
- // <div slot="uploader">
10771
- // <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
10772
- // allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]"
10773
- // extract="yes" projectid="${this.projectId}" maxsize="31457280"
10774
- // allowdownload="yes"></sf-i-uploader>
10775
- // </div>
10776
- // <div slot="reporting">
10777
- // <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
10778
- // </div>
10779
- // </sf-i-events>
10780
- // `;
10781
10748
  this._SfDetailListContainer.style.display = 'block';
10782
10749
  this._SfDetailListContainer.innerHTML = html;
10783
- // this.renderRangeEvents(new Date(this.sdate), ((new Date(this.edate).getTime()) - new Date(this.sdate).getTime()) / (1000 * 60 * 60 * 24), (this._SfDetailListContainer as HTMLDivElement).querySelector('.list-container') as HTMLDivElement);
10784
10750
  const lastDay = ((new Date(this.edate).getTime()) - new Date(this.sdate).getTime()) / (1000 * 60 * 60 * 24);
10785
10751
  let firstDay = new Date((new Date(this.sdate)).getFullYear(), (new Date(this.sdate)).getMonth(), (new Date(this.sdate)).getDate());
10786
10752
  let endDay = new Date((new Date(this.sdate)).getFullYear(), (new Date(this.sdate)).getMonth(), (new Date(this.sdate)).getDate());
@@ -10806,13 +10772,179 @@ let SfIEvents = class SfIEvents extends LitElement {
10806
10772
  this._SfDetailListContainer.innerHTML = '';
10807
10773
  this._SfDetailListContainer.style.display = 'none';
10808
10774
  });
10809
- // let statisticsDrilldown = (this._SfDetailContainer as HTMLDivElement).querySelector('#statistics-drilldown') as SfIEvents;
10810
- // statisticsDrilldown.sdate = this.sdate
10811
- // statisticsDrilldown.edate = this.edate
10812
- // statisticsDrilldown.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
10813
- // setTimeout(() => {
10814
- // statisticsDrilldown.loadMode();
10815
- // }, 1000);
10775
+ const buttonArr = this._SfDetailListContainer.querySelectorAll('.button-expand');
10776
+ for (i = 0; i < buttonArr.length; i++) {
10777
+ let indexPrevNext = i;
10778
+ buttonArr[i].addEventListener('click', (ev) => {
10779
+ const id = ev.target.id;
10780
+ const idArr = id.split("-");
10781
+ const mmdd = idArr[3] + "/" + idArr[4];
10782
+ const j = idArr[5];
10783
+ const module = idArr[6];
10784
+ var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
10785
+ if (module === "notice") {
10786
+ this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
10787
+ }
10788
+ else if (module === "contract") {
10789
+ this.fetchContractDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
10790
+ }
10791
+ else if (module === "license") {
10792
+ this.fetchLicenseDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
10793
+ }
10794
+ else if (module === "rcmresource") {
10795
+ this.fetchRCMResourceDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
10796
+ }
10797
+ else {
10798
+ let found = false;
10799
+ for (var k = 0; k < this.selectedItemIds.length; k++) {
10800
+ console.log('selectedItems', this.selectedItemIds[k], idArr[3] + '-' + idArr[4] + '-' + idArr[5], this.selectedItemIds[k].indexOf(idArr[3] + '-' + idArr[4] + '-' + idArr[5]));
10801
+ if (this.selectedItemIds[k].indexOf(idArr[3] + '-' + idArr[4] + '-' + idArr[5]) >= 0) {
10802
+ found = true;
10803
+ }
10804
+ }
10805
+ if (!found) {
10806
+ this.selectedItemIds = [];
10807
+ this.clearButtonSelection();
10808
+ }
10809
+ // (this._SfDetailContainer as HTMLDivElement).style.display = 'block';
10810
+ //console.log('commentsinlist', (this._SfStreamContainer as HTMLDivElement).querySelector('#stream-month-'+this.currentColumnIndex) as HTMLButtonElement, this.events[mmdd][j].comments, mmdd, j);
10811
+ let prevString = "";
10812
+ let flagPrev = true;
10813
+ let indexPrev = indexPrevNext;
10814
+ while (flagPrev) {
10815
+ if (indexPrev > 0) {
10816
+ if (Util.isVisible(buttonArr[indexPrev - 1])) {
10817
+ prevString = buttonArr[indexPrev - 1].id;
10818
+ flagPrev = false;
10819
+ }
10820
+ else {
10821
+ prevString = "";
10822
+ indexPrev--;
10823
+ }
10824
+ }
10825
+ else {
10826
+ flagPrev = false;
10827
+ }
10828
+ }
10829
+ let nextString = "";
10830
+ let flagNext = true;
10831
+ let indexNext = indexPrevNext;
10832
+ while (flagNext) {
10833
+ if (indexNext < buttonArr.length - 1) {
10834
+ if (Util.isVisible(buttonArr[indexNext + 1])) {
10835
+ nextString = buttonArr[indexNext + 1].id;
10836
+ flagNext = false;
10837
+ }
10838
+ else {
10839
+ nextString = "";
10840
+ indexNext++;
10841
+ }
10842
+ }
10843
+ else {
10844
+ flagNext = false;
10845
+ }
10846
+ }
10847
+ // this.renderEventDetail(this.events[mmdd][j], mmdd + "/" + yyyy, (this._SfStreamContainer as HTMLDivElement).querySelector('#stream-month-'+this.currentColumnIndex) as HTMLButtonElement);
10848
+ // console.log('errorFetchEvent', mmdd, j, buttonArr[i].outerHTML, idArr);
10849
+ console.log('previous event clicked', buttonArr[indexPrevNext - 1], prevString, indexPrevNext);
10850
+ this.fetchEventDetails(this.events[mmdd][j], mmdd + "/" + yyyy, this._SfStreamContainer.querySelector('#stream-month-' + this.currentColumnIndex), this._SfStreamContainer, prevString, nextString, false, null, null, null, null, null, null, null, true);
10851
+ }
10852
+ });
10853
+ }
10854
+ const titleArr = this._SfDetailListContainer.querySelectorAll('.button-event-title');
10855
+ for (var i = 0; i < titleArr.length; i++) {
10856
+ let indexPrevNext = i;
10857
+ titleArr[i].addEventListener('click', (ev) => {
10858
+ var _a, _b;
10859
+ const id = ev.target.id;
10860
+ const idArr = id.split("-");
10861
+ const mmdd = idArr[3] + "/" + idArr[4];
10862
+ const j = idArr[5];
10863
+ const module = idArr[6];
10864
+ const flag = idArr[7];
10865
+ if (flag != null && flag == "reportedlocations") {
10866
+ return;
10867
+ }
10868
+ var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
10869
+ if (module === "notice") {
10870
+ this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
10871
+ }
10872
+ else if (module === "contract") {
10873
+ this.fetchContractDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
10874
+ }
10875
+ else if (module === "license") {
10876
+ this.fetchLicenseDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
10877
+ }
10878
+ else if (module === "rcmresource") {
10879
+ this.fetchRCMResourceDetails(this.events[mmdd][j], mmdd + "/" + yyyy);
10880
+ }
10881
+ else {
10882
+ let found = false;
10883
+ for (var k = 0; k < this.selectedItemIds.length; k++) {
10884
+ if (this.selectedItemIds[k].indexOf(idArr[3] + '-' + idArr[4] + '-' + idArr[5]) >= 0) {
10885
+ found = true;
10886
+ }
10887
+ }
10888
+ if (!found) {
10889
+ this.selectedItemIds = [];
10890
+ this.selectedItems = [];
10891
+ this.clearButtonSelection();
10892
+ }
10893
+ // (this._SfDetailContainer as HTMLDivElement).style.display = 'block'
10894
+ let prevString = "";
10895
+ let flagPrev = true;
10896
+ let indexPrev = indexPrevNext;
10897
+ while (flagPrev) {
10898
+ if (indexPrev > 0) {
10899
+ if (Util.isVisible(titleArr[indexPrev - 1])) {
10900
+ prevString = titleArr[indexPrev - 1].id;
10901
+ let prevIdArr = prevString.split("-");
10902
+ if (((_a = prevIdArr[7]) !== null && _a !== void 0 ? _a : "") == "reportedlocations") {
10903
+ prevString = "";
10904
+ indexPrev--;
10905
+ }
10906
+ else {
10907
+ flagPrev = false;
10908
+ }
10909
+ }
10910
+ else {
10911
+ prevString = "";
10912
+ indexPrev--;
10913
+ }
10914
+ }
10915
+ else {
10916
+ flagPrev = false;
10917
+ }
10918
+ }
10919
+ let nextString = "";
10920
+ let flagNext = true;
10921
+ let indexNext = indexPrevNext;
10922
+ while (flagNext) {
10923
+ if (indexNext < titleArr.length - 1) {
10924
+ if (Util.isVisible(titleArr[indexNext + 1])) {
10925
+ nextString = titleArr[indexNext + 1].id;
10926
+ let nextIdArr = nextString.split("-");
10927
+ if (((_b = nextIdArr[7]) !== null && _b !== void 0 ? _b : "") == "reportedlocations") {
10928
+ nextString = "";
10929
+ indexNext++;
10930
+ }
10931
+ else {
10932
+ flagNext = false;
10933
+ }
10934
+ }
10935
+ else {
10936
+ indexNext++;
10937
+ }
10938
+ }
10939
+ else {
10940
+ flagNext = false;
10941
+ }
10942
+ }
10943
+ // this.renderEventDetail(this.events[mmdd][j], mmdd + "/" + yyyy, null);
10944
+ this.fetchEventDetails(this.events[mmdd][j], mmdd + "/" + yyyy, null, this._SfStreamContainer, prevString, nextString, false, null, null, null, null, null, null, null, true);
10945
+ }
10946
+ });
10947
+ }
10816
10948
  };
10817
10949
  this.renderEventDetailShort = (compliance) => {
10818
10950
  var _a, _b, _c, _f, _g;
@@ -14107,7 +14239,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14107
14239
  }
14108
14240
  }
14109
14241
  };
14110
- this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer, previousId = "", nextId = "", flagUploadGuidance = false, listEventContainer = null, reportercomments = null, approvercomments = null, inputReportingPercentage = null, selectReportedLocation = null, documents = null, dateOfCompletion = null) => {
14242
+ this.fetchEventDetails = async (listEvent, mmddyyyy, currentColumnButton, eventsContainer, previousId = "", nextId = "", flagUploadGuidance = false, listEventContainer = null, reportercomments = null, approvercomments = null, inputReportingPercentage = null, selectReportedLocation = null, documents = null, dateOfCompletion = null, fromDrilldown = false) => {
14111
14243
  console.log('listEvent', listEvent, listEvent.id);
14112
14244
  let url = "https://" + this.apiId + "/getalleventdetails";
14113
14245
  //console.log('fetch calendar url', url);
@@ -14147,7 +14279,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14147
14279
  }
14148
14280
  }
14149
14281
  else {
14150
- this.renderEventDetail(jsonRespose.data, mmddyyyy, currentColumnButton, eventsContainer, previousId, nextId);
14282
+ this.renderEventDetail(jsonRespose.data, mmddyyyy, currentColumnButton, eventsContainer, previousId, nextId, fromDrilldown);
14151
14283
  }
14152
14284
  }
14153
14285
  else {
@@ -14166,7 +14298,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14166
14298
  }
14167
14299
  }
14168
14300
  };
14169
- this.renderEventDetail = (event, mmddyyyy, currentColumnButton, eventsContainer, previousId, nextId) => {
14301
+ this.renderEventDetail = (event, mmddyyyy, currentColumnButton, eventsContainer, previousId, nextId, fromDrilldown) => {
14170
14302
  var _a, _b, _c, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
14171
14303
  console.log('event details', event, mmddyyyy, currentColumnButton == null ? "null currentColumnButton" : currentColumnButton.id);
14172
14304
  console.log('previousid', previousId, 'nextid', nextId);
@@ -14476,7 +14608,7 @@ let SfIEvents = class SfIEvents extends LitElement {
14476
14608
  html += '</div>';
14477
14609
  html += '</div>';
14478
14610
  if (this.mode == "consumer" || this.mode == "next" || this.mode == "viewer") {
14479
- if (this.mode != "viewer") {
14611
+ if (this.mode != "viewer" && !fromDrilldown) {
14480
14612
  html += '<div part="reporting-view-container" id="reporting-view-container">';
14481
14613
  html += this.renderReporting(event, mmddyyyy);
14482
14614
  html += "</div>";
@@ -17909,6 +18041,8 @@ let SfIEvents = class SfIEvents extends LitElement {
17909
18041
  tempCsvObj['cols_' + colKey] = dataArr[j];
17910
18042
  }
17911
18043
  }
18044
+ let suspenseKey = tempCsvObj.entityid + ';' + tempCsvObj.locationid + ';' + tempCsvObj.id;
18045
+ tempCsvObj.suspense = (suspenseList[suspenseKey] != null && suspenseList[suspenseKey] != false) ? true : false;
17912
18046
  csvArray[i] = tempCsvObj;
17913
18047
  }
17914
18048
  console.log('csv array', csvArray);
@@ -4842,7 +4842,7 @@ export class SfIEvents extends LitElement {
4842
4842
 
4843
4843
  }
4844
4844
 
4845
- renderCalendarRowDivItemDivStart = (mmdd: string, event: any, itemNumber: number, partStatus: string, bgStatus: string) => {
4845
+ renderCalendarRowDivItemDivStart = (mmdd: string, event: any, itemNumber: number, partStatus: string, bgStatus: string, fromDrilldown: boolean) => {
4846
4846
 
4847
4847
  var html = '';
4848
4848
 
@@ -4899,7 +4899,7 @@ export class SfIEvents extends LitElement {
4899
4899
  const isReviewed = event.review == true
4900
4900
  const showCheckbox = !(hasReportFormat || isBulk || hasCustomReporting || isReportedLocation);
4901
4901
  // const showReportingButton = !hasReportFormat && !hasCustomReporting && event.reporters == null;
4902
- const showReportingButton = !hasReportFormat && !hasCustomReporting && event.concise != null && !isReportedLocation;
4902
+ const showReportingButton = !hasReportFormat && !hasCustomReporting && event.concise != null && !isReportedLocation && !fromDrilldown;
4903
4903
  const showLocationRisk = event.concise != null;
4904
4904
  const configHome = Util.getProjectConfigHome();
4905
4905
  const showReview = event.concise != null && configHome.features != null && configHome.features.indexOf("understood") >= 0;
@@ -5276,7 +5276,7 @@ export class SfIEvents extends LitElement {
5276
5276
  return graphParam;
5277
5277
  }
5278
5278
 
5279
- renderCalendarAnnotations = (event: any, mmdd: string, j: number) => {
5279
+ renderCalendarAnnotations = (event: any, mmdd: string, j: number, fromDrilldown: boolean) => {
5280
5280
 
5281
5281
  var html = '';
5282
5282
 
@@ -5289,7 +5289,7 @@ export class SfIEvents extends LitElement {
5289
5289
  // console.log("graphParam", graphParam.split(';')[0]);
5290
5290
  const configHome = Util.getProjectConfigHome();
5291
5291
  const configFlag = configHome.features != null && configHome.features.indexOf("understood") >= 0
5292
- html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.concise == null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + (((event.module == "compliances" || event.module == null) && event.concise == null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null) && (event.reportedlocationsflag != true))) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '-" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + (((event.module == "compliances" || event.module == null) && event.concise == null && configFlag) ? (event.review ? ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-reviewed" class="material-symbols-outlined d-flex align-center mb-20 ml-10 button-icon-review">flag_check</button>') : ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-review" class="d-flex align-center mb-20 ml-10 button-icon-review"><span class="material-symbols-outlined" title="Mark as reviewed">flag</span>&nbsp;&nbsp;Mark Understood</button>')) : '') + '</div>';
5292
+ html += '<div class="d-flex align-center event-user-labels-container"><div part="badge-filter-name" class="graphparamname graphparamname1 mb-20' + (event.concise == null ? "" : ' hide') + '">' + graphParam.split(';')[0] + '</div>' + reporterStr + approverStr + (((event.module == "compliances" || event.module == null) && event.concise == null && ((event.reportformat == null || event.reportformat.length == 0) && (event.customreporting == null) && (event.reportedlocationsflag != true)) && !fromDrilldown) ? ('<button id="button-list-reporting-' + mmdd.replace('/', '-') + '-' + j + '-" part="button-list-reporting" class="material-icons ml-10 mb-20 button-list-reporting">edit_note</button>') : '') + (((event.module == "compliances" || event.module == null) && event.concise == null && configFlag) ? (event.review ? ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-reviewed" class="material-symbols-outlined d-flex align-center mb-20 ml-10 button-icon-review">flag_check</button>') : ('<button id="input-checkbox-review-' + mmdd.replace('/', '-') + '-' + j + '" part="button-icon-review" class="d-flex align-center mb-20 ml-10 button-icon-review"><span class="material-symbols-outlined" title="Mark as reviewed">flag</span>&nbsp;&nbsp;Mark Understood</button>')) : '') + '</div>';
5293
5293
  // }
5294
5294
 
5295
5295
  return html;
@@ -5691,13 +5691,13 @@ export class SfIEvents extends LitElement {
5691
5691
  }
5692
5692
  }
5693
5693
 
5694
- html += this.renderCalendarRowDivItemDivStart(mmdd, this.events[mmdd][j], j, partStatus, bgStatus);
5694
+ html += this.renderCalendarRowDivItemDivStart(mmdd, this.events[mmdd][j], j, partStatus, bgStatus, fromDrilldown);
5695
5695
  // if (this.events[mmdd][j]["countryname"] != null) {
5696
5696
  if (this.events[mmdd][j]["concise"] == null) {
5697
5697
  html += this.renderCalendarRowDivItemDivTableHead(this.events[mmdd][j], partStatus);
5698
5698
  html += this.renderCalendarRowDivItemDivTableBody(this.events[mmdd][j], partStatus, lateStatus, complianceStatus, mmdd, i, j);
5699
5699
  }
5700
- html += this.renderCalendarAnnotations(this.events[mmdd][j], mmdd, j);
5700
+ html += this.renderCalendarAnnotations(this.events[mmdd][j], mmdd, j, fromDrilldown);
5701
5701
  html += '<div class="list-reporting-container d-flex flex-col hide" part="list-reporting-container" id="list-reporting-container-' + mmdd.replace(/\//g, '-') + '-' + j + '"></div>'
5702
5702
  html += this.renderCalendarRowDivItemDivEnd();
5703
5703
 
@@ -14224,46 +14224,9 @@ export class SfIEvents extends LitElement {
14224
14224
  html += `
14225
14225
  <div id="list-container" class="list-container m-20 pb-20" part="list-container"></div>
14226
14226
  `;
14227
- // html += `
14228
- // <sf-i-events id="statistics-drilldown" name="Statistics" apiid="dwqyez2puoxmu.cloudfront.net/event" exportparts="detail-container" mode="viewer"
14229
- // apiidtags="${this.apiIdTags}"
14230
- // apiidusers="${this.apiIdUsers}"
14231
- // apiidstatutes="${this.apiIdStatutes}"
14232
- // apiiddefinitions="${this.apiIdDefinitions}"
14233
- // apiidreportformats="${this.apiidReportformats}"
14234
- // apiidnotices="${this.apiIdNotices}"
14235
- // apiidagreements="${this.apiIdAgreements}"
14236
- // apiidlicenses="${this.apiIdLicenses}" username="${username}"
14237
- // userprofileid="${userid}" projectid="${this.projectId}"
14238
- // projectname="${this.projectName}" ${filterString}
14239
- // myrole="${rolestr}" showregisterexport="false"
14240
- // features="${this.features.replace(/"/g, "&quot;")}"
14241
- // selectedfeatures="${JSON.stringify(this.selectedFeatures).replace(/"/g, "&quot;")}"
14242
- // eventfielddependencies="${this.eventFieldDependencies.replace(/"/g, "&quot;")}"
14243
- // eventfields="${this.eventFields.replace(/"/g, "&quot;")}"
14244
- // eventpreviewfields="${this.eventPreviewFields.replace(/"/g, "&quot;")}"
14245
- // eventhidefields="${this.eventHideFields.replace(/"/g, "&quot;")}"
14246
- // calendarstartdd="${this.calendarStartDD}" calendarstartmm="${this.calendarStartMM}" calendarstartyyyy="${this.calendarStartYYYY}"
14247
- // sdate="${this.sdate}" edate="${this.edate}"
14248
- // flowgraphcompleteness="${this.FLOW_GRAPH_COMPLETENESS}">
14249
-
14250
- // <div slot="uploader">
14251
- // <sf-i-uploader id="uploader" max="10" apiid="1peg5170d3"
14252
- // allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]"
14253
- // extract="yes" projectid="${this.projectId}" maxsize="31457280"
14254
- // allowdownload="yes"></sf-i-uploader>
14255
- // </div>
14256
- // <div slot="reporting">
14257
- // <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
14258
- // </div>
14259
-
14260
- // </sf-i-events>
14261
- // `;
14262
14227
  (this._SfDetailListContainer as HTMLDivElement).style.display = 'block';
14263
14228
  (this._SfDetailListContainer as HTMLDivElement).innerHTML = html;
14264
14229
 
14265
- // this.renderRangeEvents(new Date(this.sdate), ((new Date(this.edate).getTime()) - new Date(this.sdate).getTime()) / (1000 * 60 * 60 * 24), (this._SfDetailListContainer as HTMLDivElement).querySelector('.list-container') as HTMLDivElement);
14266
-
14267
14230
  const lastDay = ((new Date(this.edate).getTime()) - new Date(this.sdate).getTime()) / (1000 * 60 * 60 * 24)
14268
14231
  let firstDay = new Date((new Date(this.sdate)).getFullYear(), (new Date(this.sdate)).getMonth(), (new Date(this.sdate)).getDate());
14269
14232
  let endDay = new Date((new Date(this.sdate)).getFullYear(), (new Date(this.sdate)).getMonth(), (new Date(this.sdate)).getDate());
@@ -14295,13 +14258,175 @@ export class SfIEvents extends LitElement {
14295
14258
 
14296
14259
  });
14297
14260
 
14298
- // let statisticsDrilldown = (this._SfDetailContainer as HTMLDivElement).querySelector('#statistics-drilldown') as SfIEvents;
14299
- // statisticsDrilldown.sdate = this.sdate
14300
- // statisticsDrilldown.edate = this.edate
14301
- // statisticsDrilldown.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
14302
- // setTimeout(() => {
14303
- // statisticsDrilldown.loadMode();
14304
- // }, 1000);
14261
+ const buttonArr = (this._SfDetailListContainer as HTMLDivElement).querySelectorAll('.button-expand') as NodeListOf<HTMLButtonElement>;
14262
+
14263
+ for (i = 0; i < buttonArr.length; i++) {
14264
+ let indexPrevNext = i;
14265
+ buttonArr[i].addEventListener('click', (ev: any) => {
14266
+ const id = ev.target.id;
14267
+ const idArr = id.split("-")
14268
+ const mmdd = idArr[3] + "/" + idArr[4];
14269
+ const j = idArr[5];
14270
+ const module = idArr[6];
14271
+ var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
14272
+ if (module === "notice") {
14273
+ this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
14274
+ } else if (module === "contract") {
14275
+ this.fetchContractDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
14276
+ } else if (module === "license") {
14277
+ this.fetchLicenseDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
14278
+ } else if (module === "rcmresource") {
14279
+ this.fetchRCMResourceDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
14280
+ } else {
14281
+ let found = false;
14282
+ for (var k = 0; k < this.selectedItemIds.length; k++) {
14283
+ console.log('selectedItems', this.selectedItemIds[k], idArr[3] + '-' + idArr[4] + '-' + idArr[5], this.selectedItemIds[k].indexOf(idArr[3] + '-' + idArr[4] + '-' + idArr[5]));
14284
+ if (this.selectedItemIds[k].indexOf(idArr[3] + '-' + idArr[4] + '-' + idArr[5]) >= 0) {
14285
+ found = true;
14286
+ }
14287
+ }
14288
+ if (!found) {
14289
+ this.selectedItemIds = [];
14290
+ this.clearButtonSelection();
14291
+ }
14292
+
14293
+ // (this._SfDetailContainer as HTMLDivElement).style.display = 'block';
14294
+
14295
+ //console.log('commentsinlist', (this._SfStreamContainer as HTMLDivElement).querySelector('#stream-month-'+this.currentColumnIndex) as HTMLButtonElement, this.events[mmdd][j].comments, mmdd, j);
14296
+
14297
+
14298
+ let prevString = "";
14299
+ let flagPrev = true;
14300
+ let indexPrev = indexPrevNext
14301
+ while (flagPrev) {
14302
+ if (indexPrev > 0) {
14303
+ if (Util.isVisible((buttonArr[indexPrev - 1] as HTMLButtonElement))) {
14304
+ prevString = (buttonArr[indexPrev - 1] as HTMLButtonElement).id;
14305
+ flagPrev = false;
14306
+ } else {
14307
+ prevString = "";
14308
+ indexPrev--
14309
+ }
14310
+ } else {
14311
+ flagPrev = false;
14312
+ }
14313
+ }
14314
+ let nextString = "";
14315
+ let flagNext = true;
14316
+ let indexNext = indexPrevNext
14317
+ while (flagNext) {
14318
+ if (indexNext < buttonArr.length - 1) {
14319
+ if (Util.isVisible((buttonArr[indexNext + 1] as HTMLButtonElement))) {
14320
+ nextString = (buttonArr[indexNext + 1] as HTMLButtonElement).id;
14321
+ flagNext = false;
14322
+ } else {
14323
+ nextString = "";
14324
+ indexNext++
14325
+ }
14326
+ } else {
14327
+ flagNext = false;
14328
+ }
14329
+ }
14330
+ // this.renderEventDetail(this.events[mmdd][j], mmdd + "/" + yyyy, (this._SfStreamContainer as HTMLDivElement).querySelector('#stream-month-'+this.currentColumnIndex) as HTMLButtonElement);
14331
+ // console.log('errorFetchEvent', mmdd, j, buttonArr[i].outerHTML, idArr);
14332
+ console.log('previous event clicked', buttonArr[indexPrevNext - 1], prevString, indexPrevNext);
14333
+ this.fetchEventDetails(this.events[mmdd][j], mmdd + "/" + yyyy, (this._SfStreamContainer as HTMLDivElement).querySelector('#stream-month-' + this.currentColumnIndex) as HTMLButtonElement, this._SfStreamContainer as HTMLDivElement, prevString, nextString, false, null, null, null, null, null, null, null, true);
14334
+ }
14335
+
14336
+ })
14337
+
14338
+ }
14339
+
14340
+ const titleArr = (this._SfDetailListContainer as HTMLDivElement).querySelectorAll('.button-event-title') as NodeListOf<HTMLButtonElement>;
14341
+
14342
+ for (var i = 0; i < titleArr.length; i++) {
14343
+ let indexPrevNext = i;
14344
+ titleArr[i].addEventListener('click', (ev: any) => {
14345
+
14346
+ const id = ev.target.id;
14347
+ const idArr = id.split("-")
14348
+ const mmdd = idArr[3] + "/" + idArr[4];
14349
+ const j = idArr[5];
14350
+ const module = idArr[6];
14351
+ const flag = idArr[7];
14352
+ if (flag != null && flag == "reportedlocations") {
14353
+ return;
14354
+ }
14355
+ var yyyy = this.getYearFromMonthBetween(this.sdate, this.edate, idArr[3]);
14356
+ if (module === "notice") {
14357
+ this.renderNoticeDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
14358
+ } else if (module === "contract") {
14359
+ this.fetchContractDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
14360
+ } else if (module === "license") {
14361
+ this.fetchLicenseDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
14362
+ } else if (module === "rcmresource") {
14363
+ this.fetchRCMResourceDetails(this.events[mmdd][j], mmdd + "/" + yyyy)
14364
+ } else {
14365
+ let found = false;
14366
+ for (var k = 0; k < this.selectedItemIds.length; k++) {
14367
+ if (this.selectedItemIds[k].indexOf(idArr[3] + '-' + idArr[4] + '-' + idArr[5]) >= 0) {
14368
+ found = true;
14369
+ }
14370
+ }
14371
+ if (!found) {
14372
+ this.selectedItemIds = [];
14373
+ this.selectedItems = [];
14374
+ this.clearButtonSelection();
14375
+ }
14376
+
14377
+ // (this._SfDetailContainer as HTMLDivElement).style.display = 'block'
14378
+
14379
+
14380
+ let prevString = "";
14381
+ let flagPrev = true;
14382
+ let indexPrev = indexPrevNext
14383
+ while (flagPrev) {
14384
+ if (indexPrev > 0) {
14385
+ if (Util.isVisible((titleArr[indexPrev - 1] as HTMLButtonElement))) {
14386
+ prevString = (titleArr[indexPrev - 1] as HTMLButtonElement).id;
14387
+ let prevIdArr = prevString.split("-")
14388
+ if ((prevIdArr[7] ?? "") == "reportedlocations") {
14389
+ prevString = "";
14390
+ indexPrev--;
14391
+ } else {
14392
+ flagPrev = false;
14393
+ }
14394
+ } else {
14395
+ prevString = "";
14396
+ indexPrev--;
14397
+ }
14398
+ } else {
14399
+ flagPrev = false;
14400
+ }
14401
+ }
14402
+ let nextString = "";
14403
+ let flagNext = true;
14404
+ let indexNext = indexPrevNext
14405
+ while (flagNext) {
14406
+ if (indexNext < titleArr.length - 1) {
14407
+ if (Util.isVisible((titleArr[indexNext + 1] as HTMLButtonElement))) {
14408
+ nextString = (titleArr[indexNext + 1] as HTMLButtonElement).id;
14409
+ let nextIdArr = nextString.split("-")
14410
+ if ((nextIdArr[7] ?? "") == "reportedlocations") {
14411
+ nextString = "";
14412
+ indexNext++;
14413
+ } else {
14414
+ flagNext = false;
14415
+ }
14416
+ } else {
14417
+ indexNext++;
14418
+ }
14419
+ } else {
14420
+ flagNext = false;
14421
+ }
14422
+ }
14423
+ // this.renderEventDetail(this.events[mmdd][j], mmdd + "/" + yyyy, null);
14424
+ this.fetchEventDetails(this.events[mmdd][j], mmdd + "/" + yyyy, null, (this._SfStreamContainer as HTMLDivElement), prevString, nextString, false, null, null, null, null, null, null, null, true);
14425
+ }
14426
+ })
14427
+
14428
+ }
14429
+
14305
14430
  }
14306
14431
  renderEventDetailShort = (compliance: any) => {
14307
14432
  var html = `
@@ -18049,7 +18174,7 @@ export class SfIEvents extends LitElement {
18049
18174
  }
18050
18175
  }
18051
18176
 
18052
- fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, previousId: string = "", nextId: string = "", flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null, reportercomments: string | null = null, approvercomments: string | null = null, inputReportingPercentage: string | null = null, selectReportedLocation: string | null = null, documents: any | null = null, dateOfCompletion: string | null = null) => {
18177
+ fetchEventDetails = async (listEvent: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, previousId: string = "", nextId: string = "", flagUploadGuidance: boolean = false, listEventContainer: HTMLDivElement | null = null, reportercomments: string | null = null, approvercomments: string | null = null, inputReportingPercentage: string | null = null, selectReportedLocation: string | null = null, documents: any | null = null, dateOfCompletion: string | null = null, fromDrilldown: boolean = false) => {
18053
18178
  console.log('listEvent', listEvent, listEvent.id)
18054
18179
  let url = "https://" + this.apiId + "/getalleventdetails";
18055
18180
 
@@ -18091,7 +18216,7 @@ export class SfIEvents extends LitElement {
18091
18216
  this.renderListReporting(listEventContainer, data, mmddyyyy, eventsContainer)
18092
18217
  }
18093
18218
  } else {
18094
- this.renderEventDetail(jsonRespose.data, mmddyyyy, currentColumnButton, eventsContainer, previousId, nextId);
18219
+ this.renderEventDetail(jsonRespose.data, mmddyyyy, currentColumnButton, eventsContainer, previousId, nextId, fromDrilldown);
18095
18220
  }
18096
18221
 
18097
18222
  } else {
@@ -18113,7 +18238,7 @@ export class SfIEvents extends LitElement {
18113
18238
  }
18114
18239
  }
18115
18240
 
18116
- renderEventDetail = (event: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, previousId: string, nextId: string) => {
18241
+ renderEventDetail = (event: any, mmddyyyy: any, currentColumnButton: HTMLButtonElement | null, eventsContainer: HTMLDivElement, previousId: string, nextId: string, fromDrilldown: boolean) => {
18117
18242
  console.log('event details', event, mmddyyyy, currentColumnButton == null ? "null currentColumnButton" : currentColumnButton.id);
18118
18243
  console.log('previousid', previousId, 'nextid', nextId);
18119
18244
  console.log('confighome', Util.getProjectConfigHome())
@@ -18473,7 +18598,7 @@ export class SfIEvents extends LitElement {
18473
18598
  html += '</div>';
18474
18599
 
18475
18600
  if (this.mode == "consumer" || this.mode == "next" || this.mode == "viewer") {
18476
- if (this.mode != "viewer") {
18601
+ if (this.mode != "viewer" && !fromDrilldown) {
18477
18602
  html += '<div part="reporting-view-container" id="reporting-view-container">'
18478
18603
  html += this.renderReporting(event, mmddyyyy);
18479
18604
  html += "</div>"
@@ -22701,6 +22826,9 @@ export class SfIEvents extends LitElement {
22701
22826
  tempCsvObj['cols_' + colKey] = dataArr[j]
22702
22827
  }
22703
22828
  }
22829
+ let suspenseKey = tempCsvObj.entityid + ';' + tempCsvObj.locationid + ';' + tempCsvObj.id;
22830
+ tempCsvObj.suspense = (suspenseList[suspenseKey] != null && suspenseList[suspenseKey] != false) ? true : false;
22831
+
22704
22832
  csvArray[i] = tempCsvObj
22705
22833
  }
22706
22834
  console.log('csv array', csvArray)