sf-i-events 1.0.673 → 1.0.674
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 +9 -6
- package/package.json +1 -1
- package/sf-i-events.d.ts +2 -1
- package/sf-i-events.js +24 -4
- package/src/sf-i-events.ts +23 -4
package/dev/index.html
CHANGED
|
@@ -663,7 +663,7 @@
|
|
|
663
663
|
<!-- <sf-i-events projectid="5c073644-5dce-4d8f-b82e-2bc2def2390f" projectname="ABC Hospitals" mode="onboarding" locations="{}" 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">
|
|
664
664
|
|
|
665
665
|
</sf-i-events> -->
|
|
666
|
-
<!-- <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="
|
|
666
|
+
<!-- <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="Infection Control Officer" userprofileid="11b0d1f1-713a-42c0-b76b-4e1800c4f269" projectid="5c073644-5dce-4d8f-b82e-2bc2def2390f" projectname="ABC Hospitals" countryid="04ebaebf-3521-4b8b-aec7-2f7111debe26" myrole="reporter" showregisterexport="false" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
667
667
|
|
|
668
668
|
<div slot="uploader">
|
|
669
669
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="5c073644-5dce-4d8f-b82e-2bc2def2390f" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
@@ -693,7 +693,7 @@
|
|
|
693
693
|
</div>
|
|
694
694
|
|
|
695
695
|
</sf-i-events> -->
|
|
696
|
-
<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="Auditor J1" userprofileid="bda0d59b-058b-4098-b0fc-54aa54aa5998" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="auditor" showregisterexport="false" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
696
|
+
<!-- <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="Auditor J1" userprofileid="bda0d59b-058b-4098-b0fc-54aa54aa5998" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="auditor" showregisterexport="false" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
697
697
|
|
|
698
698
|
<div slot="uploader">
|
|
699
699
|
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
@@ -702,7 +702,7 @@
|
|
|
702
702
|
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
703
703
|
</div>
|
|
704
704
|
|
|
705
|
-
</sf-i-events>
|
|
705
|
+
</sf-i-events> -->
|
|
706
706
|
|
|
707
707
|
<!-- <sf-i-events projectid="f0f17ddb-546a-45f5-8a94-a5689fde8e64" projectname="Signode" mode="onboarding" locations="{"India":{"Telangana":["Corporate Office","Telangana Plant"],"Karnataka":["Prime","Stopak","Wintek","Tools","Conversion"],"Gujarat":["Dahej"],"Dadra and Nagar Haveli and Daman and Diu":["Silvassa"],"Uttarakhand":["Uttarakhand"],"Maharashtra":["Pune"],"Andhra Pradesh":["AP"],"Chhattisgarh":["Chhattisgarh"],"Goa":["Goa"],"Himachal Pradesh":["HP"],"Haryana":["Haryana"],"Jharkhand":["Jharkhand"],"Madhya Pradesh":["MP"],"Odisha":["Odisha"],"Punjab":["Punjab"],"Tamil Nadu":["TN"],"Uttar Pradesh":["UP"],"West Bengal":["WB"]}}" 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">
|
|
708
708
|
|
|
@@ -744,13 +744,16 @@
|
|
|
744
744
|
|
|
745
745
|
</sf-i-events> -->
|
|
746
746
|
|
|
747
|
-
|
|
747
|
+
<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="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" showregisterexport="false" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
748
748
|
|
|
749
749
|
<div slot="uploader">
|
|
750
|
-
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf"]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710"></sf-i-uploader>
|
|
750
|
+
<sf-i-uploader id="uploader" max="10" apiid="1peg5170d3" allowedextensions="["jpg","png","pdf","xls","xlsx","doc","docx"]" extract="yes" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" maxsize="5242880" allowdownload="yes"></sf-i-uploader>
|
|
751
|
+
</div>
|
|
752
|
+
<div slot="reporting">
|
|
753
|
+
<sf-i-reporting id="reporting-format" mode="view"></sf-i-reporting>
|
|
751
754
|
</div>
|
|
752
755
|
|
|
753
|
-
</sf-i-events>
|
|
756
|
+
</sf-i-events>
|
|
754
757
|
<!--
|
|
755
758
|
<sf-i-events name="Calendar" apiid="dwqyez2puoxmu.cloudfront.net/event" mode="consumer" apiidtags="dnytrdlrmxgsy.cloudfront.net/tagging" fill="solid" username="Chief Compliance Officer" userprofileid="5fe96caa-1a44-4a2d-921a-920d29433eca" projectid="41ab3c86-ccc0-4c0e-8e31-cd079a07a710" projectname="ABC Global" countryid="07d73b44-648d-4301-82c4-d6df43397824" myrole="functionhead" eventfielddependencies="[{"type": "foreignkey", "parent": "country", "child": "state"},{"type": "foreignkey", "parent": "category", "child": "subcategory"},{"type": "foreignkey", "parent": "frequency", "child": "subfrequency"}]" eventfields="[{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/riskarea", "field": "riskarea"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/jurisdiction", "field": "jurisdiction"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/updatetype", "field": "updatetype"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/country", "field": "country"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/specificity", "field": "specificity"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/risk", "field": "risk"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/frequency", "field": "frequency"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/category", "field": "category"},{"type": "sf-i-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/obligationtype", "field": "obligationtype"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/state", "field": "state"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subfrequency", "field": "subfrequency"},{"type": "sf-i-sub-select", "apiId": "dnytrdlrmxgsy.cloudfront.net/subcategory", "field": "subcategory"},{"type": "sf-i-form", "apiId": "dnytrdlrmxgsy.cloudfront.net/statute", "field": "statute", "projectField": "name"}]" eventpreviewfields="["obligation"]" eventhidefields="["comments","documents","lastupdated","approved","tags"]" calendarstartdd="01" calendarstartmm="04" calendarstartyyyy="2024">
|
|
756
759
|
|
package/package.json
CHANGED
package/sf-i-events.d.ts
CHANGED
|
@@ -519,6 +519,7 @@ export declare class SfIEvents extends LitElement {
|
|
|
519
519
|
endDate: string;
|
|
520
520
|
};
|
|
521
521
|
calculateStartAndEndDateOfUpcoming: (index?: number) => any;
|
|
522
|
+
calculateMonthFromIndex: (index?: number) => number;
|
|
522
523
|
calculateStartAndEndDateOfStream: (index?: number) => {
|
|
523
524
|
startDate: string;
|
|
524
525
|
endDate: string;
|
|
@@ -750,7 +751,7 @@ export declare class SfIEvents extends LitElement {
|
|
|
750
751
|
sleepFunction: (ms: number) => Promise<unknown>;
|
|
751
752
|
renderAppropriateStream: (startDate: string, endDate: string, showGraph?: boolean) => void;
|
|
752
753
|
fetchRegisters: (searchString?: string) => Promise<any>;
|
|
753
|
-
fetchAndYearlyRenderUserCalendar_2: (startDate?: string, endDate?: string, searchString?: string, list?: string) => Promise<void>;
|
|
754
|
+
fetchAndYearlyRenderUserCalendar_2: (startDate?: string, endDate?: string, searchString?: string, list?: string, month?: string) => Promise<void>;
|
|
754
755
|
fetchUserCalendar: () => Promise<void>;
|
|
755
756
|
fetchCalendar: () => Promise<void>;
|
|
756
757
|
fetchReprogramAdhoc: () => Promise<void>;
|
package/sf-i-events.js
CHANGED
|
@@ -4312,6 +4312,23 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4312
4312
|
}
|
|
4313
4313
|
return { startDate: (sDate.getMonth() + 1) + '/' + sDate.getDate() + '/' + sDate.getFullYear(), endDate: (eDate.getMonth() + 1) + '/' + eDate.getDate() + '/' + eDate.getFullYear() };
|
|
4314
4314
|
};
|
|
4315
|
+
this.calculateMonthFromIndex = (index = 0) => {
|
|
4316
|
+
let month = parseInt(this.calendarStartMM);
|
|
4317
|
+
for (var j = 0; j < 12; j++) {
|
|
4318
|
+
if (j == index) {
|
|
4319
|
+
return month;
|
|
4320
|
+
}
|
|
4321
|
+
else {
|
|
4322
|
+
if (month === 12) {
|
|
4323
|
+
month = 1;
|
|
4324
|
+
}
|
|
4325
|
+
else {
|
|
4326
|
+
month++;
|
|
4327
|
+
}
|
|
4328
|
+
}
|
|
4329
|
+
}
|
|
4330
|
+
return 0;
|
|
4331
|
+
};
|
|
4315
4332
|
this.calculateStartAndEndDateOfStream = (index = 0) => {
|
|
4316
4333
|
let month = parseInt(this.calendarStartMM);
|
|
4317
4334
|
//console.log('calculateStartAndEndDateOfStream', index, month);
|
|
@@ -5503,10 +5520,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
5503
5520
|
(_a = this._SfStreamContainer.querySelector('#stream-month-' + i)) === null || _a === void 0 ? void 0 : _a.addEventListener('click', async (ev) => {
|
|
5504
5521
|
const target = parseInt(ev.target.id.split('-')[2]);
|
|
5505
5522
|
const dateResult = this.calculateStartAndEndDateOfStream(target);
|
|
5523
|
+
const monthResult = this.calculateMonthFromIndex(target);
|
|
5524
|
+
console.log('monthResult', monthResult);
|
|
5506
5525
|
//console.log('dateresult', dateResult);
|
|
5507
5526
|
this.currentColumnIndex = target + "";
|
|
5508
5527
|
if (dateResult != null) {
|
|
5509
|
-
await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
|
|
5528
|
+
await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate, "", "yes", ("0" + monthResult).slice(-2));
|
|
5510
5529
|
}
|
|
5511
5530
|
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
5512
5531
|
this.renderStream(target);
|
|
@@ -8082,6 +8101,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8082
8101
|
};
|
|
8083
8102
|
this.renderMappingTable = (divElement, jsonData, cursor, fetchFunction, searchString, mappedArray, found, uploadFunction, refreshFunction, extraFields, uploadBlock, extraFieldPosition, colName, subfilter, statuteColName, extraHintsArr) => {
|
|
8084
8103
|
var _a, _b, _c, _f;
|
|
8104
|
+
console.log('cols1', jsonData);
|
|
8085
8105
|
console.log('cols', jsonData[0].data.cols);
|
|
8086
8106
|
//console.log('divelement', divElement);
|
|
8087
8107
|
//console.log('jsonData', jsonData);
|
|
@@ -14233,7 +14253,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14233
14253
|
return registers;
|
|
14234
14254
|
}
|
|
14235
14255
|
};
|
|
14236
|
-
this.fetchAndYearlyRenderUserCalendar_2 = async (startDate = "", endDate = "", searchString = "", list = "yes") => {
|
|
14256
|
+
this.fetchAndYearlyRenderUserCalendar_2 = async (startDate = "", endDate = "", searchString = "", list = "yes", month = "00") => {
|
|
14237
14257
|
let path = "", view = "";
|
|
14238
14258
|
this.sdate = startDate;
|
|
14239
14259
|
this.edate = endDate;
|
|
@@ -14249,7 +14269,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14249
14269
|
else {
|
|
14250
14270
|
view = "entity";
|
|
14251
14271
|
}
|
|
14252
|
-
path = "
|
|
14272
|
+
path = "getallcountryevents1";
|
|
14253
14273
|
let sDate = "";
|
|
14254
14274
|
let eDate = "";
|
|
14255
14275
|
//console.log('currenttab', this.getCurrentTab());
|
|
@@ -14263,7 +14283,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
14263
14283
|
}
|
|
14264
14284
|
let url = "https://" + this.apiId + "/" + path;
|
|
14265
14285
|
//console.log('fetch calendar url', url);
|
|
14266
|
-
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": view, "year": this.calendarStartYYYY, "list": list };
|
|
14286
|
+
let urlBody = { "projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": view, "year": this.calendarStartYYYY, "list": list, "month": month };
|
|
14267
14287
|
if (searchString.length > 0) {
|
|
14268
14288
|
urlBody["searchstring"] = searchString;
|
|
14269
14289
|
}
|
package/src/sf-i-events.ts
CHANGED
|
@@ -6907,6 +6907,22 @@ export class SfIEvents extends LitElement {
|
|
|
6907
6907
|
|
|
6908
6908
|
}
|
|
6909
6909
|
|
|
6910
|
+
calculateMonthFromIndex = (index: number = 0) => {
|
|
6911
|
+
let month = parseInt(this.calendarStartMM);
|
|
6912
|
+
for(var j = 0; j < 12; j++){
|
|
6913
|
+
if(j == index){
|
|
6914
|
+
return month
|
|
6915
|
+
}else{
|
|
6916
|
+
if(month === 12) {
|
|
6917
|
+
month = 1;
|
|
6918
|
+
} else {
|
|
6919
|
+
month++;
|
|
6920
|
+
}
|
|
6921
|
+
}
|
|
6922
|
+
}
|
|
6923
|
+
return 0;
|
|
6924
|
+
}
|
|
6925
|
+
|
|
6910
6926
|
calculateStartAndEndDateOfStream = (index: number = 0) => {
|
|
6911
6927
|
|
|
6912
6928
|
let month = parseInt(this.calendarStartMM);
|
|
@@ -8434,10 +8450,12 @@ export class SfIEvents extends LitElement {
|
|
|
8434
8450
|
|
|
8435
8451
|
const target = parseInt((ev.target as HTMLDivElement).id.split('-')[2]);
|
|
8436
8452
|
const dateResult = this.calculateStartAndEndDateOfStream(target);
|
|
8453
|
+
const monthResult = this.calculateMonthFromIndex(target);
|
|
8454
|
+
console.log('monthResult', monthResult);
|
|
8437
8455
|
//console.log('dateresult', dateResult);
|
|
8438
8456
|
this.currentColumnIndex = target + "";
|
|
8439
8457
|
if(dateResult != null) {
|
|
8440
|
-
await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate);
|
|
8458
|
+
await this.fetchAndYearlyRenderUserCalendar_2(dateResult.startDate, dateResult.endDate,"","yes",("0" + monthResult).slice(-2));
|
|
8441
8459
|
}
|
|
8442
8460
|
this.flowGraph = this.FLOW_GRAPH_COMPLETENESS;
|
|
8443
8461
|
this.renderStream(target);
|
|
@@ -11905,6 +11923,7 @@ export class SfIEvents extends LitElement {
|
|
|
11905
11923
|
}
|
|
11906
11924
|
|
|
11907
11925
|
renderMappingTable = (divElement: any, jsonData: Array<any>, cursor: Array<any>, fetchFunction: any, searchString: string, mappedArray: any, found: number, uploadFunction: any, refreshFunction: any, extraFields: Array<string>, uploadBlock: number, extraFieldPosition: number, colName: string, subfilter: string, statuteColName: string, extraHintsArr: Array<string>) => {
|
|
11926
|
+
console.log('cols1', jsonData);
|
|
11908
11927
|
console.log('cols', jsonData[0].data.cols);
|
|
11909
11928
|
//console.log('divelement', divElement);
|
|
11910
11929
|
//console.log('jsonData', jsonData);
|
|
@@ -19888,7 +19907,7 @@ export class SfIEvents extends LitElement {
|
|
|
19888
19907
|
|
|
19889
19908
|
}
|
|
19890
19909
|
|
|
19891
|
-
fetchAndYearlyRenderUserCalendar_2 = async(startDate: string = "", endDate: string = "", searchString: string = "", list: string = "yes") => {
|
|
19910
|
+
fetchAndYearlyRenderUserCalendar_2 = async(startDate: string = "", endDate: string = "", searchString: string = "", list: string = "yes", month: string = "00") => {
|
|
19892
19911
|
|
|
19893
19912
|
let path = "", view = "";
|
|
19894
19913
|
this.sdate = startDate;
|
|
@@ -19903,7 +19922,7 @@ export class SfIEvents extends LitElement {
|
|
|
19903
19922
|
view = "entity";
|
|
19904
19923
|
}
|
|
19905
19924
|
|
|
19906
|
-
path = "
|
|
19925
|
+
path = "getallcountryevents1";
|
|
19907
19926
|
|
|
19908
19927
|
let sDate = "";
|
|
19909
19928
|
let eDate = "";
|
|
@@ -19922,7 +19941,7 @@ export class SfIEvents extends LitElement {
|
|
|
19922
19941
|
let url = "https://"+this.apiId+"/"+ path;
|
|
19923
19942
|
|
|
19924
19943
|
//console.log('fetch calendar url', url);
|
|
19925
|
-
let urlBody :any = {"projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": view, "year": this.calendarStartYYYY, "list":list};
|
|
19944
|
+
let urlBody :any = {"projectid": this.projectId, "userprofileid": this.userProfileId, "role": this.myRole, "entityid": this.entityId, "countryid": this.countryId, "functionid": this.functionId, "locationid": this.locationId, "tagid": this.tagId, "adhoc": "false", "exclusivestartkey": 0, "sdate": sDate, "edate": eDate, "view": view, "year": this.calendarStartYYYY, "list":list, "month": month};
|
|
19926
19945
|
|
|
19927
19946
|
if(searchString.length > 0) {
|
|
19928
19947
|
urlBody["searchstring"] = searchString;
|