sf-i-events 1.0.733 → 1.0.735

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
@@ -624,16 +624,30 @@
624
624
  </style>
625
625
  </head>
626
626
  <body>
627
-
628
- <sf-i-events projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" mode="onboarding" locations="{&quot;India&quot;:{&quot;Telangana&quot;:[&quot;Corporate Office&quot;,&quot;Telangana Plant&quot;],&quot;Karnataka&quot;:[&quot;Prime&quot;,&quot;Stopak&quot;,&quot;Wintek&quot;,&quot;Tools&quot;,&quot;Conversion&quot;],&quot;Gujarat&quot;:[&quot;Dahej&quot;],&quot;Dadra and Nagar Haveli and Daman and Diu&quot;:[&quot;Silvassa&quot;],&quot;Uttarakhand&quot;:[&quot;Uttarakhand&quot;],&quot;Maharashtra&quot;:[&quot;Pune&quot;],&quot;Andhra Pradesh&quot;:[&quot;AP&quot;],&quot;Chhattisgarh&quot;:[&quot;Chhattisgarh&quot;],&quot;Goa&quot;:[&quot;Goa&quot;],&quot;Himachal Pradesh&quot;:[&quot;HP&quot;],&quot;Haryana&quot;:[&quot;Haryana&quot;],&quot;Jharkhand&quot;:[&quot;Jharkhand&quot;],&quot;Madhya Pradesh&quot;:[&quot;MP&quot;],&quot;Odisha&quot;:[&quot;Odisha&quot;],&quot;Punjab&quot;:[&quot;Punjab&quot;],&quot;Tamil Nadu&quot;:[&quot;TN&quot;],&quot;Uttar Pradesh&quot;:[&quot;UP&quot;],&quot;West Bengal&quot;:[&quot;WB&quot;]}}" contractstartdate="01/04/2024" apiid="dwqyez2puoxmu.cloudfront.net/event" username="hrushi.mehendale@gmail.com" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiidcompliances="dnytrdlrmxgsy.cloudfront.net/compliance" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidusers="dnytrdlrmxgsy.cloudfront.net/userprofile" disablesignoff="yes" disableclientresponse="yes">
629
-
627
+ <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" fill="solid" username="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" 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">
628
+
629
+ <div slot="uploader">
630
+ <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>
631
+ </div>
632
+ <div slot="reporting">
633
+ <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
634
+ </div>
635
+
630
636
  </sf-i-events>
637
+ <!-- <sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" apiidstatutes="dnytrdlrmxgsy.cloudfront.net/statute" apiiddefinitions="dwqyez2puoxmu.cloudfront.net/definition" apiidreportformats="dwqyez2puoxmu.cloudfront.net/reportformat" fill="solid" username="Local Approver 1" userprofileid="c44dcd04-aebb-4417-ba6b-fac170efd5d0" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="approver" showregisterexport="false" eventfielddependencies="[{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;country&quot;, &quot;child&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;category&quot;, &quot;child&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;foreignkey&quot;, &quot;parent&quot;: &quot;frequency&quot;, &quot;child&quot;: &quot;subfrequency&quot;}]" eventfields="[{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/riskarea&quot;, &quot;field&quot;: &quot;riskarea&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/jurisdiction&quot;, &quot;field&quot;: &quot;jurisdiction&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/updatetype&quot;, &quot;field&quot;: &quot;updatetype&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/country&quot;, &quot;field&quot;: &quot;country&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/specificity&quot;, &quot;field&quot;: &quot;specificity&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/risk&quot;, &quot;field&quot;: &quot;risk&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/frequency&quot;, &quot;field&quot;: &quot;frequency&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/category&quot;, &quot;field&quot;: &quot;category&quot;},{&quot;type&quot;: &quot;sf-i-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/obligationtype&quot;, &quot;field&quot;: &quot;obligationtype&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/state&quot;, &quot;field&quot;: &quot;state&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subfrequency&quot;, &quot;field&quot;: &quot;subfrequency&quot;},{&quot;type&quot;: &quot;sf-i-sub-select&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/subcategory&quot;, &quot;field&quot;: &quot;subcategory&quot;},{&quot;type&quot;: &quot;sf-i-form&quot;, &quot;apiId&quot;: &quot;dnytrdlrmxgsy.cloudfront.net/statute&quot;, &quot;field&quot;: &quot;statute&quot;, &quot;projectField&quot;: &quot;name&quot;}]" eventpreviewfields="[&quot;obligation&quot;]" eventhidefields="[&quot;comments&quot;,&quot;documents&quot;,&quot;lastupdated&quot;,&quot;approved&quot;,&quot;tags&quot;]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
638
+
639
+ <div slot="uploader">
640
+ <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>
641
+ </div>
642
+ <div slot="reporting">
643
+ <sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
644
+ </div>
645
+
646
+ </sf-i-events> -->
631
647
 
632
648
 
633
649
  <script>
634
650
 
635
- console.log = function() {}
636
-
637
651
  function setCookie(name,value,days) {
638
652
  var expires = "";
639
653
  if (days) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.733",
4
+ "version": "1.0.735",
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
@@ -184,6 +184,8 @@ export declare class SfIEvents extends LitElement {
184
184
  triggers: any;
185
185
  monthNames: string[];
186
186
  events: any;
187
+ statistics: any;
188
+ statisticsMeta: any;
187
189
  streamIndex: any;
188
190
  eventsInWindow: any;
189
191
  eventHideFields: any;
@@ -207,6 +209,7 @@ export declare class SfIEvents extends LitElement {
207
209
  htmlDataCompliances: string;
208
210
  htmlDataStats: string;
209
211
  htmlDataSummary: string;
212
+ htmlStatsFilter: string;
210
213
  period: string;
211
214
  mode: string;
212
215
  flowRcmNotification: number;
@@ -438,12 +441,13 @@ export declare class SfIEvents extends LitElement {
438
441
  getApproverStringFromEvent: (event: any) => string;
439
442
  getApproverDetailStringFromEvent: (event: any) => string;
440
443
  renderLatestCompliance: (mmddyyyy: string, event: any) => any;
441
- getCompletenessStatus: (event: any) => "rejected" | "not-started" | "pending-approval" | "approved";
444
+ getCompletenessStatus: (event: any) => "not-started" | "pending-approval" | "rejected" | "approved";
442
445
  getTimelinessStatus: (mmdd: string, event: any, completeness: string) => "late-executed" | "late-reported" | "late-approved" | "past-due-date" | "in-time";
443
446
  getComplianceStatus: (completeness: string, timeliness: string) => "scheduled" | "not-complied" | "partially-complied" | "complied";
444
447
  numcalled: number;
445
448
  updateStats: (event: any, partStatus: string, lateStatus: string, complianceStatus: string) => void;
446
449
  renderCalendarGraphs: (showGraph: boolean, parametersTitle: string) => string;
450
+ renderCalendarStatisticsGraphs: (showGraph: boolean, parametersTitle: string) => string;
447
451
  renderCalendarContainerDivStart: (index: number) => string;
448
452
  renderCalendarContainerDivEnd: () => string;
449
453
  renderCalendarEventSummary: () => string;
@@ -463,12 +467,15 @@ export declare class SfIEvents extends LitElement {
463
467
  getGraphParam: (event: any) => string;
464
468
  renderCalendarAnnotations: (event: any, mmdd: string, j: number) => string;
465
469
  renderEvents: (_firstDay: any, _endDay: any, iInit: number, iLast: number, showGraph: boolean, index: number, month: number, period: string, firstDate: any, parametersTitle: string) => string;
470
+ renderStatistics: (_firstDay: any, _endDay: any, iInit: number, iLast: number, showGraph: boolean, index: number, month: number, period: string, firstDate: any, parametersTitle: string) => string;
466
471
  renderReporting: (event: any, mmddyyyy: any) => string;
467
472
  renderListReporting: (listReportingContainer: HTMLDivElement, event: any, mmddyyyy: any, eventsContainer: HTMLDivElement) => void;
468
473
  attachListReportingListeners: (eventsContainer: HTMLDivElement) => void;
469
474
  renderStreamEvents: (index: number, month: number, year: number, showGraph?: boolean) => string;
470
475
  renderThisEvents: (index: number, startDate: Date, showGraph?: boolean) => string;
471
476
  renderRangeEvents: (firstDate: Date, count: number, eventsContainer: HTMLDivElement) => void;
477
+ renderRangeStatistics: (firstDate: Date, count: number, eventsContainer: HTMLDivElement) => void;
478
+ renderStatisticsFilters: (eventsContainer: HTMLDivElement) => void;
472
479
  renderSelectAllButtons: () => string;
473
480
  attachSelectAllListeners: (eventsContainer: HTMLDivElement, buttonSelect: NodeListOf<HTMLButtonElement>) => HTMLButtonElement[];
474
481
  renderRegisterEvents: (events: any) => void;
@@ -477,8 +484,10 @@ export declare class SfIEvents extends LitElement {
477
484
  attachHandlers: (eventContainer: HTMLDivElement, valueStart: string, valueEnd: string) => void;
478
485
  processFindSelection: (eventContainer: HTMLDivElement, searchString: string) => Promise<void>;
479
486
  processDateSelection: (eventContainer: HTMLDivElement) => Promise<void>;
487
+ processDateSelectionViewer: (eventContainer: HTMLDivElement) => Promise<void>;
480
488
  initFindRightCol: () => void;
481
489
  initCustomRightCol: () => void;
490
+ initCustomRightColViewer: () => void;
482
491
  checkAndShowBulk: () => boolean;
483
492
  calculateAndShowSummary: () => void;
484
493
  showAllEvents: () => void;
@@ -538,6 +547,7 @@ export declare class SfIEvents extends LitElement {
538
547
  renderRegister: () => Promise<void>;
539
548
  renderFind: () => void;
540
549
  renderCustom: () => void;
550
+ renderCustomViewer: () => void;
541
551
  renderThis: (index?: number, showGraph?: boolean) => void;
542
552
  renderButtonRefresh: (eventsContainer: HTMLDivElement) => void;
543
553
  renderStream: (index?: number, showGraph?: boolean) => void;
@@ -550,7 +560,7 @@ export declare class SfIEvents extends LitElement {
550
560
  renderCompletenessCsvForGraph: (dataBar: any, parameter: string) => void;
551
561
  renderTimelinessCsvForGraph: (dataBar: any, parameter: string) => void;
552
562
  renderComplianceCsvForGraph: (dataBar: any, parameter: string) => void;
553
- renderCompletenessGraph: (divContainer: HTMLDivElement) => void;
563
+ renderCompletenessGraph: (divContainer: HTMLDivElement, selectedTab?: number, selectedSummary?: number) => void;
554
564
  renderComplianceGraph: (divContainer: HTMLDivElement) => void;
555
565
  renderTimelinessGraph: (divContainer: HTMLDivElement) => void;
556
566
  renderRiskSeverityGraph: (divContainer: HTMLDivElement) => void;
@@ -625,7 +635,7 @@ export declare class SfIEvents extends LitElement {
625
635
  renderRoleTabs: () => void;
626
636
  csvmaker: (data: any) => string;
627
637
  renderChartSettingsFilters: (container: HTMLDivElement, ctx: any) => void;
628
- renderChartSettingsSettings: (container: HTMLDivElement) => void;
638
+ renderChartSettingsSettings: (container: HTMLDivElement, selectedTab?: number) => void;
629
639
  renderChartSettings: (container: HTMLDivElement, selectedTab: number | undefined, selectedSummary: number | undefined, ctx: any) => void;
630
640
  renderChartSummary: () => void;
631
641
  csvToHtmlTable: (strCsv: string) => string;
@@ -765,6 +775,7 @@ export declare class SfIEvents extends LitElement {
765
775
  renderAppropriateStream: (startDate: string, endDate: string, showGraph?: boolean) => void;
766
776
  fetchRegisters: (searchString?: string) => Promise<any>;
767
777
  fetchAndYearlyRenderUserCalendar_2: (startDate?: string, endDate?: string, searchString?: string, list?: string, month?: string) => Promise<void>;
778
+ fetchStatistics: (startDate: string | undefined, endDate: string | undefined, filtercriteria: string, filterid: string) => Promise<any>;
768
779
  fetchBulkReportingData: () => Promise<void>;
769
780
  fetchUserCalendar: () => Promise<void>;
770
781
  fetchCalendar: () => Promise<void>;