@undp/carbon-library 1.0.13 → 1.0.15
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 +20 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Definitions/index.d.ts +4 -0
- package/dist/esm/index.js +18 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Definitions/index.d.ts +4 -0
- package/dist/index.d.ts +26 -1
- package/package.json +3 -2
@@ -11,3 +11,7 @@ export * from "./Definitions/connectionContext.definitions";
|
|
11
11
|
export * from "./Definitions/layout.header";
|
12
12
|
export * from "./Definitions/layout.sider.definitions";
|
13
13
|
export * from "./Definitions/mapComponent.definitions";
|
14
|
+
export * from "./Entities/company";
|
15
|
+
export * from "./Entities/baseEntity";
|
16
|
+
export * from "./Entities/programmeTransfer";
|
17
|
+
export * from "./Entities/user";
|
package/dist/esm/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { PlusOutlined, FilterOutlined, BankOutlined, SafetyOutlined, ExperimentOutlined, UploadOutlined, EllipsisOutlined, StarOutlined, SearchOutlined, ToolOutlined, EyeOutlined, EditOutlined, DeleteOutlined, BlockOutlined, BulbOutlined, ClockCircleOutlined, UserOutlined } from '@ant-design/icons';
|
2
2
|
import { Input, Radio, Space, Row, Col, Button, Dropdown, Table, Empty, message, Form, Steps, Upload, Tooltip, Modal, Alert, Card, Skeleton, Popover, List, Typography, Tag, Checkbox, InputNumber, Select, Spin, Progress } from 'antd';
|
3
|
-
import React, { useState,
|
3
|
+
import React, { useState, useEffect, useRef } from 'react';
|
4
4
|
import { Buffer } from 'buffer';
|
5
5
|
import { DateTime } from 'luxon';
|
6
6
|
import PhoneInput, { formatPhoneNumberIntl } from 'react-phone-number-input';
|
@@ -405,7 +405,7 @@ var CompanyManagementColumns;
|
|
405
405
|
|
406
406
|
var Search$2 = Input.Search;
|
407
407
|
var CompanyManagementComponent = function (props) {
|
408
|
-
var t = props.t,
|
408
|
+
var t = props.t, ability = props.ability, post = props.post, visibleColumns = props.visibleColumns, onNavigateToCompanyProfile = props.onNavigateToCompanyProfile, onClickAddCompany = props.onClickAddCompany;
|
409
409
|
var _a = useState(), totalCompany = _a[0], setTotalCompany = _a[1];
|
410
410
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
411
411
|
var _c = useState([]), tableData = _c[0], setTableData = _c[1];
|
@@ -418,7 +418,6 @@ var CompanyManagementComponent = function (props) {
|
|
418
418
|
var _j = useState("All"), filterByOrganisationType = _j[0], setFilterByOrganisationType = _j[1];
|
419
419
|
var _k = useState(""), sortOrder = _k[0], setSortOrder = _k[1];
|
420
420
|
var _l = useState(""), sortField = _l[0], setSortField = _l[1];
|
421
|
-
var ability = useContext(AbilityContext);
|
422
421
|
document.addEventListener("mousedown", function (event) {
|
423
422
|
var organisationFilterArea1 = document.querySelector(".filter-bar");
|
424
423
|
var organisationFilterArea2 = document.querySelector(".filter-dropdown");
|
@@ -1277,7 +1276,7 @@ var OrganisationStatus = function (props) {
|
|
1277
1276
|
};
|
1278
1277
|
|
1279
1278
|
var CompanyProfileComponent = function (props) {
|
1280
|
-
var t = props.t,
|
1279
|
+
var t = props.t, ability = props.ability, useLocation = props.useLocation, useConnection = props.useConnection, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, onNavigateToCompanyEdit = props.onNavigateToCompanyEdit;
|
1281
1280
|
var _a = useConnection(), get = _a.get, put = _a.put;
|
1282
1281
|
var _b = useState([]), companyDetails = _b[0], setCompanyDetails = _b[1];
|
1283
1282
|
var state = useLocation().state;
|
@@ -1288,7 +1287,6 @@ var CompanyProfileComponent = function (props) {
|
|
1288
1287
|
var _g = useState(""), errorMsg = _g[0], setErrorMsg = _g[1];
|
1289
1288
|
var _h = useState(""); _h[0]; var setUserRole = _h[1];
|
1290
1289
|
var _j = useState(""); _j[0]; var setCompanyRole = _j[1];
|
1291
|
-
var ability = useContext(AbilityContext);
|
1292
1290
|
var getCompanyDetails = function (companyId) { return __awaiter(void 0, void 0, void 0, function () {
|
1293
1291
|
var response;
|
1294
1292
|
return __generator(this, function (_a) {
|
@@ -1509,7 +1507,7 @@ var UserManagementColumns;
|
|
1509
1507
|
|
1510
1508
|
var Search$1 = Input.Search;
|
1511
1509
|
var UserManagementComponent = function (props) {
|
1512
|
-
var t = props.t,
|
1510
|
+
var t = props.t, ability = props.ability, useConnection = props.useConnection, visibleColumns = props.visibleColumns, onNavigateToUpdateUser = props.onNavigateToUpdateUser, onClickAddUser = props.onClickAddUser, userInfoState = props.userInfoState;
|
1513
1511
|
Form.useForm()[0];
|
1514
1512
|
var _a = useConnection(), post = _a.post, del = _a.delete;
|
1515
1513
|
var _b = useState(), totalUser = _b[0], setTotalUser = _b[1];
|
@@ -1527,7 +1525,6 @@ var UserManagementComponent = function (props) {
|
|
1527
1525
|
var _p = useState(""), sortField = _p[0], setSortField = _p[1];
|
1528
1526
|
var _q = useState(), deleteUserModalRecord = _q[0], setDeleteUserModalRecord = _q[1];
|
1529
1527
|
// const { i18n, t } = useTranslation(["user"]);
|
1530
|
-
var ability = useContext(AbilityContext);
|
1531
1528
|
var _r = useState({}), actionInfo = _r[0], setActionInfo = _r[1];
|
1532
1529
|
var _s = useState(""), errorMsg = _s[0], setErrorMsg = _s[1];
|
1533
1530
|
var _t = useState(false), openDeleteConfirmationModal = _t[0], setOpenDeleteConfirmationModal = _t[1];
|
@@ -4433,7 +4430,7 @@ var ChangePasswordModel = function (props) {
|
|
4433
4430
|
Select.Option;
|
4434
4431
|
var AddNewUserComponent = function (props) {
|
4435
4432
|
var _a, _b, _c, _d, _e, _f;
|
4436
|
-
var t = props.t, onNavigateToUserManagement = props.onNavigateToUserManagement, onNavigateLogin = props.onNavigateLogin, useConnection = props.useConnection, useUserContext = props.useUserContext, useLocation = props.useLocation,
|
4433
|
+
var t = props.t, onNavigateToUserManagement = props.onNavigateToUserManagement, onNavigateLogin = props.onNavigateLogin, useConnection = props.useConnection, useUserContext = props.useUserContext, useLocation = props.useLocation, ability = props.ability;
|
4437
4434
|
var _g = useConnection(), post = _g.post, put = _g.put, del = _g.delete;
|
4438
4435
|
var formOne = Form.useForm()[0];
|
4439
4436
|
var state = useLocation().state;
|
@@ -4447,7 +4444,6 @@ var AddNewUserComponent = function (props) {
|
|
4447
4444
|
var _o = useState(false), openPasswordChangeModal = _o[0], setopenPasswordChangeModal = _o[1];
|
4448
4445
|
var _p = useState(""), errorMsg = _p[0], setErrorMsg = _p[1];
|
4449
4446
|
var userInfoState = useUserContext().userInfoState;
|
4450
|
-
var ability = useContext(AbilityContext);
|
4451
4447
|
var onAddUser = function (values) { return __awaiter(void 0, void 0, void 0, function () {
|
4452
4448
|
var response, error_1;
|
4453
4449
|
return __generator(this, function (_a) {
|
@@ -5218,5 +5214,17 @@ var ConfigurationSettingsType;
|
|
5218
5214
|
ConfigurationSettingsType[ConfigurationSettingsType["isTransferFrozen"] = 0] = "isTransferFrozen";
|
5219
5215
|
})(ConfigurationSettingsType || (ConfigurationSettingsType = {}));
|
5220
5216
|
|
5221
|
-
|
5217
|
+
var BaseEntity = /** @class */ (function () {
|
5218
|
+
function BaseEntity() {
|
5219
|
+
}
|
5220
|
+
return BaseEntity;
|
5221
|
+
}());
|
5222
|
+
|
5223
|
+
var ProgrammeTransfer = /** @class */ (function () {
|
5224
|
+
function ProgrammeTransfer() {
|
5225
|
+
}
|
5226
|
+
return ProgrammeTransfer;
|
5227
|
+
}());
|
5228
|
+
|
5229
|
+
export { AddNewCompanyComponent, AddNewUserComponent, BaseEntity, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole$1 as CompanyRole, ConfigurationSettingsType, CreditTransferStage, LegendItem, Loading, MapComponent, MapTypes, MapboxComponent, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeStage, ProgrammeTransfer, ProgrammeViewComponent, RetireType, Role, SectoralScope, StasticCard, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, addCommSep, addCommSepRound, addRoundNumber, addSpaces, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTransferEnumVal, getTransferStageTagType, sumArray };
|
5222
5230
|
//# sourceMappingURL=index.js.map
|