@undp/carbon-library 1.0.292-CARBON-411.0 → 1.0.292-CARBON-178.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -943,7 +943,7 @@ var CompanyManagementComponent = function (props) {
943
943
  {
944
944
  key: searchByTermOrganisation,
945
945
  operation: "like",
946
- value: networksearchOrganisations + "%",
946
+ value: "%" + networksearchOrganisations + "%",
947
947
  },
948
948
  ];
949
949
  }
@@ -960,7 +960,7 @@ var CompanyManagementComponent = function (props) {
960
960
  {
961
961
  key: searchByTermOrganisation,
962
962
  operation: "like",
963
- value: networksearchOrganisations + "%",
963
+ value: "%" + networksearchOrganisations + "%",
964
964
  },
965
965
  {
966
966
  key: "companyRole",
@@ -6208,7 +6208,7 @@ var AddNewCompanyComponent = function (props) {
6208
6208
  });
6209
6209
  }); };
6210
6210
  var getRegionList = function () { return __awaiter(void 0, void 0, void 0, function () {
6211
- var response, regionNames, uniqueRegionNames, error_1;
6211
+ var response, regionNames, error_1;
6212
6212
  return __generator(this, function (_a) {
6213
6213
  switch (_a.label) {
6214
6214
  case 0:
@@ -6231,8 +6231,7 @@ var AddNewCompanyComponent = function (props) {
6231
6231
  response = _a.sent();
6232
6232
  if (response.data) {
6233
6233
  regionNames = response.data.map(function (item) { return item.regionName; });
6234
- uniqueRegionNames = Array.from(new Set(regionNames));
6235
- setRegionsList(__spreadArray([t("national")], uniqueRegionNames, true));
6234
+ setRegionsList(__spreadArray([t("national")], regionNames, true));
6236
6235
  }
6237
6236
  return [3 /*break*/, 5];
6238
6237
  case 3:
@@ -7633,7 +7632,7 @@ var ProgrammeManagementComponent = function (props) {
7633
7632
  filter.push({
7634
7633
  key: "title",
7635
7634
  operation: "like",
7636
- value: "".concat(search, "%"),
7635
+ value: "%".concat(search, "%"),
7637
7636
  });
7638
7637
  }
7639
7638
  if (ministryLevelFilter) {
@@ -13730,7 +13729,7 @@ var ProgrammeCreationComponent = function (props) {
13730
13729
  });
13731
13730
  }); };
13732
13731
  var getRegionList = function () { return __awaiter(void 0, void 0, void 0, function () {
13733
- var response, regionNames, uniqueRegionNames, error_2;
13732
+ var response, regionNames, error_2;
13734
13733
  return __generator(this, function (_a) {
13735
13734
  switch (_a.label) {
13736
13735
  case 0:
@@ -13753,8 +13752,7 @@ var ProgrammeCreationComponent = function (props) {
13753
13752
  response = _a.sent();
13754
13753
  if (response.data) {
13755
13754
  regionNames = response.data.map(function (item) { return item.regionName; });
13756
- uniqueRegionNames = Array.from(new Set(regionNames));
13757
- setRegionsList(__spreadArray(["National"], uniqueRegionNames, true));
13755
+ setRegionsList(__spreadArray(["National"], regionNames, true));
13758
13756
  }
13759
13757
  return [3 /*break*/, 5];
13760
13758
  case 3:
@@ -15455,7 +15453,7 @@ var UserManagementComponent = function (props) {
15455
15453
  {
15456
15454
  key: searchByTermUser,
15457
15455
  operation: "like",
15458
- value: networksearchUsers + "%",
15456
+ value: "%" + networksearchUsers + "%",
15459
15457
  },
15460
15458
  ];
15461
15459
  }
@@ -15473,7 +15471,7 @@ var UserManagementComponent = function (props) {
15473
15471
  {
15474
15472
  key: searchByTermUser,
15475
15473
  operation: "like",
15476
- value: networksearchUsers + "%",
15474
+ value: "%" + networksearchUsers + "%",
15477
15475
  },
15478
15476
  {
15479
15477
  key: "role",
@@ -15496,7 +15494,7 @@ var UserManagementComponent = function (props) {
15496
15494
  {
15497
15495
  key: searchByTermUser,
15498
15496
  operation: "like",
15499
- value: networksearchUsers + "%",
15497
+ value: "%" + networksearchUsers + "%",
15500
15498
  },
15501
15499
  {
15502
15500
  key: "role",
@@ -15514,7 +15512,7 @@ var UserManagementComponent = function (props) {
15514
15512
  {
15515
15513
  key: searchByTermUser,
15516
15514
  operation: "like",
15517
- value: networksearchUsers + "%",
15515
+ value: "%" + networksearchUsers + "%",
15518
15516
  },
15519
15517
  {
15520
15518
  key: "companyRole",
@@ -16748,7 +16746,7 @@ var InvestmentManagementComponent = function (props) {
16748
16746
  {
16749
16747
  key: "programmeTitle",
16750
16748
  operation: "like",
16751
- value: "".concat(search, "%"),
16749
+ value: "%".concat(search, "%"),
16752
16750
  },
16753
16751
  ];
16754
16752
  if (!isNaN(Number(search))) {
@@ -17694,7 +17692,7 @@ var SupportManagementComponent = function (props) {
17694
17692
  {
17695
17693
  key: "programmeTitle",
17696
17694
  operation: "like",
17697
- value: "".concat(search, "%"),
17695
+ value: "%".concat(search, "%"),
17698
17696
  },
17699
17697
  ];
17700
17698
  if (!isNaN(Number(search))) {
@@ -18279,14 +18277,14 @@ var NdcActionManagementComponent = function (props) {
18279
18277
  {
18280
18278
  key: "programmeName",
18281
18279
  operation: "like",
18282
- value: "".concat(search, "%"),
18280
+ value: "%".concat(search, "%"),
18283
18281
  },
18284
18282
  ];
18285
18283
  if (!isNaN(Number(search))) {
18286
18284
  interFilterOr.push({
18287
18285
  key: "id",
18288
18286
  operation: "like",
18289
- value: "".concat(search),
18287
+ value: "%".concat(search, "%"),
18290
18288
  });
18291
18289
  }
18292
18290
  filter.push({
@@ -19539,7 +19537,7 @@ var GenderParity = function (props) {
19539
19537
  };
19540
19538
 
19541
19539
  var Assessment = function (props) {
19542
- var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, translator = props.translator;
19540
+ var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, useConnection = props.useConnection, translator = props.translator;
19543
19541
  translator.setDefaultNamespace("coBenifits");
19544
19542
  var t = translator.t;
19545
19543
  var form1 = Form.useForm()[0];
@@ -23199,7 +23197,7 @@ var CreditTransferComponent = function (props) {
23199
23197
  {
23200
23198
  key: "programmeTitle",
23201
23199
  operation: "like",
23202
- value: "".concat(search, "%"),
23200
+ value: "%".concat(search, "%"),
23203
23201
  },
23204
23202
  ];
23205
23203
  if (!isNaN(Number(search))) {
@@ -28707,7 +28705,7 @@ var ProgrammeRetireForm = function (props) {
28707
28705
  {
28708
28706
  key: "name",
28709
28707
  operation: "like",
28710
- value: newValue.charAt(0).toUpperCase() + newValue.slice(1) + "%",
28708
+ value: "%" + newValue.charAt(0).toUpperCase() + newValue.slice(1) + "%",
28711
28709
  },
28712
28710
  ],
28713
28711
  sort: {
@@ -29039,7 +29037,7 @@ var ProgrammeTransferForm = function (props) {
29039
29037
  {
29040
29038
  key: "name",
29041
29039
  operation: "like",
29042
- value: newValue + "%",
29040
+ value: "%" + newValue + "%",
29043
29041
  },
29044
29042
  {
29045
29043
  key: "companyRole",