sf-i-events 1.0.536 → 1.0.538

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.536",
4
+ "version": "1.0.538",
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
@@ -4453,7 +4453,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4453
4453
  // const firstComplianceTriggers = firstCompliance.triggers == null ? [] : firstCompliance.triggers == "" ? [] : JSON.parse(firstCompliance.triggers);
4454
4454
  html += '<div part="stream-event-selected" id="adhoc-question-' + i + '" class="pl-10 pr-10 pb-20 mb-10">';
4455
4455
  html += '<h3 part="results-title" class="mb-0">' + Object.keys(adhocQuestions)[i] + '</h3>';
4456
- html += '<button part="adhoc-compliance-list-count-not-selected" id="compliance-count-' + i + '" class="compliance-count mb-20 mt-5" part="text-view">' + adhocQuestions[Object.keys(adhocQuestions)[i]].length + ' compliance(s) associated</button><br />';
4456
+ html += '<button part="adhoc-compliance-list-count-not-selected" id="compliance-count-' + i + '" class="compliance-count mb-20 mt-10" part="text-view">' + adhocQuestions[Object.keys(adhocQuestions)[i]].length + ' compliance(s) associated</button><br />';
4457
4457
  html += '<div id="compliance-list-body-' + i + '" class="hide">';
4458
4458
  html += '<table class="mb-20">';
4459
4459
  html += '<tr>';
@@ -4530,7 +4530,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4530
4530
  }
4531
4531
  arrAllTriggerIds[i] = arrTriggerIds;
4532
4532
  if (arrTriggerIds.length > 0) {
4533
- html += '<div class="mt-20">';
4533
+ html += '<div class="mt-20 pt-10">';
4534
4534
  html += ('<label part="adhoc-previous-triggers-count-not-selected" id="previous-triggers-' + i + '" class="mb-10">Previous Triggers (' + arrTriggerIds.length + ')</label><br />');
4535
4535
  html += '</div>';
4536
4536
  }
@@ -4551,7 +4551,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4551
4551
  const complianceTrigger = Object.keys(arrTriggers[arrTriggerIds[j]][dateTrigger][locationTrigger])[m];
4552
4552
  const dateOccurrence = arrTriggers[arrTriggerIds[j]][dateTrigger][locationTrigger][complianceTrigger];
4553
4553
  html += '<div part="td-head" class="d-flex align-center ml-10">';
4554
- html += '<div>Event occurred on&nbsp;&nbsp;' + dateOccurrence + ',&nbsp;&nbsp;Triggered on&nbsp;&nbsp;' + dateTrigger + '&nbsp;&nbsp;at&nbsp;&nbsp;' + locationTrigger.replace(/ *\([^)]*\) */g, "").trim() + '&nbsp;&nbsp;for Compliance Id&nbsp;&nbsp;</div><sf-i-elastic-text text="' + complianceTrigger + '" minLength="10" lineSize="6"></sf-i-elastic-text>';
4554
+ html += '<div>Occurred on&nbsp;&nbsp;' + dateOccurrence + ',&nbsp;&nbsp;Triggered on&nbsp;&nbsp;' + dateTrigger + '&nbsp;&nbsp;at&nbsp;&nbsp;' + locationTrigger.replace(/ *\([^)]*\) */g, "").trim() + '&nbsp;&nbsp;for Compliance Id&nbsp;&nbsp;</div><sf-i-elastic-text text="' + complianceTrigger + '" minLength="10" lineSize="6"></sf-i-elastic-text>';
4555
4555
  html += '</div>';
4556
4556
  }
4557
4557
  }
@@ -4560,10 +4560,10 @@ let SfIEvents = class SfIEvents extends LitElement {
4560
4560
  html += '</div>';
4561
4561
  html += '</div>';
4562
4562
  }
4563
- html += '<div class="w-100 d-flex ">';
4564
- html += '<button part="button-lg" id="radio-submit" class="mt-10 pt-10 pb-10 flex-grow">Submit</button>';
4565
- html += '<button part="button-lg-secondary" id="radio-submit-cancel" class="mt-10 pt-10 pb-10 flex-grow hide">Cancel</button>';
4566
- html += '<button part="button-lg" id="radio-submit-confirm" class="mt-10 pt-10 pb-10 flex-grow hide">Confirm Submit</button>';
4563
+ html += '<div class="d-flex justify-end w-100" style="position: fixed; bottom: 10px; left: 0px;">';
4564
+ html += '<button part="button-lg" 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>&nbsp;<span>Trigger</span></button>';
4565
+ html += '<button part="button-lg-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>&nbsp;<span>Cancel</span></button>';
4566
+ html += '<button part="button-lg" 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>&nbsp;<span>Confirm</span></button>';
4567
4567
  html += '</div>';
4568
4568
  if (Object.keys(adhocQuestions).length === 0) {
4569
4569
  html = '<div class="d-flex justify-center mt-20 mb-20"><div part="results-title">No records found</div></div>';
@@ -4572,7 +4572,7 @@ let SfIEvents = class SfIEvents extends LitElement {
4572
4572
  for (i = 0; i < Object.keys(adhocQuestions).length; i++) {
4573
4573
  const firstCompliance = adhocQuestions[Object.keys(adhocQuestions)[i]][0];
4574
4574
  const firstComplianceTriggers = firstCompliance.triggers == null ? [] : firstCompliance.triggers == "" ? [] : JSON.parse(firstCompliance.triggers);
4575
- for (var j = 0; j < firstComplianceTriggers.length && j < 2; j++) {
4575
+ for (var j = 0; j < firstComplianceTriggers.length; j++) {
4576
4576
  (_a = this._SfAdhocContainer.querySelector('#adhoc-delete-start-' + i + '-' + j)) === null || _a === void 0 ? void 0 : _a.addEventListener('click', (e) => {
4577
4577
  const _id = e.currentTarget.id;
4578
4578
  const _i = _id.split('-')[3];