sf-i-events 1.0.958 → 1.0.960

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/sf-i-events.js CHANGED
@@ -2393,7 +2393,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2393
2393
 
2394
2394
  <!-- Upper (Mitigated / Addressed Risk) -->
2395
2395
  <div class="d-flex align-end" part="financial-risk-section">
2396
- <div part="financial-risk-section-label" style="font-weight:700;font-size:15px;color:#000;">Upper</div>
2396
+ <div part="financial-risk-section-label" style="font-weight:700;font-size:15px;color:#000;">Higher</div>
2397
2397
  <div part="financial-risk-table-container" class="d-flex align-center" style="gap:8px;">
2398
2398
  <div part="financial-risk-table-col" class="d-flex flex-col align-center">
2399
2399
  <span part="financial-risk-table-row-label" style="color:#555;font-weight:500;font-size:13px;">Addressed</span>
@@ -2593,7 +2593,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2593
2593
  return html;
2594
2594
  };
2595
2595
  this.renderCalendarRowDivItemDivStart = (mmdd, event, itemNumber, partStatus, bgStatus) => {
2596
- var _a, _b, _c, _f, _g;
2596
+ var _a, _b, _c, _f, _g, _h, _j, _k, _l;
2597
2597
  var html = '';
2598
2598
  var remarks = "";
2599
2599
  var occurrenceDate = "";
@@ -2696,6 +2696,8 @@ let SfIEvents = class SfIEvents extends LitElement {
2696
2696
  ${lastUpdated}
2697
2697
  </div>
2698
2698
  ` : ''}
2699
+ ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${(_h = event['minlocal']) !== null && _h !== void 0 ? _h : ""}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${(_j = event['minglobal']) !== null && _j !== void 0 ? _j : ""}</div>`}
2700
+ ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${(_k = ((event['maxlocal'] < event['minlocal']) ? event['minlocal'] : event['maxlocal'])) !== null && _k !== void 0 ? _k : ""}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${(_l = ((event['maxglobal'] < event['minglobal']) ? event['minglobal'] : event['maxglobal'])) !== null && _l !== void 0 ? _l : ""}</div>`}
2699
2701
  </div>
2700
2702
  `;
2701
2703
  if (event.concise == null && remarks.length > 0) {
@@ -2991,7 +2993,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2991
2993
  };
2992
2994
  //(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton)
2993
2995
  this.renderEvents = (_firstDay, _endDay, iInit, iLast, showGraph, index, month, period, firstDate = null, parametersTitle, showBackgroundButton, fromDrilldown = false) => {
2994
- var _a, _b, _c, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55;
2996
+ var _a, _b, _c, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67;
2995
2997
  var total = 0, notStarted = 0, approved = 0, pendingApproval = 0, rejected = 0, inTime = 0, pastDueDate = 0, lateExecuted = 0, lateApproved = 0, lateReported = 0, scheduled = 0, partiallyComplied = 0, notComplied = 0, complied = 0, compliedWithGaps = 0, reportedNonCompliance = 0, active = 0, aboutToExpire = 0, expired = 0, terminated = 0;
2996
2998
  var html = '';
2997
2999
  this.selectedItemIds = [];
@@ -3113,15 +3115,15 @@ let SfIEvents = class SfIEvents extends LitElement {
3113
3115
  }
3114
3116
  if (partStatus == "approved") {
3115
3117
  tempMinRiskMitigatedLocal = tempMinRiskMitigatedLocal + parseInt((_c = this.events[mmdd][j]['minlocal']) !== null && _c !== void 0 ? _c : "0");
3116
- tempMaxRiskMitigatedLocal = tempMaxRiskMitigatedLocal + parseInt((_f = this.events[mmdd][j]['maxlocal']) !== null && _f !== void 0 ? _f : "0");
3117
- tempMinRiskMitigatedGlobal = tempMinRiskMitigatedGlobal + parseInt((_g = this.events[mmdd][j]['minglobal']) !== null && _g !== void 0 ? _g : "0");
3118
- tempMaxRiskMitigatedGlobal = tempMaxRiskMitigatedGlobal + parseInt((_h = this.events[mmdd][j]['maxglobal']) !== null && _h !== void 0 ? _h : "0");
3118
+ tempMaxRiskMitigatedLocal = tempMaxRiskMitigatedLocal + ((parseInt((_f = this.events[mmdd][j]['maxlocal']) !== null && _f !== void 0 ? _f : "0") < parseInt((_g = this.events[mmdd][j]['minlocal']) !== null && _g !== void 0 ? _g : "0")) ? parseInt((_h = this.events[mmdd][j]['minlocal']) !== null && _h !== void 0 ? _h : "0") : parseInt((_j = this.events[mmdd][j]['maxlocal']) !== null && _j !== void 0 ? _j : "0"));
3119
+ tempMinRiskMitigatedGlobal = tempMinRiskMitigatedGlobal + parseInt((_k = this.events[mmdd][j]['minglobal']) !== null && _k !== void 0 ? _k : "0");
3120
+ tempMaxRiskMitigatedGlobal = tempMaxRiskMitigatedGlobal + ((parseInt((_l = this.events[mmdd][j]['maxglobal']) !== null && _l !== void 0 ? _l : "0") < parseInt((_m = this.events[mmdd][j]['minglobal']) !== null && _m !== void 0 ? _m : "0")) ? parseInt((_o = this.events[mmdd][j]['minglobal']) !== null && _o !== void 0 ? _o : "0") : parseInt((_p = this.events[mmdd][j]['maxglobal']) !== null && _p !== void 0 ? _p : "0"));
3119
3121
  }
3120
3122
  else {
3121
- tempMinRiskResidualLocal = tempMinRiskResidualLocal + parseInt((_j = this.events[mmdd][j]['minlocal']) !== null && _j !== void 0 ? _j : "0");
3122
- tempMaxRiskResidualLocal = tempMaxRiskResidualLocal + parseInt((_k = this.events[mmdd][j]['maxlocal']) !== null && _k !== void 0 ? _k : "0");
3123
- tempMinRiskResidualGlobal = tempMinRiskResidualGlobal + parseInt((_l = this.events[mmdd][j]['minglobal']) !== null && _l !== void 0 ? _l : "0");
3124
- tempMaxRiskResidualGlobal = tempMaxRiskResidualGlobal + parseInt((_m = this.events[mmdd][j]['maxglobal']) !== null && _m !== void 0 ? _m : "0");
3123
+ tempMinRiskResidualLocal = tempMinRiskResidualLocal + parseInt((_q = this.events[mmdd][j]['minlocal']) !== null && _q !== void 0 ? _q : "0");
3124
+ tempMaxRiskResidualLocal = tempMaxRiskResidualLocal + ((parseInt((_r = this.events[mmdd][j]['maxlocal']) !== null && _r !== void 0 ? _r : "0") < parseInt((_s = this.events[mmdd][j]['minlocal']) !== null && _s !== void 0 ? _s : "0")) ? parseInt((_t = this.events[mmdd][j]['minlocal']) !== null && _t !== void 0 ? _t : "0") : parseInt((_u = this.events[mmdd][j]['maxlocal']) !== null && _u !== void 0 ? _u : "0"));
3125
+ tempMinRiskResidualGlobal = tempMinRiskResidualGlobal + parseInt((_v = this.events[mmdd][j]['minglobal']) !== null && _v !== void 0 ? _v : "0");
3126
+ tempMaxRiskResidualGlobal = tempMaxRiskResidualGlobal + ((parseInt((_w = this.events[mmdd][j]['maxglobal']) !== null && _w !== void 0 ? _w : "0") < parseInt((_x = this.events[mmdd][j]['minglobal']) !== null && _x !== void 0 ? _x : "0")) ? parseInt((_y = this.events[mmdd][j]['minglobal']) !== null && _y !== void 0 ? _y : "0") : parseInt((_z = this.events[mmdd][j]['maxglobal']) !== null && _z !== void 0 ? _z : "0"));
3125
3127
  }
3126
3128
  notStarted = notStarted + (partStatus == "not-started" ? 1 : 0);
3127
3129
  pendingApproval = pendingApproval + (partStatus == "pending-approval" ? 1 : 0);
@@ -3161,9 +3163,9 @@ let SfIEvents = class SfIEvents extends LitElement {
3161
3163
  csvValues += ('"' + ((this.events[mmdd][j]["party1"] + "").replace(/"/g, "") + '",'));
3162
3164
  csvValues += ('"' + ((this.events[mmdd][j]["party2"] + "").replace(/"/g, "") + '",'));
3163
3165
  csvValues += ('"' + ((this.events[mmdd][j]["party3"] + "").replace(/"/g, "") + '",'));
3164
- csvValues += ('"' + ((((_p = ((_o = this.events[mmdd][j]["reporters"]) !== null && _o !== void 0 ? _o : [])[0]) !== null && _p !== void 0 ? _p : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3165
- csvValues += ('"' + ((((_r = ((_q = this.events[mmdd][j]["approvers"]) !== null && _q !== void 0 ? _q : [])[0]) !== null && _r !== void 0 ? _r : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3166
- csvValues += ('"' + ((((_t = ((_s = this.events[mmdd][j]["functionheads"]) !== null && _s !== void 0 ? _s : [])[0]) !== null && _t !== void 0 ? _t : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3166
+ csvValues += ('"' + ((((_1 = ((_0 = this.events[mmdd][j]["reporters"]) !== null && _0 !== void 0 ? _0 : [])[0]) !== null && _1 !== void 0 ? _1 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3167
+ csvValues += ('"' + ((((_3 = ((_2 = this.events[mmdd][j]["approvers"]) !== null && _2 !== void 0 ? _2 : [])[0]) !== null && _3 !== void 0 ? _3 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3168
+ csvValues += ('"' + ((((_5 = ((_4 = this.events[mmdd][j]["functionheads"]) !== null && _4 !== void 0 ? _4 : [])[0]) !== null && _5 !== void 0 ? _5 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3167
3169
  csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
3168
3170
  csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
3169
3171
  csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
@@ -3190,19 +3192,19 @@ let SfIEvents = class SfIEvents extends LitElement {
3190
3192
  csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3191
3193
  csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3192
3194
  csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3193
- csvValues += ('"' + ((((_v = ((_u = this.events[mmdd][j]["reporters"]) !== null && _u !== void 0 ? _u : [])[0]) !== null && _v !== void 0 ? _v : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3194
- csvValues += ('"' + ((((_x = ((_w = this.events[mmdd][j]["approvers"]) !== null && _w !== void 0 ? _w : [])[0]) !== null && _x !== void 0 ? _x : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3195
- csvValues += ('"' + ((((_z = ((_y = this.events[mmdd][j]["functionheads"]) !== null && _y !== void 0 ? _y : [])[0]) !== null && _z !== void 0 ? _z : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3196
- csvValues += ('"' + (((_4 = (_3 = (_2 = (_1 = (_0 = this.events) === null || _0 === void 0 ? void 0 : _0[mmdd]) === null || _1 === void 0 ? void 0 : _1[j]) === null || _2 === void 0 ? void 0 : _2.statute) === null || _3 === void 0 ? void 0 : _3.state) !== null && _4 !== void 0 ? _4 : "") + '",'));
3195
+ csvValues += ('"' + ((((_7 = ((_6 = this.events[mmdd][j]["reporters"]) !== null && _6 !== void 0 ? _6 : [])[0]) !== null && _7 !== void 0 ? _7 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3196
+ csvValues += ('"' + ((((_9 = ((_8 = this.events[mmdd][j]["approvers"]) !== null && _8 !== void 0 ? _8 : [])[0]) !== null && _9 !== void 0 ? _9 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3197
+ csvValues += ('"' + ((((_11 = ((_10 = this.events[mmdd][j]["functionheads"]) !== null && _10 !== void 0 ? _10 : [])[0]) !== null && _11 !== void 0 ? _11 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3198
+ csvValues += ('"' + (((_16 = (_15 = (_14 = (_13 = (_12 = this.events) === null || _12 === void 0 ? void 0 : _12[mmdd]) === null || _13 === void 0 ? void 0 : _13[j]) === null || _14 === void 0 ? void 0 : _14.statute) === null || _15 === void 0 ? void 0 : _15.state) !== null && _16 !== void 0 ? _16 : "") + '",'));
3197
3199
  csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
3198
- csvValues += ('"' + (((_9 = (_8 = (_7 = (_6 = (_5 = this.events) === null || _5 === void 0 ? void 0 : _5[mmdd]) === null || _6 === void 0 ? void 0 : _6[j]) === null || _7 === void 0 ? void 0 : _7.complianceobj) === null || _8 === void 0 ? void 0 : _8.category) !== null && _9 !== void 0 ? _9 : "") + '",'));
3200
+ csvValues += ('"' + (((_21 = (_20 = (_19 = (_18 = (_17 = this.events) === null || _17 === void 0 ? void 0 : _17[mmdd]) === null || _18 === void 0 ? void 0 : _18[j]) === null || _19 === void 0 ? void 0 : _19.complianceobj) === null || _20 === void 0 ? void 0 : _20.category) !== null && _21 !== void 0 ? _21 : "") + '",'));
3199
3201
  csvValues += ('"' + (this.events[mmdd][j]["subcategory"] + '",'));
3200
- csvValues += ('"' + (((_14 = (_13 = (_12 = (_11 = (_10 = this.events) === null || _10 === void 0 ? void 0 : _10[mmdd]) === null || _11 === void 0 ? void 0 : _11[j]) === null || _12 === void 0 ? void 0 : _12.statute) === null || _13 === void 0 ? void 0 : _13.name) !== null && _14 !== void 0 ? _14 : "") + '",'));
3202
+ csvValues += ('"' + (((_26 = (_25 = (_24 = (_23 = (_22 = this.events) === null || _22 === void 0 ? void 0 : _22[mmdd]) === null || _23 === void 0 ? void 0 : _23[j]) === null || _24 === void 0 ? void 0 : _24.statute) === null || _25 === void 0 ? void 0 : _25.name) !== null && _26 !== void 0 ? _26 : "") + '",'));
3201
3203
  csvValues += ('"' + ((this.events[mmdd][j]["obligationtype"] + "").replace(/"/g, "") + '",'));
3202
3204
  csvValues += ('"' + ((this.events[mmdd][j]["risk"] + "").replace(/"/g, "") + '",'));
3203
3205
  csvValues += ('"' + ((this.events[mmdd][j]["riskarea"] + "").replace(/"/g, "") + '",'));
3204
3206
  csvValues += ('"' + ((this.events[mmdd][j]["frequency"] + "").replace(/"/g, "") + '",'));
3205
- csvValues += ('"' + ((((_19 = (_18 = (_17 = (_16 = (_15 = this.events) === null || _15 === void 0 ? void 0 : _15[mmdd]) === null || _16 === void 0 ? void 0 : _16[j]) === null || _17 === void 0 ? void 0 : _17.complianceobj) === null || _18 === void 0 ? void 0 : _18.subfrequency) !== null && _19 !== void 0 ? _19 : "") + "").replace(/"/g, "") + '",'));
3207
+ csvValues += ('"' + ((((_31 = (_30 = (_29 = (_28 = (_27 = this.events) === null || _27 === void 0 ? void 0 : _27[mmdd]) === null || _28 === void 0 ? void 0 : _28[j]) === null || _29 === void 0 ? void 0 : _29.complianceobj) === null || _30 === void 0 ? void 0 : _30.subfrequency) !== null && _31 !== void 0 ? _31 : "") + "").replace(/"/g, "") + '",'));
3206
3208
  csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
3207
3209
  csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
3208
3210
  csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
@@ -3213,16 +3215,16 @@ let SfIEvents = class SfIEvents extends LitElement {
3213
3215
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
3214
3216
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
3215
3217
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
3216
- + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + ((_24 = (_23 = (_22 = (_21 = (_20 = this.events) === null || _20 === void 0 ? void 0 : _20[mmdd]) === null || _21 === void 0 ? void 0 : _21[j]) === null || _22 === void 0 ? void 0 : _22.statute) === null || _23 === void 0 ? void 0 : _23.state) !== null && _24 !== void 0 ? _24 : "") + '</td>'
3218
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + ((_36 = (_35 = (_34 = (_33 = (_32 = this.events) === null || _32 === void 0 ? void 0 : _32[mmdd]) === null || _33 === void 0 ? void 0 : _33[j]) === null || _34 === void 0 ? void 0 : _34.statute) === null || _35 === void 0 ? void 0 : _35.state) !== null && _36 !== void 0 ? _36 : "") + '</td>'
3217
3219
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["jurisdiction"] + '</td>'
3218
- + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + ((_29 = (_28 = (_27 = (_26 = (_25 = this.events) === null || _25 === void 0 ? void 0 : _25[mmdd]) === null || _26 === void 0 ? void 0 : _26[j]) === null || _27 === void 0 ? void 0 : _27.complianceobj) === null || _28 === void 0 ? void 0 : _28.category) !== null && _29 !== void 0 ? _29 : "") + '</td>'
3220
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + ((_41 = (_40 = (_39 = (_38 = (_37 = this.events) === null || _37 === void 0 ? void 0 : _37[mmdd]) === null || _38 === void 0 ? void 0 : _38[j]) === null || _39 === void 0 ? void 0 : _39.complianceobj) === null || _40 === void 0 ? void 0 : _40.category) !== null && _41 !== void 0 ? _41 : "") + '</td>'
3219
3221
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["subcategory"] + '</td>'
3220
- + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + ((_34 = (_33 = (_32 = (_31 = (_30 = this.events) === null || _30 === void 0 ? void 0 : _30[mmdd]) === null || _31 === void 0 ? void 0 : _31[j]) === null || _32 === void 0 ? void 0 : _32.statute) === null || _33 === void 0 ? void 0 : _33.name) !== null && _34 !== void 0 ? _34 : "") + '</td>'
3222
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + ((_46 = (_45 = (_44 = (_43 = (_42 = this.events) === null || _42 === void 0 ? void 0 : _42[mmdd]) === null || _43 === void 0 ? void 0 : _43[j]) === null || _44 === void 0 ? void 0 : _44.statute) === null || _45 === void 0 ? void 0 : _45.name) !== null && _46 !== void 0 ? _46 : "") + '</td>'
3221
3223
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["obligationtype"] + '</td>'
3222
3224
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["risk"] + '</td>'
3223
3225
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["riskarea"] + '</td>'
3224
3226
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["frequency"] + '</td>'
3225
- + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (((_39 = (_38 = (_37 = (_36 = (_35 = this.events) === null || _35 === void 0 ? void 0 : _35[mmdd]) === null || _36 === void 0 ? void 0 : _36[j]) === null || _37 === void 0 ? void 0 : _37.complianceobj) === null || _38 === void 0 ? void 0 : _38.subfrequency) !== null && _39 !== void 0 ? _39 : "") + "").replace(/"/g, "") + '</td>'
3227
+ + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (((_51 = (_50 = (_49 = (_48 = (_47 = this.events) === null || _47 === void 0 ? void 0 : _47[mmdd]) === null || _48 === void 0 ? void 0 : _48[j]) === null || _49 === void 0 ? void 0 : _49.complianceobj) === null || _50 === void 0 ? void 0 : _50.subfrequency) !== null && _51 !== void 0 ? _51 : "") + "").replace(/"/g, "") + '</td>'
3226
3228
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["duedate"] + '</td>'
3227
3229
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide text-center status-format">' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '</td>'
3228
3230
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide status-format">' + this.getGraphParam(this.events[mmdd][j]) + '</td>'
@@ -3236,9 +3238,9 @@ let SfIEvents = class SfIEvents extends LitElement {
3236
3238
  csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3237
3239
  csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3238
3240
  csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3239
- csvValues += ('"' + ((((_41 = ((_40 = this.events[mmdd][j]["reporters"]) !== null && _40 !== void 0 ? _40 : [])[0]) !== null && _41 !== void 0 ? _41 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3240
- csvValues += ('"' + ((((_43 = ((_42 = this.events[mmdd][j]["approvers"]) !== null && _42 !== void 0 ? _42 : [])[0]) !== null && _43 !== void 0 ? _43 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3241
- csvValues += ('"' + ((((_45 = ((_44 = this.events[mmdd][j]["functionheads"]) !== null && _44 !== void 0 ? _44 : [])[0]) !== null && _45 !== void 0 ? _45 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3241
+ csvValues += ('"' + ((((_53 = ((_52 = this.events[mmdd][j]["reporters"]) !== null && _52 !== void 0 ? _52 : [])[0]) !== null && _53 !== void 0 ? _53 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3242
+ csvValues += ('"' + ((((_55 = ((_54 = this.events[mmdd][j]["approvers"]) !== null && _54 !== void 0 ? _54 : [])[0]) !== null && _55 !== void 0 ? _55 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3243
+ csvValues += ('"' + ((((_57 = ((_56 = this.events[mmdd][j]["functionheads"]) !== null && _56 !== void 0 ? _56 : [])[0]) !== null && _57 !== void 0 ? _57 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3242
3244
  csvValues += ('"' + (this.events[mmdd][j]["lastcheckeddate"] + '",'));
3243
3245
  csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
3244
3246
  csvValues += ('"' + ((this.events[mmdd][j]["terminated"] ? "Yes" : "No").replace(/"/g, "") + '",'));
@@ -3264,10 +3266,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3264
3266
  csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3265
3267
  csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3266
3268
  csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3267
- csvValues += ('"' + ((((_47 = ((_46 = this.events[mmdd][j]["functions"]) !== null && _46 !== void 0 ? _46 : [])[0]) !== null && _47 !== void 0 ? _47 : "").split(';')[0] + "").replace(/\((.*?)\)/g, "") + '",'));
3268
- csvValues += ('"' + ((((_49 = ((_48 = this.events[mmdd][j]["reporters"]) !== null && _48 !== void 0 ? _48 : [])[0]) !== null && _49 !== void 0 ? _49 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3269
- csvValues += ('"' + ((((_51 = ((_50 = this.events[mmdd][j]["approvers"]) !== null && _50 !== void 0 ? _50 : [])[0]) !== null && _51 !== void 0 ? _51 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3270
- csvValues += ('"' + ((((_53 = ((_52 = this.events[mmdd][j]["functionheads"]) !== null && _52 !== void 0 ? _52 : [])[0]) !== null && _53 !== void 0 ? _53 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3269
+ csvValues += ('"' + ((((_59 = ((_58 = this.events[mmdd][j]["functions"]) !== null && _58 !== void 0 ? _58 : [])[0]) !== null && _59 !== void 0 ? _59 : "").split(';')[0] + "").replace(/\((.*?)\)/g, "") + '",'));
3270
+ csvValues += ('"' + ((((_61 = ((_60 = this.events[mmdd][j]["reporters"]) !== null && _60 !== void 0 ? _60 : [])[0]) !== null && _61 !== void 0 ? _61 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3271
+ csvValues += ('"' + ((((_63 = ((_62 = this.events[mmdd][j]["approvers"]) !== null && _62 !== void 0 ? _62 : [])[0]) !== null && _63 !== void 0 ? _63 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3272
+ csvValues += ('"' + ((((_65 = ((_64 = this.events[mmdd][j]["functionheads"]) !== null && _64 !== void 0 ? _64 : [])[0]) !== null && _65 !== void 0 ? _65 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3271
3273
  csvValues += ('"' + (this.events[mmdd][j]["state"] + '",'));
3272
3274
  csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
3273
3275
  csvValues += ('"' + (this.events[mmdd][j]["category"] + '",'));
@@ -3336,7 +3338,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3336
3338
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + this.events[mmdd][j]["obligationtitle"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
3337
3339
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
3338
3340
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
3339
- for (let document of (_54 = this.events[mmdd][j].contractdocuments) !== null && _54 !== void 0 ? _54 : []) {
3341
+ for (let document of (_66 = this.events[mmdd][j].contractdocuments) !== null && _66 !== void 0 ? _66 : []) {
3340
3342
  htmlSummaryValues += `<sf-i-uploader class="summary-report-doc" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" prepopulatedInputArr="${JSON.stringify([{ "key": document.key, "ext": document.ext }]).replace(/"/g, '&quot;')}" projectid="${this.projectId} " extract="no" mode="view" maximize="yes" hidepreview="yes"></sf-i-uploader><br />`;
3341
3343
  }
3342
3344
  htmlSummaryValues += '</td></tr>';
@@ -3346,7 +3348,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3346
3348
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + this.events[mmdd][j]["obligationtitle"] + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
3347
3349
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide"><sf-i-elastic-text exportparts="highlight,highlight-count" text="' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '" minLength="100" lineSize="4"></sf-i-elastic-text></td>'
3348
3350
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
3349
- for (let document of (_55 = this.events[mmdd][j].licensedocuments) !== null && _55 !== void 0 ? _55 : []) {
3351
+ for (let document of (_67 = this.events[mmdd][j].licensedocuments) !== null && _67 !== void 0 ? _67 : []) {
3350
3352
  htmlSummaryValues += `<sf-i-uploader class="summary-report-doc" max="10" apiid="1peg5170d3" allowedextensions="[&quot;jpg&quot;,&quot;png&quot;,&quot;pdf&quot;,&quot;xls&quot;,&quot;xlsx&quot;,&quot;doc&quot;,&quot;docx&quot;]" prepopulatedInputArr="${JSON.stringify([{ "key": document.key, "ext": document.ext }]).replace(/"/g, '&quot;')}" projectid="${this.projectId} " extract="no" mode="view" maximize="yes" hidepreview="yes"></sf-i-uploader><br />`;
3351
3353
  }
3352
3354
  htmlSummaryValues += '</td></tr>';
@@ -3757,10 +3759,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3757
3759
  html += '<input id="input-approve-no" name="radio-approved" type="radio" checked/> No';
3758
3760
  html += '</div>';
3759
3761
  if (event['reportformat'] != null && event['reportformat'].length > 0) {
3760
- html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3762
+ html += '<div class="report-format-container" part="report-format-container"><div class="box"></div></div>';
3761
3763
  }
3762
3764
  else if (event['customreporting'] != null && event['customreporting'].length > 0) {
3763
- html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3765
+ html += '<div class="report-format-container" part="report-format-container"><div class="box"></div></div>';
3764
3766
  }
3765
3767
  html += '</div>';
3766
3768
  html += '</div>';
@@ -3849,10 +3851,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3849
3851
  // }
3850
3852
  html += '<br />';
3851
3853
  if (event['reportformat'] != null && event['reportformat'].length > 0) {
3852
- html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3854
+ html += '<div class="report-format-container" part="report-format-container"><div class="box"></div></div>';
3853
3855
  }
3854
3856
  else if (event['customreporting'] != null && event['customreporting'].length > 0) {
3855
- html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3857
+ html += '<div class="report-format-container" part="report-format-container"><div class="box"></div></div>';
3856
3858
  }
3857
3859
  html += '<br />';
3858
3860
  if (makercheckers.length > 0) {
@@ -11835,26 +11837,30 @@ let SfIEvents = class SfIEvents extends LitElement {
11835
11837
  reportingSchemaJson = listEvent.customreporting;
11836
11838
  }
11837
11839
  if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
11838
- let reportingHtml = '<sf-i-reporting id="reporting-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, subsection-container:reporting-subsection-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, remove-child-button:reporting-remove-child-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-subsection-container:reporting-reporting-subsection-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-remove-child-button:reporting-reporting-remove-child-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, input-sf-i-sub-select:reporting-input-sf-i-sub-select,reporting-input-sf-i-sub-select:reporting-reporting-input-sf-i-sub-select, select-input-select:reporting-select-input-select, sub-select-input-select:reporting-sub-select-input-select, list-container:reporting-list-container,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-list-container:reporting-reporting-list-container,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" mode="edit" flow="reporting" name="Contract Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>';
11839
- let reportFormatContainer = this._SfDetailContainer.querySelector('#report-format-container');
11840
- if (reportFormatContainer != null) {
11841
- reportFormatContainer.innerHTML = reportingHtml;
11842
- }
11843
- }
11844
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
11845
- if (reportingSchemaJson != "" && reportingReporting != null) {
11846
- reportingReporting.configjson = reportingSchemaJson;
11847
- if (reportingSchemaValues != "")
11848
- reportingReporting.prepopulateValJson = reportingSchemaValues;
11849
- reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
11850
- reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
11851
- reportingReporting.flow = "reporting";
11852
- setTimeout(() => {
11853
- reportingReporting.loadMode();
11854
- console.log('list-customreporting', reportingSchemaJson);
11855
- console.log('list-customreporting1', reportingSchemaValues);
11856
- console.log('list-customreporting2', reportingReporting.mode);
11857
- }, 500);
11840
+ let reportingHtml = '<sf-i-reporting class="reporting-reporting" id="reporting-reporting-[INDEX]" 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, subsection-container:reporting-subsection-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, remove-child-button:reporting-remove-child-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-subsection-container:reporting-reporting-subsection-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-remove-child-button:reporting-reporting-remove-child-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, input-sf-i-sub-select:reporting-input-sf-i-sub-select,reporting-input-sf-i-sub-select:reporting-reporting-input-sf-i-sub-select, select-input-select:reporting-select-input-select, sub-select-input-select:reporting-sub-select-input-select, list-container:reporting-list-container,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-list-container:reporting-reporting-list-container,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" mode="edit" flow="reporting" name="Contract Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>';
11841
+ let reportFormatContainers = this._SfDetailContainer.querySelectorAll('.report-format-container');
11842
+ for (let [indexContainer, reportFormatContainer] of Array.from(reportFormatContainers).entries()) {
11843
+ if (reportFormatContainer != null) {
11844
+ reportFormatContainer.innerHTML = reportingHtml.replace('[INDEX]', indexContainer.toString());
11845
+ }
11846
+ }
11847
+ }
11848
+ let reportingReportings = this._SfDetailContainer.querySelectorAll('.reporting-reporting');
11849
+ for (let reportingReporting of reportingReportings) {
11850
+ if (reportingSchemaJson != "" && reportingReporting != null) {
11851
+ reportingReporting.configjson = reportingSchemaJson;
11852
+ if (reportingSchemaValues != "")
11853
+ reportingReporting.prepopulateValJson = reportingSchemaValues;
11854
+ reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
11855
+ reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
11856
+ reportingReporting.flow = "reporting";
11857
+ setTimeout(() => {
11858
+ reportingReporting.loadMode();
11859
+ console.log('list-customreporting', reportingSchemaJson);
11860
+ console.log('list-customreporting1', reportingSchemaValues);
11861
+ console.log('list-customreporting2', reportingReporting.mode);
11862
+ }, 500);
11863
+ }
11858
11864
  }
11859
11865
  (_a = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
11860
11866
  this._SfDetailContainer.innerHTML = '';
@@ -11926,7 +11932,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11926
11932
  return;
11927
11933
  }
11928
11934
  let reportformatvalues = "";
11929
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
11935
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
11930
11936
  console.log('renew reporting', reportingReporting);
11931
11937
  if (reportingReporting != null) {
11932
11938
  reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
@@ -12193,7 +12199,10 @@ let SfIEvents = class SfIEvents extends LitElement {
12193
12199
  let reportformatvalues = "";
12194
12200
  let reportformatschema = "";
12195
12201
  if (listEvent.customreporting != null) {
12196
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
12202
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-1');
12203
+ if (reportingReporting == null) {
12204
+ reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
12205
+ }
12197
12206
  console.log('reportformatvalues', JSON.stringify(reportingReporting.selectedValues()));
12198
12207
  reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
12199
12208
  reportformatschema = (_b = reportingReporting.configjson) !== null && _b !== void 0 ? _b : "";
@@ -12627,26 +12636,30 @@ let SfIEvents = class SfIEvents extends LitElement {
12627
12636
  reportingSchemaJson = listEvent.customreporting;
12628
12637
  }
12629
12638
  if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
12630
- let reportingHtml = '<sf-i-reporting id="reporting-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, subsection-container:reporting-subsection-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, remove-child-button:reporting-remove-child-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-subsection-container:reporting-reporting-subsection-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-remove-child-button:reporting-reporting-remove-child-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, input-sf-i-sub-select:reporting-input-sf-i-sub-select,reporting-input-sf-i-sub-select:reporting-reporting-input-sf-i-sub-select, select-input-select:reporting-select-input-select, sub-select-input-select:reporting-sub-select-input-select, list-container:reporting-list-container,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, list-container:reporting-list-container,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" mode="edit" flow="reporting" name="License Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>';
12631
- let reportFormatContainer = this._SfDetailContainer.querySelector('#report-format-container');
12632
- if (reportFormatContainer != null) {
12633
- reportFormatContainer.innerHTML = reportingHtml;
12634
- }
12635
- }
12636
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
12637
- if (reportingSchemaJson != "" && reportingReporting != null) {
12638
- reportingReporting.configjson = reportingSchemaJson;
12639
- if (reportingSchemaValues != "")
12640
- reportingReporting.prepopulateValJson = reportingSchemaValues;
12641
- reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
12642
- reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
12643
- reportingReporting.flow = "reporting";
12644
- setTimeout(() => {
12645
- reportingReporting.loadMode();
12646
- console.log('list-customreporting', reportingSchemaJson);
12647
- console.log('list-customreporting1', reportingSchemaValues);
12648
- console.log('list-customreporting2', reportingReporting.mode);
12649
- }, 500);
12639
+ let reportingHtml = '<sf-i-reporting class="reporting-reporting" id="reporting-reporting-[INDEX]" 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, subsection-container:reporting-subsection-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, remove-child-button:reporting-remove-child-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-subsection-container:reporting-reporting-subsection-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-remove-child-button:reporting-reporting-remove-child-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, input-sf-i-sub-select:reporting-input-sf-i-sub-select,reporting-input-sf-i-sub-select:reporting-reporting-input-sf-i-sub-select, select-input-select:reporting-select-input-select, sub-select-input-select:reporting-sub-select-input-select, list-container:reporting-list-container,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, list-container:reporting-list-container,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" mode="edit" flow="reporting" name="License Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>';
12640
+ let reportFormatContainers = this._SfDetailContainer.querySelectorAll('.report-format-container');
12641
+ for (let [indexContainer, reportFormatContainer] of reportFormatContainers.entries()) {
12642
+ if (reportFormatContainer != null) {
12643
+ reportFormatContainer.innerHTML = reportingHtml.replace('[INDEX]', indexContainer + '');
12644
+ }
12645
+ }
12646
+ }
12647
+ let reportingReportings = this._SfDetailContainer.querySelectorAll('.reporting-reporting');
12648
+ for (let reportingReporting of reportingReportings) {
12649
+ if (reportingSchemaJson != "" && reportingReporting != null) {
12650
+ reportingReporting.configjson = reportingSchemaJson;
12651
+ if (reportingSchemaValues != "")
12652
+ reportingReporting.prepopulateValJson = reportingSchemaValues;
12653
+ reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
12654
+ reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
12655
+ reportingReporting.flow = "reporting";
12656
+ setTimeout(() => {
12657
+ reportingReporting.loadMode();
12658
+ console.log('list-customreporting', reportingSchemaJson);
12659
+ console.log('list-customreporting1', reportingSchemaValues);
12660
+ console.log('list-customreporting2', reportingReporting.mode);
12661
+ }, 500);
12662
+ }
12650
12663
  }
12651
12664
  (_a = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
12652
12665
  this._SfDetailContainer.innerHTML = '';
@@ -12718,7 +12731,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12718
12731
  return;
12719
12732
  }
12720
12733
  let reportformatvalues = "";
12721
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
12734
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
12722
12735
  console.log('renew reporting', reportingReporting);
12723
12736
  if (reportingReporting != null) {
12724
12737
  reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
@@ -12985,7 +12998,10 @@ let SfIEvents = class SfIEvents extends LitElement {
12985
12998
  let reportformatvalues = "";
12986
12999
  let reportformatschema = "";
12987
13000
  if (listEvent.customreporting != null) {
12988
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
13001
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-1');
13002
+ if (reportingReporting == null) {
13003
+ reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
13004
+ }
12989
13005
  console.log('reportformatvalues', JSON.stringify(reportingReporting.selectedValues()));
12990
13006
  reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
12991
13007
  reportformatschema = (_b = reportingReporting.configjson) !== null && _b !== void 0 ? _b : "";
@@ -13423,29 +13439,33 @@ let SfIEvents = class SfIEvents extends LitElement {
13423
13439
  reportingSchemaJson = listEvent.customreporting;
13424
13440
  }
13425
13441
  if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
13426
- let reportingHtml = '<sf-i-reporting id="reporting-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, subsection-container:reporting-subsection-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, remove-child-button:reporting-remove-child-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-subsection-container:reporting-reporting-subsection-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-remove-child-button:reporting-reporting-remove-child-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, input-sf-i-sub-select:reporting-input-sf-i-sub-select,reporting-input-sf-i-sub-select:reporting-reporting-input-sf-i-sub-select, select-input-select:reporting-select-input-select, sub-select-input-select:reporting-sub-select-input-select,list-container:reporting-list-container, 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-list-container:reporting-reporting-list-container,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, reporting-select-input-select:reporting-reporting-select-input-select, reporting-sub-select-input-select:reporting-reporting-sub-select-input-select" mode="edit" flow="reporting" name="RCM Resource Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>';
13427
- let reportFormatContainer = this._SfDetailContainer.querySelector('#report-format-container');
13428
- if (reportFormatContainer != null) {
13429
- reportFormatContainer.innerHTML = reportingHtml;
13430
- }
13431
- }
13432
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
13433
- if (reportingSchemaJson != "" && reportingReporting != null) {
13434
- reportingReporting.configjson = reportingSchemaJson;
13435
- if (reportingSchemaValues != "")
13436
- reportingReporting.prepopulateValJson = reportingSchemaValues;
13437
- // reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view"
13438
- // reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true"
13439
- reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_APPROVER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
13440
- reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_APPROVER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
13441
- reportingReporting.flow = "reporting";
13442
- setTimeout(() => {
13443
- reportingReporting.loadMode();
13444
- console.log('list-customreporting', reportingSchemaJson);
13445
- console.log('list-customreporting1', reportingSchemaValues);
13446
- console.log('list-customreporting2', reportingReporting.mode);
13447
- console.log('list-customreporting3', this.myRole);
13448
- }, 500);
13442
+ let reportingHtml = '<sf-i-reporting class="reporting-reporting" id="reporting-reporting-[INDEX]" 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, subsection-container:reporting-subsection-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, remove-child-button:reporting-remove-child-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-subsection-container:reporting-reporting-subsection-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-remove-child-button:reporting-reporting-remove-child-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, input-sf-i-sub-select:reporting-input-sf-i-sub-select,reporting-input-sf-i-sub-select:reporting-reporting-input-sf-i-sub-select, select-input-select:reporting-select-input-select, sub-select-input-select:reporting-sub-select-input-select,list-container:reporting-list-container, 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-list-container:reporting-reporting-list-container,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, reporting-select-input-select:reporting-reporting-select-input-select, reporting-sub-select-input-select:reporting-reporting-sub-select-input-select" mode="edit" flow="reporting" name="RCM Resource Reporting" formviewclass="flex-wrap" showterminate="true" projectid="' + this.projectId + '"></sf-i-reporting>';
13443
+ let reportFormatContainers = this._SfDetailContainer.querySelectorAll('.report-format-container');
13444
+ for (let [indexContainer, reportFormatContainer] of reportFormatContainers.entries()) {
13445
+ if (reportFormatContainer != null) {
13446
+ reportFormatContainer.innerHTML = reportingHtml.replace('[INDEX]', indexContainer.toString());
13447
+ }
13448
+ }
13449
+ }
13450
+ let reportingReportings = this._SfDetailContainer.querySelectorAll('.reporting-reporting');
13451
+ for (let reportingReporting of reportingReportings) {
13452
+ if (reportingSchemaJson != "" && reportingReporting != null) {
13453
+ reportingReporting.configjson = reportingSchemaJson;
13454
+ if (reportingSchemaValues != "")
13455
+ reportingReporting.prepopulateValJson = reportingSchemaValues;
13456
+ // reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view"
13457
+ // reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true"
13458
+ reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_APPROVER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
13459
+ reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_APPROVER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
13460
+ reportingReporting.flow = "reporting";
13461
+ setTimeout(() => {
13462
+ reportingReporting.loadMode();
13463
+ console.log('list-customreporting', reportingSchemaJson);
13464
+ console.log('list-customreporting1', reportingSchemaValues);
13465
+ console.log('list-customreporting2', reportingReporting.mode);
13466
+ console.log('list-customreporting3', this.myRole);
13467
+ }, 500);
13468
+ }
13449
13469
  }
13450
13470
  (_a = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
13451
13471
  this._SfDetailContainer.innerHTML = '';
@@ -13518,7 +13538,7 @@ let SfIEvents = class SfIEvents extends LitElement {
13518
13538
  }
13519
13539
  let reportformatvalues = {};
13520
13540
  let reportformatvaluesStr = "";
13521
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
13541
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
13522
13542
  console.log('renew reporting', reportingReporting);
13523
13543
  if (reportingReporting != null) {
13524
13544
  reportformatvalues = reportingReporting.selectedValues();
@@ -13792,7 +13812,10 @@ let SfIEvents = class SfIEvents extends LitElement {
13792
13812
  let reportformatvalues = "";
13793
13813
  let reportformatschema = "";
13794
13814
  if (listEvent.customreporting != null) {
13795
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
13815
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-1');
13816
+ if (reportingReporting == null) {
13817
+ reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
13818
+ }
13796
13819
  console.log('reportformatvalues', JSON.stringify(reportingReporting.selectedValues()));
13797
13820
  reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
13798
13821
  reportformatschema = (_b = reportingReporting.configjson) !== null && _b !== void 0 ? _b : "";
@@ -13801,37 +13824,6 @@ let SfIEvents = class SfIEvents extends LitElement {
13801
13824
  if (this._SfDetailContainer.querySelector('#input-reporter-percentage') != null) {
13802
13825
  percentage = this._SfDetailContainer.querySelector('#input-reporter-percentage').value;
13803
13826
  }
13804
- // if (Number.isNaN(parseInt(percentage)) || parseInt(percentage) < 0 || parseInt(percentage) > 100) {
13805
- // //console.log('reporter comments 3', reportercomments);
13806
- // buttonClick.innerHTML = "Save"
13807
- // this.setError('Invalid Percentage!');
13808
- // setTimeout(() => {
13809
- // this.clearMessages();
13810
- // }, 3000);
13811
- // } else {
13812
- // if (docs.length === 0 && docsOptional.length === 0) {
13813
- // //console.log('reporter comments 3', reportercomments);
13814
- // buttonClick.innerHTML = "Save"
13815
- // this.setError('No documents uploaded!');
13816
- // setTimeout(() => {
13817
- // this.clearMessages();
13818
- // }, 3000);
13819
- // } else {
13820
- // //console.log('reporterdoc', reporterdoc);
13821
- // if (reporterdoc.length === 0) {
13822
- // buttonClick.innerHTML = "Save"
13823
- // this.setError('Date of completion not selected!');
13824
- // setTimeout(() => {
13825
- // this.clearMessages();
13826
- // }, 3000);
13827
- // } else if (parseInt(reporterdoc) > new Date().getTime()) {
13828
- // buttonClick.innerHTML = "Save"
13829
- // this.setError('Date of completion cannot be in future!');
13830
- // setTimeout(() => {
13831
- // this.clearMessages();
13832
- // }, 3000);
13833
- // } else {
13834
- //console.log('makerscheckers 1', reportercomments);
13835
13827
  if (reportercomments.trim().length === 0) {
13836
13828
  buttonClick.innerHTML = "Save";
13837
13829
  this.setError('Comments cannot be blank!');
@@ -17728,7 +17720,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17728
17720
  html += '<div id="div-subfiltered"></div>';
17729
17721
  html += '</div>';
17730
17722
  html += '<br />';
17731
- html += '<div class="d-flex justify-center align-center w-100 mt-20 scroll-x">';
17723
+ // html += '<div class="d-flex justify-center align-center w-100 mt-20 scroll-x">';
17732
17724
  html += '<table id="table-data" class="mt-20" style="height: 200px">';
17733
17725
  html += '<thead>';
17734
17726
  // html += '<th part="td-head" class="td-head">'
@@ -17786,12 +17778,12 @@ let SfIEvents = class SfIEvents extends LitElement {
17786
17778
  // html += '<td class="left-sticky td-body ' + classBg + '" ><div class=""><input id="cb-' + i + '" type="checkbox" class="checkbox-row cb-select"/></div></td>';
17787
17779
  html += '<td class="left-sticky td-body ' + classBg + '" part="td-key">';
17788
17780
  html += '<div class="">';
17789
- html += '<input id="suspense-' + i + '" type="checkbox" part="input" class="suspense-input"' + ((suspenseList[suspenseKey] != null && suspenseList[suspenseKey] != false) ? ' checked' : '') + '/>';
17781
+ html += '<input id="suspense-' + i + '" type="checkbox" class="suspense-input"' + ((suspenseList[suspenseKey] != null && suspenseList[suspenseKey] != false) ? ' checked' : '') + '/>';
17790
17782
  html += '</div>';
17791
17783
  html += '</td>';
17792
17784
  for (var l = 0; l < uniqCols.length; l++) {
17793
17785
  // console.log('uniqcolval', uniqCols[l], sourceArray.data.mappings.mappings[i], sourceArray.data.mappings.mappings[i][uniqCols[l]]);
17794
- html += '<td class="td-body ' + classBg + '" part="td-key">';
17786
+ html += '<td class="' + classBg + '" part="td-body">';
17795
17787
  html += '<div class="">';
17796
17788
  html += '<sf-i-elastic-text exportparts="highlight,highlight-count" text="' + sourceArray.data.mappings.mappings[i][uniqCols[l]].replace(/ *\([^)]*\) */g, "") + '" minLength="20"></sf-i-elastic-text>';
17797
17789
  html += '</div>';
@@ -17823,7 +17815,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17823
17815
  }
17824
17816
  html += '</tbody>';
17825
17817
  html += '</table>';
17826
- html += '</div>';
17818
+ // html += '</div>';
17827
17819
  html += '</div>';
17828
17820
  this._SfOnboardingSuspenseContainer.innerHTML = html;
17829
17821
  const buttonApply = this._SfOnboardingSuspenseContainer.querySelector('.button-apply');