@undp/carbon-library 1.0.177-CARBON-380.4 → 1.0.177

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,5 @@ export interface ProgrammeRejectAndTransferCardItemProps {
7
7
  updatedDate: any;
8
8
  loading: boolean;
9
9
  toolTipText: string;
10
- t: any;
11
10
  }
12
11
  export declare const ProgrammeRejectAndTransferComponent: FC<ProgrammeRejectAndTransferCardItemProps>;
package/dist/esm/index.js CHANGED
@@ -6256,7 +6256,7 @@ var AddNewCompanyComponent = function (props) {
6256
6256
  width: "45%",
6257
6257
  }
6258
6258
  : {} },
6259
- React.createElement(Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of projects" },
6259
+ React.createElement(Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of programmes" },
6260
6260
  React.createElement(Radio.Button, { className: "certifier", value: "Certifier" },
6261
6261
  React.createElement(SafetyOutlined, { className: "role-icons" }),
6262
6262
  "Certifier"))),
@@ -6267,7 +6267,7 @@ var AddNewCompanyComponent = function (props) {
6267
6267
  marginLeft: isGuest ? "30px" : 0,
6268
6268
  }
6269
6269
  : { marginLeft: isGuest ? "30px" : 0, } },
6270
- React.createElement(Tooltip, { placement: "top", title: "Permitted to own projects and transfer carbon credits" },
6270
+ React.createElement(Tooltip, { placement: "top", title: "Permitted to own programmes and transfer carbon credits" },
6271
6271
  React.createElement(Radio.Button, { className: "dev", value: "ProgrammeDeveloper" },
6272
6272
  React.createElement(ExperimentOutlined, { className: "role-icons" }),
6273
6273
  "Developer"))),
@@ -24116,46 +24116,46 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
24116
24116
  var text = '';
24117
24117
  if (companyRole === CompanyRole.GOVERNMENT) {
24118
24118
  if (cardType === StatsCardsTypes.PROGRAMMES_PENDING) {
24119
- text = 'Pending state projects awaiting authorisation';
24119
+ text = 'Pending state programmes awaiting authorisation';
24120
24120
  }
24121
24121
  else if (cardType === StatsCardsTypes.TRANSFER_REQUEST_SENT) {
24122
24122
  text =
24123
- 'Pending credit transfer requests sent to project owners initiated by your organisation';
24123
+ 'Pending credit transfer requests sent to programme owners initiated by your organisation';
24124
24124
  }
24125
24125
  else if (cardType === StatsCardsTypes.CREDIT_BALANCE) {
24126
24126
  text = 'Total credit balance owned by your organisation';
24127
24127
  }
24128
24128
  else if (cardType === StatsCardsTypes.PROGRAMMES) {
24129
24129
  text =
24130
- 'Number of projects created during the specified period and their project state in the carbon registry at present';
24130
+ 'Number of programmes created during the specified period and their programme state in the carbon registry at present';
24131
24131
  }
24132
24132
  else if (cardType === StatsCardsTypes.CREDITS) {
24133
24133
  text =
24134
- 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
24134
+ 'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present';
24135
24135
  }
24136
24136
  else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
24137
24137
  text =
24138
- 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24138
+ 'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24139
24139
  }
24140
24140
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
24141
24141
  text =
24142
- 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
24142
+ 'Graphical representation of the number of programmes created during the specified period in each programme state in the carbon registry at present';
24143
24143
  }
24144
24144
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24145
24145
  text =
24146
- 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
24146
+ 'Graphical representation of the number of programmes in each programme sector created during the specified time in the carbon registry';
24147
24147
  }
24148
24148
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
24149
24149
  text =
24150
- 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24150
+ 'Graphical representation of the number of credits of programmes created during the specified period in each credit state in the carbon registry at present';
24151
24151
  }
24152
24152
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24153
24153
  text =
24154
- 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
24154
+ 'Graphical representation of the number of credits of programmes created during the specified period certified, uncertified and revoked in the carbon registry at present';
24155
24155
  }
24156
24156
  else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
24157
24157
  text =
24158
- 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
24158
+ 'Locations of the programmes created during the specified period and their programme states in the carbon registry at present';
24159
24159
  }
24160
24160
  else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24161
24161
  text =
@@ -24174,131 +24174,131 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
24174
24174
  }
24175
24175
  else if (cardType === StatsCardsTypes.PROGRAMMES) {
24176
24176
  text =
24177
- 'Number of projects created during the specified period and their project state in the carbon registry at present, owned by your organisation';
24177
+ 'Number of programmes created during the specified period and their programme state in the carbon registry at present, owned by your organisation';
24178
24178
  }
24179
24179
  else if (cardType === StatsCardsTypes.CREDITS) {
24180
24180
  text =
24181
- 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
24181
+ 'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
24182
24182
  }
24183
24183
  else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
24184
24184
  text =
24185
- 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
24185
+ 'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
24186
24186
  }
24187
24187
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
24188
24188
  text =
24189
- 'Graphical representation of the number of projects created during the specified period, owned by your organisation, in each project state in the carbon registry at present';
24189
+ 'Graphical representation of the number of programmes created during the specified period, owned by your organisation, in each programme state in the carbon registry at present';
24190
24190
  }
24191
24191
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24192
24192
  text =
24193
- 'Graphical representation of the number of projects owned by your organisation, in each project sector created during the specified time in the carbon registry';
24193
+ 'Graphical representation of the number of programmes owned by your organisation, in each programme sector created during the specified time in the carbon registry';
24194
24194
  }
24195
24195
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
24196
24196
  text =
24197
- 'Graphical representation of the number of credits of projects created during the specified period, owned by your organisation, in each credit state in the carbon registry at present';
24197
+ 'Graphical representation of the number of credits of programmes created during the specified period, owned by your organisation, in each credit state in the carbon registry at present';
24198
24198
  }
24199
24199
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24200
24200
  text =
24201
- 'Graphical representation of the number of credits of projects created during the specified period, owned by your organisation, certified, uncertified and revoked in the carbon registry at present';
24201
+ 'Graphical representation of the number of credits of programmes created during the specified period, owned by your organisation, certified, uncertified and revoked in the carbon registry at present';
24202
24202
  }
24203
24203
  else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
24204
24204
  text =
24205
- 'Locations of the projects created during the specified period, owned by your organisation, and their project states in the carbon registry at present';
24205
+ 'Locations of the programmes created during the specified period, owned by your organisation, and their programme states in the carbon registry at present';
24206
24206
  }
24207
24207
  else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24208
24208
  text =
24209
- 'Locations of credits international transfer requests of projects owned by your organisation recognised during the specified period';
24209
+ 'Locations of credits international transfer requests of programmes owned by your organisation recognised during the specified period';
24210
24210
  }
24211
24211
  }
24212
24212
  else if (companyRole === CompanyRole.CERTIFIER && mine === true) {
24213
24213
  if (cardType === StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
24214
24214
  text =
24215
- 'Number of projects not yet certified including certificates revoked by your organisation';
24215
+ 'Number of programmes not yet certified including certificates revoked by your organisation';
24216
24216
  }
24217
24217
  else if (cardType === StatsCardsTypes.PROGRAMMES_CERTIFIED) {
24218
- text = 'Number of projects certified by your organisation';
24218
+ text = 'Number of programmes certified by your organisation';
24219
24219
  }
24220
24220
  else if (cardType === StatsCardsTypes.CREDIT_CERTIFIED) {
24221
24221
  text = 'Number of credits certified by your organisation';
24222
24222
  }
24223
24223
  else if (cardType === StatsCardsTypes.PROGRAMMES) {
24224
24224
  text =
24225
- 'Number of projects created during the specified period, certified by your organisation, and their project state in the carbon registry at present';
24225
+ 'Number of programmes created during the specified period, certified by your organisation, and their programme state in the carbon registry at present';
24226
24226
  }
24227
24227
  else if (cardType === StatsCardsTypes.CREDITS) {
24228
24228
  text =
24229
- 'Number of credits of projects created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
24229
+ 'Number of credits of programmes created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
24230
24230
  }
24231
24231
  else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
24232
24232
  text =
24233
- 'Number of credits of projects created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
24233
+ 'Number of credits of programmes created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
24234
24234
  }
24235
24235
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
24236
24236
  text =
24237
- 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
24237
+ 'Graphical representation of the number of programmes in each programme sector created during the specified time, certified by your company, in the carbon registry';
24238
24238
  }
24239
24239
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24240
24240
  text =
24241
- 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
24241
+ 'Graphical representation of the number of programmes in each programme sector created during the specified time, certified by your company, in the carbon registry';
24242
24242
  }
24243
24243
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
24244
24244
  text =
24245
- 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24245
+ 'Graphical representation of the number of credits of programmes created during the specified period in each credit state in the carbon registry at present';
24246
24246
  }
24247
24247
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24248
24248
  text =
24249
- 'Graphical representation of the number of credits of projects certified, uncertified and revoked (refer above for states), by your organisation, spread over the specified time';
24249
+ 'Graphical representation of the number of credits of programmes certified, uncertified and revoked (refer above for states), by your organisation, spread over the specified time';
24250
24250
  }
24251
24251
  else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
24252
24252
  text =
24253
- 'Locations of the projects created during the specified period, certified by your organisation, and their project states in the carbon registry at present';
24253
+ 'Locations of the programmes created during the specified period, certified by your organisation, and their programme states in the carbon registry at present';
24254
24254
  }
24255
24255
  else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24256
24256
  text =
24257
- 'Locations of credits of international transfer requests of projects certified by your organisation recognised during the specified period';
24257
+ 'Locations of credits of international transfer requests of programmes certified by your organisation recognised during the specified period';
24258
24258
  }
24259
24259
  }
24260
24260
  else if (companyRole === CompanyRole.CERTIFIER && !mine) {
24261
24261
  if (cardType === StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
24262
24262
  text =
24263
- 'Number of projects not yet certified including certificates revoked by your organisation';
24263
+ 'Number of programmes not yet certified including certificates revoked by your organisation';
24264
24264
  }
24265
24265
  else if (cardType === StatsCardsTypes.PROGRAMMES_CERTIFIED) {
24266
- text = 'Number of projects certified by your organisation';
24266
+ text = 'Number of programmes certified by your organisation';
24267
24267
  }
24268
24268
  else if (cardType === StatsCardsTypes.CREDIT_CERTIFIED) {
24269
24269
  text = 'Number of credits certified by your organisation';
24270
24270
  }
24271
24271
  else if (cardType === StatsCardsTypes.PROGRAMMES) {
24272
24272
  text =
24273
- 'Number of projects created during the specified period and their project state in the carbon registry at present';
24273
+ 'Number of programmes created during the specified period and their programme state in the carbon registry at present';
24274
24274
  }
24275
24275
  else if (cardType === StatsCardsTypes.CREDITS) {
24276
24276
  text =
24277
- 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
24277
+ 'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present';
24278
24278
  }
24279
24279
  else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
24280
24280
  text =
24281
- 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24281
+ 'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24282
24282
  }
24283
24283
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
24284
24284
  text =
24285
- 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
24285
+ 'Graphical representation of the number of programmes created during the specified period in each programme state in the carbon registry at present';
24286
24286
  }
24287
24287
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24288
24288
  text =
24289
- 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
24289
+ 'Graphical representation of the number of programmes in each programme sector created during the specified time in the carbon registry';
24290
24290
  }
24291
24291
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
24292
24292
  text =
24293
- 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24293
+ 'Graphical representation of the number of credits of programmes created during the specified period in each credit state in the carbon registry at present';
24294
24294
  }
24295
24295
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24296
24296
  text =
24297
- 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
24297
+ 'Graphical representation of the number of credits of programmes created during the specified period certified, uncertified and revoked in the carbon registry at present';
24298
24298
  }
24299
24299
  else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
24300
24300
  text =
24301
- 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
24301
+ 'Locations of the programmes created during the specified period and their programme states in the carbon registry at present';
24302
24302
  }
24303
24303
  else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24304
24304
  text =
@@ -24329,7 +24329,7 @@ var StasticCard = function (props) {
24329
24329
  };
24330
24330
 
24331
24331
  var ProgrammeRejectAndTransferComponent = function (props) {
24332
- var totalPrgrammes = props.totalPrgrammes, pending = props.pending, rejected = props.rejected, authorized = props.authorized, updatedDate = props.updatedDate, loading = props.loading, toolTipText = props.toolTipText, t = props.t;
24332
+ var totalPrgrammes = props.totalPrgrammes, pending = props.pending, rejected = props.rejected, authorized = props.authorized, updatedDate = props.updatedDate, loading = props.loading, toolTipText = props.toolTipText;
24333
24333
  useEffect(function () {
24334
24334
  console.log({ pending: pending, totalPrgrammes: totalPrgrammes });
24335
24335
  });
@@ -24337,7 +24337,7 @@ var ProgrammeRejectAndTransferComponent = function (props) {
24337
24337
  React.createElement(Skeleton, { active: true }),
24338
24338
  React.createElement(Skeleton, { active: true }))) : (React.createElement(React.Fragment, null,
24339
24339
  React.createElement("div", { className: "title-section" },
24340
- React.createElement("div", { className: "title" }, t("programmes")),
24340
+ React.createElement("div", { className: "title" }, "Programmes"),
24341
24341
  React.createElement("div", { className: "info-container" },
24342
24342
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: toolTipText },
24343
24343
  React.createElement(InfoCircle, { color: "#000000", size: 17 })))),
@@ -25371,7 +25371,8 @@ var RegistryDashboardComponent = function (props) {
25371
25371
  if ((programmeByStatusAggregationResponse_1 === null || programmeByStatusAggregationResponse_1 === void 0 ? void 0 : programmeByStatusAggregationResponse_1.length) > 0) {
25372
25372
  programmeByStatusAggregationResponse_1 === null || programmeByStatusAggregationResponse_1 === void 0 ? void 0 : programmeByStatusAggregationResponse_1.map(function (responseItem, index) {
25373
25373
  console.log("mine --> check -- > ", programmeByStatusAggregationResponse_1);
25374
- if ([ProgrammeStageR.AwaitingAuthorization].includes(responseItem === null || responseItem === void 0 ? void 0 : responseItem.currentStage)) {
25374
+ if (ProgrammeStageR.AwaitingAuthorization ===
25375
+ getStageEnumVal(responseItem === null || responseItem === void 0 ? void 0 : responseItem.currentStage)) {
25375
25376
  totalProgrammes_1 = totalProgrammes_1 + parseInt(responseItem === null || responseItem === void 0 ? void 0 : responseItem.count);
25376
25377
  pendingProgrammesC_1 = parseInt(responseItem === null || responseItem === void 0 ? void 0 : responseItem.count);
25377
25378
  }
@@ -26008,7 +26009,7 @@ var RegistryDashboardComponent = function (props) {
26008
26009
  ? "tTProgrammesProgrammeDev"
26009
26010
  : categoryType === "mine"
26010
26011
  ? "tTProgrammesCertifierMine"
26011
- : "tTProgrammesCertifierOverall"), t: t })),
26012
+ : "tTProgrammesCertifierOverall") })),
26012
26013
  React.createElement(Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col pie" },
26013
26014
  React.createElement(RegistryPieChartsStatComponent, { id: "credits", title: t("credits"), options: optionDonutPieA, series: creditsPieSeries, lastUpdate: lastUpdateProgrammesCreditsStats, loading: loading, toolTipText: t((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.GOVERNMENT
26014
26015
  ? "tTCreditsGovernment"