sf-i-events 1.0.396 → 1.0.397

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-i-events",
3
3
  "private": false,
4
- "version": "1.0.396",
4
+ "version": "1.0.397",
5
5
  "description": "Superflows Navigation Component",
6
6
  "main": "sf-i-events.js",
7
7
  "module": "sf-i-events.js",
package/sf-i-events.js CHANGED
@@ -7517,19 +7517,20 @@ let SfIEvents = class SfIEvents extends LitElement {
7517
7517
  const comments = this._SfDetailContainer.querySelector('#input-approver-comments').value;
7518
7518
  const approved = this._SfDetailContainer.querySelector('#input-approve-yes').checked;
7519
7519
  await this.uploadReview(entityId, locationId, mmddyyyy, event["id"], comments, approved);
7520
- // var clickEvent = new MouseEvent("click", {
7521
- // "view": window,
7522
- // "bubbles": true,
7523
- // "cancelable": false
7524
- // });
7525
- // ((this._SfDetailContainer as HTMLDivElement).querySelector('#button-detail-close') as HTMLButtonElement)!.dispatchEvent(clickEvent);
7526
- // if(this.getCurrentTab() == this.TAB_CUSTOM) {
7527
- // this.processDateSelection();
7528
- // } else {
7529
- // if(currentColumnButton != null) {
7530
- // currentColumnButton.click();
7531
- // }
7532
- // }
7520
+ var clickEvent = new MouseEvent("click", {
7521
+ "view": window,
7522
+ "bubbles": true,
7523
+ "cancelable": false
7524
+ });
7525
+ this._SfDetailContainer.querySelector('#button-detail-close').dispatchEvent(clickEvent);
7526
+ if (this.getCurrentTab() == this.TAB_CUSTOM) {
7527
+ this.processDateSelection();
7528
+ }
7529
+ else {
7530
+ if (currentColumnButton != null) {
7531
+ currentColumnButton.click();
7532
+ }
7533
+ }
7533
7534
  });
7534
7535
  (_j = this._SfDetailContainer.querySelector('#button-uploader-submit-audit')) === null || _j === void 0 ? void 0 : _j.addEventListener('click', async () => {
7535
7536
  const comments = this._SfDetailContainer.querySelector('#input-auditor-comments').value;