sf-i-events 1.0.738 → 1.0.740
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/package.json +1 -1
- package/sf-i-events.d.ts +1 -0
- package/sf-i-events.js +18 -0
- package/src/sf-i-events.ts +18 -2
package/package.json
CHANGED
package/sf-i-events.d.ts
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -1209,6 +1209,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
1209
1209
|
this.nextTabStatus = "";
|
|
1210
1210
|
this.sdate = "";
|
|
1211
1211
|
this.edate = "";
|
|
1212
|
+
this.lastupdated = "";
|
|
1212
1213
|
this.changedOnboardingItemIds = [];
|
|
1213
1214
|
this.selectallblock = "100";
|
|
1214
1215
|
this.isSelectedLegend = (value) => {
|
|
@@ -2103,6 +2104,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2103
2104
|
var html = '';
|
|
2104
2105
|
html += '<div class="mb-20 stream-event-list" part="stream-event-list-charts">';
|
|
2105
2106
|
html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="duration-title-container"><h4 part="duration-title">' + parametersTitle + '</h4><button id="button-refresh" part="button-duration-title" class="align-center d-flex justify-center"><h4 part="duration-title">' + parametersTitle + '</h4><span part="duration-title-icon" class="material-icons ml-10">refresh</span></button></div>';
|
|
2107
|
+
html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="last-update-title-container"><h6 part="last-update-title">Last Updated on ' + this.lastupdated + '</h6></div>';
|
|
2106
2108
|
if (showGraph) {
|
|
2107
2109
|
html += '<div part="stream-event-chart-selection" class="mb-20">';
|
|
2108
2110
|
html += '<div part="td-head" class="mb-5">Select Chart</div>';
|
|
@@ -2147,6 +2149,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2147
2149
|
var html = '';
|
|
2148
2150
|
html += '<div class="mb-20 stream-event-list" part="stream-event-list-charts">';
|
|
2149
2151
|
html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="duration-title-container"><h4 part="duration-title">' + parametersTitle + '</h4><button id="button-refresh" part="button-duration-title" class="align-center d-flex justify-center"><h4 part="duration-title">' + parametersTitle + '</h4><span part="duration-title-icon" class="material-icons ml-10">refresh</span></button></div>';
|
|
2152
|
+
html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="last-update-title-container"><h6 part="last-update-title">Last Updated on ' + this.lastupdated + '</h6></div>';
|
|
2150
2153
|
if (showGraph) {
|
|
2151
2154
|
html += '<div class="chart-container d-flex scroll-x align-center"><div part="chart-item" class="chart-item"><canvas id="myChart"></canvas></div><div part="chart-item" class="chart-item"><canvas id="myChart4" class="gone"></canvas></div><div part="chart-item chart-item-middle" class="chart-item"><canvas id="myChart2" class="gone"></canvas></div><div part="chart-item" class="chart-item"><canvas id="myChart3" class="gone"></canvas></div></div>';
|
|
2152
2155
|
html += '<div id="chart-settings-controls" class="mt-20"></div>';
|
|
@@ -4110,7 +4113,11 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4110
4113
|
option.value = "";
|
|
4111
4114
|
option.innerHTML = "all";
|
|
4112
4115
|
selectFilterCriteria.add(option);
|
|
4116
|
+
option = new Option();
|
|
4117
|
+
option.value = "";
|
|
4118
|
+
option.innerHTML = "all";
|
|
4113
4119
|
selectFilterCriteriaMobile.add(option);
|
|
4120
|
+
console.log('adding', option, selectFilterCriteria.options);
|
|
4114
4121
|
for (let criteria of Object.keys(this.statisticsMeta)) {
|
|
4115
4122
|
let option = new Option();
|
|
4116
4123
|
option.value = criteria;
|
|
@@ -4121,6 +4128,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4121
4128
|
option.innerHTML = criteria;
|
|
4122
4129
|
}
|
|
4123
4130
|
selectFilterCriteria.add(option);
|
|
4131
|
+
option = new Option();
|
|
4132
|
+
option.value = criteria;
|
|
4133
|
+
if (criteria == "reporter" || criteria == "approver" || criteria == "functionhead") {
|
|
4134
|
+
option.innerHTML = "user:" + criteria;
|
|
4135
|
+
}
|
|
4136
|
+
else {
|
|
4137
|
+
option.innerHTML = criteria;
|
|
4138
|
+
}
|
|
4124
4139
|
selectFilterCriteriaMobile.add(option);
|
|
4125
4140
|
}
|
|
4126
4141
|
let selectFilterCriteriaNew = Util.clearListeners(selectFilterCriteria);
|
|
@@ -16355,6 +16370,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16355
16370
|
console.log('jsonRespose', jsonRespose);
|
|
16356
16371
|
this.events = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
16357
16372
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete);
|
|
16373
|
+
this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN');
|
|
16358
16374
|
this.renderAppropriateStream(startDate, endDate, list == "no");
|
|
16359
16375
|
this.fetchBulkReportingData();
|
|
16360
16376
|
// this.events = {}
|
|
@@ -16449,6 +16465,8 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16449
16465
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16450
16466
|
console.log('jsonRespose Statistics', jsonRespose);
|
|
16451
16467
|
this.statistics = jsonRespose.data;
|
|
16468
|
+
this.lastupdated = new Date(jsonRespose.lastupdated).toLocaleDateString('en-IN') + " - " + new Date(jsonRespose.lastupdated).toLocaleTimeString('en-IN');
|
|
16469
|
+
console.log('statistics date', this.lastupdated);
|
|
16452
16470
|
if (jsonRespose.meta != null)
|
|
16453
16471
|
this.statisticsMeta = jsonRespose.meta;
|
|
16454
16472
|
return jsonRespose.meta;
|
package/src/sf-i-events.ts
CHANGED
|
@@ -1600,6 +1600,8 @@ export class SfIEvents extends LitElement {
|
|
|
1600
1600
|
|
|
1601
1601
|
edate: string = "";
|
|
1602
1602
|
|
|
1603
|
+
lastupdated: string = "";
|
|
1604
|
+
|
|
1603
1605
|
changedOnboardingItemIds: string[] = []
|
|
1604
1606
|
|
|
1605
1607
|
@property()
|
|
@@ -4171,6 +4173,7 @@ export class SfIEvents extends LitElement {
|
|
|
4171
4173
|
|
|
4172
4174
|
html += '<div class="mb-20 stream-event-list" part="stream-event-list-charts">';
|
|
4173
4175
|
html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="duration-title-container"><h4 part="duration-title">' + parametersTitle + '</h4><button id="button-refresh" part="button-duration-title" class="align-center d-flex justify-center"><h4 part="duration-title">' + parametersTitle + '</h4><span part="duration-title-icon" class="material-icons ml-10">refresh</span></button></div>';
|
|
4176
|
+
html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="last-update-title-container"><h6 part="last-update-title">Last Updated on ' + this.lastupdated + '</h6></div>';
|
|
4174
4177
|
if(showGraph) {
|
|
4175
4178
|
html += '<div part="stream-event-chart-selection" class="mb-20">';
|
|
4176
4179
|
html += '<div part="td-head" class="mb-5">Select Chart</div>';
|
|
@@ -4222,6 +4225,7 @@ export class SfIEvents extends LitElement {
|
|
|
4222
4225
|
|
|
4223
4226
|
html += '<div class="mb-20 stream-event-list" part="stream-event-list-charts">';
|
|
4224
4227
|
html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="duration-title-container"><h4 part="duration-title">' + parametersTitle + '</h4><button id="button-refresh" part="button-duration-title" class="align-center d-flex justify-center"><h4 part="duration-title">' + parametersTitle + '</h4><span part="duration-title-icon" class="material-icons ml-10">refresh</span></button></div>';
|
|
4228
|
+
html += '<div class="align-center d-flex flex-wrap mb-10 w-100-m-0" part="last-update-title-container"><h6 part="last-update-title">Last Updated on ' + this.lastupdated + '</h6></div>';
|
|
4225
4229
|
if(showGraph) {
|
|
4226
4230
|
html += '<div class="chart-container d-flex scroll-x align-center"><div part="chart-item" class="chart-item"><canvas id="myChart"></canvas></div><div part="chart-item" class="chart-item"><canvas id="myChart4" class="gone"></canvas></div><div part="chart-item chart-item-middle" class="chart-item"><canvas id="myChart2" class="gone"></canvas></div><div part="chart-item" class="chart-item"><canvas id="myChart3" class="gone"></canvas></div></div>';
|
|
4227
4231
|
html += '<div id="chart-settings-controls" class="mt-20"></div>'
|
|
@@ -6582,8 +6586,11 @@ export class SfIEvents extends LitElement {
|
|
|
6582
6586
|
option.value = "";
|
|
6583
6587
|
option.innerHTML = "all"
|
|
6584
6588
|
selectFilterCriteria.add(option)
|
|
6589
|
+
option = new Option()
|
|
6590
|
+
option.value = "";
|
|
6591
|
+
option.innerHTML = "all"
|
|
6585
6592
|
selectFilterCriteriaMobile.add(option)
|
|
6586
|
-
|
|
6593
|
+
console.log('adding', option, selectFilterCriteria.options);
|
|
6587
6594
|
for(let criteria of Object.keys(this.statisticsMeta)){
|
|
6588
6595
|
let option = new Option()
|
|
6589
6596
|
option.value = criteria;
|
|
@@ -6593,6 +6600,13 @@ export class SfIEvents extends LitElement {
|
|
|
6593
6600
|
option.innerHTML = criteria
|
|
6594
6601
|
}
|
|
6595
6602
|
selectFilterCriteria.add(option)
|
|
6603
|
+
option = new Option()
|
|
6604
|
+
option.value = criteria;
|
|
6605
|
+
if(criteria == "reporter" || criteria == "approver" || criteria == "functionhead"){
|
|
6606
|
+
option.innerHTML = "user:" + criteria
|
|
6607
|
+
}else{
|
|
6608
|
+
option.innerHTML = criteria
|
|
6609
|
+
}
|
|
6596
6610
|
selectFilterCriteriaMobile.add(option)
|
|
6597
6611
|
}
|
|
6598
6612
|
let selectFilterCriteriaNew = Util.clearListeners(selectFilterCriteria)
|
|
@@ -22214,7 +22228,7 @@ export class SfIEvents extends LitElement {
|
|
|
22214
22228
|
console.log('jsonRespose', jsonRespose);
|
|
22215
22229
|
this.events = (await this.fetchPresignedUrl(jsonRespose.signedUrlGet));
|
|
22216
22230
|
await this.fetchPresignedUrlDelete(jsonRespose.signedUrlDelete)
|
|
22217
|
-
|
|
22231
|
+
this.lastupdated = new Date().toLocaleDateString('en-IN') + " - " + new Date().toLocaleTimeString('en-IN')
|
|
22218
22232
|
this.renderAppropriateStream(startDate, endDate, list == "no");
|
|
22219
22233
|
this.fetchBulkReportingData();
|
|
22220
22234
|
// this.events = {}
|
|
@@ -22347,6 +22361,8 @@ export class SfIEvents extends LitElement {
|
|
|
22347
22361
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22348
22362
|
console.log('jsonRespose Statistics', jsonRespose);
|
|
22349
22363
|
this.statistics = jsonRespose.data
|
|
22364
|
+
this.lastupdated = new Date(jsonRespose.lastupdated).toLocaleDateString('en-IN') + " - " + new Date(jsonRespose.lastupdated).toLocaleTimeString('en-IN')
|
|
22365
|
+
console.log('statistics date', this.lastupdated);
|
|
22350
22366
|
if(jsonRespose.meta != null)
|
|
22351
22367
|
this.statisticsMeta = jsonRespose.meta
|
|
22352
22368
|
return jsonRespose.meta
|