@undp/carbon-library 1.0.258 → 1.0.259

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/dist/cjs/index.js CHANGED
@@ -6279,7 +6279,7 @@ var AddNewCompanyComponent = function (props) {
6279
6279
  width: "45%",
6280
6280
  }
6281
6281
  : {} },
6282
- React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of programmes" },
6282
+ React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of projects" },
6283
6283
  React.createElement(antd.Radio.Button, { className: "certifier", value: "Certifier" },
6284
6284
  React.createElement(icons.SafetyOutlined, { className: "role-icons" }),
6285
6285
  "Certifier"))),
@@ -6290,14 +6290,14 @@ var AddNewCompanyComponent = function (props) {
6290
6290
  marginLeft: isGuest ? "30px" : 0,
6291
6291
  }
6292
6292
  : { marginLeft: isGuest ? "30px" : 0 } },
6293
- React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to own programmes and transfer carbon credits" },
6293
+ React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to own projects and transfer carbon credits" },
6294
6294
  React.createElement(antd.Radio.Button, { className: "dev", value: "ProgrammeDeveloper" },
6295
6295
  React.createElement(icons.ExperimentOutlined, { className: "role-icons" }),
6296
6296
  "Developer"))),
6297
6297
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
6298
6298
  exports.CompanyRole.MINISTRY &&
6299
6299
  !isGuest && (React.createElement("div", { className: "minister-radio-container" },
6300
- React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to perform all programme-related actions within the Ministry" },
6300
+ React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" },
6301
6301
  React.createElement(antd.Radio.Button, { className: "minister", value: "Ministry" },
6302
6302
  React.createElement(icons.AuditOutlined, { className: "role-icons" }),
6303
6303
  "Ministry")))))))),
@@ -21023,9 +21023,7 @@ var AddNdcActionComponent = function (props) {
21023
21023
  title: (React.createElement("div", { className: "step-title-container" },
21024
21024
  React.createElement("div", { className: "step-count" }, "01"),
21025
21025
  React.createElement("div", { className: "title" }, t("ndcAction:ndcActionDetailsTitle")),
21026
- React.createElement("div", { className: "info-container" },
21027
- React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "right", trigger: "hover", title: t("ndcAction:ndcToolTip"), overlayClassName: "custom-tooltip" },
21028
- React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 }))))),
21026
+ React.createElement("div", { className: "info-container" }))),
21029
21027
  description: (React.createElement("div", { className: current !== 1 ? "hide" : "" },
21030
21028
  React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails, translator: translator, programmeDetails: programmeDetails }))),
21031
21029
  },
@@ -24192,46 +24190,46 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
24192
24190
  var text = '';
24193
24191
  if (companyRole === exports.CompanyRole.GOVERNMENT) {
24194
24192
  if (cardType === exports.StatsCardsTypes.PROGRAMMES_PENDING) {
24195
- text = 'Pending state programmes awaiting authorisation';
24193
+ text = 'Pending state projects awaiting authorisation';
24196
24194
  }
24197
24195
  else if (cardType === exports.StatsCardsTypes.TRANSFER_REQUEST_SENT) {
24198
24196
  text =
24199
- 'Pending credit transfer requests sent to programme owners initiated by your organisation';
24197
+ 'Pending credit transfer requests sent to project owners initiated by your organisation';
24200
24198
  }
24201
24199
  else if (cardType === exports.StatsCardsTypes.CREDIT_BALANCE) {
24202
24200
  text = 'Total credit balance owned by your organisation';
24203
24201
  }
24204
24202
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
24205
24203
  text =
24206
- 'Number of programmes created during the specified period and their programme state in the carbon registry at present';
24204
+ 'Number of projects created during the specified period and their project state in the carbon registry at present';
24207
24205
  }
24208
24206
  else if (cardType === exports.StatsCardsTypes.CREDITS) {
24209
24207
  text =
24210
- 'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present';
24208
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
24211
24209
  }
24212
24210
  else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
24213
24211
  text =
24214
- 'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24212
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24215
24213
  }
24216
24214
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
24217
24215
  text =
24218
- 'Graphical representation of the number of programmes created during the specified period in each programme state in the carbon registry at present';
24216
+ 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
24219
24217
  }
24220
24218
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24221
24219
  text =
24222
- 'Graphical representation of the number of programmes in each programme sector created during the specified time in the carbon registry';
24220
+ 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
24223
24221
  }
24224
24222
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
24225
24223
  text =
24226
- 'Graphical representation of the number of credits of programmes created during the specified period in each credit state in the carbon registry at present';
24224
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24227
24225
  }
24228
24226
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24229
24227
  text =
24230
- 'Graphical representation of the number of credits of programmes created during the specified period certified, uncertified and revoked in the carbon registry at present';
24228
+ 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
24231
24229
  }
24232
24230
  else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
24233
24231
  text =
24234
- 'Locations of the programmes created during the specified period and their programme states in the carbon registry at present';
24232
+ 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
24235
24233
  }
24236
24234
  else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24237
24235
  text =
@@ -24250,131 +24248,131 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
24250
24248
  }
24251
24249
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
24252
24250
  text =
24253
- 'Number of programmes created during the specified period and their programme state in the carbon registry at present, owned by your organisation';
24251
+ 'Number of projects created during the specified period and their project state in the carbon registry at present, owned by your organisation';
24254
24252
  }
24255
24253
  else if (cardType === exports.StatsCardsTypes.CREDITS) {
24256
24254
  text =
24257
- 'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
24255
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
24258
24256
  }
24259
24257
  else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
24260
24258
  text =
24261
- 'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
24259
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
24262
24260
  }
24263
24261
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
24264
24262
  text =
24265
- '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';
24263
+ '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';
24266
24264
  }
24267
24265
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24268
24266
  text =
24269
- 'Graphical representation of the number of programmes owned by your organisation, in each programme sector created during the specified time in the carbon registry';
24267
+ 'Graphical representation of the number of projects owned by your organisation, in each project sector created during the specified time in the carbon registry';
24270
24268
  }
24271
24269
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
24272
24270
  text =
24273
- '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';
24271
+ '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';
24274
24272
  }
24275
24273
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24276
24274
  text =
24277
- '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';
24275
+ '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';
24278
24276
  }
24279
24277
  else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
24280
24278
  text =
24281
- 'Locations of the programmes created during the specified period, owned by your organisation, and their programme states in the carbon registry at present';
24279
+ 'Locations of the projects created during the specified period, owned by your organisation, and their project states in the carbon registry at present';
24282
24280
  }
24283
24281
  else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24284
24282
  text =
24285
- 'Locations of credits international transfer requests of programmes owned by your organisation recognised during the specified period';
24283
+ 'Locations of credits international transfer requests of projects owned by your organisation recognised during the specified period';
24286
24284
  }
24287
24285
  }
24288
24286
  else if (companyRole === exports.CompanyRole.CERTIFIER && mine === true) {
24289
24287
  if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
24290
24288
  text =
24291
- 'Number of programmes not yet certified including certificates revoked by your organisation';
24289
+ 'Number of projects not yet certified including certificates revoked by your organisation';
24292
24290
  }
24293
24291
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
24294
- text = 'Number of programmes certified by your organisation';
24292
+ text = 'Number of projects certified by your organisation';
24295
24293
  }
24296
24294
  else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
24297
24295
  text = 'Number of credits certified by your organisation';
24298
24296
  }
24299
24297
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
24300
24298
  text =
24301
- 'Number of programmes created during the specified period, certified by your organisation, and their programme state in the carbon registry at present';
24299
+ 'Number of projects created during the specified period, certified by your organisation, and their project state in the carbon registry at present';
24302
24300
  }
24303
24301
  else if (cardType === exports.StatsCardsTypes.CREDITS) {
24304
24302
  text =
24305
- 'Number of credits of programmes created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
24303
+ 'Number of credits of projects created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
24306
24304
  }
24307
24305
  else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
24308
24306
  text =
24309
- 'Number of credits of programmes created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
24307
+ 'Number of credits of projects created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
24310
24308
  }
24311
24309
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
24312
24310
  text =
24313
- 'Graphical representation of the number of programmes in each programme sector created during the specified time, certified by your company, in the carbon registry';
24311
+ 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
24314
24312
  }
24315
24313
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24316
24314
  text =
24317
- 'Graphical representation of the number of programmes in each programme sector created during the specified time, certified by your company, in the carbon registry';
24315
+ 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
24318
24316
  }
24319
24317
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
24320
24318
  text =
24321
- 'Graphical representation of the number of credits of programmes created during the specified period in each credit state in the carbon registry at present';
24319
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24322
24320
  }
24323
24321
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24324
24322
  text =
24325
- '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';
24323
+ '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';
24326
24324
  }
24327
24325
  else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
24328
24326
  text =
24329
- 'Locations of the programmes created during the specified period, certified by your organisation, and their programme states in the carbon registry at present';
24327
+ 'Locations of the projects created during the specified period, certified by your organisation, and their project states in the carbon registry at present';
24330
24328
  }
24331
24329
  else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24332
24330
  text =
24333
- 'Locations of credits of international transfer requests of programmes certified by your organisation recognised during the specified period';
24331
+ 'Locations of credits of international transfer requests of projects certified by your organisation recognised during the specified period';
24334
24332
  }
24335
24333
  }
24336
24334
  else if (companyRole === exports.CompanyRole.CERTIFIER && !mine) {
24337
24335
  if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
24338
24336
  text =
24339
- 'Number of programmes not yet certified including certificates revoked by your organisation';
24337
+ 'Number of projects not yet certified including certificates revoked by your organisation';
24340
24338
  }
24341
24339
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
24342
- text = 'Number of programmes certified by your organisation';
24340
+ text = 'Number of projects certified by your organisation';
24343
24341
  }
24344
24342
  else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
24345
24343
  text = 'Number of credits certified by your organisation';
24346
24344
  }
24347
24345
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
24348
24346
  text =
24349
- 'Number of programmes created during the specified period and their programme state in the carbon registry at present';
24347
+ 'Number of projects created during the specified period and their project state in the carbon registry at present';
24350
24348
  }
24351
24349
  else if (cardType === exports.StatsCardsTypes.CREDITS) {
24352
24350
  text =
24353
- 'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present';
24351
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
24354
24352
  }
24355
24353
  else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
24356
24354
  text =
24357
- 'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24355
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24358
24356
  }
24359
24357
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
24360
24358
  text =
24361
- 'Graphical representation of the number of programmes created during the specified period in each programme state in the carbon registry at present';
24359
+ 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
24362
24360
  }
24363
24361
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24364
24362
  text =
24365
- 'Graphical representation of the number of programmes in each programme sector created during the specified time in the carbon registry';
24363
+ 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
24366
24364
  }
24367
24365
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
24368
24366
  text =
24369
- 'Graphical representation of the number of credits of programmes created during the specified period in each credit state in the carbon registry at present';
24367
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24370
24368
  }
24371
24369
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24372
24370
  text =
24373
- 'Graphical representation of the number of credits of programmes created during the specified period certified, uncertified and revoked in the carbon registry at present';
24371
+ 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
24374
24372
  }
24375
24373
  else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
24376
24374
  text =
24377
- 'Locations of the programmes created during the specified period and their programme states in the carbon registry at present';
24375
+ 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
24378
24376
  }
24379
24377
  else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24380
24378
  text =
@@ -24405,7 +24403,7 @@ var StasticCard = function (props) {
24405
24403
  };
24406
24404
 
24407
24405
  var ProgrammeRejectAndTransferComponent = function (props) {
24408
- var totalPrgrammes = props.totalPrgrammes, pending = props.pending, rejected = props.rejected, authorized = props.authorized, updatedDate = props.updatedDate, loading = props.loading, toolTipText = props.toolTipText;
24406
+ 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;
24409
24407
  React.useEffect(function () {
24410
24408
  console.log({ pending: pending, totalPrgrammes: totalPrgrammes });
24411
24409
  });
@@ -24413,7 +24411,7 @@ var ProgrammeRejectAndTransferComponent = function (props) {
24413
24411
  React.createElement(antd.Skeleton, { active: true }),
24414
24412
  React.createElement(antd.Skeleton, { active: true }))) : (React.createElement(React.Fragment, null,
24415
24413
  React.createElement("div", { className: "title-section" },
24416
- React.createElement("div", { className: "title" }, "Programmes"),
24414
+ React.createElement("div", { className: "title" }, t("programmes")),
24417
24415
  React.createElement("div", { className: "info-container" },
24418
24416
  React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: toolTipText },
24419
24417
  React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 })))),
@@ -26085,7 +26083,7 @@ var RegistryDashboardComponent = function (props) {
26085
26083
  ? "tTProgrammesProgrammeDev"
26086
26084
  : categoryType === "mine"
26087
26085
  ? "tTProgrammesCertifierMine"
26088
- : "tTProgrammesCertifierOverall") })),
26086
+ : "tTProgrammesCertifierOverall"), t: t })),
26089
26087
  React.createElement(antd.Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col pie" },
26090
26088
  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) === exports.CompanyRole.GOVERNMENT
26091
26089
  ? "tTCreditsGovernment"