sf-i-events 1.0.565 → 1.0.567
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.js +16 -22
- package/sf-i-events.js.map +1 -1
- package/src/sf-i-events.ts +24 -24
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -4593,7 +4593,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4593
4593
|
html += '</div>';
|
|
4594
4594
|
html += '</div>';
|
|
4595
4595
|
}
|
|
4596
|
-
html += '<div class="d-flex justify-end w-100" style="position: fixed; bottom:
|
|
4596
|
+
html += '<div class="d-flex justify-end w-100" style="position: fixed; bottom: 70px; left: 0px;">';
|
|
4597
4597
|
html += '<button part="button-lg-short" id="radio-submit" class="d-flex align-center mt-10 pt-10 pb-10 mr-10 ml-10"><span class="material-symbols-outlined">bolt</span> <span>Trigger</span></button>';
|
|
4598
4598
|
html += '<button part="button-lg-short-secondary" id="radio-submit-cancel" class="d-flex align-center mt-10 pt-10 pb-10 hide mr-10"><span class="material-symbols-outlined">close</span> <span>Cancel</span></button>';
|
|
4599
4599
|
html += '<button part="button-lg-short" id="radio-submit-confirm" class="d-flex align-center mt-10 mr-10 pt-10 pb-10 hide"><span class="material-symbols-outlined">check</span> <span>Confirm</span></button>';
|
|
@@ -6508,13 +6508,13 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6508
6508
|
(_k = this._SfDetailContainer.querySelector('#button-uploader-submit-approve')) === null || _k === void 0 ? void 0 : _k.addEventListener('click', async () => {
|
|
6509
6509
|
const comments = this._SfDetailContainer.querySelector('#input-approver-comments').value;
|
|
6510
6510
|
const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
|
|
6511
|
-
await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved);
|
|
6512
6511
|
var clickEvent = new MouseEvent("click", {
|
|
6513
6512
|
"view": window,
|
|
6514
6513
|
"bubbles": true,
|
|
6515
6514
|
"cancelable": false
|
|
6516
6515
|
});
|
|
6517
6516
|
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
6517
|
+
await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved);
|
|
6518
6518
|
if (this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
6519
6519
|
this.processDateSelection(this._SfCustomContainer);
|
|
6520
6520
|
}
|
|
@@ -6608,6 +6608,12 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6608
6608
|
}, 3000);
|
|
6609
6609
|
}
|
|
6610
6610
|
else {
|
|
6611
|
+
var clickEvent = new MouseEvent("click", {
|
|
6612
|
+
"view": window,
|
|
6613
|
+
"bubbles": true,
|
|
6614
|
+
"cancelable": false
|
|
6615
|
+
});
|
|
6616
|
+
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
6611
6617
|
if (this.selectedItems.length === 0) {
|
|
6612
6618
|
//console.log('makerscheckers', makercheckers, reportercomments);
|
|
6613
6619
|
await this.uploadReport(entityId, locationId, mmddyyyy, event["id"], reportercomments, reporterdoc, docs, event);
|
|
@@ -6631,18 +6637,6 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
6631
6637
|
}
|
|
6632
6638
|
}
|
|
6633
6639
|
}
|
|
6634
|
-
var clickEvent = new MouseEvent("click", {
|
|
6635
|
-
"view": window,
|
|
6636
|
-
"bubbles": true,
|
|
6637
|
-
"cancelable": false
|
|
6638
|
-
});
|
|
6639
|
-
this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
|
|
6640
|
-
// await this.fetchUserCalendar_2();
|
|
6641
|
-
// if(this.getCurrentTab() == this.TAB_STREAM) {
|
|
6642
|
-
// this.renderTabs(this.TAB_STREAM);
|
|
6643
|
-
// this.renderStream();
|
|
6644
|
-
// }
|
|
6645
|
-
//console.log('currentColumnButton', currentColumnButton);
|
|
6646
6640
|
if (this.getCurrentTab() == this.TAB_CUSTOM) {
|
|
6647
6641
|
this.processDateSelection(this._SfCustomContainer);
|
|
6648
6642
|
}
|
|
@@ -9685,32 +9679,32 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9685
9679
|
<div class="d-flex justify-center">
|
|
9686
9680
|
<div class="p-10 mr-10 w-100">
|
|
9687
9681
|
<div part="td-head">Reports</div>
|
|
9688
|
-
<div part="td-body" class="d-flex align-center mt-10">
|
|
9689
|
-
<div class="mr-10 d-flex align-center">
|
|
9682
|
+
<div part="td-body" class="d-flex align-center mt-10 flex-wrap">
|
|
9683
|
+
<div class="mr-10 d-flex align-center mb-10">
|
|
9690
9684
|
<input type="radio" id="radio-csv" class="switch-csv" value="Excel" checked name="radio-report" part="radio-download"/>
|
|
9691
9685
|
<label for="radio-csv" part="label-radio-download" class="mr-10">Summary (CSV)</label>
|
|
9692
9686
|
</div>
|
|
9693
|
-
<div class="mr-10 d-flex align-center">
|
|
9687
|
+
<div class="mr-10 d-flex align-center mb-10">
|
|
9694
9688
|
<input type="radio" id="radio-image" class="switch-image" value="Image" name="radio-report" part="radio-download"/>
|
|
9695
9689
|
<label for="radio-image" part="label-radio-download" class="mr-10">Image (PNG)</label>
|
|
9696
9690
|
</div>
|
|
9697
|
-
<div class="mr-10 d-flex align-center">
|
|
9691
|
+
<div class="mr-10 d-flex align-center mb-10">
|
|
9698
9692
|
<input type="radio" id="radio-stats" class="switch-image" value="Stats" name="radio-report" part="radio-download"/>
|
|
9699
9693
|
<label for="radio-stats" part="label-radio-download" class="mr-10">Stats (HTML)</label>
|
|
9700
9694
|
</div>
|
|
9701
|
-
<div class="mr-10 d-flex align-center">
|
|
9695
|
+
<div class="mr-10 d-flex align-center mb-10">
|
|
9702
9696
|
<input type="radio" id="radio-list" class="switch-image" value="List" name="radio-report" part="radio-download"/>
|
|
9703
9697
|
<label for="radio-list" part="label-radio-download" class="mr-10">List (HTML)</label>
|
|
9704
9698
|
</div>
|
|
9705
|
-
<div class="mr-10 d-flex align-center">
|
|
9699
|
+
<div class="mr-10 d-flex align-center mb-10">
|
|
9706
9700
|
<input type="radio" id="radio-list-csv" class="switch-image" value="List" name="radio-report" part="radio-download"/>
|
|
9707
9701
|
<label for="radio-list-csv" part="label-radio-download" class="mr-10">List (CSV)</label>
|
|
9708
9702
|
</div>
|
|
9709
|
-
<div class="mr-10 d-flex align-center">
|
|
9703
|
+
<div class="mr-10 d-flex align-center mb-10">
|
|
9710
9704
|
<input type="radio" id="radio-consolidated" class="switch-image" value="Consolidated" name="radio-report" part="radio-download"/>
|
|
9711
9705
|
<label for="radio-consolidated" part="label-radio-download" class="mr-10">Consolidated (HTML)</label>
|
|
9712
9706
|
</div>
|
|
9713
|
-
<div class="mr-10 d-flex align-center">
|
|
9707
|
+
<div class="mr-10 d-flex align-center mb-10">
|
|
9714
9708
|
<input type="radio" id="radio-certificate" class="switch-image" value="Certificate" name="radio-report" part="radio-download"/>
|
|
9715
9709
|
<label for="radio-certificate" part="label-radio-download" class="mr-10">Certificate (HTML)</label>
|
|
9716
9710
|
</div>
|