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

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,5 +7,6 @@ export interface ProgrammeRejectAndTransferCardItemProps {
7
7
  updatedDate: any;
8
8
  loading: boolean;
9
9
  toolTipText: string;
10
+ t: any;
10
11
  }
11
12
  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 programmes" },
6259
+ React.createElement(Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of projects" },
6260
6260
  React.createElement(Radio.Button, { className: "certifier", value: "Certifier" },
6261
6261
  React.createElement(SafetyOutlined, { className: "role-icons" }),
6262
6262
  "Certifier"))),
@@ -6267,13 +6267,13 @@ 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 programmes and transfer carbon credits" },
6270
+ React.createElement(Tooltip, { placement: "top", title: "Permitted to own projects 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"))),
6274
6274
  ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
6275
6275
  CompanyRole.MINISTRY) && !isGuest && (React.createElement("div", { className: "minister-radio-container" },
6276
- React.createElement(Tooltip, { placement: "top", title: "Permitted to perform all programme-related actions within the Ministry" },
6276
+ React.createElement(Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" },
6277
6277
  React.createElement(Radio.Button, { className: "minister", value: "Ministry" },
6278
6278
  React.createElement(AuditOutlined, { className: "role-icons" }),
6279
6279
  "Ministry")))))))),
@@ -20971,9 +20971,7 @@ var AddNdcActionComponent = function (props) {
20971
20971
  title: (React.createElement("div", { className: "step-title-container" },
20972
20972
  React.createElement("div", { className: "step-count" }, "01"),
20973
20973
  React.createElement("div", { className: "title" }, t("ndcAction:ndcActionDetailsTitle")),
20974
- React.createElement("div", { className: "info-container" },
20975
- React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "right", trigger: "hover", title: t("ndcAction:ndcToolTip"), overlayClassName: "custom-tooltip" },
20976
- React.createElement(InfoCircle, { color: "#000000", size: 17 }))))),
20974
+ React.createElement("div", { className: "info-container" }))),
20977
20975
  description: (React.createElement("div", { className: current !== 1 ? "hide" : "" },
20978
20976
  React.createElement(NdcActionDetails, { isBackBtnVisible: false, onFormSubmit: onNdcActionDetailsSubmit, ndcActionDetails: ndcActionDetails, translator: translator, programmeDetails: programmeDetails }))),
20979
20977
  },
@@ -24116,46 +24114,46 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
24116
24114
  var text = '';
24117
24115
  if (companyRole === CompanyRole.GOVERNMENT) {
24118
24116
  if (cardType === StatsCardsTypes.PROGRAMMES_PENDING) {
24119
- text = 'Pending state programmes awaiting authorisation';
24117
+ text = 'Pending state projects awaiting authorisation';
24120
24118
  }
24121
24119
  else if (cardType === StatsCardsTypes.TRANSFER_REQUEST_SENT) {
24122
24120
  text =
24123
- 'Pending credit transfer requests sent to programme owners initiated by your organisation';
24121
+ 'Pending credit transfer requests sent to project owners initiated by your organisation';
24124
24122
  }
24125
24123
  else if (cardType === StatsCardsTypes.CREDIT_BALANCE) {
24126
24124
  text = 'Total credit balance owned by your organisation';
24127
24125
  }
24128
24126
  else if (cardType === StatsCardsTypes.PROGRAMMES) {
24129
24127
  text =
24130
- 'Number of programmes created during the specified period and their programme state in the carbon registry at present';
24128
+ 'Number of projects created during the specified period and their project state in the carbon registry at present';
24131
24129
  }
24132
24130
  else if (cardType === StatsCardsTypes.CREDITS) {
24133
24131
  text =
24134
- 'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present';
24132
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
24135
24133
  }
24136
24134
  else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
24137
24135
  text =
24138
- 'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24136
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24139
24137
  }
24140
24138
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
24141
24139
  text =
24142
- 'Graphical representation of the number of programmes created during the specified period in each programme state in the carbon registry at present';
24140
+ 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
24143
24141
  }
24144
24142
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24145
24143
  text =
24146
- 'Graphical representation of the number of programmes in each programme sector created during the specified time in the carbon registry';
24144
+ 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
24147
24145
  }
24148
24146
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
24149
24147
  text =
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';
24148
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24151
24149
  }
24152
24150
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24153
24151
  text =
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';
24152
+ 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
24155
24153
  }
24156
24154
  else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
24157
24155
  text =
24158
- 'Locations of the programmes created during the specified period and their programme states in the carbon registry at present';
24156
+ 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
24159
24157
  }
24160
24158
  else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24161
24159
  text =
@@ -24174,131 +24172,131 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
24174
24172
  }
24175
24173
  else if (cardType === StatsCardsTypes.PROGRAMMES) {
24176
24174
  text =
24177
- 'Number of programmes created during the specified period and their programme state in the carbon registry at present, owned by your organisation';
24175
+ 'Number of projects created during the specified period and their project state in the carbon registry at present, owned by your organisation';
24178
24176
  }
24179
24177
  else if (cardType === StatsCardsTypes.CREDITS) {
24180
24178
  text =
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';
24179
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present, owned by your organisation';
24182
24180
  }
24183
24181
  else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
24184
24182
  text =
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';
24183
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present, owned by your organisation';
24186
24184
  }
24187
24185
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
24188
24186
  text =
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';
24187
+ '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';
24190
24188
  }
24191
24189
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24192
24190
  text =
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';
24191
+ 'Graphical representation of the number of projects owned by your organisation, in each project sector created during the specified time in the carbon registry';
24194
24192
  }
24195
24193
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
24196
24194
  text =
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';
24195
+ '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';
24198
24196
  }
24199
24197
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24200
24198
  text =
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';
24199
+ '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';
24202
24200
  }
24203
24201
  else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
24204
24202
  text =
24205
- 'Locations of the programmes created during the specified period, owned by your organisation, and their programme states in the carbon registry at present';
24203
+ 'Locations of the projects created during the specified period, owned by your organisation, and their project states in the carbon registry at present';
24206
24204
  }
24207
24205
  else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24208
24206
  text =
24209
- 'Locations of credits international transfer requests of programmes owned by your organisation recognised during the specified period';
24207
+ 'Locations of credits international transfer requests of projects owned by your organisation recognised during the specified period';
24210
24208
  }
24211
24209
  }
24212
24210
  else if (companyRole === CompanyRole.CERTIFIER && mine === true) {
24213
24211
  if (cardType === StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
24214
24212
  text =
24215
- 'Number of programmes not yet certified including certificates revoked by your organisation';
24213
+ 'Number of projects not yet certified including certificates revoked by your organisation';
24216
24214
  }
24217
24215
  else if (cardType === StatsCardsTypes.PROGRAMMES_CERTIFIED) {
24218
- text = 'Number of programmes certified by your organisation';
24216
+ text = 'Number of projects certified by your organisation';
24219
24217
  }
24220
24218
  else if (cardType === StatsCardsTypes.CREDIT_CERTIFIED) {
24221
24219
  text = 'Number of credits certified by your organisation';
24222
24220
  }
24223
24221
  else if (cardType === StatsCardsTypes.PROGRAMMES) {
24224
24222
  text =
24225
- 'Number of programmes created during the specified period, certified by your organisation, and their programme state in the carbon registry at present';
24223
+ 'Number of projects created during the specified period, certified by your organisation, and their project state in the carbon registry at present';
24226
24224
  }
24227
24225
  else if (cardType === StatsCardsTypes.CREDITS) {
24228
24226
  text =
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';
24227
+ 'Number of credits of projects created during the specified period, certified by your organisation and their credit state in the carbon registry at present';
24230
24228
  }
24231
24229
  else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
24232
24230
  text =
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';
24231
+ 'Number of credits of projects created during the specified period, certified by your organisation, uncertified, certified and revoked in the carbon registry at present';
24234
24232
  }
24235
24233
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
24236
24234
  text =
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';
24235
+ 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
24238
24236
  }
24239
24237
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24240
24238
  text =
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';
24239
+ 'Graphical representation of the number of projects in each project sector created during the specified time, certified by your company, in the carbon registry';
24242
24240
  }
24243
24241
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
24244
24242
  text =
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';
24243
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24246
24244
  }
24247
24245
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24248
24246
  text =
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';
24247
+ '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';
24250
24248
  }
24251
24249
  else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
24252
24250
  text =
24253
- 'Locations of the programmes created during the specified period, certified by your organisation, and their programme states in the carbon registry at present';
24251
+ 'Locations of the projects created during the specified period, certified by your organisation, and their project states in the carbon registry at present';
24254
24252
  }
24255
24253
  else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24256
24254
  text =
24257
- 'Locations of credits of international transfer requests of programmes certified by your organisation recognised during the specified period';
24255
+ 'Locations of credits of international transfer requests of projects certified by your organisation recognised during the specified period';
24258
24256
  }
24259
24257
  }
24260
24258
  else if (companyRole === CompanyRole.CERTIFIER && !mine) {
24261
24259
  if (cardType === StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
24262
24260
  text =
24263
- 'Number of programmes not yet certified including certificates revoked by your organisation';
24261
+ 'Number of projects not yet certified including certificates revoked by your organisation';
24264
24262
  }
24265
24263
  else if (cardType === StatsCardsTypes.PROGRAMMES_CERTIFIED) {
24266
- text = 'Number of programmes certified by your organisation';
24264
+ text = 'Number of projects certified by your organisation';
24267
24265
  }
24268
24266
  else if (cardType === StatsCardsTypes.CREDIT_CERTIFIED) {
24269
24267
  text = 'Number of credits certified by your organisation';
24270
24268
  }
24271
24269
  else if (cardType === StatsCardsTypes.PROGRAMMES) {
24272
24270
  text =
24273
- 'Number of programmes created during the specified period and their programme state in the carbon registry at present';
24271
+ 'Number of projects created during the specified period and their project state in the carbon registry at present';
24274
24272
  }
24275
24273
  else if (cardType === StatsCardsTypes.CREDITS) {
24276
24274
  text =
24277
- 'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present';
24275
+ 'Number of credits of projects created during the specified period and their credit state in the carbon registry at present';
24278
24276
  }
24279
24277
  else if (cardType === StatsCardsTypes.CERTIFIED_CREDITS) {
24280
24278
  text =
24281
- 'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24279
+ 'Number of credits of projects created during the specified period, uncertified, certified and revoked in the carbon registry at present';
24282
24280
  }
24283
24281
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES) {
24284
24282
  text =
24285
- 'Graphical representation of the number of programmes created during the specified period in each programme state in the carbon registry at present';
24283
+ 'Graphical representation of the number of projects created during the specified period in each project state in the carbon registry at present';
24286
24284
  }
24287
24285
  else if (cardType === StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
24288
24286
  text =
24289
- 'Graphical representation of the number of programmes in each programme sector created during the specified time in the carbon registry';
24287
+ 'Graphical representation of the number of projects in each project sector created during the specified time in the carbon registry';
24290
24288
  }
24291
24289
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS) {
24292
24290
  text =
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';
24291
+ 'Graphical representation of the number of credits of projects created during the specified period in each credit state in the carbon registry at present';
24294
24292
  }
24295
24293
  else if (cardType === StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
24296
24294
  text =
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';
24295
+ 'Graphical representation of the number of credits of projects created during the specified period certified, uncertified and revoked in the carbon registry at present';
24298
24296
  }
24299
24297
  else if (cardType === StatsCardsTypes.PROGRAMME_LOCATIONS) {
24300
24298
  text =
24301
- 'Locations of the programmes created during the specified period and their programme states in the carbon registry at present';
24299
+ 'Locations of the projects created during the specified period and their project states in the carbon registry at present';
24302
24300
  }
24303
24301
  else if (cardType === StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
24304
24302
  text =
@@ -24329,7 +24327,7 @@ var StasticCard = function (props) {
24329
24327
  };
24330
24328
 
24331
24329
  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;
24330
+ 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;
24333
24331
  useEffect(function () {
24334
24332
  console.log({ pending: pending, totalPrgrammes: totalPrgrammes });
24335
24333
  });
@@ -24337,7 +24335,7 @@ var ProgrammeRejectAndTransferComponent = function (props) {
24337
24335
  React.createElement(Skeleton, { active: true }),
24338
24336
  React.createElement(Skeleton, { active: true }))) : (React.createElement(React.Fragment, null,
24339
24337
  React.createElement("div", { className: "title-section" },
24340
- React.createElement("div", { className: "title" }, "Programmes"),
24338
+ React.createElement("div", { className: "title" }, t("programmes")),
24341
24339
  React.createElement("div", { className: "info-container" },
24342
24340
  React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: toolTipText },
24343
24341
  React.createElement(InfoCircle, { color: "#000000", size: 17 })))),
@@ -26009,7 +26007,7 @@ var RegistryDashboardComponent = function (props) {
26009
26007
  ? "tTProgrammesProgrammeDev"
26010
26008
  : categoryType === "mine"
26011
26009
  ? "tTProgrammesCertifierMine"
26012
- : "tTProgrammesCertifierOverall") })),
26010
+ : "tTProgrammesCertifierOverall"), t: t })),
26013
26011
  React.createElement(Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col pie" },
26014
26012
  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
26015
26013
  ? "tTCreditsGovernment"