sf-i-events 1.0.825 → 1.0.826
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 +5 -0
- package/package.json +1 -1
- package/sf-i-events.js +246 -225
- package/src/sf-i-events.ts +244 -375
package/src/sf-i-events.ts
CHANGED
|
@@ -12446,7 +12446,10 @@ export class SfIEvents extends LitElement {
|
|
|
12446
12446
|
console.log('jsonRespose notice details', jsonRespose);
|
|
12447
12447
|
|
|
12448
12448
|
} else {
|
|
12449
|
-
|
|
12449
|
+
if(xhr.status == 401){
|
|
12450
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
12451
|
+
this.dispatchEvent(changeEvent);
|
|
12452
|
+
}
|
|
12450
12453
|
if(xhr.status === 404) {
|
|
12451
12454
|
|
|
12452
12455
|
this.showChosenProject();
|
|
@@ -13285,7 +13288,10 @@ export class SfIEvents extends LitElement {
|
|
|
13285
13288
|
}
|
|
13286
13289
|
|
|
13287
13290
|
} else {
|
|
13288
|
-
|
|
13291
|
+
if(xhr.status == 401){
|
|
13292
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
13293
|
+
this.dispatchEvent(changeEvent);
|
|
13294
|
+
}
|
|
13289
13295
|
if(xhr.status === 404) {
|
|
13290
13296
|
|
|
13291
13297
|
this.showChosenProject();
|
|
@@ -22222,6 +22228,10 @@ export class SfIEvents extends LitElement {
|
|
|
22222
22228
|
this._SfLoader.innerHTML = '';
|
|
22223
22229
|
|
|
22224
22230
|
} else {
|
|
22231
|
+
if(xhr.status == 401){
|
|
22232
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22233
|
+
this.dispatchEvent(changeEvent);
|
|
22234
|
+
}
|
|
22225
22235
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22226
22236
|
this.setError(jsonRespose.error);
|
|
22227
22237
|
setTimeout(() => {
|
|
@@ -22267,6 +22277,10 @@ export class SfIEvents extends LitElement {
|
|
|
22267
22277
|
this._SfLoader.innerHTML = '';
|
|
22268
22278
|
|
|
22269
22279
|
} else {
|
|
22280
|
+
if(xhr.status == 401){
|
|
22281
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22282
|
+
this.dispatchEvent(changeEvent);
|
|
22283
|
+
}
|
|
22270
22284
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22271
22285
|
this.setError(jsonRespose.error);
|
|
22272
22286
|
setTimeout(() => {
|
|
@@ -22325,6 +22339,10 @@ export class SfIEvents extends LitElement {
|
|
|
22325
22339
|
this._SfLoader.innerHTML = '';
|
|
22326
22340
|
|
|
22327
22341
|
} else {
|
|
22342
|
+
if(xhr.status == 401){
|
|
22343
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22344
|
+
this.dispatchEvent(changeEvent);
|
|
22345
|
+
}
|
|
22328
22346
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22329
22347
|
this.setError(jsonRespose.error);
|
|
22330
22348
|
setTimeout(() => {
|
|
@@ -22355,6 +22373,10 @@ export class SfIEvents extends LitElement {
|
|
|
22355
22373
|
}, 3000);
|
|
22356
22374
|
|
|
22357
22375
|
} else {
|
|
22376
|
+
if(xhr.status == 401){
|
|
22377
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22378
|
+
this.dispatchEvent(changeEvent);
|
|
22379
|
+
}
|
|
22358
22380
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22359
22381
|
this.setError(jsonRespose.error);
|
|
22360
22382
|
setTimeout(() => {
|
|
@@ -22396,6 +22418,10 @@ export class SfIEvents extends LitElement {
|
|
|
22396
22418
|
}, 5000);
|
|
22397
22419
|
|
|
22398
22420
|
} else {
|
|
22421
|
+
if(xhr.status == 401){
|
|
22422
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22423
|
+
this.dispatchEvent(changeEvent);
|
|
22424
|
+
}
|
|
22399
22425
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22400
22426
|
this.setError(jsonRespose.error);
|
|
22401
22427
|
setTimeout(() => {
|
|
@@ -22429,6 +22455,10 @@ export class SfIEvents extends LitElement {
|
|
|
22429
22455
|
}, 3000);
|
|
22430
22456
|
|
|
22431
22457
|
} else {
|
|
22458
|
+
if(xhr.status == 401){
|
|
22459
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22460
|
+
this.dispatchEvent(changeEvent);
|
|
22461
|
+
}
|
|
22432
22462
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22433
22463
|
this.setError(jsonRespose.error);
|
|
22434
22464
|
setTimeout(() => {
|
|
@@ -22475,6 +22505,10 @@ export class SfIEvents extends LitElement {
|
|
|
22475
22505
|
}, 2000);
|
|
22476
22506
|
|
|
22477
22507
|
} else {
|
|
22508
|
+
if(xhr.status == 401){
|
|
22509
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22510
|
+
this.dispatchEvent(changeEvent);
|
|
22511
|
+
}
|
|
22478
22512
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22479
22513
|
this.setError(jsonRespose.error);
|
|
22480
22514
|
retValue = false;
|
|
@@ -22495,6 +22529,10 @@ export class SfIEvents extends LitElement {
|
|
|
22495
22529
|
}, 10000);
|
|
22496
22530
|
|
|
22497
22531
|
} else {
|
|
22532
|
+
if(xhr.status == 401){
|
|
22533
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22534
|
+
this.dispatchEvent(changeEvent);
|
|
22535
|
+
}
|
|
22498
22536
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22499
22537
|
this.setError(jsonRespose.error);
|
|
22500
22538
|
}
|
|
@@ -22538,6 +22576,10 @@ export class SfIEvents extends LitElement {
|
|
|
22538
22576
|
}, 2000);
|
|
22539
22577
|
|
|
22540
22578
|
} else {
|
|
22579
|
+
if(xhr.status == 401){
|
|
22580
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22581
|
+
this.dispatchEvent(changeEvent);
|
|
22582
|
+
}
|
|
22541
22583
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22542
22584
|
this.setError(jsonRespose.error);
|
|
22543
22585
|
setTimeout(() => {
|
|
@@ -22560,6 +22602,10 @@ export class SfIEvents extends LitElement {
|
|
|
22560
22602
|
}, 10000);
|
|
22561
22603
|
|
|
22562
22604
|
} else {
|
|
22605
|
+
if(xhr.status == 401){
|
|
22606
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22607
|
+
this.dispatchEvent(changeEvent);
|
|
22608
|
+
}
|
|
22563
22609
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22564
22610
|
this.setError(jsonRespose.error);
|
|
22565
22611
|
setTimeout(() => {
|
|
@@ -22580,6 +22626,10 @@ export class SfIEvents extends LitElement {
|
|
|
22580
22626
|
}, 10000);
|
|
22581
22627
|
|
|
22582
22628
|
} else {
|
|
22629
|
+
if(xhr.status == 401){
|
|
22630
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22631
|
+
this.dispatchEvent(changeEvent);
|
|
22632
|
+
}
|
|
22583
22633
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22584
22634
|
this.setError(jsonRespose.error);
|
|
22585
22635
|
setTimeout(() => {
|
|
@@ -22635,6 +22685,10 @@ export class SfIEvents extends LitElement {
|
|
|
22635
22685
|
}, 2000);
|
|
22636
22686
|
|
|
22637
22687
|
} else {
|
|
22688
|
+
if(xhr.status == 401){
|
|
22689
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22690
|
+
this.dispatchEvent(changeEvent);
|
|
22691
|
+
}
|
|
22638
22692
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22639
22693
|
console.log()
|
|
22640
22694
|
this.setError(jsonRespose.error);
|
|
@@ -22663,6 +22717,10 @@ export class SfIEvents extends LitElement {
|
|
|
22663
22717
|
}
|
|
22664
22718
|
|
|
22665
22719
|
} else {
|
|
22720
|
+
if(xhr.status == 401){
|
|
22721
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22722
|
+
this.dispatchEvent(changeEvent);
|
|
22723
|
+
}
|
|
22666
22724
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22667
22725
|
this.setError(jsonRespose.error);
|
|
22668
22726
|
setTimeout(() => {
|
|
@@ -22702,6 +22760,10 @@ export class SfIEvents extends LitElement {
|
|
|
22702
22760
|
}, 2000);
|
|
22703
22761
|
|
|
22704
22762
|
} else {
|
|
22763
|
+
if(xhr.status == 401){
|
|
22764
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22765
|
+
this.dispatchEvent(changeEvent);
|
|
22766
|
+
}
|
|
22705
22767
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22706
22768
|
this.setError(jsonRespose.error);
|
|
22707
22769
|
}
|
|
@@ -22726,6 +22788,10 @@ export class SfIEvents extends LitElement {
|
|
|
22726
22788
|
this.renderMappingTabs(this.TAB_REPORTER);
|
|
22727
22789
|
|
|
22728
22790
|
} else {
|
|
22791
|
+
if(xhr.status == 401){
|
|
22792
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22793
|
+
this.dispatchEvent(changeEvent);
|
|
22794
|
+
}
|
|
22729
22795
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22730
22796
|
this.setError(jsonRespose.error);
|
|
22731
22797
|
}
|
|
@@ -22745,6 +22811,10 @@ export class SfIEvents extends LitElement {
|
|
|
22745
22811
|
//console.log('jsonResponse sync', jsonRespose);
|
|
22746
22812
|
|
|
22747
22813
|
} else {
|
|
22814
|
+
if(xhr.status == 401){
|
|
22815
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22816
|
+
this.dispatchEvent(changeEvent);
|
|
22817
|
+
}
|
|
22748
22818
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22749
22819
|
this.setError(jsonRespose.error);
|
|
22750
22820
|
}
|
|
@@ -22884,7 +22954,10 @@ export class SfIEvents extends LitElement {
|
|
|
22884
22954
|
return jsonRespose;
|
|
22885
22955
|
|
|
22886
22956
|
} else {
|
|
22887
|
-
|
|
22957
|
+
if(xhr.status == 401){
|
|
22958
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22959
|
+
this.dispatchEvent(changeEvent);
|
|
22960
|
+
}
|
|
22888
22961
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22889
22962
|
this.setError(jsonRespose.error);
|
|
22890
22963
|
|
|
@@ -22906,7 +22979,10 @@ export class SfIEvents extends LitElement {
|
|
|
22906
22979
|
return jsonRespose;
|
|
22907
22980
|
|
|
22908
22981
|
} else {
|
|
22909
|
-
|
|
22982
|
+
if(xhr.status == 401){
|
|
22983
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
22984
|
+
this.dispatchEvent(changeEvent);
|
|
22985
|
+
}
|
|
22910
22986
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22911
22987
|
this.setError(jsonRespose.error);
|
|
22912
22988
|
|
|
@@ -22927,7 +23003,10 @@ export class SfIEvents extends LitElement {
|
|
|
22927
23003
|
return jsonRespose;
|
|
22928
23004
|
|
|
22929
23005
|
} else {
|
|
22930
|
-
|
|
23006
|
+
if(xhr.status == 401){
|
|
23007
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23008
|
+
this.dispatchEvent(changeEvent);
|
|
23009
|
+
}
|
|
22931
23010
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22932
23011
|
this.setError(jsonRespose.error);
|
|
22933
23012
|
|
|
@@ -22979,7 +23058,10 @@ export class SfIEvents extends LitElement {
|
|
|
22979
23058
|
return jsonRespose;
|
|
22980
23059
|
|
|
22981
23060
|
} else {
|
|
22982
|
-
|
|
23061
|
+
if(xhr.status == 401){
|
|
23062
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23063
|
+
this.dispatchEvent(changeEvent);
|
|
23064
|
+
}
|
|
22983
23065
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
22984
23066
|
this.setError(jsonRespose.error);
|
|
22985
23067
|
|
|
@@ -23002,7 +23084,10 @@ export class SfIEvents extends LitElement {
|
|
|
23002
23084
|
return jsonRespose;
|
|
23003
23085
|
|
|
23004
23086
|
} else {
|
|
23005
|
-
|
|
23087
|
+
if(xhr.status == 401){
|
|
23088
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23089
|
+
this.dispatchEvent(changeEvent);
|
|
23090
|
+
}
|
|
23006
23091
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23007
23092
|
this.setError(jsonRespose.error);
|
|
23008
23093
|
|
|
@@ -23023,7 +23108,10 @@ export class SfIEvents extends LitElement {
|
|
|
23023
23108
|
return jsonRespose;
|
|
23024
23109
|
|
|
23025
23110
|
} else {
|
|
23026
|
-
|
|
23111
|
+
if(xhr.status == 401){
|
|
23112
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23113
|
+
this.dispatchEvent(changeEvent);
|
|
23114
|
+
}
|
|
23027
23115
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23028
23116
|
this.setError(jsonRespose.error);
|
|
23029
23117
|
|
|
@@ -23113,7 +23201,10 @@ export class SfIEvents extends LitElement {
|
|
|
23113
23201
|
return jsonRespose;
|
|
23114
23202
|
|
|
23115
23203
|
} else {
|
|
23116
|
-
|
|
23204
|
+
if(xhr.status == 401){
|
|
23205
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23206
|
+
this.dispatchEvent(changeEvent);
|
|
23207
|
+
}
|
|
23117
23208
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23118
23209
|
this.setError(jsonRespose.error);
|
|
23119
23210
|
|
|
@@ -23198,7 +23289,10 @@ export class SfIEvents extends LitElement {
|
|
|
23198
23289
|
return jsonRespose;
|
|
23199
23290
|
|
|
23200
23291
|
} else {
|
|
23201
|
-
|
|
23292
|
+
if(xhr.status == 401){
|
|
23293
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23294
|
+
this.dispatchEvent(changeEvent);
|
|
23295
|
+
}
|
|
23202
23296
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23203
23297
|
this.setError(jsonRespose.error);
|
|
23204
23298
|
|
|
@@ -23246,7 +23340,10 @@ export class SfIEvents extends LitElement {
|
|
|
23246
23340
|
return jsonRespose;
|
|
23247
23341
|
|
|
23248
23342
|
} else {
|
|
23249
|
-
|
|
23343
|
+
if(xhr.status == 401){
|
|
23344
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23345
|
+
this.dispatchEvent(changeEvent);
|
|
23346
|
+
}
|
|
23250
23347
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23251
23348
|
this.setError(jsonRespose.error);
|
|
23252
23349
|
|
|
@@ -23293,7 +23390,10 @@ export class SfIEvents extends LitElement {
|
|
|
23293
23390
|
return jsonRespose;
|
|
23294
23391
|
|
|
23295
23392
|
} else {
|
|
23296
|
-
|
|
23393
|
+
if(xhr.status == 401){
|
|
23394
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23395
|
+
this.dispatchEvent(changeEvent);
|
|
23396
|
+
}
|
|
23297
23397
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23298
23398
|
this.setError(jsonRespose.error);
|
|
23299
23399
|
|
|
@@ -23314,7 +23414,10 @@ export class SfIEvents extends LitElement {
|
|
|
23314
23414
|
return jsonRespose;
|
|
23315
23415
|
|
|
23316
23416
|
} else {
|
|
23317
|
-
|
|
23417
|
+
if(xhr.status == 401){
|
|
23418
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23419
|
+
this.dispatchEvent(changeEvent);
|
|
23420
|
+
}
|
|
23318
23421
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23319
23422
|
this.setError(jsonRespose.error);
|
|
23320
23423
|
|
|
@@ -23335,7 +23438,10 @@ export class SfIEvents extends LitElement {
|
|
|
23335
23438
|
return jsonRespose;
|
|
23336
23439
|
|
|
23337
23440
|
} else {
|
|
23338
|
-
|
|
23441
|
+
if(xhr.status == 401){
|
|
23442
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23443
|
+
this.dispatchEvent(changeEvent);
|
|
23444
|
+
}
|
|
23339
23445
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23340
23446
|
this.setError(jsonRespose.error);
|
|
23341
23447
|
|
|
@@ -23356,7 +23462,10 @@ export class SfIEvents extends LitElement {
|
|
|
23356
23462
|
return jsonRespose;
|
|
23357
23463
|
|
|
23358
23464
|
} else {
|
|
23359
|
-
|
|
23465
|
+
if(xhr.status == 401){
|
|
23466
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23467
|
+
this.dispatchEvent(changeEvent);
|
|
23468
|
+
}
|
|
23360
23469
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23361
23470
|
this.setError(jsonRespose.error);
|
|
23362
23471
|
|
|
@@ -23377,7 +23486,10 @@ export class SfIEvents extends LitElement {
|
|
|
23377
23486
|
return jsonRespose;
|
|
23378
23487
|
|
|
23379
23488
|
} else {
|
|
23380
|
-
|
|
23489
|
+
if(xhr.status == 401){
|
|
23490
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23491
|
+
this.dispatchEvent(changeEvent);
|
|
23492
|
+
}
|
|
23381
23493
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23382
23494
|
this.setError(jsonRespose.error);
|
|
23383
23495
|
|
|
@@ -23406,7 +23518,10 @@ export class SfIEvents extends LitElement {
|
|
|
23406
23518
|
// return jsonRespose;
|
|
23407
23519
|
|
|
23408
23520
|
} else {
|
|
23409
|
-
|
|
23521
|
+
if(xhr.status == 401){
|
|
23522
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23523
|
+
this.dispatchEvent(changeEvent);
|
|
23524
|
+
}
|
|
23410
23525
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23411
23526
|
this.setError(jsonRespose.error);
|
|
23412
23527
|
|
|
@@ -23605,7 +23720,10 @@ export class SfIEvents extends LitElement {
|
|
|
23605
23720
|
// }
|
|
23606
23721
|
|
|
23607
23722
|
} else {
|
|
23608
|
-
|
|
23723
|
+
if(xhr.status == 401){
|
|
23724
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23725
|
+
this.dispatchEvent(changeEvent);
|
|
23726
|
+
}
|
|
23609
23727
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23610
23728
|
this.setError(jsonRespose.error);
|
|
23611
23729
|
|
|
@@ -23651,7 +23769,10 @@ export class SfIEvents extends LitElement {
|
|
|
23651
23769
|
}
|
|
23652
23770
|
|
|
23653
23771
|
} else {
|
|
23654
|
-
|
|
23772
|
+
if(xhr.status == 401){
|
|
23773
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23774
|
+
this.dispatchEvent(changeEvent);
|
|
23775
|
+
}
|
|
23655
23776
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23656
23777
|
this.setError(jsonRespose.error);
|
|
23657
23778
|
|
|
@@ -23803,7 +23924,10 @@ export class SfIEvents extends LitElement {
|
|
|
23803
23924
|
return resultPresigned;
|
|
23804
23925
|
|
|
23805
23926
|
} else {
|
|
23806
|
-
|
|
23927
|
+
if(xhr.status == 401){
|
|
23928
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23929
|
+
this.dispatchEvent(changeEvent);
|
|
23930
|
+
}
|
|
23807
23931
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23808
23932
|
this.setError(jsonRespose.error);
|
|
23809
23933
|
|
|
@@ -23824,7 +23948,10 @@ export class SfIEvents extends LitElement {
|
|
|
23824
23948
|
return jsonRespose;
|
|
23825
23949
|
|
|
23826
23950
|
} else {
|
|
23827
|
-
|
|
23951
|
+
if(xhr.status == 401){
|
|
23952
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23953
|
+
this.dispatchEvent(changeEvent);
|
|
23954
|
+
}
|
|
23828
23955
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23829
23956
|
this.setError(jsonRespose.error);
|
|
23830
23957
|
|
|
@@ -23845,7 +23972,10 @@ export class SfIEvents extends LitElement {
|
|
|
23845
23972
|
return jsonRespose;
|
|
23846
23973
|
|
|
23847
23974
|
} else {
|
|
23848
|
-
|
|
23975
|
+
if(xhr.status == 401){
|
|
23976
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
23977
|
+
this.dispatchEvent(changeEvent);
|
|
23978
|
+
}
|
|
23849
23979
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23850
23980
|
this.setError(jsonRespose.error);
|
|
23851
23981
|
|
|
@@ -23872,7 +24002,10 @@ export class SfIEvents extends LitElement {
|
|
|
23872
24002
|
return jsonRespose;
|
|
23873
24003
|
|
|
23874
24004
|
} else {
|
|
23875
|
-
|
|
24005
|
+
if(xhr.status == 401){
|
|
24006
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24007
|
+
this.dispatchEvent(changeEvent);
|
|
24008
|
+
}
|
|
23876
24009
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23877
24010
|
this.setError(jsonRespose.error);
|
|
23878
24011
|
|
|
@@ -23893,7 +24026,10 @@ export class SfIEvents extends LitElement {
|
|
|
23893
24026
|
return jsonRespose;
|
|
23894
24027
|
|
|
23895
24028
|
} else {
|
|
23896
|
-
|
|
24029
|
+
if(xhr.status == 401){
|
|
24030
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24031
|
+
this.dispatchEvent(changeEvent);
|
|
24032
|
+
}
|
|
23897
24033
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23898
24034
|
this.setError(jsonRespose.error);
|
|
23899
24035
|
|
|
@@ -23914,7 +24050,10 @@ export class SfIEvents extends LitElement {
|
|
|
23914
24050
|
return jsonRespose;
|
|
23915
24051
|
|
|
23916
24052
|
} else {
|
|
23917
|
-
|
|
24053
|
+
if(xhr.status == 401){
|
|
24054
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24055
|
+
this.dispatchEvent(changeEvent);
|
|
24056
|
+
}
|
|
23918
24057
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
23919
24058
|
this.setError(jsonRespose.error);
|
|
23920
24059
|
|
|
@@ -23922,342 +24061,7 @@ export class SfIEvents extends LitElement {
|
|
|
23922
24061
|
|
|
23923
24062
|
}
|
|
23924
24063
|
|
|
23925
|
-
// fetchInternalControlsJobs = async () => {
|
|
23926
|
-
|
|
23927
|
-
// let url = "https://"+this.apiId+"/getinternalcontrolsjobs";
|
|
23928
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
23929
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
23930
|
-
// this._SfLoader.innerHTML = '';
|
|
23931
|
-
// if(xhr.status == 200) {
|
|
23932
|
-
|
|
23933
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
23934
|
-
// //console.log(jsonRespose);
|
|
23935
|
-
// return jsonRespose;
|
|
23936
|
-
|
|
23937
|
-
// } else {
|
|
23938
|
-
|
|
23939
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
23940
|
-
// this.setError(jsonRespose.error);
|
|
23941
|
-
|
|
23942
|
-
// }
|
|
23943
|
-
|
|
23944
|
-
// }
|
|
23945
|
-
|
|
23946
|
-
// fetchExtensionsJobs = async () => {
|
|
23947
|
-
|
|
23948
|
-
// let url = "https://"+this.apiId+"/getalertschedulesjobs";
|
|
23949
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
23950
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
23951
|
-
// this._SfLoader.innerHTML = '';
|
|
23952
|
-
// if(xhr.status == 200) {
|
|
23953
|
-
|
|
23954
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
23955
|
-
// //console.log(jsonRespose);
|
|
23956
|
-
// return jsonRespose;
|
|
23957
|
-
|
|
23958
|
-
// } else {
|
|
23959
|
-
|
|
23960
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
23961
|
-
// this.setError(jsonRespose.error);
|
|
23962
|
-
|
|
23963
|
-
// }
|
|
23964
|
-
|
|
23965
|
-
// }
|
|
23966
|
-
|
|
23967
|
-
// fetchAlertSchedulesJobs = async () => {
|
|
23968
|
-
|
|
23969
|
-
// let url = "https://"+this.apiId+"/getalertschedulesjobs";
|
|
23970
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
23971
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
23972
|
-
// this._SfLoader.innerHTML = '';
|
|
23973
|
-
// if(xhr.status == 200) {
|
|
23974
|
-
|
|
23975
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
23976
|
-
// //console.log(jsonRespose);
|
|
23977
|
-
// return jsonRespose;
|
|
23978
|
-
|
|
23979
|
-
// } else {
|
|
23980
|
-
|
|
23981
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
23982
|
-
// this.setError(jsonRespose.error);
|
|
23983
|
-
|
|
23984
|
-
// }
|
|
23985
|
-
|
|
23986
|
-
// }
|
|
23987
|
-
|
|
23988
|
-
// fetchDueDatesJobs = async () => {
|
|
23989
|
-
|
|
23990
|
-
// let url = "https://"+this.apiId+"/getduedatesjobs";
|
|
23991
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
23992
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
23993
|
-
// this._SfLoader.innerHTML = '';
|
|
23994
|
-
// if(xhr.status == 200) {
|
|
23995
|
-
|
|
23996
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
23997
|
-
// //console.log(jsonRespose);
|
|
23998
|
-
// return jsonRespose;
|
|
23999
|
-
|
|
24000
|
-
// } else {
|
|
24001
|
-
|
|
24002
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24003
|
-
// this.setError(jsonRespose.error);
|
|
24004
|
-
|
|
24005
|
-
// }
|
|
24006
|
-
|
|
24007
|
-
// }
|
|
24008
|
-
|
|
24009
|
-
// fetchApproversJobs = async () => {
|
|
24010
|
-
|
|
24011
|
-
// let url = "https://"+this.apiId+"/getapproversjobs";
|
|
24012
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24013
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24014
|
-
// this._SfLoader.innerHTML = '';
|
|
24015
|
-
// if(xhr.status == 200) {
|
|
24016
|
-
|
|
24017
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24018
|
-
// //console.log(jsonRespose);
|
|
24019
|
-
// return jsonRespose;
|
|
24020
|
-
|
|
24021
|
-
// } else {
|
|
24022
|
-
|
|
24023
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24024
|
-
// this.setError(jsonRespose.error);
|
|
24025
|
-
|
|
24026
|
-
// }
|
|
24027
|
-
|
|
24028
|
-
// }
|
|
24029
|
-
|
|
24030
|
-
// fetchFunctionHeadsJobs = async () => {
|
|
24031
|
-
|
|
24032
|
-
// let url = "https://"+this.apiId+"/getfunctionheadsjobs";
|
|
24033
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24034
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24035
|
-
// this._SfLoader.innerHTML = '';
|
|
24036
|
-
// if(xhr.status == 200) {
|
|
24037
|
-
|
|
24038
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24039
|
-
// //console.log(jsonRespose);
|
|
24040
|
-
// return jsonRespose;
|
|
24041
|
-
|
|
24042
|
-
// } else {
|
|
24043
|
-
|
|
24044
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24045
|
-
// this.setError(jsonRespose.error);
|
|
24046
|
-
|
|
24047
|
-
// }
|
|
24048
|
-
|
|
24049
|
-
// }
|
|
24050
|
-
|
|
24051
|
-
// fetchMakerCheckersJobs = async () => {
|
|
24052
|
-
|
|
24053
|
-
// let url = "https://"+this.apiId+"/getmakercheckersjobs";
|
|
24054
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24055
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24056
|
-
// this._SfLoader.innerHTML = '';
|
|
24057
|
-
// if(xhr.status == 200) {
|
|
24058
|
-
|
|
24059
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24060
|
-
// //console.log(jsonRespose);
|
|
24061
|
-
// return jsonRespose;
|
|
24062
|
-
|
|
24063
|
-
// } else {
|
|
24064
|
-
|
|
24065
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24066
|
-
// this.setError(jsonRespose.error);
|
|
24067
|
-
|
|
24068
|
-
// }
|
|
24069
|
-
|
|
24070
|
-
// }
|
|
24071
|
-
|
|
24072
|
-
// fetchDocsJobs = async () => {
|
|
24073
|
-
|
|
24074
|
-
// let url = "https://"+this.apiId+"/getdocsjobs";
|
|
24075
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24076
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24077
|
-
// this._SfLoader.innerHTML = '';
|
|
24078
|
-
// if(xhr.status == 200) {
|
|
24079
|
-
|
|
24080
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24081
|
-
// //console.log(jsonRespose);
|
|
24082
|
-
// return jsonRespose;
|
|
24083
|
-
|
|
24084
|
-
// } else {
|
|
24085
|
-
|
|
24086
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24087
|
-
// this.setError(jsonRespose.error);
|
|
24088
|
-
|
|
24089
|
-
// }
|
|
24090
|
-
|
|
24091
|
-
// }
|
|
24092
|
-
|
|
24093
|
-
// fetchAuditorsJobs = async () => {
|
|
24094
|
-
|
|
24095
|
-
// let url = "https://"+this.apiId+"/getauditorsjobs";
|
|
24096
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24097
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24098
|
-
// this._SfLoader.innerHTML = '';
|
|
24099
|
-
// if(xhr.status == 200) {
|
|
24100
|
-
|
|
24101
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24102
|
-
// //console.log(jsonRespose);
|
|
24103
|
-
// return jsonRespose;
|
|
24104
|
-
|
|
24105
|
-
// } else {
|
|
24106
|
-
|
|
24107
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24108
|
-
// this.setError(jsonRespose.error);
|
|
24109
|
-
|
|
24110
|
-
// }
|
|
24111
|
-
|
|
24112
|
-
// }
|
|
24113
|
-
|
|
24114
|
-
// fetchViewersJobs = async () => {
|
|
24115
|
-
|
|
24116
|
-
// let url = "https://"+this.apiId+"/getviewersjobs";
|
|
24117
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24118
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24119
|
-
// this._SfLoader.innerHTML = '';
|
|
24120
|
-
// if(xhr.status == 200) {
|
|
24121
|
-
|
|
24122
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24123
|
-
// //console.log(jsonRespose);
|
|
24124
|
-
// return jsonRespose;
|
|
24125
|
-
|
|
24126
|
-
// } else {
|
|
24127
|
-
|
|
24128
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24129
|
-
// this.setError(jsonRespose.error);
|
|
24130
|
-
|
|
24131
|
-
// }
|
|
24132
|
-
|
|
24133
|
-
// }
|
|
24134
|
-
|
|
24135
|
-
// fetchReportersJobs = async () => {
|
|
24136
|
-
|
|
24137
|
-
// let url = "https://"+this.apiId+"/getreportersjobs";
|
|
24138
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24139
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24140
|
-
// this._SfLoader.innerHTML = '';
|
|
24141
|
-
// if(xhr.status == 200) {
|
|
24142
|
-
|
|
24143
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24144
|
-
// //console.log(jsonRespose);
|
|
24145
|
-
// return jsonRespose;
|
|
24146
|
-
|
|
24147
|
-
// } else {
|
|
24148
|
-
|
|
24149
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24150
|
-
// this.setError(jsonRespose.error);
|
|
24151
|
-
|
|
24152
|
-
// }
|
|
24153
|
-
|
|
24154
|
-
// }
|
|
24155
24064
|
|
|
24156
|
-
// fetchTagsJobs = async () => {
|
|
24157
|
-
|
|
24158
|
-
// let url = "https://"+this.apiId+"/gettagsjobs";
|
|
24159
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24160
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24161
|
-
// this._SfLoader.innerHTML = '';
|
|
24162
|
-
// if(xhr.status == 200) {
|
|
24163
|
-
|
|
24164
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24165
|
-
// //console.log(jsonRespose);
|
|
24166
|
-
// return jsonRespose;
|
|
24167
|
-
|
|
24168
|
-
// } else {
|
|
24169
|
-
|
|
24170
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24171
|
-
// this.setError(jsonRespose.error);
|
|
24172
|
-
|
|
24173
|
-
// }
|
|
24174
|
-
|
|
24175
|
-
// }
|
|
24176
|
-
|
|
24177
|
-
// fetchLocationsJobs = async () => {
|
|
24178
|
-
|
|
24179
|
-
// let url = "https://"+this.apiId+"/getlocationsjobs";
|
|
24180
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24181
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24182
|
-
// this._SfLoader.innerHTML = '';
|
|
24183
|
-
// if(xhr.status == 200) {
|
|
24184
|
-
|
|
24185
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24186
|
-
// //console.log(jsonRespose);
|
|
24187
|
-
// return jsonRespose;
|
|
24188
|
-
|
|
24189
|
-
// } else {
|
|
24190
|
-
|
|
24191
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24192
|
-
// this.setError(jsonRespose.error);
|
|
24193
|
-
|
|
24194
|
-
// }
|
|
24195
|
-
|
|
24196
|
-
// }
|
|
24197
|
-
|
|
24198
|
-
// fetchCountriesJobs = async () => {
|
|
24199
|
-
|
|
24200
|
-
// let url = "https://"+this.apiId+"/getcountriesjobs";
|
|
24201
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24202
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24203
|
-
// this._SfLoader.innerHTML = '';
|
|
24204
|
-
// if(xhr.status == 200) {
|
|
24205
|
-
|
|
24206
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24207
|
-
// //console.log(jsonRespose);
|
|
24208
|
-
// return jsonRespose;
|
|
24209
|
-
|
|
24210
|
-
// } else {
|
|
24211
|
-
|
|
24212
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24213
|
-
// this.setError(jsonRespose.error);
|
|
24214
|
-
|
|
24215
|
-
// }
|
|
24216
|
-
|
|
24217
|
-
// }
|
|
24218
|
-
|
|
24219
|
-
// fetchEntitiesJobs = async () => {
|
|
24220
|
-
|
|
24221
|
-
// let url = "https://"+this.apiId+"/getentitiesjobs";
|
|
24222
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24223
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24224
|
-
// this._SfLoader.innerHTML = '';
|
|
24225
|
-
// if(xhr.status == 200) {
|
|
24226
|
-
|
|
24227
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24228
|
-
// //console.log(jsonRespose);
|
|
24229
|
-
// return jsonRespose;
|
|
24230
|
-
|
|
24231
|
-
// } else {
|
|
24232
|
-
|
|
24233
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24234
|
-
// this.setError(jsonRespose.error);
|
|
24235
|
-
|
|
24236
|
-
// }
|
|
24237
|
-
|
|
24238
|
-
// }
|
|
24239
|
-
|
|
24240
|
-
// fetchFunctionJobs = async () => {
|
|
24241
|
-
|
|
24242
|
-
// let url = "https://"+this.apiId+"/getfunctionsjobs";
|
|
24243
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
24244
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
24245
|
-
// this._SfLoader.innerHTML = '';
|
|
24246
|
-
// if(xhr.status == 200) {
|
|
24247
|
-
|
|
24248
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24249
|
-
// //console.log(jsonRespose);
|
|
24250
|
-
// return jsonRespose;
|
|
24251
|
-
|
|
24252
|
-
// } else {
|
|
24253
|
-
|
|
24254
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
24255
|
-
// this.setError(jsonRespose.error);
|
|
24256
|
-
|
|
24257
|
-
// }
|
|
24258
|
-
|
|
24259
|
-
// }
|
|
24260
|
-
|
|
24261
24065
|
fetchCalendarJobs = async () => {
|
|
24262
24066
|
|
|
24263
24067
|
let url = "https://"+this.apiId+"/getcalendarjobs";
|
|
@@ -24271,7 +24075,10 @@ export class SfIEvents extends LitElement {
|
|
|
24271
24075
|
return jsonRespose;
|
|
24272
24076
|
|
|
24273
24077
|
} else {
|
|
24274
|
-
|
|
24078
|
+
if(xhr.status == 401){
|
|
24079
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24080
|
+
this.dispatchEvent(changeEvent);
|
|
24081
|
+
}
|
|
24275
24082
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
24276
24083
|
this.setError(jsonRespose.error);
|
|
24277
24084
|
|
|
@@ -24299,6 +24106,10 @@ export class SfIEvents extends LitElement {
|
|
|
24299
24106
|
this.processEvent(jsonRespose.data.value)
|
|
24300
24107
|
|
|
24301
24108
|
} else {
|
|
24109
|
+
if(xhr.status == 401){
|
|
24110
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24111
|
+
this.dispatchEvent(changeEvent);
|
|
24112
|
+
}
|
|
24302
24113
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
24303
24114
|
this.setError(jsonRespose.error);
|
|
24304
24115
|
}
|
|
@@ -24322,6 +24133,10 @@ export class SfIEvents extends LitElement {
|
|
|
24322
24133
|
return jsonRespose;
|
|
24323
24134
|
|
|
24324
24135
|
} else {
|
|
24136
|
+
if(xhr.status == 401){
|
|
24137
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24138
|
+
this.dispatchEvent(changeEvent);
|
|
24139
|
+
}
|
|
24325
24140
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
24326
24141
|
return jsonRespose;
|
|
24327
24142
|
|
|
@@ -24394,6 +24209,9 @@ export class SfIEvents extends LitElement {
|
|
|
24394
24209
|
//console.log(jsonRespose);
|
|
24395
24210
|
return registers;
|
|
24396
24211
|
|
|
24212
|
+
}else if(xhr.status == 401){
|
|
24213
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24214
|
+
this.dispatchEvent(changeEvent);
|
|
24397
24215
|
}
|
|
24398
24216
|
|
|
24399
24217
|
}
|
|
@@ -24528,7 +24346,10 @@ export class SfIEvents extends LitElement {
|
|
|
24528
24346
|
|
|
24529
24347
|
|
|
24530
24348
|
} else {
|
|
24531
|
-
|
|
24349
|
+
if(xhr.status == 401){
|
|
24350
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24351
|
+
this.dispatchEvent(changeEvent);
|
|
24352
|
+
}
|
|
24532
24353
|
if(xhr.status === 404) {
|
|
24533
24354
|
|
|
24534
24355
|
this.showChosenProject();
|
|
@@ -24604,7 +24425,10 @@ export class SfIEvents extends LitElement {
|
|
|
24604
24425
|
this.renderAppropriateStream(this.sdate,this.edate,true);
|
|
24605
24426
|
console.log('notices', notices, tempEvents);
|
|
24606
24427
|
} else {
|
|
24607
|
-
|
|
24428
|
+
if(xhr.status == 401){
|
|
24429
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24430
|
+
this.dispatchEvent(changeEvent);
|
|
24431
|
+
}
|
|
24608
24432
|
if(xhr.status === 404) {
|
|
24609
24433
|
|
|
24610
24434
|
this.showChosenProject();
|
|
@@ -24687,6 +24511,10 @@ export class SfIEvents extends LitElement {
|
|
|
24687
24511
|
return jsonRespose.meta
|
|
24688
24512
|
|
|
24689
24513
|
} else {
|
|
24514
|
+
if(xhr.status == 401){
|
|
24515
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24516
|
+
this.dispatchEvent(changeEvent);
|
|
24517
|
+
}
|
|
24690
24518
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
24691
24519
|
this.setError(jsonRespose.error);
|
|
24692
24520
|
}
|
|
@@ -24746,6 +24574,9 @@ export class SfIEvents extends LitElement {
|
|
|
24746
24574
|
// backgroundProcessButton.style.display = 'none'
|
|
24747
24575
|
}
|
|
24748
24576
|
}
|
|
24577
|
+
}else if(xhr.status == 401){
|
|
24578
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24579
|
+
this.dispatchEvent(changeEvent);
|
|
24749
24580
|
}
|
|
24750
24581
|
}
|
|
24751
24582
|
|
|
@@ -24770,7 +24601,10 @@ export class SfIEvents extends LitElement {
|
|
|
24770
24601
|
// this.renderChosenProject(events);
|
|
24771
24602
|
|
|
24772
24603
|
} else {
|
|
24773
|
-
|
|
24604
|
+
if(xhr.status == 401){
|
|
24605
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24606
|
+
this.dispatchEvent(changeEvent);
|
|
24607
|
+
}
|
|
24774
24608
|
if(xhr.status === 404) {
|
|
24775
24609
|
|
|
24776
24610
|
this.showChosenProject();
|
|
@@ -24809,7 +24643,10 @@ export class SfIEvents extends LitElement {
|
|
|
24809
24643
|
// this.renderChosenProject(events);
|
|
24810
24644
|
|
|
24811
24645
|
} else {
|
|
24812
|
-
|
|
24646
|
+
if(xhr.status == 401){
|
|
24647
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24648
|
+
this.dispatchEvent(changeEvent);
|
|
24649
|
+
}
|
|
24813
24650
|
if(xhr.status === 404) {
|
|
24814
24651
|
|
|
24815
24652
|
this.showChosenProject();
|
|
@@ -24837,7 +24674,10 @@ export class SfIEvents extends LitElement {
|
|
|
24837
24674
|
//console.log(jsonRespose);
|
|
24838
24675
|
|
|
24839
24676
|
} else {
|
|
24840
|
-
|
|
24677
|
+
if(xhr.status == 401){
|
|
24678
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24679
|
+
this.dispatchEvent(changeEvent);
|
|
24680
|
+
}
|
|
24841
24681
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
24842
24682
|
this.setError(jsonRespose.error);
|
|
24843
24683
|
this.fetchList();
|
|
@@ -24877,7 +24717,10 @@ export class SfIEvents extends LitElement {
|
|
|
24877
24717
|
return jsonRespose;
|
|
24878
24718
|
|
|
24879
24719
|
} else {
|
|
24880
|
-
|
|
24720
|
+
if(xhr.status == 401){
|
|
24721
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24722
|
+
this.dispatchEvent(changeEvent);
|
|
24723
|
+
}
|
|
24881
24724
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
24882
24725
|
this.setError(jsonRespose.error);
|
|
24883
24726
|
this.fetchList();
|
|
@@ -24915,7 +24758,10 @@ export class SfIEvents extends LitElement {
|
|
|
24915
24758
|
}
|
|
24916
24759
|
|
|
24917
24760
|
} else {
|
|
24918
|
-
|
|
24761
|
+
if(xhr.status == 401){
|
|
24762
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24763
|
+
this.dispatchEvent(changeEvent);
|
|
24764
|
+
}
|
|
24919
24765
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
24920
24766
|
this.setError(jsonRespose.error);
|
|
24921
24767
|
this.fetchList();
|
|
@@ -24968,6 +24814,10 @@ export class SfIEvents extends LitElement {
|
|
|
24968
24814
|
//await this.fetchAdhoc(true);
|
|
24969
24815
|
|
|
24970
24816
|
} else {
|
|
24817
|
+
if(xhr.status == 401){
|
|
24818
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
24819
|
+
this.dispatchEvent(changeEvent);
|
|
24820
|
+
}
|
|
24971
24821
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
24972
24822
|
this.setError(jsonRespose.error);
|
|
24973
24823
|
}
|
|
@@ -25230,6 +25080,10 @@ export class SfIEvents extends LitElement {
|
|
|
25230
25080
|
}, 2000);
|
|
25231
25081
|
|
|
25232
25082
|
} else {
|
|
25083
|
+
if(xhr.status == 401){
|
|
25084
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
25085
|
+
this.dispatchEvent(changeEvent);
|
|
25086
|
+
}
|
|
25233
25087
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
25234
25088
|
this.setError(jsonRespose.error);
|
|
25235
25089
|
setTimeout(() => {
|
|
@@ -25273,7 +25127,10 @@ export class SfIEvents extends LitElement {
|
|
|
25273
25127
|
// this.renderRoleTabsNext(jsonRespose.data, page)
|
|
25274
25128
|
this.renderNextEvents(jsonRespose.data, page, role);
|
|
25275
25129
|
} else {
|
|
25276
|
-
|
|
25130
|
+
if(xhr.status == 401){
|
|
25131
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
25132
|
+
this.dispatchEvent(changeEvent);
|
|
25133
|
+
}
|
|
25277
25134
|
if(xhr.status === 404) {
|
|
25278
25135
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
25279
25136
|
this.setError(jsonRespose.error);
|
|
@@ -25776,7 +25633,10 @@ export class SfIEvents extends LitElement {
|
|
|
25776
25633
|
console.log('report',arrReports['3/31/*,30;c989a44e-7d3d-427e-b712-90eacf585075;38dc8c53-643f-4fee-83fe-f15239606277;0a5fb99f-c36f-46c0-85b4-7fa3d48fa134']);
|
|
25777
25634
|
this.renderReports(arrReports)
|
|
25778
25635
|
} else {
|
|
25779
|
-
|
|
25636
|
+
if(xhr.status == 401){
|
|
25637
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
25638
|
+
this.dispatchEvent(changeEvent);
|
|
25639
|
+
}
|
|
25780
25640
|
if(xhr.status === 404) {
|
|
25781
25641
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
25782
25642
|
this.setError(jsonRespose.error);
|
|
@@ -25953,7 +25813,10 @@ export class SfIEvents extends LitElement {
|
|
|
25953
25813
|
console.log('receivedCompliacnes', arrCompliances)
|
|
25954
25814
|
// this.renderReportsComplainces(arrCompliances, sortid);
|
|
25955
25815
|
} else {
|
|
25956
|
-
|
|
25816
|
+
if(xhr.status == 401){
|
|
25817
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
25818
|
+
this.dispatchEvent(changeEvent);
|
|
25819
|
+
}
|
|
25957
25820
|
if(xhr.status === 404) {
|
|
25958
25821
|
|
|
25959
25822
|
this.showChosenProject();
|
|
@@ -26035,7 +25898,10 @@ export class SfIEvents extends LitElement {
|
|
|
26035
25898
|
console.log('receivedCompliacnes', arrCompliances)
|
|
26036
25899
|
this.renderReportsComplainces(arrCompliances, sortid);
|
|
26037
25900
|
} else {
|
|
26038
|
-
|
|
25901
|
+
if(xhr.status == 401){
|
|
25902
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
25903
|
+
this.dispatchEvent(changeEvent);
|
|
25904
|
+
}
|
|
26039
25905
|
if(xhr.status === 404) {
|
|
26040
25906
|
|
|
26041
25907
|
this.showChosenProject();
|
|
@@ -26185,7 +26051,10 @@ export class SfIEvents extends LitElement {
|
|
|
26185
26051
|
}, 3000)
|
|
26186
26052
|
|
|
26187
26053
|
} else {
|
|
26188
|
-
|
|
26054
|
+
if(xhr.status == 401){
|
|
26055
|
+
let changeEvent = new CustomEvent('tokenExpired',{bubbles:true});
|
|
26056
|
+
this.dispatchEvent(changeEvent);
|
|
26057
|
+
}
|
|
26189
26058
|
if(xhr.status === 404) {
|
|
26190
26059
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
26191
26060
|
this.setError(jsonRespose.error);
|
|
@@ -26601,7 +26470,7 @@ export class SfIEvents extends LitElement {
|
|
|
26601
26470
|
`;
|
|
26602
26471
|
|
|
26603
26472
|
} else if(this.mode == "downloader") {
|
|
26604
|
-
|
|
26473
|
+
/* eslint-disable lit/no-unknown-attribute */
|
|
26605
26474
|
return html`
|
|
26606
26475
|
|
|
26607
26476
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
@@ -26651,7 +26520,7 @@ export class SfIEvents extends LitElement {
|
|
|
26651
26520
|
</div>
|
|
26652
26521
|
|
|
26653
26522
|
`;
|
|
26654
|
-
|
|
26523
|
+
/* eslint-disable lit/no-unknown-attribute */
|
|
26655
26524
|
} else if(this.mode == "next"){
|
|
26656
26525
|
|
|
26657
26526
|
return html`
|