sf-i-reporting 1.0.39 → 1.0.41
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 +1 -0
- package/sf-i-reporting.d.ts.map +1 -1
- package/sf-i-reporting.js +14 -12
- package/sf-i-reporting.js.map +1 -1
package/package.json
CHANGED
package/sf-i-reporting.d.ts
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;AAWtH;;;;;;;;;;GAUG;AACH,qBACa,YAAa,SAAQ,UAAU;IAE1C,KAAK,EAAE,MAAM,CAAM;IAGnB,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;
|
|
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,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AAG,eAAc,MAAM,sBASlF;IAED,yBAAyB,QAAe,MAAM,iBAAiB,GAAG,eAAc,MAAM,sBASrF;IAED,UAAU,SAAgB,GAAG,OAAO,MAAM,iBAAiB,GAAG,iBAAiB,GAAG,sBAQjF;IAED,iBAAiB,QAAe,MAAM,kBAQrC;IAED,uBAAuB,QAAe,MAAM,kBAQ3C;IAED,aAAa,aAKZ;IAED,QAAQ,QAAS,MAAM,UAOtB;IAED,UAAU,QAAS,MAAM,UAOxB;IAED,QAAQ,QAAS,MAAM,UAOtB;IAED,WAAW,sBAgBV;IAED,SAAS,sBAiBR;IAED,YAAY,sBAmBX;IAED,SAAS,sBAmBR;IAED,UAAU,sBAkBT;IAED,YAAY,sBAkBX;IAED,aAAa,sBAsBZ;IAED,eAAe,aAOd;IAED,oBAAoB,aAenB;IAED,WAAW,aAQV;IAED,aAAa,sBA4CZ;cAEkB,YAAY,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG,IAAI;IAMnG,iBAAiB;IAIjB,MAAM;CA8LhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|
package/sf-i-reporting.js
CHANGED
|
@@ -67,6 +67,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
67
67
|
this.getUserMap = () => {
|
|
68
68
|
return JSON.parse(this.usermap);
|
|
69
69
|
};
|
|
70
|
+
this.formviewclass = "flex-col";
|
|
70
71
|
this.dataModel = [];
|
|
71
72
|
this.list = [];
|
|
72
73
|
// selectedItem: any = {};
|
|
@@ -383,13 +384,17 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
383
384
|
// <button id="button-detail-close" part="button-icon" class="material-icons">close</button>
|
|
384
385
|
// </div>`
|
|
385
386
|
html += `<div class="d-flex flex-col md-20-ml-10" part="title-section">
|
|
386
|
-
<
|
|
387
|
+
<div class="d-flex w-100-m-0 justify-between align-center">
|
|
388
|
+
<button id="button-back" part="button-icon" class="button-icon-click"><span class="material-icons">keyboard_backspace</span></button>
|
|
389
|
+
<h3 part="results-title" class="m-0">${this.name}</h3>
|
|
390
|
+
<button id="button-back" part="button-icon" class="button-icon-click invisible"><span class="material-icons">keyboard_backspace</span></button>
|
|
391
|
+
</div>
|
|
387
392
|
<div class="progress-bar w-100-m-0 d-flex" part="progress-bar">
|
|
388
393
|
<div class="progress-bar-complete" part="progress-bar-complete"></div>
|
|
389
394
|
<div class="progress-bar-incomplete" part="progress-bar-incomplete"></div>
|
|
390
395
|
</div>
|
|
391
396
|
</div>
|
|
392
|
-
<div class="d-flex
|
|
397
|
+
<div class="d-flex ${this.formviewclass} form-container align-stretch p-10" part="form-container">`;
|
|
393
398
|
let firstFlag = true;
|
|
394
399
|
for (let element of this.dataModel) {
|
|
395
400
|
if (isAddButtonObject(element)) {
|
|
@@ -489,6 +494,8 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
489
494
|
// setTimeout(() => {bricks.loadMode()},500)
|
|
490
495
|
}
|
|
491
496
|
}
|
|
497
|
+
let buttonBack = this._SfReportingContainer.querySelector('#button-back');
|
|
498
|
+
buttonBack.addEventListener('click', this.backClick);
|
|
492
499
|
setTimeout(() => {
|
|
493
500
|
this.evalShowProgress();
|
|
494
501
|
this._SfReportingContainer.querySelector('.form-container').scrollTo({ top: scrollTopTarget, left: 0 });
|
|
@@ -601,7 +608,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
601
608
|
sectionChildFilledCount = 0;
|
|
602
609
|
sectionId = element.id;
|
|
603
610
|
}
|
|
604
|
-
else if (element.type != "section" && element.type != "subsection") {
|
|
611
|
+
else if (element.type != "section" && element.type != "subsection" && element.mandatory != null) {
|
|
605
612
|
total++;
|
|
606
613
|
sectionChildCount++;
|
|
607
614
|
if (element.type == "textarea" || element.type == "date") {
|
|
@@ -968,7 +975,7 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
968
975
|
let elementHtml = "";
|
|
969
976
|
console.log('rendering obj', dataObj.type);
|
|
970
977
|
if (dataObj.type == "section") {
|
|
971
|
-
elementHtml += `<div class="d-flex
|
|
978
|
+
elementHtml += `<div class="d-flex ${this.formviewclass}" 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" class="hide" part="section-success-icon"><div class="material-icons">check_circle</div></div></div><div class="section-body d-flex flex-col ${dataObj.collapse == "true" ? 'hide' : ''}" part="section-body"> `;
|
|
972
979
|
}
|
|
973
980
|
else if (dataObj.type == "subsection") {
|
|
974
981
|
elementHtml += `<div class="d-flex align-center" part="subsection-container"><h4 part="subsection">${dataObj.name}</h4></div>`;
|
|
@@ -1518,14 +1525,6 @@ let SfIReporting = class SfIReporting extends LitElement {
|
|
|
1518
1525
|
return html `
|
|
1519
1526
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
1520
1527
|
<div part="reporting-container-outer" class="SfIReportingC d-flex flex-col align-center">
|
|
1521
|
-
<div class="d-flex w-100-m-0">
|
|
1522
|
-
<div class="d-flex flex-grow justify-between md-20-ml-10">
|
|
1523
|
-
<button id="button-back" part="button-icon" class="button-icon-click"><span class="material-icons">keyboard_backspace</span></button>
|
|
1524
|
-
<div class="d-flex">
|
|
1525
|
-
<button id="button-new" part="button-icon" class="material-icons button-icon-click invisible">add</button>
|
|
1526
|
-
</div>
|
|
1527
|
-
</div>
|
|
1528
|
-
</div>
|
|
1529
1528
|
<div id="reporting-container" part="reporting-container" class="w-100-m-0 hide"></div>
|
|
1530
1529
|
<div id="reporting-buttons-container" part="reporting-buttons-container" class="d-flex justify-center w-100-m-0">
|
|
1531
1530
|
<div class="lb"></div>
|
|
@@ -1970,6 +1969,9 @@ __decorate([
|
|
|
1970
1969
|
__decorate([
|
|
1971
1970
|
property()
|
|
1972
1971
|
], SfIReporting.prototype, "usermap", void 0);
|
|
1972
|
+
__decorate([
|
|
1973
|
+
property()
|
|
1974
|
+
], SfIReporting.prototype, "formviewclass", void 0);
|
|
1973
1975
|
__decorate([
|
|
1974
1976
|
queryAssignedElements({ slot: 'reporting' })
|
|
1975
1977
|
], SfIReporting.prototype, "_SfReporting", void 0);
|