@undp/carbon-library 1.0.169-CARBON-329.0 → 1.0.169-investment-fixes.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +64 -228
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/Models/programmeIssueForm.d.ts +0 -2
- package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +0 -2
- package/dist/cjs/types/Components/Common/TimelineBody/timelineBody.d.ts +2 -3
- package/dist/esm/index.js +65 -227
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/Models/programmeIssueForm.d.ts +0 -2
- package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +0 -2
- package/dist/esm/types/Components/Common/TimelineBody/timelineBody.d.ts +2 -3
- package/dist/index.d.ts +1 -6
- package/package.json +1 -1
@@ -8,7 +8,5 @@ export interface ProgrammeIssueFormProps {
|
|
8
8
|
subText: string;
|
9
9
|
enableIssue: boolean;
|
10
10
|
translator: any;
|
11
|
-
ndcActions?: any[];
|
12
11
|
}
|
13
|
-
export declare const getValidNdcActions: (programme: any) => any[];
|
14
12
|
export declare const ProgrammeIssueForm: FC<ProgrammeIssueFormProps>;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { FC } from
|
2
|
-
import
|
1
|
+
import { FC } from 'react';
|
2
|
+
import './timelineBody.scss';
|
3
3
|
export interface TimelineBodyProps {
|
4
4
|
text: string;
|
5
5
|
remark?: string | null;
|
6
6
|
via?: string | null;
|
7
7
|
t: any;
|
8
8
|
}
|
9
|
-
export declare const addNdcDesc: (props: any) => string;
|
10
9
|
export declare const TimelineBody: FC<TimelineBodyProps>;
|
package/dist/esm/index.js
CHANGED
@@ -837,7 +837,7 @@ var CompanyManagementComponent = function (props) {
|
|
837
837
|
var css_248z$s = ".company-details-form-container {\n width: 100%; }\n .company-details-form-container .company-details-form .steps-actions {\n display: flex;\n flex-direction: row-reverse; }\n .company-details-form-container .company-details-form .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n .company-details-form-container .company-details-form .row .website .ant-input {\n margin-left: 0.3rem; }\n .company-details-form-container .company-details-form .row .website .ant-input-group-addon {\n border: 1px solid #d9d9d9; }\n .company-details-form-container .company-details-form .row .logo-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: start;\n width: 100%; }\n .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload {\n width: 20%; }\n .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n width: 75%; }\n .company-details-form-container .company-details-form .row .logo-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n .company-details-form-container .company-details-form .row .details-part-one .space-container {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-one .space-container .ant-space-item {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container {\n width: 30%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #519e4f !important;\n border-color: #519e4f !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #519e4f; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container {\n width: 30%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #ffa070 !important;\n border-color: #ffa070 !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #ffa070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container {\n width: 30%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #9155fd !important;\n border-color: #9155fd !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #9155fd; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container {\n width: 45%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #16b1ff !important;\n border-color: #16b1ff !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #16b1ff; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container {\n width: 25%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container .ant-radio-button-wrapper-checked:not(\n .ant-radio-button-wrapper-disabled\n) {\n color: #707070 !important;\n border-color: #707070 !important;\n box-shadow: none; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer-radio-container .anticon {\n background: #eeeeee;\n border-radius: 50px;\n padding: 0.2rem;\n color: #707070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .ant-radio-button-wrapper::before {\n background-color: transparent; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .anticon {\n margin-right: 0.5rem; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .certifier .ant-radio-button-checked {\n background: rgba(128, 255, 0, 0.12);\n color: #519e4f; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .dev .ant-radio-button-checked {\n background: rgba(254, 241, 173, 0.5);\n color: #ffa070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .gov .ant-radio-button-checked {\n background: rgba(185, 226, 244, 0.56);\n color: #16b1ff; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .minister .ant-radio-button-checked {\n background: rgba(198, 144, 251, 0.12);\n color: #9155fd; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer {\n width: 100%; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .observer .ant-radio-button-checked {\n background: rgba(176, 190, 197, 0.23);\n color: #707070; }\n .company-details-form-container .company-details-form .row .details-part-two .role-group .role-icons {\n margin-right: 5px; }\n\n.step-title-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 1rem; }\n .step-title-container .step-count {\n font-size: 2.2rem;\n font-weight: 800;\n margin-right: 0.4rem;\n color: rgba(58, 53, 65, 0.8); }\n .step-title-container .title {\n font-size: 1rem;\n font-weight: 600;\n color: #3a3541; }\n\n.add-company-main-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n padding: 0 50px; }\n .add-company-main-container .title-container {\n display: flex;\n flex-direction: column;\n border-radius: 5px; }\n .add-company-main-container .title-container .main {\n font-size: 1.25rem;\n font-weight: 500;\n color: #16b1ff; }\n .add-company-main-container .title-container .sub {\n font-size: 0.8rem;\n color: #555657; }\n .add-company-main-container .adding-section {\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n margin: 1rem 0 1rem 0;\n border-radius: 10px;\n padding: 2.5rem 1.5rem 2.5rem 1.5rem; }\n .add-company-main-container .adding-section .form-section {\n display: flex;\n margin-bottom: 2rem; }\n .add-company-main-container .adding-section .form-section .form-one {\n width: 100%; }\n .add-company-main-container .adding-section .form-section .steps {\n width: 15%; }\n .add-company-main-container .adding-section .form-section .steps-content {\n width: 85%; }\n .add-company-main-container .adding-section .steps-action {\n display: flex;\n flex-direction: row-reverse; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n height: auto;\n max-height: 200px; }\n\n.hide {\n display: none !important; }\n";
|
838
838
|
styleInject(css_248z$s);
|
839
839
|
|
840
|
-
var css_248z$r = "body {\n background-color: #f4f5fa;\n font-family: \"Inter\";\n font-weight: 400; }\n\n.ant-menu {\n background-color: #f4f5fa; }\n\n.ant-layout-header {\n background-color: #f4f5fa; }\n\n.ant-layout {\n background-color: #f4f5fa; }\n\n.ant-menu-submenu .ant-menu {\n background-color: #f4f5fa; }\n\n.ant-menu-item {\n background-color: #f4f5fa; }\n\n.ant-menu-sub {\n background-color: #f4f5fa; }\n\n.ant-table-content {\n font-family: \"Inter\"; }\n\n.ant-input {\n border-radius: 5px !important; }\n\n.ant-btn {\n border-radius: 5px !important; }\n\n.ant-input-group-addon:first-child {\n border-radius: 5px !important; }\n\n.ant-input-group .ant-input {\n width: 99% !important; }\n\n.ant-tooltip-inner {\n border-radius: 5px !important;\n background-color: #16b1ff !important; }\n\n.ant-tooltip-arrow-content {\n --antd-arrow-background-color: linear-gradient(to right bottom, #16b1ff, #16b1ff) !important; }\n\n.ant-radio-group {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between; }\n\n.ant-radio-group-large .ant-radio-button-wrapper {\n font-size: 0.8rem;\n width: 25%;\n border-radius: 5px !important; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n border-color: #40a9ff;\n border-radius: 5px;\n height: 40px; }\n .ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-name,\n .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-name {\n color: #40a9ff !important; }\n\n.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n color: #40a9ff; }\n\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {\n border-color: #d9d9d9 !important; }\n\n.ant-input-group-wrapper-status-error .ant-input-group-addon {\n border-color: #d9d9d9 !important; }\n\n.ant-form-item-explain-error {\n font-size: 13px;\n color: rgba(255, 77, 79, 0.8); }\n\n.ant-table-thead\n> tr\n> th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {\n background-color: transparent !important; }\n\n.ant-form-item-label > label {\n flex-direction: row-reverse !important;\n color: rgba(58, 53, 65, 0.5); }\n\n.ant-form-item-label\n> label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {\n margin-left: 0.2rem !important;\n color: rgba(255, 77, 79, 0.8) !important; }\n\n.ant-picker {\n border-radius: 5px !important;\n height: 35px !important; }\n\n.space-container {\n width: 100%; }\n .space-container .ant-space-item {\n width: 100%; }\n\n.PhoneInput .PhoneInputCountry {\n border: 1px solid #d9d9d9 !important;\n border-radius: 5px !important;\n padding: 0 1rem 0 1rem; }\n\n.PhoneInput .PhoneInputInput {\n flex: 1 1;\n min-width: 0;\n border-radius: 5px !important;\n height: 40px;\n border: 1px solid #d9d9d9 !important;\n outline: none; }\n\n.filter-title {\n color: rgba(58, 53, 65, 0.8);\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-size: 0.875rem; }\n\n.ant-radio-wrapper {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 400;\n font-size: 0.875rem;\n line-height: 22px;\n color: rgba(58, 53, 65, 0.8); }\n\n.ant-list-item {\n color: rgba(58, 53, 65, 0.8); }\n\n.PhoneInput .PhoneInputInput:focus-visible,\n.PhoneInput .PhoneInputInput:hover {\n flex: 1 1;\n min-width: 0;\n border-radius: 5px !important;\n height: 40px;\n border-right: 1px solid #40a9ff !important;\n outline: 1px solid #40a9ff; }\n\n.layout-content-container {\n padding-bottom: 100px; }\n .layout-content-container .ant-btn-primary {\n background-color: #16b1ff;\n color: #ffffff;\n border: none; }\n .layout-content-container .ant-btn {\n height: 32px;\n font-weight: 500;\n font-size: 0.8rem;\n border-radius: 0.3rem;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);\n min-width: 80px;\n box-shadow: none; }\n .layout-content-container .ant-btn span {\n text-transform: uppercase; }\n\n.content-container {\n padding: 0px 20px; }\n .content-container .title-bar {\n padding: 0px 0px 30px 0px; }\n .content-container .body-title {\n color: #16b1ff;\n font-weight: 500;\n font-size: 1.2rem; }\n .content-container .body-sub-title {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 400;\n font-size: 0.8rem; }\n\n.content-card {\n background-color: #ffffff;\n border-radius: 10px;\n width: 100%; }\n .content-card .action-bar {\n padding: 1.6rem 1.3rem 1.6rem 1.3rem; }\n .content-card .action-bar button {\n width: fit-content; }\n .content-card .filter-section {\n padding: 1.4rem 1.3rem 1.6rem 1.3rem;\n display: flex;\n width: 100%;\n flex-direction: row;\n align-items: center;\n justify-content: end; }\n .content-card .filter-section .search-bar {\n display: flex;\n flex-direction: row-reverse; }\n .content-card .filter-section .filter-bar {\n display: flex;\n flex-direction: row-reverse;\n margin-top: 0.8rem;\n width: 5%; }\n .content-card .filter-section .ant-input-affix-wrapper {\n border-radius: 0.313rem 0 0 0.313rem !important; }\n .content-card .filter-section .ant-input-search\n> .ant-input-group\n> .ant-input-group-addon:last-child\n.ant-input-search-button {\n padding-top: 0;\n padding-bottom: 0;\n border-radius: 0 0.313rem 0.313rem 0 !important; }\n\n.layout-content-container .ant-btn {\n min-width: 50px !important; }\n\n.table-actions-section {\n width: 100%;\n margin-bottom: 1rem; }\n\n.action-menu {\n min-width: 120px;\n color: rgba(58, 53, 65, 0.6); }\n .action-menu .action-icon {\n margin-right: 12px;\n display: flex; }\n .action-menu .anticon-edit {\n color: #16b1ff; }\n .action-menu .anticon-delete {\n color: #f25a29; }\n\n.ant-dropdown-menu {\n padding: 1rem 2rem 1rem 1rem !important;\n border-radius: 5px; }\n\n.ant-dropdown-menu-item-active {\n background-color: transparent !important; }\n\n.ant-popover-inner-content .action-menu {\n margin: -12px -16px; }\n .ant-popover-inner-content .action-menu .ant-list-item {\n padding: 11px 16px;\n justify-content: flex-start;\n cursor: pointer; }\n\n.ant-tag {\n border-radius: 20px; }\n\n.clickable {\n cursor: pointer; }\n\n.text-center {\n text-align: center; }\n\n.float-left {\n float: left; }\n\n.float-right {\n float: right; }\n\n.apexcharts-canvas {\n font-family: \"Inter\" !important; }\n\n.apexcharts-legend-text {\n font-family: \"Inter\" !important; }\n\n.ant-tag {\n padding: 1px 10px; }\n\n.flex-display {\n display: flex; }\n\n.ant-modal-footer {\n border-top: none;\n text-align: center; }\n .ant-modal-footer button {\n margin: 10px 20px;\n text-transform: uppercase;\n font-size: 0.8rem; }\n\n.ant-modal-header {\n border-radius: 15px;\n border: none; }\n\n.ant-modal-content {\n border-radius: 15px;\n border: none; }\n\n.ant-modal-header {\n border: none; }\n\n.ant-modal-body {\n text-align: center;\n color: rgba(58, 53, 65, 0.6);\n font-size: 0.8rem; }\n .ant-modal-body .ant-select-selector {\n text-align: left;\n border-radius: 5px !important;\n height: 32px; }\n .ant-modal-body .form-label {\n text-align: left; }\n .ant-modal-body .form-label .req-ast {\n color: rgba(255, 77, 79, 0.8);\n padding-left: 5px; }\n .ant-modal-body .ant-form .ant-input-password {\n padding: 6.5px 11px;\n font-size: 16px; }\n .ant-modal-body .ant-form .ant-form-item-explain-error {\n text-align: start; }\n\n.popup-header {\n text-align: center;\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600;\n font-family: \"Inter\";\n font-size: 0.9rem;\n margin: 25px 20px -20px 20px; }\n .popup-header .icon {\n font-size: 4rem;\n margin-bottom: 15px;\n font-weight: 400; }\n .popup-header img {\n height: 100px; }\n\n.popup-success .icon {\n color: #5dc380; }\n\n.popup-success .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n\n.popup-success .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-success .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-primary .icon {\n color: #16b1ff; }\n\n.popup-primary .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n\n.popup-primary .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-primary .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-danger .icon {\n color: rgba(255, 77, 79, 0.8); }\n\n.popup-danger .ant-btn-primary {\n background: rgba(255, 77, 79, 0.8);\n border-radius: rgba(255, 77, 79, 0.8);\n border: none; }\n\n.popup-danger .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-danger .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.ant-modal-footer .ant-btn {\n height: 32px;\n border-radius: 4px;\n padding: 6px 16px;\n font-weight: 500; }\n\n.ant-modal-footer .ant-btn-default {\n color: rgba(140, 140, 140, 0.7) !important;\n border-color: rgba(140, 140, 140, 0.7) !important; }\n\n.ant-tag-processing {\n color: #16b1ff;\n background: rgba(185, 226, 244, 0.4); }\n\n.filter-section input {\n font-family: 'Inter';\n font-size: 0.8rem !important; }\n\n.pull-right {\n float: right; }\n\n.disabled {\n opacity: 0.5; }\n\n.mg-left-3 {\n margin-left: 3rem; }\n\n.mg-left-2 {\n margin-left: 2rem !important; }\n\n.mg-left-1 {\n margin-left: 1rem; }\n\n.mg-top-1 {\n margin-top: 1rem; }\n\n.mg-top-2 {\n margin-top: 2rem; }\n\n.mg-bottom-1 {\n margin-bottom: 1rem !important; }\n\n.transfer-form {\n padding: 0px 15px;\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form .popup-credit-input .ant-form-item-explain-error {\n width: 200px; }\n .transfer-form .ant-row {\n align-items: unset; }\n .transfer-form .sub-text {\n margin-bottom: 35px;\n font-size: 0.9rem;\n font-weight: 500; }\n .transfer-form .label {\n text-align: left;\n font-size: 0.9rem;\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form .seperator {\n font-size: 1.2rem;\n color: #d9d9d9; }\n .transfer-form .footer {\n margin-bottom: 0px;\n margin-top: 15px; }\n .transfer-form label {\n font-size: 0.8rem; }\n .transfer-form .ant-radio-wrapper {\n font-size: 0.9rem; }\n .transfer-form input {\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form button {\n text-transform: uppercase;\n font-weight: 500; }\n\n.color-error {\n color: rgba(255, 77, 79, 0.8); }\n\n.color-primary {\n color: #16b1ff; }\n\n.ant-input-number-input {\n text-align: right; }\n\n.text-left {\n text-align: left; }\n\n.ant-form-item .ant-radio-group {\n text-align: left; }\n\n.loading-center {\n margin: auto;\n text-align: center;\n position: absolute;\n top: 50%;\n left: 50%; }\n\n.ant-tag-purple {\n color: #976ed7; }\n\n.ant-tag-orange {\n color: #ff8f56; }\n\n.ant-tag-default {\n color: rgba(58, 53, 65, 0.5); }\n\n.ant-popover-inner {\n border-radius: 4px; }\n\n.ant-input-number {\n border-radius: 5px; }\n\n.ret-icon {\n background-color: rgba(254, 241, 173, 0.5);\n color: #ff8f56; }\n\n.flag-ret-icon {\n display: flex !important;\n background-color: #f4f5fa;\n font-size: 1.1rem !important;\n padding: 7px; }\n\n.b-icon {\n vertical-align: middle; }\n\n.ant-message-notice-content {\n padding: 0px;\n border-radius: 5px; }\n .ant-message-notice-content .ant-message-custom-content {\n font-size: 0.8rem;\n border-radius: 5px;\n padding: 17px 24px; }\n .ant-message-notice-content .ant-message-error {\n color: rgba(255, 77, 79, 0.8);\n border: 1px solid rgba(255, 77, 79, 0.8); }\n .ant-message-notice-content .ant-message-success {\n color: #5bce00;\n border: 1px solid #5bce00; }\n\n.ant-select-selection-item {\n color: rgba(58, 53, 65, 0.6); }\n\n.sub-text {\n font-size: 0.9rem;\n font-weight: 500; }\n\n.search-filter {\n margin-right: 15px; }\n\n.mg-bottom-0 {\n margin-bottom: 0px; }\n\n.padding-bottom-0 {\n padding-bottom: 0px; }\n\n.ellipsis-overflow {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical; }\n\n.nextline-overflow {\n overflow-wrap: break-word; }\n\n.ant-message {\n width: 50%;\n right: 0px;\n left: auto;\n min-width: 400px; }\n";
|
840
|
+
var css_248z$r = "body {\n background-color: #f4f5fa;\n font-family: \"Inter\";\n font-weight: 400; }\n\n.ant-menu {\n background-color: #f4f5fa; }\n\n.ant-layout-header {\n background-color: #f4f5fa; }\n\n.ant-layout {\n background-color: #f4f5fa; }\n\n.ant-menu-submenu .ant-menu {\n background-color: #f4f5fa; }\n\n.ant-menu-item {\n background-color: #f4f5fa; }\n\n.ant-menu-sub {\n background-color: #f4f5fa; }\n\n.ant-table-content {\n font-family: \"Inter\"; }\n\n.ant-input {\n border-radius: 5px !important; }\n\n.ant-btn {\n border-radius: 5px !important; }\n\n.ant-input-group-addon:first-child {\n border-radius: 5px !important; }\n\n.ant-input-group .ant-input {\n width: 99% !important; }\n\n.ant-tooltip-inner {\n border-radius: 5px !important;\n background-color: #16b1ff !important; }\n\n.ant-tooltip-arrow-content {\n --antd-arrow-background-color: linear-gradient(to right bottom, #16b1ff, #16b1ff) !important; }\n\n.ant-radio-group {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between; }\n\n.ant-radio-group-large .ant-radio-button-wrapper {\n font-size: 0.8rem;\n width: 25%;\n border-radius: 5px !important; }\n\n.ant-upload-list-picture .ant-upload-list-item-error,\n.ant-upload-list-picture-card .ant-upload-list-item-error {\n border-color: #40a9ff;\n border-radius: 5px;\n height: 40px; }\n .ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-name,\n .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-name {\n color: #40a9ff !important; }\n\n.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {\n color: #40a9ff; }\n\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,\n.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {\n border-color: #d9d9d9 !important; }\n\n.ant-input-group-wrapper-status-error .ant-input-group-addon {\n border-color: #d9d9d9 !important; }\n\n.ant-form-item-explain-error {\n font-size: 13px;\n color: rgba(255, 77, 79, 0.8); }\n\n.ant-table-thead\n> tr\n> th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {\n background-color: transparent !important; }\n\n.ant-form-item-label > label {\n flex-direction: row-reverse !important;\n color: rgba(58, 53, 65, 0.5); }\n\n.ant-form-item-label\n> label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {\n margin-left: 0.2rem !important;\n color: rgba(255, 77, 79, 0.8) !important; }\n\n.ant-picker {\n border-radius: 5px !important;\n height: 35px !important; }\n\n.PhoneInput .PhoneInputCountry {\n border: 1px solid #d9d9d9 !important;\n border-radius: 5px !important;\n padding: 0 1rem 0 1rem; }\n\n.PhoneInput .PhoneInputInput {\n flex: 1 1;\n min-width: 0;\n border-radius: 5px !important;\n height: 40px;\n border: 1px solid #d9d9d9 !important;\n outline: none; }\n\n.filter-title {\n color: rgba(58, 53, 65, 0.8);\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-size: 0.875rem; }\n\n.ant-radio-wrapper {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 400;\n font-size: 0.875rem;\n line-height: 22px;\n color: rgba(58, 53, 65, 0.8); }\n\n.ant-list-item {\n color: rgba(58, 53, 65, 0.8); }\n\n.PhoneInput .PhoneInputInput:focus-visible,\n.PhoneInput .PhoneInputInput:hover {\n flex: 1 1;\n min-width: 0;\n border-radius: 5px !important;\n height: 40px;\n border-right: 1px solid #40a9ff !important;\n outline: 1px solid #40a9ff; }\n\n.layout-content-container {\n padding-bottom: 100px; }\n .layout-content-container .ant-btn-primary {\n background-color: #16b1ff;\n color: #ffffff;\n border: none; }\n .layout-content-container .ant-btn {\n height: 32px;\n font-weight: 500;\n font-size: 0.8rem;\n border-radius: 0.3rem;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);\n min-width: 80px;\n box-shadow: none; }\n .layout-content-container .ant-btn span {\n text-transform: uppercase; }\n\n.content-container {\n padding: 0px 20px; }\n .content-container .title-bar {\n padding: 0px 0px 30px 0px; }\n .content-container .body-title {\n color: #16b1ff;\n font-weight: 500;\n font-size: 1.2rem; }\n .content-container .body-sub-title {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 400;\n font-size: 0.8rem; }\n\n.content-card {\n background-color: #ffffff;\n border-radius: 10px;\n width: 100%; }\n .content-card .action-bar {\n padding: 1.6rem 1.3rem 1.6rem 1.3rem; }\n .content-card .action-bar button {\n width: fit-content; }\n .content-card .filter-section {\n padding: 1.4rem 1.3rem 1.6rem 1.3rem;\n display: flex;\n width: 100%;\n flex-direction: row;\n align-items: center;\n justify-content: end; }\n .content-card .filter-section .search-bar {\n display: flex;\n flex-direction: row-reverse; }\n .content-card .filter-section .filter-bar {\n display: flex;\n flex-direction: row-reverse;\n margin-top: 0.8rem;\n width: 5%; }\n .content-card .filter-section .ant-input-affix-wrapper {\n border-radius: 0.313rem 0 0 0.313rem !important; }\n .content-card .filter-section .ant-input-search\n> .ant-input-group\n> .ant-input-group-addon:last-child\n.ant-input-search-button {\n padding-top: 0;\n padding-bottom: 0;\n border-radius: 0 0.313rem 0.313rem 0 !important; }\n\n.layout-content-container .ant-btn {\n min-width: 50px !important; }\n\n.table-actions-section {\n width: 100%;\n margin-bottom: 1rem; }\n\n.action-menu {\n min-width: 120px;\n color: rgba(58, 53, 65, 0.6); }\n .action-menu .action-icon {\n margin-right: 12px;\n display: flex; }\n .action-menu .anticon-edit {\n color: #16b1ff; }\n .action-menu .anticon-delete {\n color: #f25a29; }\n\n.ant-dropdown-menu {\n padding: 1rem 2rem 1rem 1rem !important;\n border-radius: 5px; }\n\n.ant-dropdown-menu-item-active {\n background-color: transparent !important; }\n\n.ant-popover-inner-content .action-menu {\n margin: -12px -16px; }\n .ant-popover-inner-content .action-menu .ant-list-item {\n padding: 11px 16px;\n justify-content: flex-start;\n cursor: pointer; }\n\n.ant-tag {\n border-radius: 20px; }\n\n.clickable {\n cursor: pointer; }\n\n.text-center {\n text-align: center; }\n\n.float-left {\n float: left; }\n\n.float-right {\n float: right; }\n\n.apexcharts-canvas {\n font-family: \"Inter\" !important; }\n\n.apexcharts-legend-text {\n font-family: \"Inter\" !important; }\n\n.ant-tag {\n padding: 1px 10px; }\n\n.flex-display {\n display: flex; }\n\n.ant-modal-footer {\n border-top: none;\n text-align: center; }\n .ant-modal-footer button {\n margin: 10px 20px;\n text-transform: uppercase;\n font-size: 0.8rem; }\n\n.ant-modal-header {\n border-radius: 15px;\n border: none; }\n\n.ant-modal-content {\n border-radius: 15px;\n border: none; }\n\n.ant-modal-header {\n border: none; }\n\n.ant-modal-body {\n text-align: center;\n color: rgba(58, 53, 65, 0.6);\n font-size: 0.8rem; }\n .ant-modal-body .ant-select-selector {\n text-align: left;\n border-radius: 5px !important;\n height: 32px; }\n .ant-modal-body .form-label {\n text-align: left; }\n .ant-modal-body .form-label .req-ast {\n color: rgba(255, 77, 79, 0.8);\n padding-left: 5px; }\n .ant-modal-body .ant-form .ant-input-password {\n padding: 6.5px 11px;\n font-size: 16px; }\n .ant-modal-body .ant-form .ant-form-item-explain-error {\n text-align: start; }\n\n.popup-header {\n text-align: center;\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600;\n font-family: \"Inter\";\n font-size: 0.9rem;\n margin: 25px 20px -20px 20px; }\n .popup-header .icon {\n font-size: 4rem;\n margin-bottom: 15px;\n font-weight: 400; }\n .popup-header img {\n height: 100px; }\n\n.popup-success .icon {\n color: #5dc380; }\n\n.popup-success .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n\n.popup-success .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-success .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-primary .icon {\n color: #16b1ff; }\n\n.popup-primary .ant-btn-primary {\n background: #16b1ff;\n border-radius: #16b1ff;\n border: none; }\n\n.popup-primary .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.popup-primary .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-danger .icon {\n color: rgba(255, 77, 79, 0.8); }\n\n.popup-danger .ant-btn-primary {\n background: rgba(255, 77, 79, 0.8);\n border-radius: rgba(255, 77, 79, 0.8);\n border: none; }\n\n.popup-danger .ant-btn-primary[disabled] {\n border-color: #d9d9d9;\n background: #f5f5f5; }\n\n.popup-danger .ant-btn-default {\n color: rgba(58, 53, 65, 0.6);\n border-color: rgba(58, 53, 65, 0.6); }\n\n.ant-modal-footer .ant-btn {\n height: 32px;\n border-radius: 4px;\n padding: 6px 16px;\n font-weight: 500; }\n\n.ant-modal-footer .ant-btn-default {\n color: rgba(140, 140, 140, 0.7) !important;\n border-color: rgba(140, 140, 140, 0.7) !important; }\n\n.ant-tag-processing {\n color: #16b1ff;\n background: rgba(185, 226, 244, 0.4); }\n\n.filter-section input {\n font-family: 'Inter';\n font-size: 0.8rem !important; }\n\n.pull-right {\n float: right; }\n\n.disabled {\n opacity: 0.5; }\n\n.mg-left-3 {\n margin-left: 3rem; }\n\n.mg-left-2 {\n margin-left: 2rem !important; }\n\n.mg-left-1 {\n margin-left: 1rem; }\n\n.mg-top-1 {\n margin-top: 1rem; }\n\n.mg-top-2 {\n margin-top: 2rem; }\n\n.mg-bottom-1 {\n margin-bottom: 1rem !important; }\n\n.transfer-form {\n padding: 0px 15px;\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form .popup-credit-input .ant-form-item-explain-error {\n width: 200px; }\n .transfer-form .ant-row {\n align-items: unset; }\n .transfer-form .sub-text {\n margin-bottom: 35px;\n font-size: 0.9rem;\n font-weight: 500; }\n .transfer-form .label {\n text-align: left;\n font-size: 0.9rem;\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form .seperator {\n font-size: 1.2rem;\n color: #d9d9d9; }\n .transfer-form .footer {\n margin-bottom: 0px;\n margin-top: 15px; }\n .transfer-form label {\n font-size: 0.8rem; }\n .transfer-form .ant-radio-wrapper {\n font-size: 0.9rem; }\n .transfer-form input {\n color: rgba(58, 53, 65, 0.6); }\n .transfer-form button {\n text-transform: uppercase;\n font-weight: 500; }\n\n.color-error {\n color: rgba(255, 77, 79, 0.8); }\n\n.color-primary {\n color: #16b1ff; }\n\n.ant-input-number-input {\n text-align: right; }\n\n.text-left {\n text-align: left; }\n\n.ant-form-item .ant-radio-group {\n text-align: left; }\n\n.loading-center {\n margin: auto;\n text-align: center;\n position: absolute;\n top: 50%;\n left: 50%; }\n\n.ant-tag-purple {\n color: #976ed7; }\n\n.ant-tag-orange {\n color: #ff8f56; }\n\n.ant-tag-default {\n color: rgba(58, 53, 65, 0.5); }\n\n.ant-popover-inner {\n border-radius: 4px; }\n\n.ant-input-number {\n border-radius: 5px; }\n\n.ret-icon {\n background-color: rgba(254, 241, 173, 0.5);\n color: #ff8f56; }\n\n.flag-ret-icon {\n display: flex !important;\n background-color: #f4f5fa;\n font-size: 1.1rem !important;\n padding: 7px; }\n\n.b-icon {\n vertical-align: middle; }\n\n.ant-message-notice-content {\n padding: 0px;\n border-radius: 5px; }\n .ant-message-notice-content .ant-message-custom-content {\n font-size: 0.8rem;\n border-radius: 5px;\n padding: 17px 24px; }\n .ant-message-notice-content .ant-message-error {\n color: rgba(255, 77, 79, 0.8);\n border: 1px solid rgba(255, 77, 79, 0.8); }\n .ant-message-notice-content .ant-message-success {\n color: #5bce00;\n border: 1px solid #5bce00; }\n\n.ant-select-selection-item {\n color: rgba(58, 53, 65, 0.6); }\n\n.sub-text {\n font-size: 0.9rem;\n font-weight: 500; }\n\n.search-filter {\n margin-right: 15px; }\n\n.mg-bottom-0 {\n margin-bottom: 0px; }\n\n.padding-bottom-0 {\n padding-bottom: 0px; }\n\n.ellipsis-overflow {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical; }\n\n.nextline-overflow {\n overflow-wrap: break-word; }\n\n.ant-message {\n width: 50%;\n right: 0px;\n left: auto;\n min-width: 400px; }\n";
|
841
841
|
styleInject(css_248z$r);
|
842
842
|
|
843
843
|
var UserManagementColumns;
|
@@ -14236,12 +14236,7 @@ var InvestmentCreationComponent = function (props) {
|
|
14236
14236
|
onNavigateToProgrammeManagementView();
|
14237
14237
|
return;
|
14238
14238
|
}
|
14239
|
-
|
14240
|
-
setData(state === null || state === void 0 ? void 0 : state.record);
|
14241
|
-
}
|
14242
|
-
else {
|
14243
|
-
setData({ ownership: true });
|
14244
|
-
}
|
14239
|
+
setData(state.record);
|
14245
14240
|
}, []);
|
14246
14241
|
useEffect(function () {
|
14247
14242
|
if (data) {
|
@@ -14257,14 +14252,12 @@ var InvestmentCreationComponent = function (props) {
|
|
14257
14252
|
}
|
14258
14253
|
console.log('data', data);
|
14259
14254
|
var companyName = {};
|
14260
|
-
|
14261
|
-
|
14262
|
-
|
14263
|
-
|
14264
|
-
|
14265
|
-
|
14266
|
-
data.proponentPercentage = [100];
|
14267
|
-
}
|
14255
|
+
for (var _i = 0, _l = data.company; _i < _l.length; _i++) {
|
14256
|
+
var company = _l[_i];
|
14257
|
+
companyName[company.companyId] = company;
|
14258
|
+
}
|
14259
|
+
if (!data.proponentPercentage) {
|
14260
|
+
data.proponentPercentage = [100];
|
14268
14261
|
}
|
14269
14262
|
var nextOne = function (val) {
|
14270
14263
|
setCurrent(current + 1);
|
@@ -25322,57 +25315,22 @@ var InvestmentBody = function (props) {
|
|
25322
25315
|
React.createElement(Tooltip, { title: addSpaces(investmentData === null || investmentData === void 0 ? void 0 : investmentData.stream), color: TooltipColor, key: TooltipColor }, (investmentData === null || investmentData === void 0 ? void 0 : investmentData.stream) === InvestmentStream.CLIMATE_FINANCE ? (React.createElement(BankOutlined, { className: "action-icons" })) : (React.createElement(LineChartOutlined, { className: "action-icons" }))))))));
|
25323
25316
|
};
|
25324
25317
|
|
25325
|
-
var getValidNdcActions = function (programme) {
|
25326
|
-
var _a;
|
25327
|
-
var actionCreditsArray = [];
|
25328
|
-
(_a = programme.mitigationActions) === null || _a === void 0 ? void 0 : _a.map(function (action) {
|
25329
|
-
var verfiedAction = false;
|
25330
|
-
if (action.projectMaterial) {
|
25331
|
-
for (var _i = 0, _a = action.projectMaterial; _i < _a.length; _i++) {
|
25332
|
-
var document = _a[_i];
|
25333
|
-
if (document.includes("VERIFICATION_REPORT")) {
|
25334
|
-
verfiedAction = true;
|
25335
|
-
break;
|
25336
|
-
}
|
25337
|
-
}
|
25338
|
-
}
|
25339
|
-
if (verfiedAction && 0 < action.properties.availableCredits) {
|
25340
|
-
actionCreditsArray.push({
|
25341
|
-
actionId: action.actionId,
|
25342
|
-
availableCredits: action.properties.availableCredits,
|
25343
|
-
});
|
25344
|
-
}
|
25345
|
-
});
|
25346
|
-
return actionCreditsArray;
|
25347
|
-
};
|
25348
25318
|
var ProgrammeIssueForm = function (props) {
|
25349
|
-
var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, enableIssue = props.enableIssue, translator = props.translator
|
25319
|
+
var programme = props.programme, onFinish = props.onFinish, onCancel = props.onCancel, actionBtnText = props.actionBtnText, subText = props.subText, enableIssue = props.enableIssue, translator = props.translator;
|
25350
25320
|
var t = translator.t;
|
25351
25321
|
var _a = useState(undefined), popupError = _a[0], setPopupError = _a[1];
|
25352
25322
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
25353
25323
|
return (React.createElement("div", { className: "transfer-form" },
|
25354
25324
|
React.createElement(Row, null,
|
25355
25325
|
React.createElement(Col, { span: 24, className: "sub-text" }, subText)),
|
25356
|
-
React.createElement(Form, { name: "transfer_init_popup", layout: "vertical",
|
25357
|
-
|
25326
|
+
React.createElement(Form, { name: "transfer_init_popup", layout: "vertical", initialValues: {
|
25327
|
+
issueAmount: 0,
|
25328
|
+
}, onChange: function () { return setPopupError(undefined); }, onFinish: function (d) { return __awaiter(void 0, void 0, void 0, function () {
|
25329
|
+
var res;
|
25358
25330
|
return __generator(this, function (_a) {
|
25359
25331
|
switch (_a.label) {
|
25360
25332
|
case 0:
|
25361
|
-
|
25362
|
-
if (enableIssue) {
|
25363
|
-
totalAmount = 0;
|
25364
|
-
d.issueAmount.map(function (action) {
|
25365
|
-
totalAmount += action.issueCredit;
|
25366
|
-
if (action.issueCredit > 0) {
|
25367
|
-
validIssues.push({
|
25368
|
-
actionId: action.actionId,
|
25369
|
-
issueCredit: action.issueCredit,
|
25370
|
-
});
|
25371
|
-
}
|
25372
|
-
});
|
25373
|
-
d.issueAmount = validIssues;
|
25374
|
-
}
|
25375
|
-
if (totalAmount === 0) {
|
25333
|
+
if (d.issueAmount === 0) {
|
25376
25334
|
setPopupError("Issue amount should be greater than 0");
|
25377
25335
|
setLoading(false);
|
25378
25336
|
return [2 /*return*/];
|
@@ -25387,54 +25345,43 @@ var ProgrammeIssueForm = function (props) {
|
|
25387
25345
|
}
|
25388
25346
|
});
|
25389
25347
|
}); } },
|
25390
|
-
|
25391
|
-
|
25392
|
-
|
25393
|
-
|
25394
|
-
|
25395
|
-
|
25396
|
-
|
25397
|
-
|
25398
|
-
|
25399
|
-
|
25400
|
-
|
25401
|
-
|
25402
|
-
|
25403
|
-
|
25404
|
-
|
25405
|
-
|
25406
|
-
|
25407
|
-
|
25408
|
-
|
25409
|
-
|
25410
|
-
|
25411
|
-
|
25412
|
-
|
25413
|
-
|
25414
|
-
|
25415
|
-
|
25416
|
-
|
25417
|
-
|
25418
|
-
|
25419
|
-
|
25420
|
-
|
25421
|
-
|
25422
|
-
|
25423
|
-
|
25424
|
-
|
25425
|
-
|
25426
|
-
|
25427
|
-
React.createElement(InputNumber, { placeholder: "", controls: false, onKeyPress: function (event) {
|
25428
|
-
if (!/[0-9\.]/.test(event.key)) {
|
25429
|
-
event.preventDefault();
|
25430
|
-
}
|
25431
|
-
} }))),
|
25432
|
-
React.createElement(Col, { lg: 1, md: 1, className: "seperator" }, "/"),
|
25433
|
-
React.createElement(Col, { lg: 6, md: 12 },
|
25434
|
-
React.createElement(Form.Item, __assign({ className: "popup-credit-input" }, restField, { name: [name, "availableCredits"] }),
|
25435
|
-
React.createElement(InputNumber, { formatter: function (value) { return addCommSep(value); }, disabled: true })))))));
|
25436
|
-
})));
|
25437
|
-
})) : (React.createElement(Row, null,
|
25348
|
+
enableIssue ? (React.createElement(Row, null,
|
25349
|
+
React.createElement(Col, { lg: 11, md: 24 },
|
25350
|
+
React.createElement("div", { className: "label" }, "".concat(t("view:issueCreditText"), " (").concat(creditUnit, ")"))),
|
25351
|
+
React.createElement(Col, { lg: 6, md: 12 },
|
25352
|
+
React.createElement(Form.Item, { className: "popup-credit-input", name: "issueAmount", rules: [
|
25353
|
+
{
|
25354
|
+
pattern: new RegExp(/^[+]?([.]\d+|\d+[.]?\d*)$/g),
|
25355
|
+
message: "Credit Should be a positive number",
|
25356
|
+
},
|
25357
|
+
{
|
25358
|
+
required: true,
|
25359
|
+
message: "Required field",
|
25360
|
+
},
|
25361
|
+
function (_a) {
|
25362
|
+
var getFieldValue = _a.getFieldValue;
|
25363
|
+
return ({
|
25364
|
+
validator: function (rule, value) {
|
25365
|
+
if (getFieldValue("issueAmount") &&
|
25366
|
+
parseFloat(getFieldValue("issueAmount")) >
|
25367
|
+
programme.creditEst - programme.creditIssued) {
|
25368
|
+
// eslint-disable-next-line prefer-promise-reject-errors
|
25369
|
+
return Promise.reject("Amount > Authorised");
|
25370
|
+
}
|
25371
|
+
return Promise.resolve();
|
25372
|
+
},
|
25373
|
+
});
|
25374
|
+
},
|
25375
|
+
] },
|
25376
|
+
React.createElement(InputNumber, { placeholder: "", controls: false, onKeyPress: function (event) {
|
25377
|
+
if (!/[0-9\.]/.test(event.key)) {
|
25378
|
+
event.preventDefault();
|
25379
|
+
}
|
25380
|
+
} }))),
|
25381
|
+
React.createElement(Col, { lg: 1, md: 1, className: "seperator" }, "/"),
|
25382
|
+
React.createElement(Col, { lg: 6, md: 12 },
|
25383
|
+
React.createElement(Form.Item, { className: "popup-credit-input" },
|
25384
|
+
React.createElement(InputNumber, { placeholder: addCommSep(programme.creditEst - programme.creditIssued), disabled: true }))))) : (React.createElement(Row, null,
|
25438
25385
|
React.createElement(Col, { lg: 18, md: 20 },
|
25439
25386
|
React.createElement("div", { className: "label" }, "".concat(t("view:authCreditText"), " (").concat(creditUnit, ")"))),
|
25440
25387
|
React.createElement(Col, { lg: 6, md: 6 },
|
@@ -25988,7 +25935,7 @@ var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column
|
|
25988
25935
|
styleInject(css_248z$2);
|
25989
25936
|
|
25990
25937
|
var NdcActionBody = function (props) {
|
25991
|
-
var data = props.data, programmeId = props.programmeId, canUploadMonitorReport = props.canUploadMonitorReport, programmeOwnerId = props.programmeOwnerId, getProgrammeDocs = props.getProgrammeDocs, ministryLevelPermission = props.ministryLevelPermission, useConnection = props.useConnection, translator = props.translator, useUserContext = props.useUserContext
|
25938
|
+
var data = props.data, programmeId = props.programmeId, canUploadMonitorReport = props.canUploadMonitorReport, programmeOwnerId = props.programmeOwnerId, getProgrammeDocs = props.getProgrammeDocs, ministryLevelPermission = props.ministryLevelPermission, useConnection = props.useConnection, translator = props.translator, useUserContext = props.useUserContext;
|
25992
25939
|
var t = translator.t;
|
25993
25940
|
var userInfoState = useUserContext().userInfoState;
|
25994
25941
|
var fileInputMonitoringRef = useRef(null);
|
@@ -26023,7 +25970,7 @@ var NdcActionBody = function (props) {
|
|
26023
25970
|
(_a = fileInputVerificationRef === null || fileInputVerificationRef === void 0 ? void 0 : fileInputVerificationRef.current) === null || _a === void 0 ? void 0 : _a.click();
|
26024
25971
|
};
|
26025
25972
|
var onUploadDocument = function (file, type) { return __awaiter(void 0, void 0, void 0, function () {
|
26026
|
-
var logoBase64,
|
25973
|
+
var logoBase64, response;
|
26027
25974
|
return __generator(this, function (_a) {
|
26028
25975
|
switch (_a.label) {
|
26029
25976
|
case 0:
|
@@ -26051,40 +25998,14 @@ var NdcActionBody = function (props) {
|
|
26051
25998
|
actionId: ndcActionId,
|
26052
25999
|
})];
|
26053
26000
|
case 3:
|
26054
|
-
|
26055
|
-
if (
|
26001
|
+
response = _a.sent();
|
26002
|
+
if (response === null || response === void 0 ? void 0 : response.data) {
|
26056
26003
|
message.open({
|
26057
26004
|
type: "success",
|
26058
26005
|
content: "".concat(t("programme:isUploaded")),
|
26059
26006
|
duration: 4,
|
26060
26007
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
26061
26008
|
});
|
26062
|
-
if (type == DocType.VERIFICATION_REPORT &&
|
26063
|
-
(response_1 === null || response_1 === void 0 ? void 0 : response_1.data.status) == DocumentStatus.ACCEPTED &&
|
26064
|
-
response_1.data.programme.mitigationActions) {
|
26065
|
-
programmeData = response_1 === null || response_1 === void 0 ? void 0 : response_1.data.programme;
|
26066
|
-
modified_1 = false;
|
26067
|
-
programmeData.mitigationActions.map(function (action) {
|
26068
|
-
if (action.actionId == ndcActionId) {
|
26069
|
-
modified_1 = true;
|
26070
|
-
var docAdded = false;
|
26071
|
-
for (var _i = 0, _a = action.projectMaterial; _i < _a.length; _i++) {
|
26072
|
-
var document = _a[_i];
|
26073
|
-
if (document.includes("VERIFICATION_REPORT")) {
|
26074
|
-
docAdded = true;
|
26075
|
-
break;
|
26076
|
-
}
|
26077
|
-
}
|
26078
|
-
if (!docAdded) {
|
26079
|
-
action.projectMaterial.push(response_1 === null || response_1 === void 0 ? void 0 : response_1.data.url);
|
26080
|
-
}
|
26081
|
-
}
|
26082
|
-
});
|
26083
|
-
if (modified_1) {
|
26084
|
-
programme.mitigationActions = programmeData.mitigationActions;
|
26085
|
-
onFinish(programme);
|
26086
|
-
}
|
26087
|
-
}
|
26088
26009
|
}
|
26089
26010
|
return [3 /*break*/, 5];
|
26090
26011
|
case 4:
|
@@ -26116,14 +26037,14 @@ var NdcActionBody = function (props) {
|
|
26116
26037
|
});
|
26117
26038
|
}); };
|
26118
26039
|
var docAction = function (id, status, actionId, type) { return __awaiter(void 0, void 0, void 0, function () {
|
26119
|
-
var
|
26040
|
+
var error_2;
|
26120
26041
|
return __generator(this, function (_a) {
|
26121
26042
|
switch (_a.label) {
|
26122
26043
|
case 0:
|
26123
26044
|
setLoading(true);
|
26124
26045
|
_a.label = 1;
|
26125
26046
|
case 1:
|
26126
|
-
_a.trys.push([1,
|
26047
|
+
_a.trys.push([1, 3, 4, 5]);
|
26127
26048
|
return [4 /*yield*/, post("national/programme/docAction", {
|
26128
26049
|
id: id,
|
26129
26050
|
status: status,
|
@@ -26139,51 +26060,8 @@ var NdcActionBody = function (props) {
|
|
26139
26060
|
duration: 4,
|
26140
26061
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
26141
26062
|
});
|
26142
|
-
|
26143
|
-
status == DocumentStatus.ACCEPTED)) return [3 /*break*/, 5];
|
26144
|
-
return [4 /*yield*/, post("national/programme/query", {
|
26145
|
-
page: 1,
|
26146
|
-
size: 2,
|
26147
|
-
filterAnd: [
|
26148
|
-
{
|
26149
|
-
key: "programmeId",
|
26150
|
-
operation: "=",
|
26151
|
-
value: programmeId,
|
26152
|
-
},
|
26153
|
-
],
|
26154
|
-
})];
|
26063
|
+
return [3 /*break*/, 5];
|
26155
26064
|
case 3:
|
26156
|
-
programmeRes = _a.sent();
|
26157
|
-
programmeData = programmeRes.data[0];
|
26158
|
-
if (!programmeData.mitigationActions) return [3 /*break*/, 5];
|
26159
|
-
return [4 /*yield*/, post("national/programme/queryDocs", {
|
26160
|
-
page: 1,
|
26161
|
-
size: 100,
|
26162
|
-
filterAnd: [
|
26163
|
-
{
|
26164
|
-
key: "id",
|
26165
|
-
operation: "=",
|
26166
|
-
value: id,
|
26167
|
-
},
|
26168
|
-
],
|
26169
|
-
})];
|
26170
|
-
case 4:
|
26171
|
-
docRepoRes = _a.sent();
|
26172
|
-
docUrl_1 = docRepoRes.data[0].url;
|
26173
|
-
modified_2 = false;
|
26174
|
-
programmeData.mitigationActions.map(function (action) {
|
26175
|
-
if (action.actionId == actionId) {
|
26176
|
-
modified_2 = true;
|
26177
|
-
if (!action.projectMaterial.includes(docUrl_1)) {
|
26178
|
-
action.projectMaterial.push(docUrl_1);
|
26179
|
-
}
|
26180
|
-
}
|
26181
|
-
});
|
26182
|
-
if (modified_2)
|
26183
|
-
onFinish(programmeData);
|
26184
|
-
_a.label = 5;
|
26185
|
-
case 5: return [3 /*break*/, 8];
|
26186
|
-
case 6:
|
26187
26065
|
error_2 = _a.sent();
|
26188
26066
|
message.open({
|
26189
26067
|
type: "error",
|
@@ -26191,13 +26069,13 @@ var NdcActionBody = function (props) {
|
|
26191
26069
|
duration: 4,
|
26192
26070
|
style: { textAlign: "right", marginRight: 15, marginTop: 10 },
|
26193
26071
|
});
|
26194
|
-
return [3 /*break*/,
|
26195
|
-
case
|
26072
|
+
return [3 /*break*/, 5];
|
26073
|
+
case 4:
|
26196
26074
|
getProgrammeDocs();
|
26197
26075
|
setOpenRejectDocConfirmationModal(false);
|
26198
26076
|
setLoading(false);
|
26199
26077
|
return [7 /*endfinally*/];
|
26200
|
-
case
|
26078
|
+
case 5: return [2 /*return*/];
|
26201
26079
|
}
|
26202
26080
|
});
|
26203
26081
|
}); };
|
@@ -26832,56 +26710,16 @@ var ProgrammeDocuments = function (props) {
|
|
26832
26710
|
var css_248z = ".remark {\n padding-top: 7px;\n font-size: 0.75rem; }\n .remark .remark-title {\n text-transform: capitalize;\n font-weight: 500;\n color: rgba(58, 53, 65, 0.5); }\n .remark .remark-body {\n font-weight: 400;\n color: rgba(58, 53, 65, 0.5); }\n";
|
26833
26711
|
styleInject(css_248z);
|
26834
26712
|
|
26835
|
-
var formatString = function (str, vargs) {
|
26836
|
-
var parts = str.split("{}");
|
26837
|
-
var insertAt = 1;
|
26838
|
-
for (var _i = 0, vargs_1 = vargs; _i < vargs_1.length; _i++) {
|
26839
|
-
var arg = vargs_1[_i];
|
26840
|
-
parts.splice(insertAt, 0, arg);
|
26841
|
-
insertAt += 2;
|
26842
|
-
}
|
26843
|
-
return parts.join("");
|
26844
|
-
};
|
26845
|
-
var addNdcDesc = function (props) {
|
26846
|
-
var ndcActions = props.ndcActions, t = props.t, creditUnit = props.creditUnit;
|
26847
|
-
var actions = ndcActions.split("&");
|
26848
|
-
var ndcDesc = "";
|
26849
|
-
for (var id in actions) {
|
26850
|
-
var parts = actions[id].split("?");
|
26851
|
-
if (Number(id) == actions.length - 1 && actions.length > 1) {
|
26852
|
-
ndcDesc += " and ".concat(formatString(t("view:t1IssueNdcDesc"), [
|
26853
|
-
parts[1],
|
26854
|
-
creditUnit,
|
26855
|
-
parts[0],
|
26856
|
-
]));
|
26857
|
-
}
|
26858
|
-
else if (actions.length > 1 && Number(id) != actions.length - 2) {
|
26859
|
-
ndcDesc += "".concat(formatString(t("view:t1IssueNdcDesc"), [
|
26860
|
-
parts[1],
|
26861
|
-
creditUnit,
|
26862
|
-
parts[0],
|
26863
|
-
]), ", ");
|
26864
|
-
}
|
26865
|
-
else {
|
26866
|
-
ndcDesc += "".concat(formatString(t("view:t1IssueNdcDesc"), [
|
26867
|
-
parts[1],
|
26868
|
-
creditUnit,
|
26869
|
-
parts[0],
|
26870
|
-
]));
|
26871
|
-
}
|
26872
|
-
}
|
26873
|
-
return ndcDesc;
|
26874
|
-
};
|
26875
26713
|
var TimelineBody = function (props) {
|
26876
26714
|
var text = props.text, remark = props.remark, via = props.via, t = props.t;
|
26877
26715
|
return (React.createElement("div", null,
|
26878
26716
|
React.createElement("div", null,
|
26879
26717
|
text,
|
26880
|
-
via && React.createElement("span", null, " ".concat(t(
|
26881
|
-
remark && remark !==
|
26882
|
-
React.createElement("div", { className: "remark-title" }, t(
|
26718
|
+
via && React.createElement("span", null, " ".concat(t('view:via'), " ").concat(via))),
|
26719
|
+
remark && remark !== 'undefined' && remark !== 'null' && (React.createElement("div", { className: "remark" },
|
26720
|
+
React.createElement("div", { className: "remark-title" }, t('view:remarks')),
|
26883
26721
|
React.createElement("div", { className: "remark-body" }, remark)))));
|
26884
26722
|
};
|
26885
26723
|
|
26886
|
-
export { Action, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, ImgWithFallback, InfoView, Instrument, InvestmentBGColor, InvestmentBody, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LegendItem, Loading, ManagerBGColor, ManagerColor, MapComponent, MapTypes, MapboxComponent, MinBGColor, MinColor, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcActionBody, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, OrganisationStatus, ProfileIcon, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDocuments, ProgrammeEntity, ProgrammeIssueForm, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeRetireForm, ProgrammeRevokeForm, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeTransfer, ProgrammeTransferForm, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RetireType, Role, RoleIcon, RootBGColor, RootColor, SdgGoals$1 as SdgGoals, Sector, SectoralScope, StasticCard, StatsCardsTypes, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, Titles, TooltipColor, TransferActionModel, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserRoleIcon, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound,
|
26724
|
+
export { Action, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, ImgWithFallback, InfoView, Instrument, InvestmentBGColor, InvestmentBody, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LegendItem, Loading, ManagerBGColor, ManagerColor, MapComponent, MapTypes, MapboxComponent, MinBGColor, MinColor, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcActionBody, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, OrganisationStatus, ProfileIcon, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDocuments, ProgrammeEntity, ProgrammeIssueForm, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeRetireForm, ProgrammeRevokeForm, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeTransfer, ProgrammeTransferForm, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RetireType, Role, RoleIcon, RootBGColor, RootColor, SdgGoals$1 as SdgGoals, Sector, SectoralScope, StasticCard, StatsCardsTypes, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, Titles, TooltipColor, TransferActionModel, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserRoleIcon, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, isBase64, landAreaUnitList, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList };
|
26887
26725
|
//# sourceMappingURL=index.js.map
|