@undp/carbon-library 1.0.256 → 1.0.258-CARBON-380.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -6276,7 +6276,7 @@ var AddNewCompanyComponent = function (props) {
6276
6276
  width: "45%",
6277
6277
  }
6278
6278
  : {} },
6279
- React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of programmes" },
6279
+ React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of projects" },
6280
6280
  React.createElement(antd.Radio.Button, { className: "certifier", value: "Certifier" },
6281
6281
  React.createElement(icons.SafetyOutlined, { className: "role-icons" }),
6282
6282
  "Certifier"))),
@@ -6287,13 +6287,13 @@ var AddNewCompanyComponent = function (props) {
6287
6287
  marginLeft: isGuest ? "30px" : 0,
6288
6288
  }
6289
6289
  : { marginLeft: isGuest ? "30px" : 0, } },
6290
- React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to own programmes and transfer carbon credits" },
6290
+ React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to own projects and transfer carbon credits" },
6291
6291
  React.createElement(antd.Radio.Button, { className: "dev", value: "ProgrammeDeveloper" },
6292
6292
  React.createElement(icons.ExperimentOutlined, { className: "role-icons" }),
6293
6293
  "Developer"))),
6294
6294
  ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
6295
6295
  exports.CompanyRole.MINISTRY) && !isGuest && (React.createElement("div", { className: "minister-radio-container" },
6296
- React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to perform all programme-related actions within the Ministry" },
6296
+ React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" },
6297
6297
  React.createElement(antd.Radio.Button, { className: "minister", value: "Ministry" },
6298
6298
  React.createElement(icons.AuditOutlined, { className: "role-icons" }),
6299
6299
  "Ministry")))))))),
@@ -20991,9 +20991,7 @@ var AddNdcActionComponent = function (props) {
20991
20991
  title: (React.createElement("div", { className: "step-title-container" },
20992
20992
  React.createElement("div", { className: "step-count" }, "01"),
20993
20993
  React.createElement("div", { className: "title" }, t("ndcAction:ndcActionDetailsTitle")),
20994
- React.createElement("div", { className: "info-container" },
20995
- React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "right", trigger: "hover", title: t("ndcAction:ndcToolTip"), overlayClassName: "custom-tooltip" },
20996
- React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 }))))),
20994
+ React.createElement("div", { className: "info-container" }))),
20997
20995
  description: (React.createElement("div", { className: current !== 1 ? "hide" : "" },
20998
20996
  React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails, translator: translator, programmeDetails: programmeDetails }))),
20999
20997
  },
@@ -24136,46 +24134,46 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
24136
24134
  var text = '';
24137
24135
  if (companyRole === exports.CompanyRole.GOVERNMENT) {
24138
24136
  if (cardType === exports.StatsCardsTypes.PROGRAMMES_PENDING) {
24139
- text = 'Pending state programmes awaiting authorisation';
24137
+ text = 'Pending state projects awaiting authorisation';
24140
24138
  }
24141
24139
  else if (cardType === exports.StatsCardsTypes.TRANSFER_REQUEST_SENT) {
24142
24140
  text =
24143
- 'Pending credit transfer requests sent to programme owners initiated by your organisation';
24141
+ 'Pending credit transfer requests sent to project owners initiated by your organisation';
24144
24142
  }
24145
24143
  else if (cardType === exports.StatsCardsTypes.CREDIT_BALANCE) {
24146
24144
  text = 'Total credit balance owned by your organisation';
24147
24145
  }
24148
24146
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
24149
24147
  text =
24150
- 'Number of programmes created during the specified period and their programme state in the carbon registry at present';
24148
+ 'Number of projects created during the specified period and their project state in the carbon registry at present';
24151
24149
  }
24152
24150
  else if (cardType === exports.StatsCardsTypes.CREDITS) {
24153
24151
  text =
24154
- 'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present';
24152
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
24155
24153
  }
24156
24154
  else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
24157
24155
  text =
24158
- 'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24156
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24159
24157
  }
24160
24158
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
24161
24159
  text =
24162
- 'Graphical representation of the number of programmes created during the specified period in each programme state in the carbon registry at present';
24160
+ 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
24163
24161
  }
24164
24162
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24165
24163
  text =
24166
- 'Graphical representation of the number of programmes in each programme sector created during the specified time in the carbon registry';
24164
+ 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
24167
24165
  }
24168
24166
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
24169
24167
  text =
24170
- 'Graphical representation of the number of credits of programmes created during the specified period in each credit state in the carbon registry at present';
24168
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24171
24169
  }
24172
24170
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24173
24171
  text =
24174
- 'Graphical representation of the number of credits of programmes created during the specified period certified, uncertified and revoked in the carbon registry at present';
24172
+ 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
24175
24173
  }
24176
24174
  else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
24177
24175
  text =
24178
- 'Locations of the programmes created during the specified period and their programme states in the carbon registry at present';
24176
+ 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
24179
24177
  }
24180
24178
  else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24181
24179
  text =
@@ -24194,131 +24192,131 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
24194
24192
  }
24195
24193
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
24196
24194
  text =
24197
- 'Number of programmes created during the specified period and their programme state in the carbon registry at present, owned by your organisation';
24195
+ 'Number of projects created during the specified period and their project state in the carbon registry at present, owned by your organisation';
24198
24196
  }
24199
24197
  else if (cardType === exports.StatsCardsTypes.CREDITS) {
24200
24198
  text =
24201
- 'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
24199
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
24202
24200
  }
24203
24201
  else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
24204
24202
  text =
24205
- 'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
24203
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
24206
24204
  }
24207
24205
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
24208
24206
  text =
24209
- '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';
24207
+ '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';
24210
24208
  }
24211
24209
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24212
24210
  text =
24213
- 'Graphical representation of the number of programmes owned by your organisation, in each programme sector created during the specified time in the carbon registry';
24211
+ 'Graphical representation of the number of projects owned by your organisation, in each project sector created during the specified time in the carbon registry';
24214
24212
  }
24215
24213
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
24216
24214
  text =
24217
- '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';
24215
+ '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';
24218
24216
  }
24219
24217
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24220
24218
  text =
24221
- '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';
24219
+ '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';
24222
24220
  }
24223
24221
  else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
24224
24222
  text =
24225
- 'Locations of the programmes created during the specified period, owned by your organisation, and their programme states in the carbon registry at present';
24223
+ 'Locations of the projects created during the specified period, owned by your organisation, and their project states in the carbon registry at present';
24226
24224
  }
24227
24225
  else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24228
24226
  text =
24229
- 'Locations of credits international transfer requests of programmes owned by your organisation recognised during the specified period';
24227
+ 'Locations of credits international transfer requests of projects owned by your organisation recognised during the specified period';
24230
24228
  }
24231
24229
  }
24232
24230
  else if (companyRole === exports.CompanyRole.CERTIFIER && mine === true) {
24233
24231
  if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
24234
24232
  text =
24235
- 'Number of programmes not yet certified including certificates revoked by your organisation';
24233
+ 'Number of projects not yet certified including certificates revoked by your organisation';
24236
24234
  }
24237
24235
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
24238
- text = 'Number of programmes certified by your organisation';
24236
+ text = 'Number of projects certified by your organisation';
24239
24237
  }
24240
24238
  else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
24241
24239
  text = 'Number of credits certified by your organisation';
24242
24240
  }
24243
24241
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
24244
24242
  text =
24245
- 'Number of programmes created during the specified period, certified by your organisation, and their programme state in the carbon registry at present';
24243
+ 'Number of projects created during the specified period, certified by your organisation, and their project state in the carbon registry at present';
24246
24244
  }
24247
24245
  else if (cardType === exports.StatsCardsTypes.CREDITS) {
24248
24246
  text =
24249
- 'Number of credits of programmes created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
24247
+ 'Number of credits of projects created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
24250
24248
  }
24251
24249
  else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
24252
24250
  text =
24253
- 'Number of credits of programmes created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
24251
+ 'Number of credits of projects created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
24254
24252
  }
24255
24253
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
24256
24254
  text =
24257
- 'Graphical representation of the number of programmes in each programme sector created during the specified time, certified by your company, in the carbon registry';
24255
+ 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
24258
24256
  }
24259
24257
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24260
24258
  text =
24261
- 'Graphical representation of the number of programmes in each programme sector created during the specified time, certified by your company, in the carbon registry';
24259
+ 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
24262
24260
  }
24263
24261
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
24264
24262
  text =
24265
- 'Graphical representation of the number of credits of programmes created during the specified period in each credit state in the carbon registry at present';
24263
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24266
24264
  }
24267
24265
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24268
24266
  text =
24269
- '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';
24267
+ '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';
24270
24268
  }
24271
24269
  else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
24272
24270
  text =
24273
- 'Locations of the programmes created during the specified period, certified by your organisation, and their programme states in the carbon registry at present';
24271
+ 'Locations of the projects created during the specified period, certified by your organisation, and their project states in the carbon registry at present';
24274
24272
  }
24275
24273
  else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24276
24274
  text =
24277
- 'Locations of credits of international transfer requests of programmes certified by your organisation recognised during the specified period';
24275
+ 'Locations of credits of international transfer requests of projects certified by your organisation recognised during the specified period';
24278
24276
  }
24279
24277
  }
24280
24278
  else if (companyRole === exports.CompanyRole.CERTIFIER && !mine) {
24281
24279
  if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
24282
24280
  text =
24283
- 'Number of programmes not yet certified including certificates revoked by your organisation';
24281
+ 'Number of projects not yet certified including certificates revoked by your organisation';
24284
24282
  }
24285
24283
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
24286
- text = 'Number of programmes certified by your organisation';
24284
+ text = 'Number of projects certified by your organisation';
24287
24285
  }
24288
24286
  else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
24289
24287
  text = 'Number of credits certified by your organisation';
24290
24288
  }
24291
24289
  else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
24292
24290
  text =
24293
- 'Number of programmes created during the specified period and their programme state in the carbon registry at present';
24291
+ 'Number of projects created during the specified period and their project state in the carbon registry at present';
24294
24292
  }
24295
24293
  else if (cardType === exports.StatsCardsTypes.CREDITS) {
24296
24294
  text =
24297
- 'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present';
24295
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
24298
24296
  }
24299
24297
  else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
24300
24298
  text =
24301
- 'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24299
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24302
24300
  }
24303
24301
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
24304
24302
  text =
24305
- 'Graphical representation of the number of programmes created during the specified period in each programme state in the carbon registry at present';
24303
+ 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
24306
24304
  }
24307
24305
  else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24308
24306
  text =
24309
- 'Graphical representation of the number of programmes in each programme sector created during the specified time in the carbon registry';
24307
+ 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
24310
24308
  }
24311
24309
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
24312
24310
  text =
24313
- 'Graphical representation of the number of credits of programmes created during the specified period in each credit state in the carbon registry at present';
24311
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24314
24312
  }
24315
24313
  else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24316
24314
  text =
24317
- 'Graphical representation of the number of credits of programmes created during the specified period certified, uncertified and revoked in the carbon registry at present';
24315
+ 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
24318
24316
  }
24319
24317
  else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
24320
24318
  text =
24321
- 'Locations of the programmes created during the specified period and their programme states in the carbon registry at present';
24319
+ 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
24322
24320
  }
24323
24321
  else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24324
24322
  text =
@@ -24349,7 +24347,7 @@ var StasticCard = function (props) {
24349
24347
  };
24350
24348
 
24351
24349
  var ProgrammeRejectAndTransferComponent = function (props) {
24352
- var totalPrgrammes = props.totalPrgrammes, pending = props.pending, rejected = props.rejected, authorized = props.authorized, updatedDate = props.updatedDate, loading = props.loading, toolTipText = props.toolTipText;
24350
+ 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;
24353
24351
  React.useEffect(function () {
24354
24352
  console.log({ pending: pending, totalPrgrammes: totalPrgrammes });
24355
24353
  });
@@ -24357,7 +24355,7 @@ var ProgrammeRejectAndTransferComponent = function (props) {
24357
24355
  React.createElement(antd.Skeleton, { active: true }),
24358
24356
  React.createElement(antd.Skeleton, { active: true }))) : (React.createElement(React.Fragment, null,
24359
24357
  React.createElement("div", { className: "title-section" },
24360
- React.createElement("div", { className: "title" }, "Programmes"),
24358
+ React.createElement("div", { className: "title" }, t("programmes")),
24361
24359
  React.createElement("div", { className: "info-container" },
24362
24360
  React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: toolTipText },
24363
24361
  React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 })))),
@@ -26029,7 +26027,7 @@ var RegistryDashboardComponent = function (props) {
26029
26027
  ? "tTProgrammesProgrammeDev"
26030
26028
  : categoryType === "mine"
26031
26029
  ? "tTProgrammesCertifierMine"
26032
- : "tTProgrammesCertifierOverall") })),
26030
+ : "tTProgrammesCertifierOverall"), t: t })),
26033
26031
  React.createElement(antd.Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col pie" },
26034
26032
  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
26035
26033
  ? "tTCreditsGovernment"