sf-i-events 1.0.959 → 1.0.961

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
@@ -154,6 +154,7 @@ let SfIEvents = class SfIEvents extends LitElement {
154
154
  padding-right: 20px;
155
155
  border-radius: 10px;
156
156
  position: relative;
157
+ z-index: 1;
157
158
  }
158
159
  .certificate-section h1 {
159
160
  font-family: Belanosima;
@@ -281,13 +282,16 @@ let SfIEvents = class SfIEvents extends LitElement {
281
282
  background-image: url(https://flagggrc-images.s3.amazonaws.com/logo.png);
282
283
  background-position: center;
283
284
  background-repeat: repeat;
284
- background-size: 20%;
285
- opacity: 5%;
285
+ background-size: 200px 53.58px;
286
+ transform: translateZ(0);
287
+ image-rendering: pixelated;
288
+ opacity: 0.05;
286
289
  left: 0;
287
290
  right: 0;
288
291
  top: 0;
289
292
  bottom: 0;
290
293
  position: absolute;
294
+ z-inidex: 0;
291
295
  }
292
296
  </style>
293
297
  </head>
@@ -2393,7 +2397,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2393
2397
 
2394
2398
  <!-- Upper (Mitigated / Addressed Risk) -->
2395
2399
  <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>
2400
+ <div part="financial-risk-section-label" style="font-weight:700;font-size:15px;color:#000;">Higher</div>
2397
2401
  <div part="financial-risk-table-container" class="d-flex align-center" style="gap:8px;">
2398
2402
  <div part="financial-risk-table-col" class="d-flex flex-col align-center">
2399
2403
  <span part="financial-risk-table-row-label" style="color:#555;font-weight:500;font-size:13px;">Addressed</span>
@@ -2593,7 +2597,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2593
2597
  return html;
2594
2598
  };
2595
2599
  this.renderCalendarRowDivItemDivStart = (mmdd, event, itemNumber, partStatus, bgStatus) => {
2596
- var _a, _b, _c, _f, _g;
2600
+ var _a, _b, _c, _f, _g, _h, _j, _k, _l;
2597
2601
  var html = '';
2598
2602
  var remarks = "";
2599
2603
  var occurrenceDate = "";
@@ -2696,8 +2700,8 @@ let SfIEvents = class SfIEvents extends LitElement {
2696
2700
  ${lastUpdated}
2697
2701
  </div>
2698
2702
  ` : ''}
2699
- ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${event['minlocal']}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${event['minglobal']}</div>`}
2700
- ${this.finRiskCurrency == event['localcurrency'] ? `<div part="event-min" class="ml-10 d-flex align-center">${event['maxlocal']}</div>` : `<div part="event-min" class="ml-10 d-flex align-center">${event['maxglobal']}</div>`}
2703
+ ${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>`}
2704
+ ${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>`}
2701
2705
  </div>
2702
2706
  `;
2703
2707
  if (event.concise == null && remarks.length > 0) {
@@ -2993,7 +2997,7 @@ let SfIEvents = class SfIEvents extends LitElement {
2993
2997
  };
2994
2998
  //(firstDay, endDay, 1, lastDay, true, 0, (firstDate.getMonth()), period, firstDate,"From " + firstDay.toLocaleDateString('en-IN') + " To " + endDay.toLocaleDateString('en-IN'), showBackgroundButton)
2995
2999
  this.renderEvents = (_firstDay, _endDay, iInit, iLast, showGraph, index, month, period, firstDate = null, parametersTitle, showBackgroundButton, fromDrilldown = false) => {
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;
3000
+ 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;
2997
3001
  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;
2998
3002
  var html = '';
2999
3003
  this.selectedItemIds = [];
@@ -3115,15 +3119,15 @@ let SfIEvents = class SfIEvents extends LitElement {
3115
3119
  }
3116
3120
  if (partStatus == "approved") {
3117
3121
  tempMinRiskMitigatedLocal = tempMinRiskMitigatedLocal + parseInt((_c = this.events[mmdd][j]['minlocal']) !== null && _c !== void 0 ? _c : "0");
3118
- tempMaxRiskMitigatedLocal = tempMaxRiskMitigatedLocal + parseInt((_f = this.events[mmdd][j]['maxlocal']) !== null && _f !== void 0 ? _f : "0");
3119
- tempMinRiskMitigatedGlobal = tempMinRiskMitigatedGlobal + parseInt((_g = this.events[mmdd][j]['minglobal']) !== null && _g !== void 0 ? _g : "0");
3120
- tempMaxRiskMitigatedGlobal = tempMaxRiskMitigatedGlobal + parseInt((_h = this.events[mmdd][j]['maxglobal']) !== null && _h !== void 0 ? _h : "0");
3122
+ 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"));
3123
+ tempMinRiskMitigatedGlobal = tempMinRiskMitigatedGlobal + parseInt((_k = this.events[mmdd][j]['minglobal']) !== null && _k !== void 0 ? _k : "0");
3124
+ 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"));
3121
3125
  }
3122
3126
  else {
3123
- tempMinRiskResidualLocal = tempMinRiskResidualLocal + parseInt((_j = this.events[mmdd][j]['minlocal']) !== null && _j !== void 0 ? _j : "0");
3124
- tempMaxRiskResidualLocal = tempMaxRiskResidualLocal + parseInt((_k = this.events[mmdd][j]['maxlocal']) !== null && _k !== void 0 ? _k : "0");
3125
- tempMinRiskResidualGlobal = tempMinRiskResidualGlobal + parseInt((_l = this.events[mmdd][j]['minglobal']) !== null && _l !== void 0 ? _l : "0");
3126
- tempMaxRiskResidualGlobal = tempMaxRiskResidualGlobal + parseInt((_m = this.events[mmdd][j]['maxglobal']) !== null && _m !== void 0 ? _m : "0");
3127
+ tempMinRiskResidualLocal = tempMinRiskResidualLocal + parseInt((_q = this.events[mmdd][j]['minlocal']) !== null && _q !== void 0 ? _q : "0");
3128
+ 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"));
3129
+ tempMinRiskResidualGlobal = tempMinRiskResidualGlobal + parseInt((_v = this.events[mmdd][j]['minglobal']) !== null && _v !== void 0 ? _v : "0");
3130
+ 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"));
3127
3131
  }
3128
3132
  notStarted = notStarted + (partStatus == "not-started" ? 1 : 0);
3129
3133
  pendingApproval = pendingApproval + (partStatus == "pending-approval" ? 1 : 0);
@@ -3163,9 +3167,9 @@ let SfIEvents = class SfIEvents extends LitElement {
3163
3167
  csvValues += ('"' + ((this.events[mmdd][j]["party1"] + "").replace(/"/g, "") + '",'));
3164
3168
  csvValues += ('"' + ((this.events[mmdd][j]["party2"] + "").replace(/"/g, "") + '",'));
3165
3169
  csvValues += ('"' + ((this.events[mmdd][j]["party3"] + "").replace(/"/g, "") + '",'));
3166
- csvValues += ('"' + ((((_p = ((_o = this.events[mmdd][j]["reporters"]) !== null && _o !== void 0 ? _o : [])[0]) !== null && _p !== void 0 ? _p : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3167
- csvValues += ('"' + ((((_r = ((_q = this.events[mmdd][j]["approvers"]) !== null && _q !== void 0 ? _q : [])[0]) !== null && _r !== void 0 ? _r : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3168
- csvValues += ('"' + ((((_t = ((_s = this.events[mmdd][j]["functionheads"]) !== null && _s !== void 0 ? _s : [])[0]) !== null && _t !== void 0 ? _t : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3170
+ csvValues += ('"' + ((((_1 = ((_0 = this.events[mmdd][j]["reporters"]) !== null && _0 !== void 0 ? _0 : [])[0]) !== null && _1 !== void 0 ? _1 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3171
+ csvValues += ('"' + ((((_3 = ((_2 = this.events[mmdd][j]["approvers"]) !== null && _2 !== void 0 ? _2 : [])[0]) !== null && _3 !== void 0 ? _3 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3172
+ csvValues += ('"' + ((((_5 = ((_4 = this.events[mmdd][j]["functionheads"]) !== null && _4 !== void 0 ? _4 : [])[0]) !== null && _5 !== void 0 ? _5 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3169
3173
  csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
3170
3174
  csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
3171
3175
  csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
@@ -3192,19 +3196,19 @@ let SfIEvents = class SfIEvents extends LitElement {
3192
3196
  csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3193
3197
  csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3194
3198
  csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3195
- csvValues += ('"' + ((((_v = ((_u = this.events[mmdd][j]["reporters"]) !== null && _u !== void 0 ? _u : [])[0]) !== null && _v !== void 0 ? _v : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3196
- csvValues += ('"' + ((((_x = ((_w = this.events[mmdd][j]["approvers"]) !== null && _w !== void 0 ? _w : [])[0]) !== null && _x !== void 0 ? _x : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3197
- csvValues += ('"' + ((((_z = ((_y = this.events[mmdd][j]["functionheads"]) !== null && _y !== void 0 ? _y : [])[0]) !== null && _z !== void 0 ? _z : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3198
- 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 : "") + '",'));
3199
+ csvValues += ('"' + ((((_7 = ((_6 = this.events[mmdd][j]["reporters"]) !== null && _6 !== void 0 ? _6 : [])[0]) !== null && _7 !== void 0 ? _7 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3200
+ csvValues += ('"' + ((((_9 = ((_8 = this.events[mmdd][j]["approvers"]) !== null && _8 !== void 0 ? _8 : [])[0]) !== null && _9 !== void 0 ? _9 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3201
+ csvValues += ('"' + ((((_11 = ((_10 = this.events[mmdd][j]["functionheads"]) !== null && _10 !== void 0 ? _10 : [])[0]) !== null && _11 !== void 0 ? _11 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3202
+ 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 : "") + '",'));
3199
3203
  csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
3200
- 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 : "") + '",'));
3204
+ 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 : "") + '",'));
3201
3205
  csvValues += ('"' + (this.events[mmdd][j]["subcategory"] + '",'));
3202
- 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 : "") + '",'));
3206
+ 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 : "") + '",'));
3203
3207
  csvValues += ('"' + ((this.events[mmdd][j]["obligationtype"] + "").replace(/"/g, "") + '",'));
3204
3208
  csvValues += ('"' + ((this.events[mmdd][j]["risk"] + "").replace(/"/g, "") + '",'));
3205
3209
  csvValues += ('"' + ((this.events[mmdd][j]["riskarea"] + "").replace(/"/g, "") + '",'));
3206
3210
  csvValues += ('"' + ((this.events[mmdd][j]["frequency"] + "").replace(/"/g, "") + '",'));
3207
- 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, "") + '",'));
3211
+ 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, "") + '",'));
3208
3212
  csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
3209
3213
  csvValues += ('"' + (this.renderStatusString(partStatus, lateStatus, complianceStatus) + '",'));
3210
3214
  csvValues += ('"' + (this.getGraphParam(this.events[mmdd][j]) + '"\n'));
@@ -3215,16 +3219,16 @@ let SfIEvents = class SfIEvents extends LitElement {
3215
3219
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
3216
3220
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
3217
3221
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + (this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '</td>'
3218
- + '<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>'
3222
+ + '<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>'
3219
3223
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["jurisdiction"] + '</td>'
3220
- + '<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>'
3224
+ + '<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>'
3221
3225
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["subcategory"] + '</td>'
3222
- + '<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>'
3226
+ + '<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>'
3223
3227
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["obligationtype"] + '</td>'
3224
3228
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["risk"] + '</td>'
3225
3229
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">' + this.events[mmdd][j]["riskarea"] + '</td>'
3226
3230
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["frequency"] + '</td>'
3227
- + '<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>'
3231
+ + '<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>'
3228
3232
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-thin">' + this.events[mmdd][j]["duedate"] + '</td>'
3229
3233
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide text-center status-format">' + this.renderStatusString(partStatus, lateStatus, complianceStatus) + '</td>'
3230
3234
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide status-format">' + this.getGraphParam(this.events[mmdd][j]) + '</td>'
@@ -3238,9 +3242,9 @@ let SfIEvents = class SfIEvents extends LitElement {
3238
3242
  csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3239
3243
  csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3240
3244
  csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3241
- csvValues += ('"' + ((((_41 = ((_40 = this.events[mmdd][j]["reporters"]) !== null && _40 !== void 0 ? _40 : [])[0]) !== null && _41 !== void 0 ? _41 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3242
- csvValues += ('"' + ((((_43 = ((_42 = this.events[mmdd][j]["approvers"]) !== null && _42 !== void 0 ? _42 : [])[0]) !== null && _43 !== void 0 ? _43 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3243
- csvValues += ('"' + ((((_45 = ((_44 = this.events[mmdd][j]["functionheads"]) !== null && _44 !== void 0 ? _44 : [])[0]) !== null && _45 !== void 0 ? _45 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3245
+ csvValues += ('"' + ((((_53 = ((_52 = this.events[mmdd][j]["reporters"]) !== null && _52 !== void 0 ? _52 : [])[0]) !== null && _53 !== void 0 ? _53 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3246
+ csvValues += ('"' + ((((_55 = ((_54 = this.events[mmdd][j]["approvers"]) !== null && _54 !== void 0 ? _54 : [])[0]) !== null && _55 !== void 0 ? _55 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3247
+ csvValues += ('"' + ((((_57 = ((_56 = this.events[mmdd][j]["functionheads"]) !== null && _56 !== void 0 ? _56 : [])[0]) !== null && _57 !== void 0 ? _57 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3244
3248
  csvValues += ('"' + (this.events[mmdd][j]["lastcheckeddate"] + '",'));
3245
3249
  csvValues += ('"' + ((this.events[mmdd][j]["duedate"] + "").replace(/"/g, "") + '",'));
3246
3250
  csvValues += ('"' + ((this.events[mmdd][j]["terminated"] ? "Yes" : "No").replace(/"/g, "") + '",'));
@@ -3266,10 +3270,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3266
3270
  csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3267
3271
  csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3268
3272
  csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
3269
- csvValues += ('"' + ((((_47 = ((_46 = this.events[mmdd][j]["functions"]) !== null && _46 !== void 0 ? _46 : [])[0]) !== null && _47 !== void 0 ? _47 : "").split(';')[0] + "").replace(/\((.*?)\)/g, "") + '",'));
3270
- csvValues += ('"' + ((((_49 = ((_48 = this.events[mmdd][j]["reporters"]) !== null && _48 !== void 0 ? _48 : [])[0]) !== null && _49 !== void 0 ? _49 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3271
- csvValues += ('"' + ((((_51 = ((_50 = this.events[mmdd][j]["approvers"]) !== null && _50 !== void 0 ? _50 : [])[0]) !== null && _51 !== void 0 ? _51 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3272
- csvValues += ('"' + ((((_53 = ((_52 = this.events[mmdd][j]["functionheads"]) !== null && _52 !== void 0 ? _52 : [])[0]) !== null && _53 !== void 0 ? _53 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3273
+ csvValues += ('"' + ((((_59 = ((_58 = this.events[mmdd][j]["functions"]) !== null && _58 !== void 0 ? _58 : [])[0]) !== null && _59 !== void 0 ? _59 : "").split(';')[0] + "").replace(/\((.*?)\)/g, "") + '",'));
3274
+ csvValues += ('"' + ((((_61 = ((_60 = this.events[mmdd][j]["reporters"]) !== null && _60 !== void 0 ? _60 : [])[0]) !== null && _61 !== void 0 ? _61 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3275
+ csvValues += ('"' + ((((_63 = ((_62 = this.events[mmdd][j]["approvers"]) !== null && _62 !== void 0 ? _62 : [])[0]) !== null && _63 !== void 0 ? _63 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3276
+ csvValues += ('"' + ((((_65 = ((_64 = this.events[mmdd][j]["functionheads"]) !== null && _64 !== void 0 ? _64 : [])[0]) !== null && _65 !== void 0 ? _65 : "").split(';')[0] + "").replace(/"/g, "") + '",'));
3273
3277
  csvValues += ('"' + (this.events[mmdd][j]["state"] + '",'));
3274
3278
  csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
3275
3279
  csvValues += ('"' + (this.events[mmdd][j]["category"] + '",'));
@@ -3338,7 +3342,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3338
3342
  + '<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>'
3339
3343
  + '<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>'
3340
3344
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
3341
- for (let document of (_54 = this.events[mmdd][j].contractdocuments) !== null && _54 !== void 0 ? _54 : []) {
3345
+ for (let document of (_66 = this.events[mmdd][j].contractdocuments) !== null && _66 !== void 0 ? _66 : []) {
3342
3346
  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 />`;
3343
3347
  }
3344
3348
  htmlSummaryValues += '</td></tr>';
@@ -3348,7 +3352,7 @@ let SfIEvents = class SfIEvents extends LitElement {
3348
3352
  + '<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>'
3349
3353
  + '<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>'
3350
3354
  + '<td class="' + (total % 2 === 0 ? 'td-odd' : 'td-even') + ' td-wide">');
3351
- for (let document of (_55 = this.events[mmdd][j].licensedocuments) !== null && _55 !== void 0 ? _55 : []) {
3355
+ for (let document of (_67 = this.events[mmdd][j].licensedocuments) !== null && _67 !== void 0 ? _67 : []) {
3352
3356
  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 />`;
3353
3357
  }
3354
3358
  htmlSummaryValues += '</td></tr>';
@@ -3759,10 +3763,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3759
3763
  html += '<input id="input-approve-no" name="radio-approved" type="radio" checked/> No';
3760
3764
  html += '</div>';
3761
3765
  if (event['reportformat'] != null && event['reportformat'].length > 0) {
3762
- html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3766
+ html += '<div class="report-format-container" part="report-format-container"><div class="box"></div></div>';
3763
3767
  }
3764
3768
  else if (event['customreporting'] != null && event['customreporting'].length > 0) {
3765
- html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3769
+ html += '<div class="report-format-container" part="report-format-container"><div class="box"></div></div>';
3766
3770
  }
3767
3771
  html += '</div>';
3768
3772
  html += '</div>';
@@ -3851,10 +3855,10 @@ let SfIEvents = class SfIEvents extends LitElement {
3851
3855
  // }
3852
3856
  html += '<br />';
3853
3857
  if (event['reportformat'] != null && event['reportformat'].length > 0) {
3854
- html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3858
+ html += '<div class="report-format-container" part="report-format-container"><div class="box"></div></div>';
3855
3859
  }
3856
3860
  else if (event['customreporting'] != null && event['customreporting'].length > 0) {
3857
- html += '<div id="report-format-container" part="report-format-container"><div class="box"></div></div>';
3861
+ html += '<div class="report-format-container" part="report-format-container"><div class="box"></div></div>';
3858
3862
  }
3859
3863
  html += '<br />';
3860
3864
  if (makercheckers.length > 0) {
@@ -11837,26 +11841,30 @@ let SfIEvents = class SfIEvents extends LitElement {
11837
11841
  reportingSchemaJson = listEvent.customreporting;
11838
11842
  }
11839
11843
  if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
11840
- 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>';
11841
- let reportFormatContainer = this._SfDetailContainer.querySelector('#report-format-container');
11842
- if (reportFormatContainer != null) {
11843
- reportFormatContainer.innerHTML = reportingHtml;
11844
- }
11845
- }
11846
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
11847
- if (reportingSchemaJson != "" && reportingReporting != null) {
11848
- reportingReporting.configjson = reportingSchemaJson;
11849
- if (reportingSchemaValues != "")
11850
- reportingReporting.prepopulateValJson = reportingSchemaValues;
11851
- reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
11852
- reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
11853
- reportingReporting.flow = "reporting";
11854
- setTimeout(() => {
11855
- reportingReporting.loadMode();
11856
- console.log('list-customreporting', reportingSchemaJson);
11857
- console.log('list-customreporting1', reportingSchemaValues);
11858
- console.log('list-customreporting2', reportingReporting.mode);
11859
- }, 500);
11844
+ 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>';
11845
+ let reportFormatContainers = this._SfDetailContainer.querySelectorAll('.report-format-container');
11846
+ for (let [indexContainer, reportFormatContainer] of Array.from(reportFormatContainers).entries()) {
11847
+ if (reportFormatContainer != null) {
11848
+ reportFormatContainer.innerHTML = reportingHtml.replace('[INDEX]', indexContainer.toString());
11849
+ }
11850
+ }
11851
+ }
11852
+ let reportingReportings = this._SfDetailContainer.querySelectorAll('.reporting-reporting');
11853
+ for (let reportingReporting of reportingReportings) {
11854
+ if (reportingSchemaJson != "" && reportingReporting != null) {
11855
+ reportingReporting.configjson = reportingSchemaJson;
11856
+ if (reportingSchemaValues != "")
11857
+ reportingReporting.prepopulateValJson = reportingSchemaValues;
11858
+ reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
11859
+ reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
11860
+ reportingReporting.flow = "reporting";
11861
+ setTimeout(() => {
11862
+ reportingReporting.loadMode();
11863
+ console.log('list-customreporting', reportingSchemaJson);
11864
+ console.log('list-customreporting1', reportingSchemaValues);
11865
+ console.log('list-customreporting2', reportingReporting.mode);
11866
+ }, 500);
11867
+ }
11860
11868
  }
11861
11869
  (_a = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
11862
11870
  this._SfDetailContainer.innerHTML = '';
@@ -11928,7 +11936,7 @@ let SfIEvents = class SfIEvents extends LitElement {
11928
11936
  return;
11929
11937
  }
11930
11938
  let reportformatvalues = "";
11931
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
11939
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
11932
11940
  console.log('renew reporting', reportingReporting);
11933
11941
  if (reportingReporting != null) {
11934
11942
  reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
@@ -12195,7 +12203,10 @@ let SfIEvents = class SfIEvents extends LitElement {
12195
12203
  let reportformatvalues = "";
12196
12204
  let reportformatschema = "";
12197
12205
  if (listEvent.customreporting != null) {
12198
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
12206
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-1');
12207
+ if (reportingReporting == null) {
12208
+ reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
12209
+ }
12199
12210
  console.log('reportformatvalues', JSON.stringify(reportingReporting.selectedValues()));
12200
12211
  reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
12201
12212
  reportformatschema = (_b = reportingReporting.configjson) !== null && _b !== void 0 ? _b : "";
@@ -12629,26 +12640,30 @@ let SfIEvents = class SfIEvents extends LitElement {
12629
12640
  reportingSchemaJson = listEvent.customreporting;
12630
12641
  }
12631
12642
  if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
12632
- 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>';
12633
- let reportFormatContainer = this._SfDetailContainer.querySelector('#report-format-container');
12634
- if (reportFormatContainer != null) {
12635
- reportFormatContainer.innerHTML = reportingHtml;
12636
- }
12637
- }
12638
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
12639
- if (reportingSchemaJson != "" && reportingReporting != null) {
12640
- reportingReporting.configjson = reportingSchemaJson;
12641
- if (reportingSchemaValues != "")
12642
- reportingReporting.prepopulateValJson = reportingSchemaValues;
12643
- reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
12644
- reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
12645
- reportingReporting.flow = "reporting";
12646
- setTimeout(() => {
12647
- reportingReporting.loadMode();
12648
- console.log('list-customreporting', reportingSchemaJson);
12649
- console.log('list-customreporting1', reportingSchemaValues);
12650
- console.log('list-customreporting2', reportingReporting.mode);
12651
- }, 500);
12643
+ 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>';
12644
+ let reportFormatContainers = this._SfDetailContainer.querySelectorAll('.report-format-container');
12645
+ for (let [indexContainer, reportFormatContainer] of reportFormatContainers.entries()) {
12646
+ if (reportFormatContainer != null) {
12647
+ reportFormatContainer.innerHTML = reportingHtml.replace('[INDEX]', indexContainer + '');
12648
+ }
12649
+ }
12650
+ }
12651
+ let reportingReportings = this._SfDetailContainer.querySelectorAll('.reporting-reporting');
12652
+ for (let reportingReporting of reportingReportings) {
12653
+ if (reportingSchemaJson != "" && reportingReporting != null) {
12654
+ reportingReporting.configjson = reportingSchemaJson;
12655
+ if (reportingSchemaValues != "")
12656
+ reportingReporting.prepopulateValJson = reportingSchemaValues;
12657
+ reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
12658
+ reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
12659
+ reportingReporting.flow = "reporting";
12660
+ setTimeout(() => {
12661
+ reportingReporting.loadMode();
12662
+ console.log('list-customreporting', reportingSchemaJson);
12663
+ console.log('list-customreporting1', reportingSchemaValues);
12664
+ console.log('list-customreporting2', reportingReporting.mode);
12665
+ }, 500);
12666
+ }
12652
12667
  }
12653
12668
  (_a = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
12654
12669
  this._SfDetailContainer.innerHTML = '';
@@ -12720,7 +12735,7 @@ let SfIEvents = class SfIEvents extends LitElement {
12720
12735
  return;
12721
12736
  }
12722
12737
  let reportformatvalues = "";
12723
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
12738
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
12724
12739
  console.log('renew reporting', reportingReporting);
12725
12740
  if (reportingReporting != null) {
12726
12741
  reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
@@ -12987,7 +13002,10 @@ let SfIEvents = class SfIEvents extends LitElement {
12987
13002
  let reportformatvalues = "";
12988
13003
  let reportformatschema = "";
12989
13004
  if (listEvent.customreporting != null) {
12990
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
13005
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-1');
13006
+ if (reportingReporting == null) {
13007
+ reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
13008
+ }
12991
13009
  console.log('reportformatvalues', JSON.stringify(reportingReporting.selectedValues()));
12992
13010
  reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
12993
13011
  reportformatschema = (_b = reportingReporting.configjson) !== null && _b !== void 0 ? _b : "";
@@ -13425,29 +13443,33 @@ let SfIEvents = class SfIEvents extends LitElement {
13425
13443
  reportingSchemaJson = listEvent.customreporting;
13426
13444
  }
13427
13445
  if (listEvent.customreporting != null || listEvent.reportformatschema != null) {
13428
- 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>';
13429
- let reportFormatContainer = this._SfDetailContainer.querySelector('#report-format-container');
13430
- if (reportFormatContainer != null) {
13431
- reportFormatContainer.innerHTML = reportingHtml;
13432
- }
13433
- }
13434
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
13435
- if (reportingSchemaJson != "" && reportingReporting != null) {
13436
- reportingReporting.configjson = reportingSchemaJson;
13437
- if (reportingSchemaValues != "")
13438
- reportingReporting.prepopulateValJson = reportingSchemaValues;
13439
- // reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view"
13440
- // reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true"
13441
- reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_APPROVER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
13442
- reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_APPROVER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
13443
- reportingReporting.flow = "reporting";
13444
- setTimeout(() => {
13445
- reportingReporting.loadMode();
13446
- console.log('list-customreporting', reportingSchemaJson);
13447
- console.log('list-customreporting1', reportingSchemaValues);
13448
- console.log('list-customreporting2', reportingReporting.mode);
13449
- console.log('list-customreporting3', this.myRole);
13450
- }, 500);
13446
+ 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>';
13447
+ let reportFormatContainers = this._SfDetailContainer.querySelectorAll('.report-format-container');
13448
+ for (let [indexContainer, reportFormatContainer] of reportFormatContainers.entries()) {
13449
+ if (reportFormatContainer != null) {
13450
+ reportFormatContainer.innerHTML = reportingHtml.replace('[INDEX]', indexContainer.toString());
13451
+ }
13452
+ }
13453
+ }
13454
+ let reportingReportings = this._SfDetailContainer.querySelectorAll('.reporting-reporting');
13455
+ for (let reportingReporting of reportingReportings) {
13456
+ if (reportingSchemaJson != "" && reportingReporting != null) {
13457
+ reportingReporting.configjson = reportingSchemaJson;
13458
+ if (reportingSchemaValues != "")
13459
+ reportingReporting.prepopulateValJson = reportingSchemaValues;
13460
+ // reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view"
13461
+ // reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true"
13462
+ reportingReporting.mode = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_APPROVER || this.myRole == this.TAB_FUNCTION_HEAD) ? "edit" : "view";
13463
+ reportingReporting.editdisable = (this.myRole == this.TAB_REPORTER || this.myRole == this.TAB_APPROVER || this.myRole == this.TAB_FUNCTION_HEAD) ? "false" : "true";
13464
+ reportingReporting.flow = "reporting";
13465
+ setTimeout(() => {
13466
+ reportingReporting.loadMode();
13467
+ console.log('list-customreporting', reportingSchemaJson);
13468
+ console.log('list-customreporting1', reportingSchemaValues);
13469
+ console.log('list-customreporting2', reportingReporting.mode);
13470
+ console.log('list-customreporting3', this.myRole);
13471
+ }, 500);
13472
+ }
13451
13473
  }
13452
13474
  (_a = this._SfDetailContainer.querySelector('#button-detail-close')) === null || _a === void 0 ? void 0 : _a.addEventListener('click', () => {
13453
13475
  this._SfDetailContainer.innerHTML = '';
@@ -13520,7 +13542,7 @@ let SfIEvents = class SfIEvents extends LitElement {
13520
13542
  }
13521
13543
  let reportformatvalues = {};
13522
13544
  let reportformatvaluesStr = "";
13523
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
13545
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
13524
13546
  console.log('renew reporting', reportingReporting);
13525
13547
  if (reportingReporting != null) {
13526
13548
  reportformatvalues = reportingReporting.selectedValues();
@@ -13794,7 +13816,10 @@ let SfIEvents = class SfIEvents extends LitElement {
13794
13816
  let reportformatvalues = "";
13795
13817
  let reportformatschema = "";
13796
13818
  if (listEvent.customreporting != null) {
13797
- let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting');
13819
+ let reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-1');
13820
+ if (reportingReporting == null) {
13821
+ reportingReporting = this._SfDetailContainer.querySelector('#reporting-reporting-0');
13822
+ }
13798
13823
  console.log('reportformatvalues', JSON.stringify(reportingReporting.selectedValues()));
13799
13824
  reportformatvalues = (_a = JSON.stringify(reportingReporting.selectedValues())) !== null && _a !== void 0 ? _a : "";
13800
13825
  reportformatschema = (_b = reportingReporting.configjson) !== null && _b !== void 0 ? _b : "";
@@ -13803,37 +13828,6 @@ let SfIEvents = class SfIEvents extends LitElement {
13803
13828
  if (this._SfDetailContainer.querySelector('#input-reporter-percentage') != null) {
13804
13829
  percentage = this._SfDetailContainer.querySelector('#input-reporter-percentage').value;
13805
13830
  }
13806
- // if (Number.isNaN(parseInt(percentage)) || parseInt(percentage) < 0 || parseInt(percentage) > 100) {
13807
- // //console.log('reporter comments 3', reportercomments);
13808
- // buttonClick.innerHTML = "Save"
13809
- // this.setError('Invalid Percentage!');
13810
- // setTimeout(() => {
13811
- // this.clearMessages();
13812
- // }, 3000);
13813
- // } else {
13814
- // if (docs.length === 0 && docsOptional.length === 0) {
13815
- // //console.log('reporter comments 3', reportercomments);
13816
- // buttonClick.innerHTML = "Save"
13817
- // this.setError('No documents uploaded!');
13818
- // setTimeout(() => {
13819
- // this.clearMessages();
13820
- // }, 3000);
13821
- // } else {
13822
- // //console.log('reporterdoc', reporterdoc);
13823
- // if (reporterdoc.length === 0) {
13824
- // buttonClick.innerHTML = "Save"
13825
- // this.setError('Date of completion not selected!');
13826
- // setTimeout(() => {
13827
- // this.clearMessages();
13828
- // }, 3000);
13829
- // } else if (parseInt(reporterdoc) > new Date().getTime()) {
13830
- // buttonClick.innerHTML = "Save"
13831
- // this.setError('Date of completion cannot be in future!');
13832
- // setTimeout(() => {
13833
- // this.clearMessages();
13834
- // }, 3000);
13835
- // } else {
13836
- //console.log('makerscheckers 1', reportercomments);
13837
13831
  if (reportercomments.trim().length === 0) {
13838
13832
  buttonClick.innerHTML = "Save";
13839
13833
  this.setError('Comments cannot be blank!');
@@ -17730,7 +17724,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17730
17724
  html += '<div id="div-subfiltered"></div>';
17731
17725
  html += '</div>';
17732
17726
  html += '<br />';
17733
- html += '<div class="d-flex justify-center align-center w-100 mt-20 scroll-x">';
17727
+ // html += '<div class="d-flex justify-center align-center w-100 mt-20 scroll-x">';
17734
17728
  html += '<table id="table-data" class="mt-20" style="height: 200px">';
17735
17729
  html += '<thead>';
17736
17730
  // html += '<th part="td-head" class="td-head">'
@@ -17788,12 +17782,12 @@ let SfIEvents = class SfIEvents extends LitElement {
17788
17782
  // html += '<td class="left-sticky td-body ' + classBg + '" ><div class=""><input id="cb-' + i + '" type="checkbox" class="checkbox-row cb-select"/></div></td>';
17789
17783
  html += '<td class="left-sticky td-body ' + classBg + '" part="td-key">';
17790
17784
  html += '<div class="">';
17791
- html += '<input id="suspense-' + i + '" type="checkbox" part="input" class="suspense-input"' + ((suspenseList[suspenseKey] != null && suspenseList[suspenseKey] != false) ? ' checked' : '') + '/>';
17785
+ html += '<input id="suspense-' + i + '" type="checkbox" class="suspense-input"' + ((suspenseList[suspenseKey] != null && suspenseList[suspenseKey] != false) ? ' checked' : '') + '/>';
17792
17786
  html += '</div>';
17793
17787
  html += '</td>';
17794
17788
  for (var l = 0; l < uniqCols.length; l++) {
17795
17789
  // console.log('uniqcolval', uniqCols[l], sourceArray.data.mappings.mappings[i], sourceArray.data.mappings.mappings[i][uniqCols[l]]);
17796
- html += '<td class="td-body ' + classBg + '" part="td-key">';
17790
+ html += '<td class="' + classBg + '" part="td-body">';
17797
17791
  html += '<div class="">';
17798
17792
  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>';
17799
17793
  html += '</div>';
@@ -17825,7 +17819,7 @@ let SfIEvents = class SfIEvents extends LitElement {
17825
17819
  }
17826
17820
  html += '</tbody>';
17827
17821
  html += '</table>';
17828
- html += '</div>';
17822
+ // html += '</div>';
17829
17823
  html += '</div>';
17830
17824
  this._SfOnboardingSuspenseContainer.innerHTML = html;
17831
17825
  const buttonApply = this._SfOnboardingSuspenseContainer.querySelector('.button-apply');