@undp/carbon-library 1.0.274-CARBON-363.50 → 1.0.274-CARBON-347.1
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 +1597 -1131
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/AntComponents/antTableComponents.d.ts +6 -9
- package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +0 -1
- package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +0 -1
- package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +0 -1
- package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +0 -2
- package/dist/cjs/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +0 -2
- package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +8 -0
- package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +10 -0
- package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +6 -0
- package/dist/cjs/types/Context/index.d.ts +3 -0
- package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +3 -0
- package/dist/cjs/types/Definitions/Enums/investment.enum.d.ts +4 -0
- package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +12 -0
- package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +12 -0
- package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +2 -0
- package/dist/cjs/types/Storybook/InvestmentCreationComponent.stories.d.ts +12 -0
- package/dist/cjs/types/Storybook/MRVDashboard.stories.d.ts +12 -0
- package/dist/cjs/types/Storybook/ProgrammeCreationComponent.stories.d.ts +12 -0
- package/dist/cjs/types/Storybook/RegistryDashboard.stories.d.ts +12 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +1591 -1133
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/AntComponents/antTableComponents.d.ts +6 -9
- package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +0 -1
- package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +0 -1
- package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +0 -1
- package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +0 -2
- package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +0 -2
- package/dist/esm/types/Context/ConnectionContext/connectionContext.d.ts +8 -0
- package/dist/esm/types/Context/SettingsContext/settingsContext.d.ts +10 -0
- package/dist/esm/types/Context/UserInformationContext/userInformationContext.d.ts +6 -0
- package/dist/esm/types/Context/index.d.ts +3 -0
- package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +3 -0
- package/dist/esm/types/Definitions/Enums/investment.enum.d.ts +4 -0
- package/dist/esm/types/Storybook/AddNewCompanyComponent.stories.d.ts +12 -0
- package/dist/esm/types/Storybook/AddNewUserComponent.stories.d.ts +12 -0
- package/dist/esm/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +2 -0
- package/dist/esm/types/Storybook/InvestmentCreationComponent.stories.d.ts +12 -0
- package/dist/esm/types/Storybook/MRVDashboard.stories.d.ts +12 -0
- package/dist/esm/types/Storybook/ProgrammeCreationComponent.stories.d.ts +12 -0
- package/dist/esm/types/Storybook/RegistryDashboard.stories.d.ts +12 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +27 -8
- package/dist/locales/i18n/ndc/en.json +3 -28
- package/dist/locales/i18n/programme/en.json +3 -1
- package/package.json +29 -2
- package/dist/cjs/types/Definitions/Definitions/ndcDetails.definitions.d.ts +0 -42
- package/dist/esm/types/Definitions/Definitions/ndcDetails.definitions.d.ts +0 -42
@@ -9,16 +9,13 @@ interface EditableRowProps {
|
|
9
9
|
index: number;
|
10
10
|
}
|
11
11
|
export declare const EditableRow: React.FC<EditableRowProps>;
|
12
|
-
interface EditableCellProps
|
13
|
-
|
14
|
-
|
15
|
-
title: any;
|
16
|
-
inputType: "number" | "text";
|
17
|
-
record: Item;
|
18
|
-
index: number;
|
12
|
+
interface EditableCellProps {
|
13
|
+
title: React.ReactNode;
|
14
|
+
editable: boolean;
|
19
15
|
children: React.ReactNode;
|
20
|
-
|
21
|
-
|
16
|
+
dataIndex: keyof Item;
|
17
|
+
record: Item;
|
18
|
+
handleSave: (record: Item) => void;
|
22
19
|
}
|
23
20
|
export declare const EditableCell: React.FC<EditableCellProps>;
|
24
21
|
export {};
|
@@ -12,7 +12,6 @@ export interface ProgrammeTransferFormProps {
|
|
12
12
|
userCompanyId: number | undefined;
|
13
13
|
companyRole: string;
|
14
14
|
translator: any;
|
15
|
-
useConnection: any;
|
16
15
|
ministryLevelPermission?: boolean;
|
17
16
|
}
|
18
17
|
export declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React, { FC } from 'react';
|
2
|
+
import { ConnectionContextProviderProps, ConnectionProps } from '../../Definitions';
|
3
|
+
declare const ConnectionContext: React.Context<{
|
4
|
+
connection?: ConnectionProps | undefined;
|
5
|
+
}>;
|
6
|
+
export declare const ConnectionContextProvider: FC<ConnectionContextProviderProps>;
|
7
|
+
export default ConnectionContext;
|
8
|
+
export declare const useConnection: () => ConnectionProps;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare const SettingsContext: React.Context<{
|
3
|
+
isTransferFrozen: boolean;
|
4
|
+
setTransferFrozen: (value: boolean) => void;
|
5
|
+
}>;
|
6
|
+
export declare const SettingsContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
|
7
|
+
export declare const useSettingsContext: () => {
|
8
|
+
isTransferFrozen: boolean;
|
9
|
+
setTransferFrozen: (value: boolean) => void;
|
10
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { UserContextProps } from '../../Definitions';
|
3
|
+
export declare const UserContext: React.Context<UserContextProps>;
|
4
|
+
export declare const UserInformationContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
|
5
|
+
export default UserContext;
|
6
|
+
export declare const useUserContext: () => UserContextProps;
|
@@ -3,6 +3,8 @@ import { ReactNode } from 'react';
|
|
3
3
|
export type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
|
4
4
|
export type ConnectionContextProviderProps = {
|
5
5
|
serverURL: string;
|
6
|
+
statServerUrl?: string;
|
7
|
+
t: any;
|
6
8
|
children: ReactNode;
|
7
9
|
};
|
8
10
|
export interface Response<T> {
|
@@ -23,4 +25,5 @@ export type ConnectionProps = {
|
|
23
25
|
updateToken: (token?: string) => void;
|
24
26
|
token?: string;
|
25
27
|
removeToken: (tkn?: string) => void;
|
28
|
+
statServerUrl?: string;
|
26
29
|
};
|
@@ -18,6 +18,10 @@ export declare enum InvestmentCreationType {
|
|
18
18
|
EXISTING = "Existing",
|
19
19
|
NEW = "New"
|
20
20
|
}
|
21
|
+
export declare enum InvestmentOwnershipType {
|
22
|
+
PROJECT = "Project",
|
23
|
+
NATIONAL = "National"
|
24
|
+
}
|
21
25
|
export declare enum InvestmentStream {
|
22
26
|
CLIMATE_FINANCE = "ClimateFinance",
|
23
27
|
CARBON_MARKET = "CarbonMarket"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
3
|
+
import "antd/dist/antd.css";
|
4
|
+
import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
|
5
|
+
declare const meta: {
|
6
|
+
title: string;
|
7
|
+
component: (props: any) => import("react").JSX.Element;
|
8
|
+
decorators: (typeof ConnectionContextDecorator)[];
|
9
|
+
};
|
10
|
+
export default meta;
|
11
|
+
type Story = StoryObj<typeof meta>;
|
12
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
3
|
+
import "antd/dist/antd.css";
|
4
|
+
import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
|
5
|
+
declare const meta: {
|
6
|
+
title: string;
|
7
|
+
component: (props: any) => import("react").JSX.Element;
|
8
|
+
decorators: (typeof ConnectionContextDecorator)[];
|
9
|
+
};
|
10
|
+
export default meta;
|
11
|
+
type Story = StoryObj<typeof meta>;
|
12
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
3
|
+
import "antd/dist/antd.css";
|
4
|
+
import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
|
5
|
+
declare const meta: {
|
6
|
+
title: string;
|
7
|
+
component: (props: any) => import("react").JSX.Element;
|
8
|
+
decorators: (typeof ConnectionContextDecorator)[];
|
9
|
+
};
|
10
|
+
export default meta;
|
11
|
+
type Story = StoryObj<typeof meta>;
|
12
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
3
|
+
import "antd/dist/antd.css";
|
4
|
+
import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
|
5
|
+
declare const meta: {
|
6
|
+
title: string;
|
7
|
+
component: (props: any) => import("react").JSX.Element;
|
8
|
+
decorators: (typeof ConnectionContextDecorator)[];
|
9
|
+
};
|
10
|
+
export default meta;
|
11
|
+
type Story = StoryObj<typeof meta>;
|
12
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
3
|
+
import "antd/dist/antd.css";
|
4
|
+
import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
|
5
|
+
declare const meta: {
|
6
|
+
title: string;
|
7
|
+
component: (props: any) => import("react").JSX.Element;
|
8
|
+
decorators: (typeof ConnectionContextDecorator)[];
|
9
|
+
};
|
10
|
+
export default meta;
|
11
|
+
type Story = StoryObj<typeof meta>;
|
12
|
+
export declare const Primary: Story;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
3
|
+
import "antd/dist/antd.css";
|
4
|
+
import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
|
5
|
+
declare const meta: {
|
6
|
+
title: string;
|
7
|
+
component: (props: any) => import("react").JSX.Element;
|
8
|
+
decorators: (typeof ConnectionContextDecorator)[];
|
9
|
+
};
|
10
|
+
export default meta;
|
11
|
+
type Story = StoryObj<typeof meta>;
|
12
|
+
export declare const Primary: Story;
|
package/dist/index.d.ts
CHANGED
@@ -129,7 +129,6 @@ interface CoBenefitProps {
|
|
129
129
|
loading?: any;
|
130
130
|
sdgGoalImages?: any;
|
131
131
|
translator?: any;
|
132
|
-
useConnection?: any;
|
133
132
|
}
|
134
133
|
declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
|
135
134
|
|
@@ -360,7 +359,6 @@ interface ProgrammeRetireFormProps {
|
|
360
359
|
hideType: boolean;
|
361
360
|
myCompanyId?: number;
|
362
361
|
translator: any;
|
363
|
-
useConnection: any;
|
364
362
|
}
|
365
363
|
declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
|
366
364
|
|
@@ -387,7 +385,6 @@ interface ProgrammeTransferFormProps {
|
|
387
385
|
userCompanyId: number | undefined;
|
388
386
|
companyRole: string;
|
389
387
|
translator: any;
|
390
|
-
useConnection: any;
|
391
388
|
ministryLevelPermission?: boolean;
|
392
389
|
}
|
393
390
|
declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
|
@@ -459,6 +456,10 @@ declare enum InvestmentCreationType {
|
|
459
456
|
EXISTING = "Existing",
|
460
457
|
NEW = "New"
|
461
458
|
}
|
459
|
+
declare enum InvestmentOwnershipType {
|
460
|
+
PROJECT = "Project",
|
461
|
+
NATIONAL = "National"
|
462
|
+
}
|
462
463
|
declare enum InvestmentStream {
|
463
464
|
CLIMATE_FINANCE = "ClimateFinance",
|
464
465
|
CARBON_MARKET = "CarbonMarket"
|
@@ -988,6 +989,8 @@ interface CountrySelect {
|
|
988
989
|
type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
|
989
990
|
type ConnectionContextProviderProps = {
|
990
991
|
serverURL: string;
|
992
|
+
statServerUrl?: string;
|
993
|
+
t: any;
|
991
994
|
children: ReactNode;
|
992
995
|
};
|
993
996
|
interface Response<T> {
|
@@ -1008,6 +1011,7 @@ type ConnectionProps = {
|
|
1008
1011
|
updateToken: (token?: string) => void;
|
1009
1012
|
token?: string;
|
1010
1013
|
removeToken: (tkn?: string) => void;
|
1014
|
+
statServerUrl?: string;
|
1011
1015
|
};
|
1012
1016
|
|
1013
1017
|
type HeaderProps = {
|
@@ -1152,9 +1156,7 @@ interface NdcActionBodyProps {
|
|
1152
1156
|
programmeOwnerId?: any;
|
1153
1157
|
getProgrammeDocs?: any;
|
1154
1158
|
ministryLevelPermission?: boolean;
|
1155
|
-
useConnection: any;
|
1156
1159
|
translator: any;
|
1157
|
-
useUserContext: any;
|
1158
1160
|
onFinish?: any;
|
1159
1161
|
programme?: any;
|
1160
1162
|
}
|
@@ -1175,8 +1177,6 @@ interface ProgrammeDocumentsProps {
|
|
1175
1177
|
getDocumentDetails: any;
|
1176
1178
|
getProgrammeById: any;
|
1177
1179
|
ministryLevelPermission?: boolean;
|
1178
|
-
useConnection: any;
|
1179
|
-
useUserContext: any;
|
1180
1180
|
translator: any;
|
1181
1181
|
methodologyDocumentUpdated: any;
|
1182
1182
|
programmeStatus?: any;
|
@@ -1217,4 +1217,23 @@ declare const TooltipColor = "#6ACDFF";
|
|
1217
1217
|
declare const InvestmentBGColor = "rgba(151, 110, 215, 0.3)";
|
1218
1218
|
declare const InvestmentColor = "#9155FD";
|
1219
1219
|
|
1220
|
-
|
1220
|
+
declare const ConnectionContextProvider: FC<ConnectionContextProviderProps>;
|
1221
|
+
|
1222
|
+
declare const useConnection: () => ConnectionProps;
|
1223
|
+
|
1224
|
+
declare const UserContext: React.Context<UserContextProps>;
|
1225
|
+
declare const UserInformationContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
|
1226
|
+
|
1227
|
+
declare const useUserContext: () => UserContextProps;
|
1228
|
+
|
1229
|
+
declare const SettingsContext: React.Context<{
|
1230
|
+
isTransferFrozen: boolean;
|
1231
|
+
setTransferFrozen: (value: boolean) => void;
|
1232
|
+
}>;
|
1233
|
+
declare const SettingsContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
|
1234
|
+
declare const useSettingsContext: () => {
|
1235
|
+
isTransferFrozen: boolean;
|
1236
|
+
setTransferFrozen: (value: boolean) => void;
|
1237
|
+
};
|
1238
|
+
|
1239
|
+
export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, AgricultureProperties, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProvider, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditCalculationProperties, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnablementProperties, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentOwnershipType, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcAction, NdcActionBody, NdcActionBodyProps, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, NdcFinancing, OrganisationStatus, OrganisationStatusProps, ProfileIcon, ProfileIconProps, Programme, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDeveloperCreation, ProgrammeDocuments, ProgrammeDocumentsProps, ProgrammeEntity, ProgrammeIssueForm, ProgrammeIssueFormProps, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesR, ProgrammePropertiesT, ProgrammePropertiesU, ProgrammeR, ProgrammeRetireForm, ProgrammeRetireFormProps, ProgrammeRevokeForm, ProgrammeRevokeFormProps, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeT, ProgrammeTransfer, ProgrammeTransferForm, ProgrammeTransferFormProps, ProgrammeU, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, RootBGColor, RootColor, SdgGoals, Sector, SectoralScope, SettingsContext, SettingsContextProvider, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, TimelineBodyProps, Titles, TooltipColor, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContext, UserContextProps, UserCreationProps, UserInformationContextProvider, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, useConnection, useSettingsContext, useUserContext, userForgotPasswordProps };
|
@@ -5,33 +5,8 @@
|
|
5
5
|
"ndcColumnsEndDate": "End Date",
|
6
6
|
"ndcColumnsNationalPlanObj": "Programmes",
|
7
7
|
"ndcColumnsKpi": "KPI",
|
8
|
-
"rangeAlreadyExists": "
|
8
|
+
"rangeAlreadyExists": "Selected Range Already exists",
|
9
9
|
"addNdcAction": "+ Add NDC Action",
|
10
|
-
"enterNewPlanTxt": "Please add the
|
11
|
-
"addSubNdcAction": "+ Add Sub NDC Action"
|
12
|
-
"delete": "DELETE",
|
13
|
-
"finalize": "FINALIZE",
|
14
|
-
"ndcColumnsMinistry": "Government Department",
|
15
|
-
"ndcColumnsStatus": "Status",
|
16
|
-
"approve": "Approve",
|
17
|
-
"reject": "Reject",
|
18
|
-
"actionApproveTitle": "Are you sure you want to approve this NDC Action?",
|
19
|
-
"rejectApproveTitle": "Are you sure you want to reject this NDC Action?",
|
20
|
-
"finalizeApproveTitle": "Are you sure you want to finalize the NDC Actions for this period?",
|
21
|
-
"finalizeApproveSubTitle": "You can’t undo this action",
|
22
|
-
"periodDeleteConfirmTitle" : "Are you sure you want to delete the NDC Actions for this period?",
|
23
|
-
"finalizeErrorText": "Cannot Finalise Period due to pending Sub NDC Actions",
|
24
|
-
"nationalPlanObjectivePlaceHolder": "Enter Programmes",
|
25
|
-
"kpiPlaceHolder": "Enter Kpi",
|
26
|
-
"isRequired": "is required!",
|
27
|
-
"finalizeNdcEmptyErrorText":"Cannot finalise an empty period",
|
28
|
-
"approveSuccessMsg": "Sub NDC Action has been approved successfully",
|
29
|
-
"rejectSuccessMsg": "Sub NDC Action has been rejected successfully",
|
30
|
-
"finalizeSuccessMsg": "NDC Actions for the period has been finalised successfully",
|
31
|
-
"deletePeriodSuccessMsg": "The period has been deleted successfully ",
|
32
|
-
"kpiInvalidFormat": "Allow only numeric value",
|
33
|
-
"kpiGreaterThanZero": "KPI value must be greater than 0",
|
34
|
-
"kpiMaxLength": "KPI cannot exceed 10000000",
|
35
|
-
"sameStartEndDates": "Start year must be earlier than the end year",
|
36
|
-
"ndcUnauthorisedMsg": "This action is unauthorised"
|
10
|
+
"enterNewPlanTxt": "Please add the National Plan Objective",
|
11
|
+
"addSubNdcAction": "+ Add Sub NDC Action"
|
37
12
|
}
|
@@ -83,5 +83,7 @@
|
|
83
83
|
"addSupport": "Add Support",
|
84
84
|
"addSupportBtnText": "ADD SUPPORT",
|
85
85
|
"addSupportSub": "Add Support to a project in the Transparency System",
|
86
|
-
"programmeExistsWithAssessmentRegId": "Project already exist with the given environmental assessment registration number"
|
86
|
+
"programmeExistsWithAssessmentRegId": "Project already exist with the given environmental assessment registration number",
|
87
|
+
"existingInvestmentSource":"Source",
|
88
|
+
"noInvestmentData":"No financing information available"
|
87
89
|
}
|
package/package.json
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "@undp/carbon-library",
|
3
|
-
"version": "1.0.274-CARBON-
|
3
|
+
"version": "1.0.274-CARBON-347.1",
|
4
4
|
"description": "Shared Library of tools for Carbon Credits applications ecosystem for ExO and and HQ/GEF",
|
5
5
|
"type": "module",
|
6
6
|
"scripts": {
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
8
8
|
"build": "rollup -c --bundleConfigAsCjs",
|
9
|
-
"prepare": "npm run build"
|
9
|
+
"prepare": "npm run build",
|
10
|
+
"storybook": "storybook dev -p 6006",
|
11
|
+
"build-storybook": "storybook build"
|
10
12
|
},
|
11
13
|
"keywords": [],
|
12
14
|
"author": "",
|
@@ -16,10 +18,14 @@
|
|
16
18
|
"@rollup/plugin-json": "^6.0.1",
|
17
19
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
18
20
|
"@rollup/plugin-typescript": "^11.1.1",
|
21
|
+
"@storybook/addon-styling-webpack": "^0.0.5",
|
19
22
|
"@undp/carbon-credit-calculator": "^1.1.1",
|
23
|
+
"jwt-decode": "^3.1.2",
|
20
24
|
"node-sass": "^7.0.3",
|
21
25
|
"postcss": "^8.4.23",
|
22
26
|
"react-circle-flags": "^0.0.19",
|
27
|
+
"react-i18next": "^12.0.0",
|
28
|
+
"react-router-dom": "^6.4.3",
|
23
29
|
"rollup": "^3.22.0",
|
24
30
|
"rollup-plugin-copy": "^3.5.0",
|
25
31
|
"rollup-plugin-dts": "^5.3.0",
|
@@ -30,6 +36,19 @@
|
|
30
36
|
},
|
31
37
|
"devDependencies": {
|
32
38
|
"@ant-design/icons": "^5.2.5",
|
39
|
+
"@babel/preset-env": "^7.23.3",
|
40
|
+
"@babel/preset-react": "^7.23.3",
|
41
|
+
"@babel/preset-typescript": "^7.23.3",
|
42
|
+
"@storybook/addon-essentials": "7.5.3",
|
43
|
+
"@storybook/addon-interactions": "7.5.3",
|
44
|
+
"@storybook/addon-links": "7.5.3",
|
45
|
+
"@storybook/addon-onboarding": "1.0.8",
|
46
|
+
"@storybook/blocks": "7.5.3",
|
47
|
+
"@storybook/preset-ant-design": "^0.0.2",
|
48
|
+
"@storybook/preset-create-react-app": "^7.5.3",
|
49
|
+
"@storybook/react": "7.5.3",
|
50
|
+
"@storybook/react-webpack5": "7.5.3",
|
51
|
+
"@storybook/testing-library": "0.2.2",
|
33
52
|
"@types/luxon": "^3.1.0",
|
34
53
|
"@types/mapbox-gl": "^2.7.10",
|
35
54
|
"@types/react": "^18.0.25",
|
@@ -39,13 +58,21 @@
|
|
39
58
|
"axios": "^1.1.3",
|
40
59
|
"buffer": "^6.0.3",
|
41
60
|
"class-transformer": "^0.5.1",
|
61
|
+
"css-loader": "^6.8.1",
|
62
|
+
"i18next": "^22.0.6",
|
63
|
+
"i18next-browser-languagedetector": "^7.0.1",
|
64
|
+
"i18next-http-backend": "^2.0.1",
|
42
65
|
"luxon": "^3.2.1",
|
43
66
|
"mapbox-gl": "^2.11.1",
|
44
67
|
"react": "^18.2.0",
|
45
68
|
"react-apexcharts": "^1.4.0",
|
46
69
|
"react-bootstrap-icons": "^1.10.2",
|
70
|
+
"react-dom": "18.2.0",
|
47
71
|
"react-mapbox-gl": "^5.1.1",
|
48
72
|
"react-phone-number-input": "^3.2.12",
|
73
|
+
"sass-loader": "^13.3.2",
|
74
|
+
"storybook": "7.5.3",
|
75
|
+
"style-loader": "^3.3.3",
|
49
76
|
"validator": "^13.9.0"
|
50
77
|
},
|
51
78
|
"peerDependencies": {
|
@@ -1,42 +0,0 @@
|
|
1
|
-
export type Period = {
|
2
|
-
key: string;
|
3
|
-
label: string;
|
4
|
-
startYear: number;
|
5
|
-
endYear: number;
|
6
|
-
finalized: boolean;
|
7
|
-
deleted: boolean;
|
8
|
-
};
|
9
|
-
export type NdcDetail = {
|
10
|
-
id: number;
|
11
|
-
actionType: NdcDetailsActionType;
|
12
|
-
nationalPlanObjective: string;
|
13
|
-
kpi: number | string;
|
14
|
-
ministryName: string;
|
15
|
-
periodId?: number;
|
16
|
-
status: NdcDetailsActionStatus;
|
17
|
-
parentActionId?: number;
|
18
|
-
};
|
19
|
-
export type DateRange = {
|
20
|
-
startYear: number;
|
21
|
-
endYear: number;
|
22
|
-
};
|
23
|
-
export declare enum NdcDetailsActionType {
|
24
|
-
MainAction = "MainAction",
|
25
|
-
SubAction = "SubAction"
|
26
|
-
}
|
27
|
-
export declare enum NdcDetailsActionStatus {
|
28
|
-
New = "New",
|
29
|
-
Pending = "Pending",
|
30
|
-
Approved = "Approved",
|
31
|
-
Rejected = "Rejected"
|
32
|
-
}
|
33
|
-
export declare const getNdcActionStatusEnumVal: (value: string) => string;
|
34
|
-
export declare const getNdcActionStatusTagType: (status: NdcDetailsActionStatus) => "error" | "processing" | "default" | "success";
|
35
|
-
export type PopupInfo = {
|
36
|
-
title: string;
|
37
|
-
icon: any;
|
38
|
-
actionBtnText: string;
|
39
|
-
okAction: any;
|
40
|
-
type: "primary" | "danger";
|
41
|
-
remarkRequired: boolean;
|
42
|
-
};
|
@@ -1,42 +0,0 @@
|
|
1
|
-
export type Period = {
|
2
|
-
key: string;
|
3
|
-
label: string;
|
4
|
-
startYear: number;
|
5
|
-
endYear: number;
|
6
|
-
finalized: boolean;
|
7
|
-
deleted: boolean;
|
8
|
-
};
|
9
|
-
export type NdcDetail = {
|
10
|
-
id: number;
|
11
|
-
actionType: NdcDetailsActionType;
|
12
|
-
nationalPlanObjective: string;
|
13
|
-
kpi: number | string;
|
14
|
-
ministryName: string;
|
15
|
-
periodId?: number;
|
16
|
-
status: NdcDetailsActionStatus;
|
17
|
-
parentActionId?: number;
|
18
|
-
};
|
19
|
-
export type DateRange = {
|
20
|
-
startYear: number;
|
21
|
-
endYear: number;
|
22
|
-
};
|
23
|
-
export declare enum NdcDetailsActionType {
|
24
|
-
MainAction = "MainAction",
|
25
|
-
SubAction = "SubAction"
|
26
|
-
}
|
27
|
-
export declare enum NdcDetailsActionStatus {
|
28
|
-
New = "New",
|
29
|
-
Pending = "Pending",
|
30
|
-
Approved = "Approved",
|
31
|
-
Rejected = "Rejected"
|
32
|
-
}
|
33
|
-
export declare const getNdcActionStatusEnumVal: (value: string) => string;
|
34
|
-
export declare const getNdcActionStatusTagType: (status: NdcDetailsActionStatus) => "error" | "processing" | "default" | "success";
|
35
|
-
export type PopupInfo = {
|
36
|
-
title: string;
|
37
|
-
icon: any;
|
38
|
-
actionBtnText: string;
|
39
|
-
okAction: any;
|
40
|
-
type: "primary" | "danger";
|
41
|
-
remarkRequired: boolean;
|
42
|
-
};
|