@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/cjs/index.js CHANGED
@@ -964,7 +964,7 @@ var CompanyManagementComponent = function (props) {
964
964
  {
965
965
  key: searchByTermOrganisation,
966
966
  operation: "like",
967
- value: networksearchOrganisations + "%",
967
+ value: "%" + networksearchOrganisations + "%",
968
968
  },
969
969
  ];
970
970
  }
@@ -981,7 +981,7 @@ var CompanyManagementComponent = function (props) {
981
981
  {
982
982
  key: searchByTermOrganisation,
983
983
  operation: "like",
984
- value: networksearchOrganisations + "%",
984
+ value: "%" + networksearchOrganisations + "%",
985
985
  },
986
986
  {
987
987
  key: "companyRole",
@@ -6229,7 +6229,7 @@ var AddNewCompanyComponent = function (props) {
6229
6229
  });
6230
6230
  }); };
6231
6231
  var getRegionList = function () { return __awaiter(void 0, void 0, void 0, function () {
6232
- var response, regionNames, uniqueRegionNames, error_1;
6232
+ var response, regionNames, error_1;
6233
6233
  return __generator(this, function (_a) {
6234
6234
  switch (_a.label) {
6235
6235
  case 0:
@@ -6252,8 +6252,7 @@ var AddNewCompanyComponent = function (props) {
6252
6252
  response = _a.sent();
6253
6253
  if (response.data) {
6254
6254
  regionNames = response.data.map(function (item) { return item.regionName; });
6255
- uniqueRegionNames = Array.from(new Set(regionNames));
6256
- setRegionsList(__spreadArray([t("national")], uniqueRegionNames, true));
6255
+ setRegionsList(__spreadArray([t("national")], regionNames, true));
6257
6256
  }
6258
6257
  return [3 /*break*/, 5];
6259
6258
  case 3:
@@ -7654,7 +7653,7 @@ var ProgrammeManagementComponent = function (props) {
7654
7653
  filter.push({
7655
7654
  key: "title",
7656
7655
  operation: "like",
7657
- value: "".concat(search, "%"),
7656
+ value: "%".concat(search, "%"),
7658
7657
  });
7659
7658
  }
7660
7659
  if (ministryLevelFilter) {
@@ -13751,7 +13750,7 @@ var ProgrammeCreationComponent = function (props) {
13751
13750
  });
13752
13751
  }); };
13753
13752
  var getRegionList = function () { return __awaiter(void 0, void 0, void 0, function () {
13754
- var response, regionNames, uniqueRegionNames, error_2;
13753
+ var response, regionNames, error_2;
13755
13754
  return __generator(this, function (_a) {
13756
13755
  switch (_a.label) {
13757
13756
  case 0:
@@ -13774,8 +13773,7 @@ var ProgrammeCreationComponent = function (props) {
13774
13773
  response = _a.sent();
13775
13774
  if (response.data) {
13776
13775
  regionNames = response.data.map(function (item) { return item.regionName; });
13777
- uniqueRegionNames = Array.from(new Set(regionNames));
13778
- setRegionsList(__spreadArray(["National"], uniqueRegionNames, true));
13776
+ setRegionsList(__spreadArray(["National"], regionNames, true));
13779
13777
  }
13780
13778
  return [3 /*break*/, 5];
13781
13779
  case 3:
@@ -15476,7 +15474,7 @@ var UserManagementComponent = function (props) {
15476
15474
  {
15477
15475
  key: searchByTermUser,
15478
15476
  operation: "like",
15479
- value: networksearchUsers + "%",
15477
+ value: "%" + networksearchUsers + "%",
15480
15478
  },
15481
15479
  ];
15482
15480
  }
@@ -15494,7 +15492,7 @@ var UserManagementComponent = function (props) {
15494
15492
  {
15495
15493
  key: searchByTermUser,
15496
15494
  operation: "like",
15497
- value: networksearchUsers + "%",
15495
+ value: "%" + networksearchUsers + "%",
15498
15496
  },
15499
15497
  {
15500
15498
  key: "role",
@@ -15517,7 +15515,7 @@ var UserManagementComponent = function (props) {
15517
15515
  {
15518
15516
  key: searchByTermUser,
15519
15517
  operation: "like",
15520
- value: networksearchUsers + "%",
15518
+ value: "%" + networksearchUsers + "%",
15521
15519
  },
15522
15520
  {
15523
15521
  key: "role",
@@ -15535,7 +15533,7 @@ var UserManagementComponent = function (props) {
15535
15533
  {
15536
15534
  key: searchByTermUser,
15537
15535
  operation: "like",
15538
- value: networksearchUsers + "%",
15536
+ value: "%" + networksearchUsers + "%",
15539
15537
  },
15540
15538
  {
15541
15539
  key: "companyRole",
@@ -16769,7 +16767,7 @@ var InvestmentManagementComponent = function (props) {
16769
16767
  {
16770
16768
  key: "programmeTitle",
16771
16769
  operation: "like",
16772
- value: "".concat(search, "%"),
16770
+ value: "%".concat(search, "%"),
16773
16771
  },
16774
16772
  ];
16775
16773
  if (!isNaN(Number(search))) {
@@ -17715,7 +17713,7 @@ var SupportManagementComponent = function (props) {
17715
17713
  {
17716
17714
  key: "programmeTitle",
17717
17715
  operation: "like",
17718
- value: "".concat(search, "%"),
17716
+ value: "%".concat(search, "%"),
17719
17717
  },
17720
17718
  ];
17721
17719
  if (!isNaN(Number(search))) {
@@ -18300,14 +18298,14 @@ var NdcActionManagementComponent = function (props) {
18300
18298
  {
18301
18299
  key: "programmeName",
18302
18300
  operation: "like",
18303
- value: "".concat(search, "%"),
18301
+ value: "%".concat(search, "%"),
18304
18302
  },
18305
18303
  ];
18306
18304
  if (!isNaN(Number(search))) {
18307
18305
  interFilterOr.push({
18308
18306
  key: "id",
18309
18307
  operation: "like",
18310
- value: "".concat(search),
18308
+ value: "%".concat(search, "%"),
18311
18309
  });
18312
18310
  }
18313
18311
  filter.push({
@@ -19560,7 +19558,7 @@ var GenderParity = function (props) {
19560
19558
  };
19561
19559
 
19562
19560
  var Assessment = function (props) {
19563
- var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, translator = props.translator;
19561
+ var onFormSubmit = props.onFormSubmit, assessmentViewData = props.assessmentViewData, viewOnly = props.viewOnly, useConnection = props.useConnection, translator = props.translator;
19564
19562
  translator.setDefaultNamespace("coBenifits");
19565
19563
  var t = translator.t;
19566
19564
  var form1 = antd.Form.useForm()[0];
@@ -23220,7 +23218,7 @@ var CreditTransferComponent = function (props) {
23220
23218
  {
23221
23219
  key: "programmeTitle",
23222
23220
  operation: "like",
23223
- value: "".concat(search, "%"),
23221
+ value: "%".concat(search, "%"),
23224
23222
  },
23225
23223
  ];
23226
23224
  if (!isNaN(Number(search))) {
@@ -28728,7 +28726,7 @@ var ProgrammeRetireForm = function (props) {
28728
28726
  {
28729
28727
  key: "name",
28730
28728
  operation: "like",
28731
- value: newValue.charAt(0).toUpperCase() + newValue.slice(1) + "%",
28729
+ value: "%" + newValue.charAt(0).toUpperCase() + newValue.slice(1) + "%",
28732
28730
  },
28733
28731
  ],
28734
28732
  sort: {
@@ -29060,7 +29058,7 @@ var ProgrammeTransferForm = function (props) {
29060
29058
  {
29061
29059
  key: "name",
29062
29060
  operation: "like",
29063
- value: newValue + "%",
29061
+ value: "%" + newValue + "%",
29064
29062
  },
29065
29063
  {
29066
29064
  key: "companyRole",