sf-i-reporting 1.0.49 → 1.0.50
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-reporting.js +8 -8
- package/sf-i-reporting.js.map +1 -1
package/package.json
CHANGED
package/sf-i-reporting.js
CHANGED
|
@@ -450,16 +450,16 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
450
450
|
html += this.renderElement(element);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
html += "</div>";
|
|
453
|
+
html += "</div></div>";
|
|
454
454
|
if (this.flow == "new") {
|
|
455
455
|
html += `
|
|
456
|
-
<div part="
|
|
457
|
-
|
|
458
|
-
<div class="d-flex">
|
|
456
|
+
<div part="published-container" class="d-flex flex-col flex-grow">
|
|
457
|
+
|
|
458
|
+
<div class="d-flex align-center justify-center">
|
|
459
459
|
<input type="checkbox" id="input-publish-checkbox" class="input-publish-checkbox" part="input-publish-checkbox" ${this.published ? "checked" : ""}>
|
|
460
|
+
<label id="input-publish-checkbox-label" part="textarea-label">Published</label>
|
|
460
461
|
</div>
|
|
461
462
|
</div>`;
|
|
462
|
-
console.log('adding publish checkbox', html);
|
|
463
463
|
}
|
|
464
464
|
this._SfReportingContainer.innerHTML = html;
|
|
465
465
|
this._SfReportingContainer.style.display = 'block';
|
|
@@ -1047,7 +1047,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
1047
1047
|
let elementHtml = "";
|
|
1048
1048
|
console.log('rendering obj', dataObj.type);
|
|
1049
1049
|
if (dataObj.type == "section") {
|
|
1050
|
-
elementHtml += `<div class="d-flex flex-col" part="section-container"><div id="${dataObj.id}" class="section-head d-flex align-center" part="${dataObj.collapse == "true" ? 'section-head-collapsed' : 'section-head-expanded'}"><h3 part="${dataObj.collapse == "true" ? 'section-title-collapsed' : 'section-title-expanded'}">${dataObj.name}</h3><div id="${dataObj.id}-success"
|
|
1050
|
+
elementHtml += `<div class="d-flex flex-col" part="section-container"><div id="${dataObj.id}" class="section-head d-flex align-center justify-between" part="${dataObj.collapse == "true" ? 'section-head-collapsed' : 'section-head-expanded'}"><h3 part="${dataObj.collapse == "true" ? 'section-title-collapsed' : 'section-title-expanded'}">${dataObj.name}</h3><div id="${dataObj.id}-success" part="section-success-icon"><div class="material-icons">${dataObj.collapse == "true" ? "keyboard_arrow_down" : "keyboard_arrow_up"}</div></div></div><div class="section-body d-flex ${this.formviewclass} ${dataObj.collapse == "true" ? 'hide' : ''}" part="section-body"> `;
|
|
1051
1051
|
}
|
|
1052
1052
|
else if (dataObj.type == "subsection") {
|
|
1053
1053
|
elementHtml += `<div class="d-flex align-center" part="subsection-container"><h4 part="subsection">${dataObj.name}</h4></div>`;
|
|
@@ -1124,7 +1124,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
1124
1124
|
this.populateList = () => {
|
|
1125
1125
|
let html = '';
|
|
1126
1126
|
html += `<div class="d-flex justify-between p-7">`;
|
|
1127
|
-
html += `<div part="last-calendar-date" class="last-calendar-date d-flex justify-center" id="last-calendar-date">${this.lastCalendarGenerated == "" ? "" : ("<span class=\"material-symbols-outlined\">update</span> Calendar synced on \n" + (new Date(parseInt(this.lastCalendarGenerated)).toLocaleDateString('en-IN') + " - " + new Date(parseInt(this.lastCalendarGenerated)).toLocaleTimeString('en-IN')))}</div>`;
|
|
1127
|
+
html += `<div part="last-calendar-date" class="last-calendar-date d-flex align-center justify-center" id="last-calendar-date">${this.lastCalendarGenerated == "" ? "" : ("<span class=\"material-symbols-outlined\">update</span> Calendar synced on \n" + (new Date(parseInt(this.lastCalendarGenerated)).toLocaleDateString('en-IN') + " - " + new Date(parseInt(this.lastCalendarGenerated)).toLocaleTimeString('en-IN')))}</div>`;
|
|
1128
1128
|
html += `<div class="d-flex justify-end flex-grow">`;
|
|
1129
1129
|
// html += `<button id="button-publish" part="button-icon" class="material-icons hide">campaign</button>`
|
|
1130
1130
|
html += `<button id="button-new" part="button-icon" class="material-icons button-icon-click ml-10">add</button>`;
|
|
@@ -1134,7 +1134,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
1134
1134
|
for (let [i, item] of this.list.entries()) {
|
|
1135
1135
|
html += '<tr class="tablerow">';
|
|
1136
1136
|
let bgClass = i % 2 == 0 ? 'td-light' : 'td-dark';
|
|
1137
|
-
html += `<td part="td-body" class="td-body"><span class="mrl-5 material-icons" part="span-submit-${item.published ? 'published' : 'unpublished'}" >${item.published ? 'radio_button_checked' : '
|
|
1137
|
+
html += `<td part="td-body" class="td-body"><span class="mrl-5 material-icons" part="span-submit-${item.published ? 'published' : 'unpublished'}" >${item.published ? 'radio_button_checked' : 'edit_note'}</span></td>`;
|
|
1138
1138
|
html += `<td part="td-action" class="td-action"><button part="button-icon" class="material-icons button-details" id="button-details-${i}">open_in_new</button></td>`;
|
|
1139
1139
|
for (let property of Object.keys(item)) {
|
|
1140
1140
|
if (this.getIgnoreProjections().indexOf(property) < 0) {
|