sf-i-reporting 1.0.91 → 1.0.93
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 +12 -8
- package/sf-i-reporting.js.map +1 -1
- package/src/sf-i-reporting.ts +10 -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,EAAE,UAAU,EAAa,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAO9D,OAAO,EAAE,UAAU,EAAE,eAAe,EAA8D,MAAM,eAAe,CAAC;AAcxH;;;;;;;;;;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;IAS1B,aAAa,YAEZ;IAGD,kBAAkB,EAAE,MAAM,CAAQ;IAIlC,kBAAkB,YAEjB;IAGD,IAAI,EAAE,MAAM,CAAU;IAGtB,IAAI,EAAE,MAAM,CAAU;IAGtB,IAAI,EAAE,MAAM,CAAe;IAG3B,iBAAiB,EAAE,MAAM,CAAQ;IAGjC,WAAW,EAAE,MAAM,CAAW;IAG9B,aAAa,EAAE,MAAM,CAAW;IAEhC,oBAAoB,YAEnB;IAGD,OAAO,EAAE,MAAM,CAAO;IAGtB,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,UAAU,EAAE,OAAO,CA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;IAED,UAAU,QAAS,MAAM,UAOxB;IAED,QAAQ,QAAS,MAAM,UAOtB;IAED,WAAW,sBAkBV;IAED,SAAS,sBAoBR;IAED,YAAY,sBAoBX;IAED,SAAS,SAAe,GAAG,mBAsB1B;IAED,UAAU,sBAuBT;IAED,YAAY,sBAkBX;IAED,aAAa,sBAsBZ;IAED,eAAe,aAOd;IAED,oBAAoB,aAgBnB;IAED,WAAW,aAQV;IAED,aAAa,sBA4CZ;IAED,UAAU,sBAOT;IAED,UAAU,sBAMT;cAEkB,YAAY,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG,IAAI;IAMnG,iBAAiB;IAIjB,MAAM;CAyKhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|
package/sf-i-reporting.js
CHANGED
|
@@ -906,7 +906,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
906
906
|
`;
|
|
907
907
|
for (let [index, historyItem] of this.getPrepopulateJson().history[historyDate].entries()) {
|
|
908
908
|
console.log('historyitem', historyItem);
|
|
909
|
-
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="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>`;
|
|
909
|
+
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-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="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>`;
|
|
910
910
|
let comments = (_a = historyItem.object.comments) !== null && _a !== void 0 ? _a : [];
|
|
911
911
|
if (historyItem.object.documents != null && historyItem.object.documents.length > 0) {
|
|
912
912
|
html += '<div class="d-flex justify-between mb-20">';
|
|
@@ -1076,8 +1076,11 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
else {
|
|
1078
1078
|
let tempArr = [];
|
|
1079
|
-
|
|
1080
|
-
|
|
1079
|
+
console.log(element.id, this.getPrepopulateJson()[element.id]);
|
|
1080
|
+
if (this.getPrepopulateJson()[element.id] != null) {
|
|
1081
|
+
for (let val of this.getPrepopulateJson()[element.id]) {
|
|
1082
|
+
tempArr.push((_h = val.split(';')[1]) !== null && _h !== void 0 ? _h : '');
|
|
1083
|
+
}
|
|
1081
1084
|
}
|
|
1082
1085
|
this.dataModel[i].value = tempArr;
|
|
1083
1086
|
}
|
|
@@ -1866,7 +1869,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
1866
1869
|
elementHtml += `<div part="date-container" class="d-flex flex-col flex-grow">
|
|
1867
1870
|
<label id="${dataObj.id}-label" part="date-label">${elementLabel}</label>
|
|
1868
1871
|
<div part="td-body-2"><sf-i-elastic-text text="${dataObj.hint}" minLength="50"></sf-i-elastic-text></div>
|
|
1869
|
-
<sf-checklist class="reporting-sf-checklist" exportparts="checklist-container, checklist-title, checklist-list, checklist-item, checklist-checkbox, checklist-checkbox-label" id="${dataObj.id}" part="input-sf-checklist" ${dataObj.mandatory != null ? "mandatory=\"\"" : ""}></sf-checklist>
|
|
1872
|
+
<sf-checklist class="reporting-sf-checklist" exportparts="checklist-container, checklist-title, checklist-list, checklist-item, checklist-checkbox, checklist-checkbox-label, checklist-add-input, checklist-add-button" id="${dataObj.id}" part="input-sf-checklist" ${dataObj.mandatory != null ? "mandatory=\"\"" : ""}></sf-checklist>
|
|
1870
1873
|
</div>`;
|
|
1871
1874
|
}
|
|
1872
1875
|
else if (dataObj.type == "sf-i-uploader") {
|
|
@@ -1991,6 +1994,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
1991
1994
|
this.showLoader();
|
|
1992
1995
|
let jsonData = await this.csvToJson(file);
|
|
1993
1996
|
console.log('jsonData', jsonData);
|
|
1997
|
+
await this.fetchSchema();
|
|
1994
1998
|
for (let element of jsonData) {
|
|
1995
1999
|
this.published = false;
|
|
1996
2000
|
// this.prepopulateValJson = JSON.stringify(element)
|
|
@@ -2161,10 +2165,10 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
2161
2165
|
if (xhr.status == 200) {
|
|
2162
2166
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
2163
2167
|
this.configjson = JSON.stringify(jsonRespose.schema);
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
+
if (this.flow == "new") {
|
|
2169
|
+
this.populateDataModel();
|
|
2170
|
+
this.populateView();
|
|
2171
|
+
}
|
|
2168
2172
|
}
|
|
2169
2173
|
else {
|
|
2170
2174
|
const jsonRespose = JSON.parse(xhr.responseText);
|