sf-i-reporting 1.0.104 → 1.0.105
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 +13 -13
- package/sf-i-reporting.js.map +1 -1
- package/src/sf-i-reporting.ts +13 -13
package/package.json
CHANGED
package/sf-i-reporting.js
CHANGED
|
@@ -1056,7 +1056,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
1056
1056
|
console.log('history', this.getPrepopulateJson().history);
|
|
1057
1057
|
html += `
|
|
1058
1058
|
<div class="d-flex flex-col" part="section-container">
|
|
1059
|
-
<div id="history-date-${indexDate}" class="history-section-head section-head d-flex align-center justify-between section-head-collapsed" part="section-head">
|
|
1059
|
+
<div id="history-date-${indexDate}" class="history-section-head section-head d-flex align-center justify-between section-head-collapsed" part="section-head-collapsed">
|
|
1060
1060
|
<h3 part="section-title-collapsed" class="section-history-title" id="section-history-title-${indexDate}">${historyDate}</h3>
|
|
1061
1061
|
<div class="section-history-icon material-icons" id="section-history-icon-${indexDate}">keyboard_arrow_down</div>
|
|
1062
1062
|
</div>
|
|
@@ -1064,7 +1064,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
1064
1064
|
`;
|
|
1065
1065
|
for (let [index, historyItem] of this.getPrepopulateJson().history[historyDate].entries()) {
|
|
1066
1066
|
console.log('historyitem', historyItem);
|
|
1067
|
-
html += `<sf-i-reporting name="" projectid="${this.projectid}" id="history-reporting-${historyDate}-${index}" class="history-reporting" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head
|
|
1067
|
+
html += `<sf-i-reporting name="" projectid="${this.projectid}" id="history-reporting-${historyDate}-${index}" class="history-reporting" exportparts="uploader-extracted-text:reporting-uploader-extracted-text, uploader-sf-upload-message:reporting-uploader-sf-upload-message, uploader-sf-upload-submessage:reporting-uploader-sf-upload-submessage, uploader-extracted-text-chip:reporting-uploader-extracted-text-chip, uploader-extracted-text-chip-failed:reporting-uploader-extracted-text-chip-failed, uploader-doctype-verify-badge:reporting-uploader-doctype-verify-badge,span-submit-published:reporting-span-submit-published, span-submit-unpublished:reporting-span-submit-unpublished, reporting-container:reporting-reporting-container, button-icon:reporting-button-icon, uploader-button-icon:reporting-uploader-button-icon, sf-i-form-modal-container:reporting-sf-i-form-modal-container, next-calendar-date:reporting-next-calendar-date, last-calendar-date:reporting-last-calendar-date, input-publish-checkbox:reporting-input-publish-checkbox, button-icon-light:reporting-button-icon-light, button-icon-small:reporting-button-icon-small, uploader-input-label:reporting-uploader-input-label, input-radio:reporting-input-radio, radio-label:reporting-radio-label, input-textarea:reporting-input-textarea, input-textarea-disabled:reporting-input-textarea-disabled, input-date:reporting-input-date, input-date-disabled:reporting-input-date-disabled, input-select-single:reporting-input-select-single, textarea-container:reporting-textarea-container, section-body:reporting-section-body, section-container:reporting-section-container, date-container:reporting-date-container, input-sf-i-uploader:reporting-input-sf-i-uploader, published-container:reporting-published-container, selected-option:reporting-selected-option, input-select-multi-option:reporting-input-select-multi-option, select-option-label:reporting-select-option-label, input-sf-i-form:reporting-input-sf-i-form, input-sf-i-bricks:reporting-input-sf-i-bricks, uploader-input:reporting-uploader-input, form-container:reporting-form-container, published-container:reporting-published-container, form-container-published:reporting-form-container-published, subsection:reporting-subsection, results-title:reporting-results-title, td-head:reporting-td-head, td-action:reporting-td-action, td-body:reporting-td-body, td-body-2:reporting-td-body-2, add-button:reporting-add-button, uploader-button:reporting-uploader-button, section-head-collapsed:reporting-section-head-collapsed, section-title-expanded:reporting-section-title-expanded, section-title-collapsed:reporting-section-title-collapsed, section-head-expanded:reporting-section-head-expanded, progress-bar-finished:reporting-progress-bar-finished, progress-bar-complete:reporting-progress-bar-complete, progress-bar-incomplete:reporting-progress-bar-incomplete, section-success-icon:reporting-section-success-icon, section-body:reporting-section-body, title-section:reporting-title-section, button-lg:reporting-button-lg, uploader-detail-container:reporting-uploader-detail-container, textarea-label:reporting-textarea-label, date-label:reporting-date-label, commentbox:reporting-commentbox, comment-username:reporting-comment-username, detail-head:reporting-detail-head, reporting-uploader-extracted-text:reporting-reporting-uploader-extracted-text, reporting-uploader-sf-upload-message:reporting-reporting-uploader-sf-upload-message, reporting-uploader-sf-upload-submessage:reporting-reporting-uploader-sf-upload-submessage, reporting-uploader-extracted-text-chip:reporting-reporting-uploader-extracted-text-chip, reporting-uploader-extracted-text-chip-failed:reporting-reporting-uploader-extracted-text-chip-failed, reporting-uploader-doctype-verify-badge:reporting-reporting-uploader-doctype-verify-badge, reporting-span-submit-published:reporting-reporting-span-submit-published, reporting-span-submit-unpublished:reporting-reporting-span-submit-unpublished, reporting-reporting-container:reporting-reporting-reporting-container, reporting-button-icon:reporting-reporting-button-icon, reporting-uploader-button-icon:reporting-reporting-uploader-button-icon, reporting-sf-i-form-modal-container:reporting-reporting-sf-i-form-modal-container, reporting-next-calendar-date:reporting-reporting-next-calendar-date, reporting-last-calendar-date:reporting-reporting-last-calendar-date, reporting-input-publish-checkbox:reporting-reporting-input-publish-checkbox, reporting-button-icon-light:reporting-reporting-button-icon-light, reporting-button-icon-small:reporting-reporting-button-icon-small, reporting-uploader-input-label:reporting-reporting-uploader-input-label, reporting-input-radio:reporting-reporting-input-radio, reporting-radio-label:reporting-reporting-radio-label, reporting-input-textarea:reporting-reporting-input-textarea, reporting-input-textarea-disabled:reporting-reporting-input-textarea-disabled, reporting-input-date:reporting-reporting-input-date, reporting-input-date-disabled:reporting-reporting-input-date-disabled, reporting-input-select-single:reporting-reporting-input-select-single, reporting-textarea-container:reporting-reporting-textarea-container, reporting-section-body:reporting-reporting-section-body, reporting-section-container:reporting-reporting-section-container, reporting-date-container:reporting-reporting-date-container, reporting-input-sf-i-uploader:reporting-reporting-input-sf-i-uploader, reporting-published-container:reporting-reporting-published-container, reporting-selected-option:reporting-reporting-selected-option, reporting-input-select-multi-option:reporting-reporting-input-select-multi-option, reporting-select-option-label:reporting-reporting-select-option-label, reporting-input-sf-i-form:reporting-reporting-input-sf-i-form, reporting-input-sf-i-bricks:reporting-reporting-input-sf-i-bricks, reporting-uploader-input:reporting-reporting-uploader-input, reporting-form-container:reporting-reporting-form-container, reporting-published-container:reporting-reporting-published-container, reporting-form-container-published:reporting-reporting-form-container-published, reporting-subsection:reporting-reporting-subsection, reporting-results-title:reporting-reporting-results-title, reporting-td-head:reporting-reporting-td-head, reporting-td-action:reporting-reporting-td-action, reporting-td-body:reporting-reporting-td-body, reporting-td-body-2:reporting-reporting-td-body-2, reporting-add-button:reporting-reporting-add-button, reporting-uploader-button:reporting-reporting-uploader-button, reporting-section-head-collapsed:reporting-reporting-section-head-collapsed, reporting-section-title-expanded:reporting-reporting-section-title-expanded, reporting-section-title-collapsed:reporting-reporting-section-title-collapsed, reporting-section-head-expanded:reporting-reporting-section-head-expanded, reporting-progress-bar-finished:reporting-reporting-progress-bar-finished, reporting-progress-bar-complete:reporting-reporting-progress-bar-complete, reporting-progress-bar-incomplete:reporting-reporting-progress-bar-incomplete, reporting-section-success-icon:reporting-reporting-section-success-icon, reporting-section-body:reporting-reporting-section-body, reporting-title-section:reporting-reporting-title-section, reporting-button-lg:reporting-reporting-button-lg, reporting-uploader-detail-container:reporting-reporting-uploader-detail-container, reporting-textarea-label:reporting-reporting-textarea-label, reporting-date-label:reporting-reporting-date-label, reporting-commentbox:reporting-reporting-commentbox, reporting-comment-username:reporting-reporting-comment-username, reporting-detail-head:reporting-reporting-detail-head, input-sf-i-select:reporting-input-sf-i-select,reporting-input-sf-i-select:reporting-reporting-input-sf-i-select, select-input-select:reporting-select-input-select, checklist-container:reporting-checklist-container, checklist-title:reporting-checklist-title, checklist-list:reporting-checklist-list, checklist-item:reporting-checklist-item, checklist-checkbox:reporting-checklist-checkbox, checklist-checkbox-label:reporting-checklist-checkbox-label, reporting-checklist-container:reporting-reporting-checklist-container, reporting-checklist-title:reporting-reporting-checklist-title, reporting-checklist-list:reporting-reporting-checklist-list, reporting-checklist-item:reporting-reporting-checklist-item, reporting-checklist-checkbox:reporting-reporting-checklist-checkbox, reporting-checklist-checkbox-label:reporting-reporting-checklist-checkbox-label, checklist-add-input:reporting-checklist-add-input, checklist-add-button:reporting-checklist-add-button, terminate-container:reporting-terminate-container, terminate-container-terminated:reporting-terminate-container-terminated, terminate-container-active:reporting-terminate-container-active, input-terminate-checkbox: reporting-input-terminate-checkbox, reporting-terminate-container:reporting-reporting-terminate-container, reporting-terminate-container-terminated:reporting-reporting-terminate-container-terminated, reporting-terminate-container-active:reporting-reporting-terminate-container-active, reporting-input-terminate-checkbox: reporting-reporting-input-terminate-checkbox, uploader-container:reporting-uploader-container, reporting-uploader-container:reporting-reporting-uploader-container, not-selected:reporting-not-selected, reporting-not-selected:reportinig-reporting-not-selected" name="Object Details" mode="view" editdisable="true" formviewclass="flex-wrap" configjson="${JSON.stringify(historyItem.schema).replace(/"/g, '"')}" prepopulatevaljson="${JSON.stringify(historyItem.object).replace(/"/g, '\\"').replace(/"/g, '"')}"></sf-i-reporting>`;
|
|
1068
1068
|
let comments = (_a = historyItem.object.comments) !== null && _a !== void 0 ? _a : [];
|
|
1069
1069
|
if (historyItem.object.documents != null && historyItem.object.documents.length > 0) {
|
|
1070
1070
|
html += '<div class="d-flex justify-between mb-20">';
|
|
@@ -1141,17 +1141,18 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
1141
1141
|
let id = sectionHistoryDate.id;
|
|
1142
1142
|
let dateIndex = id.split('-')[2];
|
|
1143
1143
|
let sectionHistoryDateBodies = formContainer.querySelectorAll('.section-history-body');
|
|
1144
|
+
let sectionHistoryDateDivs = formContainer.querySelectorAll('.history-section-head');
|
|
1144
1145
|
let sectionHistoryDateTitles = formContainer.querySelectorAll('.section-history-title');
|
|
1145
1146
|
let sectionHistoryDateIcons = formContainer.querySelectorAll('.section-history-icon');
|
|
1146
1147
|
let historyStatus = formContainer.querySelector('.history-status');
|
|
1147
1148
|
for (let [i, sectionHistoryDateBody] of sectionHistoryDateBodies.entries()) {
|
|
1149
|
+
let sectionHistoryDateDiv = sectionHistoryDateDivs[i];
|
|
1148
1150
|
if (sectionHistoryDateBody.id == ("section-history-body-" + dateIndex)) {
|
|
1149
|
-
console.log('toggling history section',
|
|
1151
|
+
console.log('toggling history section', sectionHistoryDateDiv.id, sectionHistoryDateDiv.style.display, sectionHistoryDateDiv.getAttribute('part'));
|
|
1150
1152
|
if (sectionHistoryDateBody.style.display == 'block') {
|
|
1151
1153
|
historyStatus.style.display = 'none';
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
// sectionHistoryDate.setAttribute('part', 'section-head-collapsed')
|
|
1154
|
+
sectionHistoryDateDiv.removeAttribute('part');
|
|
1155
|
+
sectionHistoryDateDiv.setAttribute('part', 'section-head-collapsed');
|
|
1155
1156
|
sectionHistoryDateBody.style.display = 'none';
|
|
1156
1157
|
sectionHistoryDateTitles[i].setAttribute('part', 'section-title-collapsed');
|
|
1157
1158
|
sectionHistoryDateIcons[i].innerHTML = 'keyboard_arrow_down';
|
|
@@ -1159,19 +1160,18 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
1159
1160
|
else {
|
|
1160
1161
|
historyStatus.innerHTML = "History : " + sectionHistoryDateTitles[i].innerHTML;
|
|
1161
1162
|
historyStatus.style.display = 'flex';
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
// sectionHistoryDate.setAttribute('part', 'section-head-expanded')
|
|
1163
|
+
sectionHistoryDateDiv.removeAttribute('part');
|
|
1164
|
+
sectionHistoryDateDiv.setAttribute('part', 'section-head-expanded');
|
|
1165
1165
|
sectionHistoryDateBody.style.display = 'block';
|
|
1166
1166
|
sectionHistoryDateTitles[i].setAttribute('part', 'section-title-expanded');
|
|
1167
1167
|
sectionHistoryDateIcons[i].innerHTML = 'keyboard_arrow_up';
|
|
1168
|
-
console.log('showing history section',
|
|
1168
|
+
console.log('showing history section', sectionHistoryDateDiv, sectionHistoryDateDiv.getAttribute('part'), sectionHistoryDateDiv.isConnected, sectionHistoryDateDiv === sectionHistoryDate);
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
1171
|
else {
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1172
|
+
console.log('not toggling history section', sectionHistoryDateBody.id, sectionHistoryDateDiv.style.display);
|
|
1173
|
+
sectionHistoryDateDiv.removeAttribute('part');
|
|
1174
|
+
sectionHistoryDateDiv.setAttribute('part', 'section-head-collapsed');
|
|
1175
1175
|
sectionHistoryDateBody.style.display = 'none';
|
|
1176
1176
|
sectionHistoryDateTitles[i].setAttribute('part', 'section-title-collapsed');
|
|
1177
1177
|
sectionHistoryDateIcons[i].innerHTML = 'keyboard_arrow_down';
|