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 +1 -1
- package/sf-i-events.js +8 -8
- package/sf-i-events.js.map +1 -1
- package/src/sf-i-events.ts +8 -8
package/package.json
CHANGED
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-
|
|
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>
|
|
4554
|
+
html += '<div>Occurred on ' + dateOccurrence + ', Triggered on ' + dateTrigger + ' at ' + locationTrigger.replace(/ *\([^)]*\) */g, "").trim() + ' for Compliance Id </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
|
|
4564
|
-
html += '<button part="button-lg" id="radio-submit" class="mt-10 pt-10 pb-10
|
|
4565
|
-
html += '<button part="button-lg-secondary" id="radio-submit-cancel" class="mt-10 pt-10 pb-10
|
|
4566
|
-
html += '<button part="button-lg" id="radio-submit-confirm" class="mt-10 pt-10 pb-10
|
|
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> <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> <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> <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
|
|
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];
|