@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.
- package/dist/cjs/index.js +47 -46
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +0 -1
- package/dist/esm/index.js +47 -46
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +0 -1
- package/package.json +1 -1
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
|
6279
|
+
React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of programmes" },
|
6280
6280
|
React.createElement(antd.Radio.Button, { className: "certifier", value: "Certifier" },
|
6281
6281
|
React.createElement(icons.SafetyOutlined, { className: "role-icons" }),
|
6282
6282
|
"Certifier"))),
|
@@ -6287,7 +6287,7 @@ 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
|
6290
|
+
React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to own programmes 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"))),
|
@@ -24136,46 +24136,46 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
|
|
24136
24136
|
var text = '';
|
24137
24137
|
if (companyRole === exports.CompanyRole.GOVERNMENT) {
|
24138
24138
|
if (cardType === exports.StatsCardsTypes.PROGRAMMES_PENDING) {
|
24139
|
-
text = 'Pending state
|
24139
|
+
text = 'Pending state programmes awaiting authorisation';
|
24140
24140
|
}
|
24141
24141
|
else if (cardType === exports.StatsCardsTypes.TRANSFER_REQUEST_SENT) {
|
24142
24142
|
text =
|
24143
|
-
'Pending credit transfer requests sent to
|
24143
|
+
'Pending credit transfer requests sent to programme owners initiated by your organisation';
|
24144
24144
|
}
|
24145
24145
|
else if (cardType === exports.StatsCardsTypes.CREDIT_BALANCE) {
|
24146
24146
|
text = 'Total credit balance owned by your organisation';
|
24147
24147
|
}
|
24148
24148
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
|
24149
24149
|
text =
|
24150
|
-
'Number of
|
24150
|
+
'Number of programmes created during the specified period and their programme state in the carbon registry at present';
|
24151
24151
|
}
|
24152
24152
|
else if (cardType === exports.StatsCardsTypes.CREDITS) {
|
24153
24153
|
text =
|
24154
|
-
'Number of credits of
|
24154
|
+
'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present';
|
24155
24155
|
}
|
24156
24156
|
else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
|
24157
24157
|
text =
|
24158
|
-
'Number of credits of
|
24158
|
+
'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present';
|
24159
24159
|
}
|
24160
24160
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24161
24161
|
text =
|
24162
|
-
'Graphical representation of the number of
|
24162
|
+
'Graphical representation of the number of programmes created during the specified period in each programme state in the carbon registry at present';
|
24163
24163
|
}
|
24164
24164
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24165
24165
|
text =
|
24166
|
-
'Graphical representation of the number of
|
24166
|
+
'Graphical representation of the number of programmes in each programme sector created during the specified time in the carbon registry';
|
24167
24167
|
}
|
24168
24168
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
|
24169
24169
|
text =
|
24170
|
-
'Graphical representation of the number of credits of
|
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';
|
24171
24171
|
}
|
24172
24172
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24173
24173
|
text =
|
24174
|
-
'Graphical representation of the number of credits of
|
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';
|
24175
24175
|
}
|
24176
24176
|
else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24177
24177
|
text =
|
24178
|
-
'Locations of the
|
24178
|
+
'Locations of the programmes created during the specified period and their programme states in the carbon registry at present';
|
24179
24179
|
}
|
24180
24180
|
else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24181
24181
|
text =
|
@@ -24194,131 +24194,131 @@ var toolTipTextGen = function (companyRole, cardType, mine) {
|
|
24194
24194
|
}
|
24195
24195
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
|
24196
24196
|
text =
|
24197
|
-
'Number of
|
24197
|
+
'Number of programmes created during the specified period and their programme state in the carbon registry at present, owned by your organisation';
|
24198
24198
|
}
|
24199
24199
|
else if (cardType === exports.StatsCardsTypes.CREDITS) {
|
24200
24200
|
text =
|
24201
|
-
'Number of credits of
|
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';
|
24202
24202
|
}
|
24203
24203
|
else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
|
24204
24204
|
text =
|
24205
|
-
'Number of credits of
|
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';
|
24206
24206
|
}
|
24207
24207
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24208
24208
|
text =
|
24209
|
-
'Graphical representation of the number of
|
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';
|
24210
24210
|
}
|
24211
24211
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24212
24212
|
text =
|
24213
|
-
'Graphical representation of the number of
|
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';
|
24214
24214
|
}
|
24215
24215
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
|
24216
24216
|
text =
|
24217
|
-
'Graphical representation of the number of credits of
|
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';
|
24218
24218
|
}
|
24219
24219
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24220
24220
|
text =
|
24221
|
-
'Graphical representation of the number of credits of
|
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';
|
24222
24222
|
}
|
24223
24223
|
else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24224
24224
|
text =
|
24225
|
-
'Locations of the
|
24225
|
+
'Locations of the programmes created during the specified period, owned by your organisation, and their programme states in the carbon registry at present';
|
24226
24226
|
}
|
24227
24227
|
else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24228
24228
|
text =
|
24229
|
-
'Locations of credits international transfer requests of
|
24229
|
+
'Locations of credits international transfer requests of programmes owned by your organisation recognised during the specified period';
|
24230
24230
|
}
|
24231
24231
|
}
|
24232
24232
|
else if (companyRole === exports.CompanyRole.CERTIFIER && mine === true) {
|
24233
24233
|
if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
|
24234
24234
|
text =
|
24235
|
-
'Number of
|
24235
|
+
'Number of programmes not yet certified including certificates revoked by your organisation';
|
24236
24236
|
}
|
24237
24237
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
|
24238
|
-
text = 'Number of
|
24238
|
+
text = 'Number of programmes certified by your organisation';
|
24239
24239
|
}
|
24240
24240
|
else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
|
24241
24241
|
text = 'Number of credits certified by your organisation';
|
24242
24242
|
}
|
24243
24243
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
|
24244
24244
|
text =
|
24245
|
-
'Number of
|
24245
|
+
'Number of programmes created during the specified period, certified by your organisation, and their programme state in the carbon registry at present';
|
24246
24246
|
}
|
24247
24247
|
else if (cardType === exports.StatsCardsTypes.CREDITS) {
|
24248
24248
|
text =
|
24249
|
-
'Number of credits of
|
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';
|
24250
24250
|
}
|
24251
24251
|
else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
|
24252
24252
|
text =
|
24253
|
-
'Number of credits of
|
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';
|
24254
24254
|
}
|
24255
24255
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24256
24256
|
text =
|
24257
|
-
'Graphical representation of the number of
|
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';
|
24258
24258
|
}
|
24259
24259
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24260
24260
|
text =
|
24261
|
-
'Graphical representation of the number of
|
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';
|
24262
24262
|
}
|
24263
24263
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
|
24264
24264
|
text =
|
24265
|
-
'Graphical representation of the number of credits of
|
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';
|
24266
24266
|
}
|
24267
24267
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24268
24268
|
text =
|
24269
|
-
'Graphical representation of the number of credits of
|
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';
|
24270
24270
|
}
|
24271
24271
|
else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24272
24272
|
text =
|
24273
|
-
'Locations of the
|
24273
|
+
'Locations of the programmes created during the specified period, certified by your organisation, and their programme states in the carbon registry at present';
|
24274
24274
|
}
|
24275
24275
|
else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24276
24276
|
text =
|
24277
|
-
'Locations of credits of international transfer requests of
|
24277
|
+
'Locations of credits of international transfer requests of programmes certified by your organisation recognised during the specified period';
|
24278
24278
|
}
|
24279
24279
|
}
|
24280
24280
|
else if (companyRole === exports.CompanyRole.CERTIFIER && !mine) {
|
24281
24281
|
if (cardType === exports.StatsCardsTypes.PROGRAMMES_UNCERTIFIED) {
|
24282
24282
|
text =
|
24283
|
-
'Number of
|
24283
|
+
'Number of programmes not yet certified including certificates revoked by your organisation';
|
24284
24284
|
}
|
24285
24285
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES_CERTIFIED) {
|
24286
|
-
text = 'Number of
|
24286
|
+
text = 'Number of programmes certified by your organisation';
|
24287
24287
|
}
|
24288
24288
|
else if (cardType === exports.StatsCardsTypes.CREDIT_CERTIFIED) {
|
24289
24289
|
text = 'Number of credits certified by your organisation';
|
24290
24290
|
}
|
24291
24291
|
else if (cardType === exports.StatsCardsTypes.PROGRAMMES) {
|
24292
24292
|
text =
|
24293
|
-
'Number of
|
24293
|
+
'Number of programmes created during the specified period and their programme state in the carbon registry at present';
|
24294
24294
|
}
|
24295
24295
|
else if (cardType === exports.StatsCardsTypes.CREDITS) {
|
24296
24296
|
text =
|
24297
|
-
'Number of credits of
|
24297
|
+
'Number of credits of programmes created during the specified period and their credit state in the carbon registry at present';
|
24298
24298
|
}
|
24299
24299
|
else if (cardType === exports.StatsCardsTypes.CERTIFIED_CREDITS) {
|
24300
24300
|
text =
|
24301
|
-
'Number of credits of
|
24301
|
+
'Number of credits of programmes created during the specified period, uncertified, certified and revoked in the carbon registry at present';
|
24302
24302
|
}
|
24303
24303
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES) {
|
24304
24304
|
text =
|
24305
|
-
'Graphical representation of the number of
|
24305
|
+
'Graphical representation of the number of programmes created during the specified period in each programme state in the carbon registry at present';
|
24306
24306
|
}
|
24307
24307
|
else if (cardType === exports.StatsCardsTypes.TOTAL_PROGRAMMES_SECTOR) {
|
24308
24308
|
text =
|
24309
|
-
'Graphical representation of the number of
|
24309
|
+
'Graphical representation of the number of programmes in each programme sector created during the specified time in the carbon registry';
|
24310
24310
|
}
|
24311
24311
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS) {
|
24312
24312
|
text =
|
24313
|
-
'Graphical representation of the number of credits of
|
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';
|
24314
24314
|
}
|
24315
24315
|
else if (cardType === exports.StatsCardsTypes.TOTAL_CREDITS_CERTIFIED) {
|
24316
24316
|
text =
|
24317
|
-
'Graphical representation of the number of credits of
|
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';
|
24318
24318
|
}
|
24319
24319
|
else if (cardType === exports.StatsCardsTypes.PROGRAMME_LOCATIONS) {
|
24320
24320
|
text =
|
24321
|
-
'Locations of the
|
24321
|
+
'Locations of the programmes created during the specified period and their programme states in the carbon registry at present';
|
24322
24322
|
}
|
24323
24323
|
else if (cardType === exports.StatsCardsTypes.TRANSFER_LOCATIONS_INTERNATIONAL) {
|
24324
24324
|
text =
|
@@ -24349,7 +24349,7 @@ var StasticCard = function (props) {
|
|
24349
24349
|
};
|
24350
24350
|
|
24351
24351
|
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
|
24352
|
+
var totalPrgrammes = props.totalPrgrammes, pending = props.pending, rejected = props.rejected, authorized = props.authorized, updatedDate = props.updatedDate, loading = props.loading, toolTipText = props.toolTipText;
|
24353
24353
|
React.useEffect(function () {
|
24354
24354
|
console.log({ pending: pending, totalPrgrammes: totalPrgrammes });
|
24355
24355
|
});
|
@@ -24357,7 +24357,7 @@ var ProgrammeRejectAndTransferComponent = function (props) {
|
|
24357
24357
|
React.createElement(antd.Skeleton, { active: true }),
|
24358
24358
|
React.createElement(antd.Skeleton, { active: true }))) : (React.createElement(React.Fragment, null,
|
24359
24359
|
React.createElement("div", { className: "title-section" },
|
24360
|
-
React.createElement("div", { className: "title" },
|
24360
|
+
React.createElement("div", { className: "title" }, "Programmes"),
|
24361
24361
|
React.createElement("div", { className: "info-container" },
|
24362
24362
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "bottomRight", trigger: "hover", title: toolTipText },
|
24363
24363
|
React.createElement(Icon.InfoCircle, { color: "#000000", size: 17 })))),
|
@@ -25391,7 +25391,8 @@ var RegistryDashboardComponent = function (props) {
|
|
25391
25391
|
if ((programmeByStatusAggregationResponse_1 === null || programmeByStatusAggregationResponse_1 === void 0 ? void 0 : programmeByStatusAggregationResponse_1.length) > 0) {
|
25392
25392
|
programmeByStatusAggregationResponse_1 === null || programmeByStatusAggregationResponse_1 === void 0 ? void 0 : programmeByStatusAggregationResponse_1.map(function (responseItem, index) {
|
25393
25393
|
console.log("mine --> check -- > ", programmeByStatusAggregationResponse_1);
|
25394
|
-
if (
|
25394
|
+
if (exports.ProgrammeStageR.AwaitingAuthorization ===
|
25395
|
+
getStageEnumVal(responseItem === null || responseItem === void 0 ? void 0 : responseItem.currentStage)) {
|
25395
25396
|
totalProgrammes_1 = totalProgrammes_1 + parseInt(responseItem === null || responseItem === void 0 ? void 0 : responseItem.count);
|
25396
25397
|
pendingProgrammesC_1 = parseInt(responseItem === null || responseItem === void 0 ? void 0 : responseItem.count);
|
25397
25398
|
}
|
@@ -26028,7 +26029,7 @@ var RegistryDashboardComponent = function (props) {
|
|
26028
26029
|
? "tTProgrammesProgrammeDev"
|
26029
26030
|
: categoryType === "mine"
|
26030
26031
|
? "tTProgrammesCertifierMine"
|
26031
|
-
: "tTProgrammesCertifierOverall")
|
26032
|
+
: "tTProgrammesCertifierOverall") })),
|
26032
26033
|
React.createElement(antd.Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col pie" },
|
26033
26034
|
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
|
26034
26035
|
? "tTCreditsGovernment"
|