sf-i-reporting 1.0.71 → 1.0.73
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.d.ts.map +1 -1
- package/sf-i-reporting.js +24 -6
- package/sf-i-reporting.js.map +1 -1
- package/src/sf-i-reporting.ts +24 -6
package/package.json
CHANGED
package/sf-i-reporting.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sf-i-reporting.d.ts","sourceRoot":"","sources":["src/sf-i-reporting.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,UAAU,EAAa,gBAAgB,EAAC,MAAM,KAAK,CAAC;AAO5D,OAAO,EAAC,UAAU,EAAE,eAAe,EAA6D,MAAM,eAAe,CAAC;AAYtH;;;;;;;;;;GAUG;AACH,qBACa,YAAa,SAAQ,UAAU;IAE1C,KAAK,EAAE,MAAM,CAAM;IAGnB,aAAa,EAAE,MAAM,CAAM;IAG3B,SAAS,EAAE,MAAM,CAAM;IAGvB,WAAW,EAAE,MAAM,CAAM;IAGzB,UAAU,EAAE,MAAM,CAAQ;IAO1B,aAAa,YAGZ;IAGD,kBAAkB,EAAE,MAAM,CAAQ;IAGlC,kBAAkB,YAEjB;IAGD,IAAI,EAAE,MAAM,CAAM;IAGlB,IAAI,EAAE,MAAM,CAAM;IAGlB,IAAI,EAAE,MAAM,CAAe;IAG3B,iBAAiB,EAAE,MAAM,CAAQ;IAGjC,WAAW,EAAE,MAAM,CAAM;IAEzB,oBAAoB,YAEnB;IAGD,OAAO,EAAE,MAAM,CAAO;IAEtB,UAAU,YAET;IAGD,aAAa,EAAE,MAAM,CAAa;IAElC,SAAS,EAAE,GAAG,EAAE,CAAM;IAEtB,IAAI,EAAE,GAAG,EAAE,CAAM;IAEjB,SAAS,EAAE,OAAO,CAAS;IAE3B,qBAAqB,EAAE,MAAM,CAAK;IAClC,qBAAqB,EAAE,MAAM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CAAC,GAAG,IAAI;IAMnG,iBAAiB;IAIjB,MAAM;CAsKhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|
package/sf-i-reporting.js
CHANGED
|
@@ -386,7 +386,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
386
386
|
else {
|
|
387
387
|
if (element.type == "section") {
|
|
388
388
|
let dataObj = createDataObject({ id: 'section-' + sectionCount, name: element.name, type: element.type });
|
|
389
|
-
if (this.editdisable == "true") {
|
|
389
|
+
if (this.editdisable == "true" || this.flow == "details") {
|
|
390
390
|
dataObj.collapse = "true";
|
|
391
391
|
}
|
|
392
392
|
this.dataModel.push(dataObj);
|
|
@@ -727,14 +727,14 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
727
727
|
html += `<sf-i-reporting name="" 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-date:reporting-input-date, 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" name="Notice Details" mode="view" editdisable="true" formviewclass="flex-wrap" prepopulatevaljson="${JSON.stringify(historyItem.object).replace(/"/g, '"')}"></sf-i-reporting>`;
|
|
728
728
|
let comments = (_a = historyItem.object.comments) !== null && _a !== void 0 ? _a : [];
|
|
729
729
|
if (historyItem.object.documents != null && historyItem.object.documents.length > 0) {
|
|
730
|
-
html += '<div class="d-flex justify-between
|
|
730
|
+
html += '<div class="d-flex justify-between mb-20">';
|
|
731
731
|
html += '<h3 part="history-docs-title" class="m-0"><br />Documents</h3>';
|
|
732
732
|
html += '</div>';
|
|
733
733
|
html += `
|
|
734
734
|
<sf-i-uploader prepopulatedInputArr="${JSON.stringify(historyItem.object.documents).replace(/"/g, '"')}" exportparts="detail-container:uploader-detail-container, errmsg:uploader-errmsg, successmsg:uploader-successmsg, sf-upload-message:uploader:sf-upload-message, sf-upload-submessage: uploader-sf-upload-submessage, doctype-verify-badge: uploader-doctype-verify-badge, details-controls-container: uploader-details-controls-container, button-icon: uploader-button-icon, pdf-controls-container: uploader-pdf-controls-container, pdf-pages: uploader-pdf-pages, pdf-page-num: uploader-pdf-page-num, pdf-page-count: uploader-pdf-page-count, pdf-canvas: uploader-pdf-canvas, image-container: uploader-image-container, image-component: uploader-image-component, pdf-thumbnail-container: uploader-pdf-thumbnail-container, pdf-canvas-thumbnail: uploader-pdf-canvas-thumbnail, sf-uploader-download-message: uploader-sf-uploader-download-message, input: uploader-input, upload-buttons-container: uploader-upload-buttons-container, doctype-badge: uploader-doctype-badge, upload-status: uploader-upload-status, ext-badge:uploader-ext-badge, extracted-meta: uploader-extracted-meta, extracted-text-chip: uploader-extracted-text-chip, extracted-text-chip-parsed: uploader-extracted-text-chip-parsed, extracted-text-chip-failed: uploader-extracted-text-chip-failed, matches-title: uploader-matches-title, matches:uploader-matches, extracted-title: uploader-extracted-title, extracted-text: uploader-extracted-text, disclaimer-message-container: uploader-disclaimer-message-container, message-container: uploader-message-container, button: uploader-button" class="reporting-sf-i-uploader" part="input-sf-i-uploader" id="history-doc-uploader-${index}" maximize="yes" max="${historyItem.object.documents.length}" apiid="${this.apiIdUploader}" projectid="${this.projectid}" mode="view"></sf-i-uploader>
|
|
735
735
|
`;
|
|
736
736
|
}
|
|
737
|
-
html += '<div class="d-flex justify-between
|
|
737
|
+
html += '<div class="d-flex justify-between mb-20">';
|
|
738
738
|
html += '<h3 part="history-comments-title" class="m-0"><br />Comments</h3>';
|
|
739
739
|
html += '</div>';
|
|
740
740
|
html += '<div class="m-20">';
|
|
@@ -803,13 +803,13 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
803
803
|
let sectionHistoryDateTitle = formContainer.querySelector('#section-history-title-' + dateIndex);
|
|
804
804
|
let sectionHistoryDateIcon = formContainer.querySelector('#section-history-icon-' + dateIndex);
|
|
805
805
|
if (sectionHistoryDateBody.style.display == 'block') {
|
|
806
|
-
|
|
806
|
+
sectionHistoryDate.setAttribute('part', 'section-head-collapsed');
|
|
807
807
|
sectionHistoryDateBody.style.display = 'none';
|
|
808
808
|
sectionHistoryDateTitle.setAttribute('part', 'section-title-collapsed');
|
|
809
809
|
sectionHistoryDateIcon.innerHTML = 'keyboard_arrow_down';
|
|
810
810
|
}
|
|
811
811
|
else {
|
|
812
|
-
|
|
812
|
+
sectionHistoryDate.setAttribute('part', 'section-head-expanded');
|
|
813
813
|
sectionHistoryDateBody.style.display = 'block';
|
|
814
814
|
sectionHistoryDateTitle.setAttribute('part', 'section-title-expanded');
|
|
815
815
|
sectionHistoryDateIcon.innerHTML = 'keyboard_arrow_up';
|
|
@@ -846,7 +846,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
848
|
else {
|
|
849
|
-
if (element.type == "section" && this.editdisable != "true") {
|
|
849
|
+
if (element.type == "section" && this.editdisable != "true" && this.flow != "details") {
|
|
850
850
|
this.dataModel[i].collapse = "false";
|
|
851
851
|
}
|
|
852
852
|
else {
|
|
@@ -2212,6 +2212,9 @@ SfIReporting.styles = css `
|
|
|
2212
2212
|
.ml-10{
|
|
2213
2213
|
margin-left: 10px
|
|
2214
2214
|
}
|
|
2215
|
+
.mr-20{
|
|
2216
|
+
margin-right: 20px
|
|
2217
|
+
}
|
|
2215
2218
|
.flex-grow {
|
|
2216
2219
|
flex-grow: 1;
|
|
2217
2220
|
}
|
|
@@ -2494,6 +2497,21 @@ SfIReporting.styles = css `
|
|
|
2494
2497
|
top: 0px;
|
|
2495
2498
|
z-index: 10;
|
|
2496
2499
|
}
|
|
2500
|
+
.commentbox {
|
|
2501
|
+
padding: 10px;
|
|
2502
|
+
border: solid 1px gray;
|
|
2503
|
+
border-radius: 10px;
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
.reporterbox {
|
|
2507
|
+
width: 90%;
|
|
2508
|
+
margin-right: 10%;
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
.approverbox {
|
|
2512
|
+
width: 90%;
|
|
2513
|
+
margin-left: 5%;
|
|
2514
|
+
}
|
|
2497
2515
|
`;
|
|
2498
2516
|
__decorate([
|
|
2499
2517
|
property()
|