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/sf-i-events.js
CHANGED
|
@@ -8938,6 +8938,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8938
8938
|
console.log('jsonRespose notice details', jsonRespose);
|
|
8939
8939
|
}
|
|
8940
8940
|
else {
|
|
8941
|
+
if (xhr.status == 401) {
|
|
8942
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
8943
|
+
this.dispatchEvent(changeEvent);
|
|
8944
|
+
}
|
|
8941
8945
|
if (xhr.status === 404) {
|
|
8942
8946
|
this.showChosenProject();
|
|
8943
8947
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -9671,6 +9675,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9671
9675
|
}
|
|
9672
9676
|
}
|
|
9673
9677
|
else {
|
|
9678
|
+
if (xhr.status == 401) {
|
|
9679
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
9680
|
+
this.dispatchEvent(changeEvent);
|
|
9681
|
+
}
|
|
9674
9682
|
if (xhr.status === 404) {
|
|
9675
9683
|
this.showChosenProject();
|
|
9676
9684
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -16765,6 +16773,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16765
16773
|
this._SfLoader.innerHTML = '';
|
|
16766
16774
|
}
|
|
16767
16775
|
else {
|
|
16776
|
+
if (xhr.status == 401) {
|
|
16777
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16778
|
+
this.dispatchEvent(changeEvent);
|
|
16779
|
+
}
|
|
16768
16780
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16769
16781
|
this.setError(jsonRespose.error);
|
|
16770
16782
|
setTimeout(() => {
|
|
@@ -16801,6 +16813,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16801
16813
|
this._SfLoader.innerHTML = '';
|
|
16802
16814
|
}
|
|
16803
16815
|
else {
|
|
16816
|
+
if (xhr.status == 401) {
|
|
16817
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16818
|
+
this.dispatchEvent(changeEvent);
|
|
16819
|
+
}
|
|
16804
16820
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16805
16821
|
this.setError(jsonRespose.error);
|
|
16806
16822
|
setTimeout(() => {
|
|
@@ -16845,6 +16861,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16845
16861
|
this._SfLoader.innerHTML = '';
|
|
16846
16862
|
}
|
|
16847
16863
|
else {
|
|
16864
|
+
if (xhr.status == 401) {
|
|
16865
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16866
|
+
this.dispatchEvent(changeEvent);
|
|
16867
|
+
}
|
|
16848
16868
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16849
16869
|
this.setError(jsonRespose.error);
|
|
16850
16870
|
setTimeout(() => {
|
|
@@ -16868,6 +16888,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16868
16888
|
}, 3000);
|
|
16869
16889
|
}
|
|
16870
16890
|
else {
|
|
16891
|
+
if (xhr.status == 401) {
|
|
16892
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16893
|
+
this.dispatchEvent(changeEvent);
|
|
16894
|
+
}
|
|
16871
16895
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16872
16896
|
this.setError(jsonRespose.error);
|
|
16873
16897
|
setTimeout(() => {
|
|
@@ -16902,6 +16926,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16902
16926
|
}, 5000);
|
|
16903
16927
|
}
|
|
16904
16928
|
else {
|
|
16929
|
+
if (xhr.status == 401) {
|
|
16930
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16931
|
+
this.dispatchEvent(changeEvent);
|
|
16932
|
+
}
|
|
16905
16933
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16906
16934
|
this.setError(jsonRespose.error);
|
|
16907
16935
|
setTimeout(() => {
|
|
@@ -16928,6 +16956,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16928
16956
|
}, 3000);
|
|
16929
16957
|
}
|
|
16930
16958
|
else {
|
|
16959
|
+
if (xhr.status == 401) {
|
|
16960
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16961
|
+
this.dispatchEvent(changeEvent);
|
|
16962
|
+
}
|
|
16931
16963
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16932
16964
|
this.setError(jsonRespose.error);
|
|
16933
16965
|
setTimeout(() => {
|
|
@@ -16970,6 +17002,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16970
17002
|
}, 2000);
|
|
16971
17003
|
}
|
|
16972
17004
|
else {
|
|
17005
|
+
if (xhr.status == 401) {
|
|
17006
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17007
|
+
this.dispatchEvent(changeEvent);
|
|
17008
|
+
}
|
|
16973
17009
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16974
17010
|
this.setError(jsonRespose.error);
|
|
16975
17011
|
retValue = false;
|
|
@@ -16988,6 +17024,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16988
17024
|
}, 10000);
|
|
16989
17025
|
}
|
|
16990
17026
|
else {
|
|
17027
|
+
if (xhr.status == 401) {
|
|
17028
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17029
|
+
this.dispatchEvent(changeEvent);
|
|
17030
|
+
}
|
|
16991
17031
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16992
17032
|
this.setError(jsonRespose.error);
|
|
16993
17033
|
}
|
|
@@ -17028,6 +17068,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17028
17068
|
}, 2000);
|
|
17029
17069
|
}
|
|
17030
17070
|
else {
|
|
17071
|
+
if (xhr.status == 401) {
|
|
17072
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17073
|
+
this.dispatchEvent(changeEvent);
|
|
17074
|
+
}
|
|
17031
17075
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17032
17076
|
this.setError(jsonRespose.error);
|
|
17033
17077
|
setTimeout(() => {
|
|
@@ -17049,6 +17093,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17049
17093
|
}, 10000);
|
|
17050
17094
|
}
|
|
17051
17095
|
else {
|
|
17096
|
+
if (xhr.status == 401) {
|
|
17097
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17098
|
+
this.dispatchEvent(changeEvent);
|
|
17099
|
+
}
|
|
17052
17100
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17053
17101
|
this.setError(jsonRespose.error);
|
|
17054
17102
|
setTimeout(() => {
|
|
@@ -17068,6 +17116,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17068
17116
|
}, 10000);
|
|
17069
17117
|
}
|
|
17070
17118
|
else {
|
|
17119
|
+
if (xhr.status == 401) {
|
|
17120
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17121
|
+
this.dispatchEvent(changeEvent);
|
|
17122
|
+
}
|
|
17071
17123
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17072
17124
|
this.setError(jsonRespose.error);
|
|
17073
17125
|
setTimeout(() => {
|
|
@@ -17119,6 +17171,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17119
17171
|
}, 2000);
|
|
17120
17172
|
}
|
|
17121
17173
|
else {
|
|
17174
|
+
if (xhr.status == 401) {
|
|
17175
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17176
|
+
this.dispatchEvent(changeEvent);
|
|
17177
|
+
}
|
|
17122
17178
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17123
17179
|
console.log();
|
|
17124
17180
|
this.setError(jsonRespose.error);
|
|
@@ -17145,6 +17201,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17145
17201
|
}
|
|
17146
17202
|
}
|
|
17147
17203
|
else {
|
|
17204
|
+
if (xhr.status == 401) {
|
|
17205
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17206
|
+
this.dispatchEvent(changeEvent);
|
|
17207
|
+
}
|
|
17148
17208
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17149
17209
|
this.setError(jsonRespose.error);
|
|
17150
17210
|
setTimeout(() => {
|
|
@@ -17180,6 +17240,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17180
17240
|
}, 2000);
|
|
17181
17241
|
}
|
|
17182
17242
|
else {
|
|
17243
|
+
if (xhr.status == 401) {
|
|
17244
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17245
|
+
this.dispatchEvent(changeEvent);
|
|
17246
|
+
}
|
|
17183
17247
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17184
17248
|
this.setError(jsonRespose.error);
|
|
17185
17249
|
}
|
|
@@ -17199,6 +17263,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17199
17263
|
this.renderMappingTabs(this.TAB_REPORTER);
|
|
17200
17264
|
}
|
|
17201
17265
|
else {
|
|
17266
|
+
if (xhr.status == 401) {
|
|
17267
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17268
|
+
this.dispatchEvent(changeEvent);
|
|
17269
|
+
}
|
|
17202
17270
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17203
17271
|
this.setError(jsonRespose.error);
|
|
17204
17272
|
}
|
|
@@ -17214,6 +17282,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17214
17282
|
//console.log('jsonResponse sync', jsonRespose);
|
|
17215
17283
|
}
|
|
17216
17284
|
else {
|
|
17285
|
+
if (xhr.status == 401) {
|
|
17286
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17287
|
+
this.dispatchEvent(changeEvent);
|
|
17288
|
+
}
|
|
17217
17289
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17218
17290
|
this.setError(jsonRespose.error);
|
|
17219
17291
|
}
|
|
@@ -17310,6 +17382,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17310
17382
|
return jsonRespose;
|
|
17311
17383
|
}
|
|
17312
17384
|
else {
|
|
17385
|
+
if (xhr.status == 401) {
|
|
17386
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17387
|
+
this.dispatchEvent(changeEvent);
|
|
17388
|
+
}
|
|
17313
17389
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17314
17390
|
this.setError(jsonRespose.error);
|
|
17315
17391
|
}
|
|
@@ -17325,6 +17401,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17325
17401
|
return jsonRespose;
|
|
17326
17402
|
}
|
|
17327
17403
|
else {
|
|
17404
|
+
if (xhr.status == 401) {
|
|
17405
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17406
|
+
this.dispatchEvent(changeEvent);
|
|
17407
|
+
}
|
|
17328
17408
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17329
17409
|
this.setError(jsonRespose.error);
|
|
17330
17410
|
}
|
|
@@ -17340,6 +17420,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17340
17420
|
return jsonRespose;
|
|
17341
17421
|
}
|
|
17342
17422
|
else {
|
|
17423
|
+
if (xhr.status == 401) {
|
|
17424
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17425
|
+
this.dispatchEvent(changeEvent);
|
|
17426
|
+
}
|
|
17343
17427
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17344
17428
|
this.setError(jsonRespose.error);
|
|
17345
17429
|
}
|
|
@@ -17376,6 +17460,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17376
17460
|
return jsonRespose;
|
|
17377
17461
|
}
|
|
17378
17462
|
else {
|
|
17463
|
+
if (xhr.status == 401) {
|
|
17464
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17465
|
+
this.dispatchEvent(changeEvent);
|
|
17466
|
+
}
|
|
17379
17467
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17380
17468
|
this.setError(jsonRespose.error);
|
|
17381
17469
|
}
|
|
@@ -17391,6 +17479,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17391
17479
|
return jsonRespose;
|
|
17392
17480
|
}
|
|
17393
17481
|
else {
|
|
17482
|
+
if (xhr.status == 401) {
|
|
17483
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17484
|
+
this.dispatchEvent(changeEvent);
|
|
17485
|
+
}
|
|
17394
17486
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17395
17487
|
this.setError(jsonRespose.error);
|
|
17396
17488
|
}
|
|
@@ -17406,6 +17498,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17406
17498
|
return jsonRespose;
|
|
17407
17499
|
}
|
|
17408
17500
|
else {
|
|
17501
|
+
if (xhr.status == 401) {
|
|
17502
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17503
|
+
this.dispatchEvent(changeEvent);
|
|
17504
|
+
}
|
|
17409
17505
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17410
17506
|
this.setError(jsonRespose.error);
|
|
17411
17507
|
}
|
|
@@ -17479,6 +17575,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17479
17575
|
return jsonRespose;
|
|
17480
17576
|
}
|
|
17481
17577
|
else {
|
|
17578
|
+
if (xhr.status == 401) {
|
|
17579
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17580
|
+
this.dispatchEvent(changeEvent);
|
|
17581
|
+
}
|
|
17482
17582
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17483
17583
|
this.setError(jsonRespose.error);
|
|
17484
17584
|
}
|
|
@@ -17554,6 +17654,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17554
17654
|
return jsonRespose;
|
|
17555
17655
|
}
|
|
17556
17656
|
else {
|
|
17657
|
+
if (xhr.status == 401) {
|
|
17658
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17659
|
+
this.dispatchEvent(changeEvent);
|
|
17660
|
+
}
|
|
17557
17661
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17558
17662
|
this.setError(jsonRespose.error);
|
|
17559
17663
|
}
|
|
@@ -17592,6 +17696,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17592
17696
|
return jsonRespose;
|
|
17593
17697
|
}
|
|
17594
17698
|
else {
|
|
17699
|
+
if (xhr.status == 401) {
|
|
17700
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17701
|
+
this.dispatchEvent(changeEvent);
|
|
17702
|
+
}
|
|
17595
17703
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17596
17704
|
this.setError(jsonRespose.error);
|
|
17597
17705
|
}
|
|
@@ -17628,6 +17736,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17628
17736
|
return jsonRespose;
|
|
17629
17737
|
}
|
|
17630
17738
|
else {
|
|
17739
|
+
if (xhr.status == 401) {
|
|
17740
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17741
|
+
this.dispatchEvent(changeEvent);
|
|
17742
|
+
}
|
|
17631
17743
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17632
17744
|
this.setError(jsonRespose.error);
|
|
17633
17745
|
}
|
|
@@ -17643,6 +17755,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17643
17755
|
return jsonRespose;
|
|
17644
17756
|
}
|
|
17645
17757
|
else {
|
|
17758
|
+
if (xhr.status == 401) {
|
|
17759
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17760
|
+
this.dispatchEvent(changeEvent);
|
|
17761
|
+
}
|
|
17646
17762
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17647
17763
|
this.setError(jsonRespose.error);
|
|
17648
17764
|
}
|
|
@@ -17658,6 +17774,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17658
17774
|
return jsonRespose;
|
|
17659
17775
|
}
|
|
17660
17776
|
else {
|
|
17777
|
+
if (xhr.status == 401) {
|
|
17778
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17779
|
+
this.dispatchEvent(changeEvent);
|
|
17780
|
+
}
|
|
17661
17781
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17662
17782
|
this.setError(jsonRespose.error);
|
|
17663
17783
|
}
|
|
@@ -17673,6 +17793,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17673
17793
|
return jsonRespose;
|
|
17674
17794
|
}
|
|
17675
17795
|
else {
|
|
17796
|
+
if (xhr.status == 401) {
|
|
17797
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17798
|
+
this.dispatchEvent(changeEvent);
|
|
17799
|
+
}
|
|
17676
17800
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17677
17801
|
this.setError(jsonRespose.error);
|
|
17678
17802
|
}
|
|
@@ -17688,6 +17812,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17688
17812
|
return jsonRespose;
|
|
17689
17813
|
}
|
|
17690
17814
|
else {
|
|
17815
|
+
if (xhr.status == 401) {
|
|
17816
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17817
|
+
this.dispatchEvent(changeEvent);
|
|
17818
|
+
}
|
|
17691
17819
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17692
17820
|
this.setError(jsonRespose.error);
|
|
17693
17821
|
}
|
|
@@ -17710,6 +17838,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17710
17838
|
// return jsonRespose;
|
|
17711
17839
|
}
|
|
17712
17840
|
else {
|
|
17841
|
+
if (xhr.status == 401) {
|
|
17842
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17843
|
+
this.dispatchEvent(changeEvent);
|
|
17844
|
+
}
|
|
17713
17845
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17714
17846
|
this.setError(jsonRespose.error);
|
|
17715
17847
|
}
|
|
@@ -17834,6 +17966,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17834
17966
|
// }
|
|
17835
17967
|
}
|
|
17836
17968
|
else {
|
|
17969
|
+
if (xhr.status == 401) {
|
|
17970
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17971
|
+
this.dispatchEvent(changeEvent);
|
|
17972
|
+
}
|
|
17837
17973
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17838
17974
|
this.setError(jsonRespose.error);
|
|
17839
17975
|
}
|
|
@@ -17866,6 +18002,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17866
18002
|
}
|
|
17867
18003
|
}
|
|
17868
18004
|
else {
|
|
18005
|
+
if (xhr.status == 401) {
|
|
18006
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18007
|
+
this.dispatchEvent(changeEvent);
|
|
18008
|
+
}
|
|
17869
18009
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17870
18010
|
this.setError(jsonRespose.error);
|
|
17871
18011
|
}
|
|
@@ -17952,6 +18092,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17952
18092
|
return resultPresigned;
|
|
17953
18093
|
}
|
|
17954
18094
|
else {
|
|
18095
|
+
if (xhr.status == 401) {
|
|
18096
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18097
|
+
this.dispatchEvent(changeEvent);
|
|
18098
|
+
}
|
|
17955
18099
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17956
18100
|
this.setError(jsonRespose.error);
|
|
17957
18101
|
}
|
|
@@ -17967,6 +18111,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17967
18111
|
return jsonRespose;
|
|
17968
18112
|
}
|
|
17969
18113
|
else {
|
|
18114
|
+
if (xhr.status == 401) {
|
|
18115
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18116
|
+
this.dispatchEvent(changeEvent);
|
|
18117
|
+
}
|
|
17970
18118
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17971
18119
|
this.setError(jsonRespose.error);
|
|
17972
18120
|
}
|
|
@@ -17982,6 +18130,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17982
18130
|
return jsonRespose;
|
|
17983
18131
|
}
|
|
17984
18132
|
else {
|
|
18133
|
+
if (xhr.status == 401) {
|
|
18134
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18135
|
+
this.dispatchEvent(changeEvent);
|
|
18136
|
+
}
|
|
17985
18137
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17986
18138
|
this.setError(jsonRespose.error);
|
|
17987
18139
|
}
|
|
@@ -18002,6 +18154,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18002
18154
|
return jsonRespose;
|
|
18003
18155
|
}
|
|
18004
18156
|
else {
|
|
18157
|
+
if (xhr.status == 401) {
|
|
18158
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18159
|
+
this.dispatchEvent(changeEvent);
|
|
18160
|
+
}
|
|
18005
18161
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18006
18162
|
this.setError(jsonRespose.error);
|
|
18007
18163
|
}
|
|
@@ -18017,6 +18173,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18017
18173
|
return jsonRespose;
|
|
18018
18174
|
}
|
|
18019
18175
|
else {
|
|
18176
|
+
if (xhr.status == 401) {
|
|
18177
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18178
|
+
this.dispatchEvent(changeEvent);
|
|
18179
|
+
}
|
|
18020
18180
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18021
18181
|
this.setError(jsonRespose.error);
|
|
18022
18182
|
}
|
|
@@ -18032,234 +18192,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18032
18192
|
return jsonRespose;
|
|
18033
18193
|
}
|
|
18034
18194
|
else {
|
|
18195
|
+
if (xhr.status == 401) {
|
|
18196
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18197
|
+
this.dispatchEvent(changeEvent);
|
|
18198
|
+
}
|
|
18035
18199
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18036
18200
|
this.setError(jsonRespose.error);
|
|
18037
18201
|
}
|
|
18038
18202
|
};
|
|
18039
|
-
// fetchInternalControlsJobs = async () => {
|
|
18040
|
-
// let url = "https://"+this.apiId+"/getinternalcontrolsjobs";
|
|
18041
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18042
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18043
|
-
// this._SfLoader.innerHTML = '';
|
|
18044
|
-
// if(xhr.status == 200) {
|
|
18045
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18046
|
-
// //console.log(jsonRespose);
|
|
18047
|
-
// return jsonRespose;
|
|
18048
|
-
// } else {
|
|
18049
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18050
|
-
// this.setError(jsonRespose.error);
|
|
18051
|
-
// }
|
|
18052
|
-
// }
|
|
18053
|
-
// fetchExtensionsJobs = async () => {
|
|
18054
|
-
// let url = "https://"+this.apiId+"/getalertschedulesjobs";
|
|
18055
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18056
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18057
|
-
// this._SfLoader.innerHTML = '';
|
|
18058
|
-
// if(xhr.status == 200) {
|
|
18059
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18060
|
-
// //console.log(jsonRespose);
|
|
18061
|
-
// return jsonRespose;
|
|
18062
|
-
// } else {
|
|
18063
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18064
|
-
// this.setError(jsonRespose.error);
|
|
18065
|
-
// }
|
|
18066
|
-
// }
|
|
18067
|
-
// fetchAlertSchedulesJobs = async () => {
|
|
18068
|
-
// let url = "https://"+this.apiId+"/getalertschedulesjobs";
|
|
18069
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18070
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18071
|
-
// this._SfLoader.innerHTML = '';
|
|
18072
|
-
// if(xhr.status == 200) {
|
|
18073
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18074
|
-
// //console.log(jsonRespose);
|
|
18075
|
-
// return jsonRespose;
|
|
18076
|
-
// } else {
|
|
18077
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18078
|
-
// this.setError(jsonRespose.error);
|
|
18079
|
-
// }
|
|
18080
|
-
// }
|
|
18081
|
-
// fetchDueDatesJobs = async () => {
|
|
18082
|
-
// let url = "https://"+this.apiId+"/getduedatesjobs";
|
|
18083
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18084
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18085
|
-
// this._SfLoader.innerHTML = '';
|
|
18086
|
-
// if(xhr.status == 200) {
|
|
18087
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18088
|
-
// //console.log(jsonRespose);
|
|
18089
|
-
// return jsonRespose;
|
|
18090
|
-
// } else {
|
|
18091
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18092
|
-
// this.setError(jsonRespose.error);
|
|
18093
|
-
// }
|
|
18094
|
-
// }
|
|
18095
|
-
// fetchApproversJobs = async () => {
|
|
18096
|
-
// let url = "https://"+this.apiId+"/getapproversjobs";
|
|
18097
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18098
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18099
|
-
// this._SfLoader.innerHTML = '';
|
|
18100
|
-
// if(xhr.status == 200) {
|
|
18101
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18102
|
-
// //console.log(jsonRespose);
|
|
18103
|
-
// return jsonRespose;
|
|
18104
|
-
// } else {
|
|
18105
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18106
|
-
// this.setError(jsonRespose.error);
|
|
18107
|
-
// }
|
|
18108
|
-
// }
|
|
18109
|
-
// fetchFunctionHeadsJobs = async () => {
|
|
18110
|
-
// let url = "https://"+this.apiId+"/getfunctionheadsjobs";
|
|
18111
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18112
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18113
|
-
// this._SfLoader.innerHTML = '';
|
|
18114
|
-
// if(xhr.status == 200) {
|
|
18115
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18116
|
-
// //console.log(jsonRespose);
|
|
18117
|
-
// return jsonRespose;
|
|
18118
|
-
// } else {
|
|
18119
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18120
|
-
// this.setError(jsonRespose.error);
|
|
18121
|
-
// }
|
|
18122
|
-
// }
|
|
18123
|
-
// fetchMakerCheckersJobs = async () => {
|
|
18124
|
-
// let url = "https://"+this.apiId+"/getmakercheckersjobs";
|
|
18125
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18126
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18127
|
-
// this._SfLoader.innerHTML = '';
|
|
18128
|
-
// if(xhr.status == 200) {
|
|
18129
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18130
|
-
// //console.log(jsonRespose);
|
|
18131
|
-
// return jsonRespose;
|
|
18132
|
-
// } else {
|
|
18133
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18134
|
-
// this.setError(jsonRespose.error);
|
|
18135
|
-
// }
|
|
18136
|
-
// }
|
|
18137
|
-
// fetchDocsJobs = async () => {
|
|
18138
|
-
// let url = "https://"+this.apiId+"/getdocsjobs";
|
|
18139
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18140
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18141
|
-
// this._SfLoader.innerHTML = '';
|
|
18142
|
-
// if(xhr.status == 200) {
|
|
18143
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18144
|
-
// //console.log(jsonRespose);
|
|
18145
|
-
// return jsonRespose;
|
|
18146
|
-
// } else {
|
|
18147
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18148
|
-
// this.setError(jsonRespose.error);
|
|
18149
|
-
// }
|
|
18150
|
-
// }
|
|
18151
|
-
// fetchAuditorsJobs = async () => {
|
|
18152
|
-
// let url = "https://"+this.apiId+"/getauditorsjobs";
|
|
18153
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18154
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18155
|
-
// this._SfLoader.innerHTML = '';
|
|
18156
|
-
// if(xhr.status == 200) {
|
|
18157
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18158
|
-
// //console.log(jsonRespose);
|
|
18159
|
-
// return jsonRespose;
|
|
18160
|
-
// } else {
|
|
18161
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18162
|
-
// this.setError(jsonRespose.error);
|
|
18163
|
-
// }
|
|
18164
|
-
// }
|
|
18165
|
-
// fetchViewersJobs = async () => {
|
|
18166
|
-
// let url = "https://"+this.apiId+"/getviewersjobs";
|
|
18167
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18168
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18169
|
-
// this._SfLoader.innerHTML = '';
|
|
18170
|
-
// if(xhr.status == 200) {
|
|
18171
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18172
|
-
// //console.log(jsonRespose);
|
|
18173
|
-
// return jsonRespose;
|
|
18174
|
-
// } else {
|
|
18175
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18176
|
-
// this.setError(jsonRespose.error);
|
|
18177
|
-
// }
|
|
18178
|
-
// }
|
|
18179
|
-
// fetchReportersJobs = async () => {
|
|
18180
|
-
// let url = "https://"+this.apiId+"/getreportersjobs";
|
|
18181
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18182
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18183
|
-
// this._SfLoader.innerHTML = '';
|
|
18184
|
-
// if(xhr.status == 200) {
|
|
18185
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18186
|
-
// //console.log(jsonRespose);
|
|
18187
|
-
// return jsonRespose;
|
|
18188
|
-
// } else {
|
|
18189
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18190
|
-
// this.setError(jsonRespose.error);
|
|
18191
|
-
// }
|
|
18192
|
-
// }
|
|
18193
|
-
// fetchTagsJobs = async () => {
|
|
18194
|
-
// let url = "https://"+this.apiId+"/gettagsjobs";
|
|
18195
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18196
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18197
|
-
// this._SfLoader.innerHTML = '';
|
|
18198
|
-
// if(xhr.status == 200) {
|
|
18199
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18200
|
-
// //console.log(jsonRespose);
|
|
18201
|
-
// return jsonRespose;
|
|
18202
|
-
// } else {
|
|
18203
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18204
|
-
// this.setError(jsonRespose.error);
|
|
18205
|
-
// }
|
|
18206
|
-
// }
|
|
18207
|
-
// fetchLocationsJobs = async () => {
|
|
18208
|
-
// let url = "https://"+this.apiId+"/getlocationsjobs";
|
|
18209
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18210
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18211
|
-
// this._SfLoader.innerHTML = '';
|
|
18212
|
-
// if(xhr.status == 200) {
|
|
18213
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18214
|
-
// //console.log(jsonRespose);
|
|
18215
|
-
// return jsonRespose;
|
|
18216
|
-
// } else {
|
|
18217
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18218
|
-
// this.setError(jsonRespose.error);
|
|
18219
|
-
// }
|
|
18220
|
-
// }
|
|
18221
|
-
// fetchCountriesJobs = async () => {
|
|
18222
|
-
// let url = "https://"+this.apiId+"/getcountriesjobs";
|
|
18223
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18224
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18225
|
-
// this._SfLoader.innerHTML = '';
|
|
18226
|
-
// if(xhr.status == 200) {
|
|
18227
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18228
|
-
// //console.log(jsonRespose);
|
|
18229
|
-
// return jsonRespose;
|
|
18230
|
-
// } else {
|
|
18231
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18232
|
-
// this.setError(jsonRespose.error);
|
|
18233
|
-
// }
|
|
18234
|
-
// }
|
|
18235
|
-
// fetchEntitiesJobs = async () => {
|
|
18236
|
-
// let url = "https://"+this.apiId+"/getentitiesjobs";
|
|
18237
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18238
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18239
|
-
// this._SfLoader.innerHTML = '';
|
|
18240
|
-
// if(xhr.status == 200) {
|
|
18241
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18242
|
-
// //console.log(jsonRespose);
|
|
18243
|
-
// return jsonRespose;
|
|
18244
|
-
// } else {
|
|
18245
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18246
|
-
// this.setError(jsonRespose.error);
|
|
18247
|
-
// }
|
|
18248
|
-
// }
|
|
18249
|
-
// fetchFunctionJobs = async () => {
|
|
18250
|
-
// let url = "https://"+this.apiId+"/getfunctionsjobs";
|
|
18251
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18252
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18253
|
-
// this._SfLoader.innerHTML = '';
|
|
18254
|
-
// if(xhr.status == 200) {
|
|
18255
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18256
|
-
// //console.log(jsonRespose);
|
|
18257
|
-
// return jsonRespose;
|
|
18258
|
-
// } else {
|
|
18259
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18260
|
-
// this.setError(jsonRespose.error);
|
|
18261
|
-
// }
|
|
18262
|
-
// }
|
|
18263
18203
|
this.fetchCalendarJobs = async () => {
|
|
18264
18204
|
let url = "https://" + this.apiId + "/getcalendarjobs";
|
|
18265
18205
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
@@ -18271,6 +18211,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18271
18211
|
return jsonRespose;
|
|
18272
18212
|
}
|
|
18273
18213
|
else {
|
|
18214
|
+
if (xhr.status == 401) {
|
|
18215
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18216
|
+
this.dispatchEvent(changeEvent);
|
|
18217
|
+
}
|
|
18274
18218
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18275
18219
|
this.setError(jsonRespose.error);
|
|
18276
18220
|
}
|
|
@@ -18291,6 +18235,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18291
18235
|
this.processEvent(jsonRespose.data.value);
|
|
18292
18236
|
}
|
|
18293
18237
|
else {
|
|
18238
|
+
if (xhr.status == 401) {
|
|
18239
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18240
|
+
this.dispatchEvent(changeEvent);
|
|
18241
|
+
}
|
|
18294
18242
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18295
18243
|
this.setError(jsonRespose.error);
|
|
18296
18244
|
}
|
|
@@ -18310,6 +18258,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18310
18258
|
return jsonRespose;
|
|
18311
18259
|
}
|
|
18312
18260
|
else {
|
|
18261
|
+
if (xhr.status == 401) {
|
|
18262
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18263
|
+
this.dispatchEvent(changeEvent);
|
|
18264
|
+
}
|
|
18313
18265
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18314
18266
|
return jsonRespose;
|
|
18315
18267
|
}
|
|
@@ -18366,6 +18318,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18366
18318
|
//console.log(jsonRespose);
|
|
18367
18319
|
return registers;
|
|
18368
18320
|
}
|
|
18321
|
+
else if (xhr.status == 401) {
|
|
18322
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18323
|
+
this.dispatchEvent(changeEvent);
|
|
18324
|
+
}
|
|
18369
18325
|
};
|
|
18370
18326
|
this.renderWithFeatures = async (startDate = "", endDate = "", searchString = "", list = "yes", month = "00") => {
|
|
18371
18327
|
this.events = [];
|
|
@@ -18468,6 +18424,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18468
18424
|
// } while(1)
|
|
18469
18425
|
}
|
|
18470
18426
|
else {
|
|
18427
|
+
if (xhr.status == 401) {
|
|
18428
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18429
|
+
this.dispatchEvent(changeEvent);
|
|
18430
|
+
}
|
|
18471
18431
|
if (xhr.status === 404) {
|
|
18472
18432
|
this.showChosenProject();
|
|
18473
18433
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -18533,6 +18493,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18533
18493
|
console.log('notices', notices, tempEvents);
|
|
18534
18494
|
}
|
|
18535
18495
|
else {
|
|
18496
|
+
if (xhr.status == 401) {
|
|
18497
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18498
|
+
this.dispatchEvent(changeEvent);
|
|
18499
|
+
}
|
|
18536
18500
|
if (xhr.status === 404) {
|
|
18537
18501
|
this.showChosenProject();
|
|
18538
18502
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -18605,6 +18569,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18605
18569
|
return jsonRespose.meta;
|
|
18606
18570
|
}
|
|
18607
18571
|
else {
|
|
18572
|
+
if (xhr.status == 401) {
|
|
18573
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18574
|
+
this.dispatchEvent(changeEvent);
|
|
18575
|
+
}
|
|
18608
18576
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18609
18577
|
this.setError(jsonRespose.error);
|
|
18610
18578
|
}
|
|
@@ -18663,6 +18631,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18663
18631
|
}
|
|
18664
18632
|
}
|
|
18665
18633
|
}
|
|
18634
|
+
else if (xhr.status == 401) {
|
|
18635
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18636
|
+
this.dispatchEvent(changeEvent);
|
|
18637
|
+
}
|
|
18666
18638
|
};
|
|
18667
18639
|
this.fetchUserCalendar = async () => {
|
|
18668
18640
|
let url = "https://" + this.apiId + "/getuserevents";
|
|
@@ -18681,6 +18653,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18681
18653
|
// this.renderChosenProject(events);
|
|
18682
18654
|
}
|
|
18683
18655
|
else {
|
|
18656
|
+
if (xhr.status == 401) {
|
|
18657
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18658
|
+
this.dispatchEvent(changeEvent);
|
|
18659
|
+
}
|
|
18684
18660
|
if (xhr.status === 404) {
|
|
18685
18661
|
this.showChosenProject();
|
|
18686
18662
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -18711,6 +18687,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18711
18687
|
// this.renderChosenProject(events);
|
|
18712
18688
|
}
|
|
18713
18689
|
else {
|
|
18690
|
+
if (xhr.status == 401) {
|
|
18691
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18692
|
+
this.dispatchEvent(changeEvent);
|
|
18693
|
+
}
|
|
18714
18694
|
if (xhr.status === 404) {
|
|
18715
18695
|
this.showChosenProject();
|
|
18716
18696
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -18732,6 +18712,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18732
18712
|
//console.log(jsonRespose);
|
|
18733
18713
|
}
|
|
18734
18714
|
else {
|
|
18715
|
+
if (xhr.status == 401) {
|
|
18716
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18717
|
+
this.dispatchEvent(changeEvent);
|
|
18718
|
+
}
|
|
18735
18719
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18736
18720
|
this.setError(jsonRespose.error);
|
|
18737
18721
|
this.fetchList();
|
|
@@ -18766,6 +18750,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18766
18750
|
return jsonRespose;
|
|
18767
18751
|
}
|
|
18768
18752
|
else {
|
|
18753
|
+
if (xhr.status == 401) {
|
|
18754
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18755
|
+
this.dispatchEvent(changeEvent);
|
|
18756
|
+
}
|
|
18769
18757
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18770
18758
|
this.setError(jsonRespose.error);
|
|
18771
18759
|
this.fetchList();
|
|
@@ -18799,6 +18787,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18799
18787
|
}
|
|
18800
18788
|
}
|
|
18801
18789
|
else {
|
|
18790
|
+
if (xhr.status == 401) {
|
|
18791
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18792
|
+
this.dispatchEvent(changeEvent);
|
|
18793
|
+
}
|
|
18802
18794
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18803
18795
|
this.setError(jsonRespose.error);
|
|
18804
18796
|
this.fetchList();
|
|
@@ -18833,6 +18825,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18833
18825
|
//await this.fetchAdhoc(true);
|
|
18834
18826
|
}
|
|
18835
18827
|
else {
|
|
18828
|
+
if (xhr.status == 401) {
|
|
18829
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18830
|
+
this.dispatchEvent(changeEvent);
|
|
18831
|
+
}
|
|
18836
18832
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18837
18833
|
this.setError(jsonRespose.error);
|
|
18838
18834
|
}
|
|
@@ -19047,6 +19043,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19047
19043
|
}, 2000);
|
|
19048
19044
|
}
|
|
19049
19045
|
else {
|
|
19046
|
+
if (xhr.status == 401) {
|
|
19047
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19048
|
+
this.dispatchEvent(changeEvent);
|
|
19049
|
+
}
|
|
19050
19050
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
19051
19051
|
this.setError(jsonRespose.error);
|
|
19052
19052
|
setTimeout(() => {
|
|
@@ -19092,6 +19092,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19092
19092
|
this.renderNextEvents(jsonRespose.data, page, role);
|
|
19093
19093
|
}
|
|
19094
19094
|
else {
|
|
19095
|
+
if (xhr.status == 401) {
|
|
19096
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19097
|
+
this.dispatchEvent(changeEvent);
|
|
19098
|
+
}
|
|
19095
19099
|
if (xhr.status === 404) {
|
|
19096
19100
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
19097
19101
|
this.setError(jsonRespose.error);
|
|
@@ -19509,6 +19513,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19509
19513
|
this.renderReports(arrReports);
|
|
19510
19514
|
}
|
|
19511
19515
|
else {
|
|
19516
|
+
if (xhr.status == 401) {
|
|
19517
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19518
|
+
this.dispatchEvent(changeEvent);
|
|
19519
|
+
}
|
|
19512
19520
|
if (xhr.status === 404) {
|
|
19513
19521
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
19514
19522
|
this.setError(jsonRespose.error);
|
|
@@ -19661,6 +19669,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19661
19669
|
// this.renderReportsComplainces(arrCompliances, sortid);
|
|
19662
19670
|
}
|
|
19663
19671
|
else {
|
|
19672
|
+
if (xhr.status == 401) {
|
|
19673
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19674
|
+
this.dispatchEvent(changeEvent);
|
|
19675
|
+
}
|
|
19664
19676
|
if (xhr.status === 404) {
|
|
19665
19677
|
this.showChosenProject();
|
|
19666
19678
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -19737,6 +19749,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19737
19749
|
this.renderReportsComplainces(arrCompliances, sortid);
|
|
19738
19750
|
}
|
|
19739
19751
|
else {
|
|
19752
|
+
if (xhr.status == 401) {
|
|
19753
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19754
|
+
this.dispatchEvent(changeEvent);
|
|
19755
|
+
}
|
|
19740
19756
|
if (xhr.status === 404) {
|
|
19741
19757
|
this.showChosenProject();
|
|
19742
19758
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -19870,6 +19886,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19870
19886
|
}, 3000);
|
|
19871
19887
|
}
|
|
19872
19888
|
else {
|
|
19889
|
+
if (xhr.status == 401) {
|
|
19890
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19891
|
+
this.dispatchEvent(changeEvent);
|
|
19892
|
+
}
|
|
19873
19893
|
if (xhr.status === 404) {
|
|
19874
19894
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
19875
19895
|
this.setError(jsonRespose.error);
|
|
@@ -20295,7 +20315,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20295
20315
|
`;
|
|
20296
20316
|
}
|
|
20297
20317
|
else if (this.mode == "downloader") {
|
|
20298
|
-
|
|
20318
|
+
/* eslint-disable lit/no-unknown-attribute */
|
|
20299
20319
|
return html `
|
|
20300
20320
|
|
|
20301
20321
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
@@ -20345,6 +20365,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20345
20365
|
</div>
|
|
20346
20366
|
|
|
20347
20367
|
`;
|
|
20368
|
+
/* eslint-disable lit/no-unknown-attribute */
|
|
20348
20369
|
}
|
|
20349
20370
|
else if (this.mode == "next") {
|
|
20350
20371
|
return html `
|