@bigbinary/neeto-molecules 1.0.25 → 1.0.26

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.
@@ -9,11 +9,12 @@ var neetoIcons = require('@bigbinary/neeto-icons');
9
9
  var ramda = require('ramda');
10
10
  var reactRouterDom = require('react-router-dom');
11
11
  var logos = require('@bigbinary/neeto-icons/logos');
12
- var i18next = require('i18next');
12
+ var ManageColumns = require('@bigbinary/neeto-molecules/Columns');
13
13
  var neetoFiltersFrontend = require('@bigbinary/neeto-filters-frontend');
14
14
  var formik = require('formik');
15
15
  var formik$1 = require('@bigbinary/neetoui/formik');
16
16
  var utils = require('@bigbinary/neeto-commons-frontend/utils');
17
+ var i18next = require('i18next');
17
18
  var Yup = require('yup');
18
19
  var reactQuery = require('react-query');
19
20
  var axios = require('axios');
@@ -39,7 +40,7 @@ function _interopNamespace(e) {
39
40
  }
40
41
 
41
42
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
42
- var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
43
+ var ManageColumns__default = /*#__PURE__*/_interopDefaultLegacy(ManageColumns);
43
44
  var Yup__namespace = /*#__PURE__*/_interopNamespace(Yup);
44
45
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
45
46
 
@@ -494,7 +495,7 @@ function _objectWithoutProperties(source, excluded) {
494
495
  return target;
495
496
  }
496
497
 
497
- var _excluded$2 = ["children"];
498
+ var _excluded$3 = ["children"];
498
499
  function cov_1d9vaefr1a() {
499
500
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Header/Dropdown.jsx";
500
501
  var hash = "57d665dbaab5aa76c0b57bedd85469275a9f6867";
@@ -580,7 +581,7 @@ cov_1d9vaefr1a().s[0]++;
580
581
  var Dropdown = function Dropdown(_ref) {
581
582
  var _ref$dropdownProps = _ref.dropdownProps,
582
583
  children = _ref$dropdownProps.children,
583
- otherProps = _objectWithoutProperties(_ref$dropdownProps, _excluded$2);
584
+ otherProps = _objectWithoutProperties(_ref$dropdownProps, _excluded$3);
584
585
  cov_1d9vaefr1a().f[0]++;
585
586
  cov_1d9vaefr1a().s[1]++;
586
587
  return /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, _extends({
@@ -929,7 +930,7 @@ var Header = function Header(_ref) {
929
930
  var css$1 = ".neeto-molecules-pageloader__wrapper{height:100%;position:relative;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader{height:100%;left:0;position:absolute;top:0;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__content{height:66px;margin-bottom:16px;overflow:hidden;padding:8px;position:relative;width:66px}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__text{color:rgb(var(--neeto-ui-gray-800));font-size:1.25rem;line-height:1.75rem;margin-bottom:4rem;text-align:center}.neeto-molecules-pageloader__spinner{display:flex;gap:2px;height:25px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.neeto-molecules-pageloader__spinner>div{animation:neeto-ui-stretch-delay 1.2s ease-in-out infinite;background-color:#fff;border-radius:2px;display:inline-flex;height:100%;width:2px}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect2{animation-delay:-1.1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect3{animation-delay:-1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect4{animation-delay:-.9s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect5{animation-delay:-.8s}@keyframes neeto-ui-stretch-delay{0%,40%,to{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}";
930
931
  n(css$1,{});
931
932
 
932
- var _excluded$1 = ["text"];
933
+ var _excluded$2 = ["text"];
933
934
  function cov_1rnptrlqih() {
934
935
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/PageLoader/index.jsx";
935
936
  var hash = "40cda882f932d7a0fcac6bc5ec150d93c0420b62";
@@ -1087,7 +1088,7 @@ cov_1rnptrlqih().s[0]++;
1087
1088
  var PageLoader = function PageLoader(_ref) {
1088
1089
  var _ref$text = _ref.text,
1089
1090
  text = _ref$text === void 0 ? (cov_1rnptrlqih().b[0][0]++, "") : _ref$text,
1090
- otherProps = _objectWithoutProperties(_ref, _excluded$1);
1091
+ otherProps = _objectWithoutProperties(_ref, _excluded$2);
1091
1092
  cov_1rnptrlqih().f[0]++;
1092
1093
  cov_1rnptrlqih().s[1]++;
1093
1094
  return /*#__PURE__*/React__default["default"].createElement("div", _extends({
@@ -1118,155 +1119,164 @@ var PageLoader = function PageLoader(_ref) {
1118
1119
  };
1119
1120
  cov_1rnptrlqih().s[2]++;
1120
1121
 
1121
- function cov_1ceek736tr() {
1122
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/utils.js";
1123
- var hash = "4e99c4492583af7874430eafb0a0c33e80d44e9d";
1122
+ function _typeof(obj) {
1123
+ "@babel/helpers - typeof";
1124
+
1125
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1126
+ return typeof obj;
1127
+ } : function (obj) {
1128
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1129
+ }, _typeof(obj);
1130
+ }
1131
+
1132
+ function _toPrimitive(input, hint) {
1133
+ if (_typeof(input) !== "object" || input === null) return input;
1134
+ var prim = input[Symbol.toPrimitive];
1135
+ if (prim !== undefined) {
1136
+ var res = prim.call(input, hint || "default");
1137
+ if (_typeof(res) !== "object") return res;
1138
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1139
+ }
1140
+ return (hint === "string" ? String : Number)(input);
1141
+ }
1142
+
1143
+ function _toPropertyKey(arg) {
1144
+ var key = _toPrimitive(arg, "string");
1145
+ return _typeof(key) === "symbol" ? key : String(key);
1146
+ }
1147
+
1148
+ function _defineProperty(obj, key, value) {
1149
+ key = _toPropertyKey(key);
1150
+ if (key in obj) {
1151
+ Object.defineProperty(obj, key, {
1152
+ value: value,
1153
+ enumerable: true,
1154
+ configurable: true,
1155
+ writable: true
1156
+ });
1157
+ } else {
1158
+ obj[key] = value;
1159
+ }
1160
+ return obj;
1161
+ }
1162
+
1163
+ var _excluded$1 = ["dropdownProps"],
1164
+ _excluded2 = ["buttonProps"];
1165
+ function cov_1nk47gzsi8() {
1166
+ var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Columns.jsx";
1167
+ var hash = "9f901f9bc4d423cb9b0b0b31492fa4192f1d758f";
1124
1168
  var global = new Function("return this")();
1125
1169
  var gcv = "__coverage__";
1126
1170
  var coverageData = {
1127
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/utils.js",
1171
+ path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Columns.jsx",
1128
1172
  statementMap: {
1129
1173
  "0": {
1130
1174
  start: {
1131
- line: 4,
1132
- column: 34
1175
+ line: 7,
1176
+ column: 16
1133
1177
  },
1134
1178
  end: {
1135
- line: 5,
1136
- column: 65
1179
+ line: 33,
1180
+ column: 1
1137
1181
  }
1138
1182
  },
1139
1183
  "1": {
1140
1184
  start: {
1141
- line: 5,
1142
- column: 2
1185
+ line: 8,
1186
+ column: 16
1143
1187
  },
1144
1188
  end: {
1145
- line: 5,
1146
- column: 65
1189
+ line: 8,
1190
+ column: 32
1147
1191
  }
1148
1192
  },
1149
1193
  "2": {
1150
1194
  start: {
1151
- line: 7,
1152
- column: 34
1195
+ line: 10,
1196
+ column: 48
1153
1197
  },
1154
1198
  end: {
1155
- line: 11,
1156
- column: 3
1199
+ line: 10,
1200
+ column: 61
1157
1201
  }
1158
1202
  },
1159
1203
  "3": {
1160
1204
  start: {
1161
- line: 8,
1205
+ line: 12,
1162
1206
  column: 2
1163
1207
  },
1164
1208
  end: {
1165
- line: 11,
1166
- column: 3
1167
- }
1168
- },
1169
- "4": {
1170
- start: {
1171
- line: 9,
1172
- column: 19
1173
- },
1174
- end: {
1175
- line: 9,
1176
- column: 76
1209
+ line: 32,
1210
+ column: 4
1177
1211
  }
1178
1212
  }
1179
1213
  },
1180
1214
  fnMap: {
1181
1215
  "0": {
1182
1216
  name: "(anonymous_0)",
1183
- decl: {
1184
- start: {
1185
- line: 4,
1186
- column: 34
1187
- },
1188
- end: {
1189
- line: 4,
1190
- column: 35
1191
- }
1192
- },
1193
- loc: {
1194
- start: {
1195
- line: 5,
1196
- column: 2
1197
- },
1198
- end: {
1199
- line: 5,
1200
- column: 65
1201
- }
1202
- },
1203
- line: 5
1204
- },
1205
- "1": {
1206
- name: "(anonymous_1)",
1207
1217
  decl: {
1208
1218
  start: {
1209
1219
  line: 7,
1210
- column: 34
1220
+ column: 16
1211
1221
  },
1212
1222
  end: {
1213
1223
  line: 7,
1214
- column: 35
1224
+ column: 17
1215
1225
  }
1216
1226
  },
1217
1227
  loc: {
1218
1228
  start: {
1219
- line: 8,
1220
- column: 2
1229
+ line: 7,
1230
+ column: 54
1221
1231
  },
1222
1232
  end: {
1223
- line: 11,
1224
- column: 3
1233
+ line: 33,
1234
+ column: 1
1225
1235
  }
1226
1236
  },
1227
- line: 8
1228
- },
1229
- "2": {
1230
- name: "(anonymous_2)",
1231
- decl: {
1237
+ line: 7
1238
+ }
1239
+ },
1240
+ branchMap: {
1241
+ "0": {
1242
+ loc: {
1232
1243
  start: {
1233
- line: 9,
1234
- column: 4
1244
+ line: 7,
1245
+ column: 19
1235
1246
  },
1236
1247
  end: {
1237
- line: 9,
1238
- column: 5
1248
+ line: 7,
1249
+ column: 37
1239
1250
  }
1240
1251
  },
1241
- loc: {
1252
+ type: "default-arg",
1253
+ locations: [{
1242
1254
  start: {
1243
- line: 9,
1244
- column: 19
1255
+ line: 7,
1256
+ column: 35
1245
1257
  },
1246
1258
  end: {
1247
- line: 9,
1248
- column: 76
1259
+ line: 7,
1260
+ column: 37
1249
1261
  }
1250
- },
1251
- line: 9
1262
+ }],
1263
+ line: 7
1252
1264
  }
1253
1265
  },
1254
- branchMap: {},
1255
1266
  s: {
1256
1267
  "0": 0,
1257
1268
  "1": 0,
1258
1269
  "2": 0,
1259
- "3": 0,
1260
- "4": 0
1270
+ "3": 0
1261
1271
  },
1262
1272
  f: {
1263
- "0": 0,
1264
- "1": 0,
1265
- "2": 0
1273
+ "0": 0
1274
+ },
1275
+ b: {
1276
+ "0": [0]
1266
1277
  },
1267
- b: {},
1268
1278
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
1269
- hash: "4e99c4492583af7874430eafb0a0c33e80d44e9d"
1279
+ hash: "9f901f9bc4d423cb9b0b0b31492fa4192f1d758f"
1270
1280
  };
1271
1281
  var coverage = global[gcv] || (global[gcv] = {});
1272
1282
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -1275,905 +1285,80 @@ function cov_1ceek736tr() {
1275
1285
  var actualCoverage = coverage[path];
1276
1286
  {
1277
1287
  // @ts-ignore
1278
- cov_1ceek736tr = function () {
1288
+ cov_1nk47gzsi8 = function () {
1279
1289
  return actualCoverage;
1280
1290
  };
1281
1291
  }
1282
1292
  return actualCoverage;
1283
1293
  }
1284
- cov_1ceek736tr();
1285
- cov_1ceek736tr().s[0]++;
1286
- var removeFixedColumns = function removeFixedColumns(fixedColumns, columnData) {
1287
- cov_1ceek736tr().f[0]++;
1288
- cov_1ceek736tr().s[1]++;
1289
- return pure.removeBy({
1290
- dataIndex: ramda.includes(ramda.__, fixedColumns)
1291
- }, columnData);
1292
- };
1293
- cov_1ceek736tr().s[2]++;
1294
- var filterBySearchTerm = function filterBySearchTerm(searchTerm, columns) {
1295
- cov_1ceek736tr().f[1]++;
1296
- cov_1ceek736tr().s[3]++;
1297
- return ramda.filter(function (_ref) {
1298
- var title = _ref.title;
1299
- cov_1ceek736tr().f[2]++;
1300
- cov_1ceek736tr().s[4]++;
1301
- return ramda.includes(ramda.trim(ramda.toLower(searchTerm)), ramda.trim(ramda.toLower(title)));
1302
- }, columns);
1294
+ cov_1nk47gzsi8();
1295
+ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1296
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1297
+ cov_1nk47gzsi8().s[0]++;
1298
+ var Columns = function Columns(_ref) {
1299
+ var _ref$dropdownProps = _ref.dropdownProps,
1300
+ dropdownProps = _ref$dropdownProps === void 0 ? (cov_1nk47gzsi8().b[0][0]++, {}) : _ref$dropdownProps,
1301
+ props = _objectWithoutProperties(_ref, _excluded$1);
1302
+ cov_1nk47gzsi8().f[0]++;
1303
+ var _ref2 = (cov_1nk47gzsi8().s[1]++, reactI18next.useTranslation()),
1304
+ t = _ref2.t;
1305
+ var _ref3 = (cov_1nk47gzsi8().s[2]++, dropdownProps),
1306
+ buttonProps = _ref3.buttonProps,
1307
+ restDropdownProps = _objectWithoutProperties(_ref3, _excluded2);
1308
+ cov_1nk47gzsi8().s[3]++;
1309
+ return /*#__PURE__*/React__default["default"].createElement("div", {
1310
+ className: "neeto-molecules-subheader__columns"
1311
+ }, /*#__PURE__*/React__default["default"].createElement(ManageColumns__default["default"], _extends({
1312
+ dropdownProps: _objectSpread$2({
1313
+ buttonProps: _objectSpread$2({
1314
+ icon: neetoIcons.Column,
1315
+ label: null,
1316
+ tooltipProps: {
1317
+ content: t("neetoMolecules.columns.columns"),
1318
+ position: "bottom"
1319
+ },
1320
+ "data-testid": "columns-button",
1321
+ "data-cy": "columns-dropdown-button"
1322
+ }, buttonProps)
1323
+ }, restDropdownProps)
1324
+ }, props)));
1303
1325
  };
1304
1326
 
1305
- function cov_1nk47gzsi8() {
1306
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Columns.jsx";
1307
- var hash = "a073b27c47692599de4a6dea8467014f75c0f886";
1327
+ function cov_td1jpvcmw() {
1328
+ var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Download.jsx";
1329
+ var hash = "a2283a341efcaf1ad652751480fdafc6709b57d9";
1308
1330
  var global = new Function("return this")();
1309
1331
  var gcv = "__coverage__";
1310
1332
  var coverageData = {
1311
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Columns.jsx",
1333
+ path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Download.jsx",
1312
1334
  statementMap: {
1313
1335
  "0": {
1314
1336
  start: {
1315
- line: 13,
1316
- column: 16
1337
+ line: 7,
1338
+ column: 23
1317
1339
  },
1318
1340
  end: {
1319
- line: 114,
1341
+ line: 34,
1320
1342
  column: 1
1321
1343
  }
1322
1344
  },
1323
1345
  "1": {
1324
1346
  start: {
1325
- line: 25,
1326
- column: 38
1347
+ line: 12,
1348
+ column: 16
1327
1349
  },
1328
1350
  end: {
1329
- line: 25,
1330
- column: 46
1351
+ line: 12,
1352
+ column: 32
1331
1353
  }
1332
1354
  },
1333
1355
  "2": {
1334
1356
  start: {
1335
- line: 26,
1336
- column: 44
1337
- },
1338
- end: {
1339
- line: 29,
1340
- column: 3
1341
- }
1342
- },
1343
- "3": {
1344
- start: {
1345
- line: 30,
1346
- column: 38
1347
- },
1348
- end: {
1349
- line: 30,
1350
- column: 50
1351
- }
1352
- },
1353
- "4": {
1354
- start: {
1355
- line: 32,
1356
- column: 18
1357
- },
1358
- end: {
1359
- line: 32,
1360
- column: 62
1361
- }
1362
- },
1363
- "5": {
1364
- start: {
1365
- line: 33,
1366
- column: 26
1357
+ line: 14,
1358
+ column: 2
1367
1359
  },
1368
1360
  end: {
1369
1361
  line: 33,
1370
- column: 65
1371
- }
1372
- },
1373
- "6": {
1374
- start: {
1375
- line: 35,
1376
- column: 23
1377
- },
1378
- end: {
1379
- line: 38,
1380
- column: 58
1381
- }
1382
- },
1383
- "7": {
1384
- start: {
1385
- line: 36,
1386
- column: 4
1387
- },
1388
- end: {
1389
- line: 38,
1390
- column: 58
1391
- }
1392
- },
1393
- "8": {
1394
- start: {
1395
- line: 40,
1396
- column: 23
1397
- },
1398
- end: {
1399
- line: 40,
1400
- column: 70
1401
- }
1402
- },
1403
- "9": {
1404
- start: {
1405
- line: 40,
1406
- column: 50
1407
- },
1408
- end: {
1409
- line: 40,
1410
- column: 70
1411
- }
1412
- },
1413
- "10": {
1414
- start: {
1415
- line: 42,
1416
- column: 2
1417
- },
1418
- end: {
1419
- line: 44,
1420
- column: 34
1421
- }
1422
- },
1423
- "11": {
1424
- start: {
1425
- line: 43,
1426
- column: 4
1427
- },
1428
- end: {
1429
- line: 43,
1430
- column: 79
1431
- }
1432
- },
1433
- "12": {
1434
- start: {
1435
- line: 46,
1436
- column: 16
1437
- },
1438
- end: {
1439
- line: 46,
1440
- column: 32
1441
- }
1442
- },
1443
- "13": {
1444
- start: {
1445
- line: 48,
1446
- column: 2
1447
- },
1448
- end: {
1449
- line: 113,
1450
- column: 4
1451
- }
1452
- },
1453
- "14": {
1454
- start: {
1455
- line: 62,
1456
- column: 23
1457
- },
1458
- end: {
1459
- line: 62,
1460
- column: 40
1461
- }
1462
- },
1463
- "15": {
1464
- start: {
1465
- line: 81,
1466
- column: 16
1467
- },
1468
- end: {
1469
- line: 96,
1470
- column: 27
1471
- }
1472
- }
1473
- },
1474
- fnMap: {
1475
- "0": {
1476
- name: "(anonymous_0)",
1477
- decl: {
1478
- start: {
1479
- line: 13,
1480
- column: 16
1481
- },
1482
- end: {
1483
- line: 13,
1484
- column: 17
1485
- }
1486
- },
1487
- loc: {
1488
- start: {
1489
- line: 24,
1490
- column: 6
1491
- },
1492
- end: {
1493
- line: 114,
1494
- column: 1
1495
- }
1496
- },
1497
- line: 24
1498
- },
1499
- "1": {
1500
- name: "(anonymous_1)",
1501
- decl: {
1502
- start: {
1503
- line: 35,
1504
- column: 23
1505
- },
1506
- end: {
1507
- line: 35,
1508
- column: 24
1509
- }
1510
- },
1511
- loc: {
1512
- start: {
1513
- line: 36,
1514
- column: 4
1515
- },
1516
- end: {
1517
- line: 38,
1518
- column: 58
1519
- }
1520
- },
1521
- line: 36
1522
- },
1523
- "2": {
1524
- name: "(anonymous_2)",
1525
- decl: {
1526
- start: {
1527
- line: 40,
1528
- column: 23
1529
- },
1530
- end: {
1531
- line: 40,
1532
- column: 24
1533
- }
1534
- },
1535
- loc: {
1536
- start: {
1537
- line: 40,
1538
- column: 50
1539
- },
1540
- end: {
1541
- line: 40,
1542
- column: 70
1543
- }
1544
- },
1545
- line: 40
1546
- },
1547
- "3": {
1548
- name: "(anonymous_3)",
1549
- decl: {
1550
- start: {
1551
- line: 42,
1552
- column: 12
1553
- },
1554
- end: {
1555
- line: 42,
1556
- column: 13
1557
- }
1558
- },
1559
- loc: {
1560
- start: {
1561
- line: 42,
1562
- column: 18
1563
- },
1564
- end: {
1565
- line: 44,
1566
- column: 3
1567
- }
1568
- },
1569
- line: 42
1570
- },
1571
- "4": {
1572
- name: "(anonymous_4)",
1573
- decl: {
1574
- start: {
1575
- line: 62,
1576
- column: 17
1577
- },
1578
- end: {
1579
- line: 62,
1580
- column: 18
1581
- }
1582
- },
1583
- loc: {
1584
- start: {
1585
- line: 62,
1586
- column: 23
1587
- },
1588
- end: {
1589
- line: 62,
1590
- column: 40
1591
- }
1592
- },
1593
- line: 62
1594
- },
1595
- "5": {
1596
- name: "(anonymous_5)",
1597
- decl: {
1598
- start: {
1599
- line: 80,
1600
- column: 34
1601
- },
1602
- end: {
1603
- line: 80,
1604
- column: 35
1605
- }
1606
- },
1607
- loc: {
1608
- start: {
1609
- line: 81,
1610
- column: 16
1611
- },
1612
- end: {
1613
- line: 96,
1614
- column: 27
1615
- }
1616
- },
1617
- line: 81
1618
- }
1619
- },
1620
- branchMap: {
1621
- "0": {
1622
- loc: {
1623
- start: {
1624
- line: 15,
1625
- column: 2
1626
- },
1627
- end: {
1628
- line: 15,
1629
- column: 20
1630
- }
1631
- },
1632
- type: "default-arg",
1633
- locations: [{
1634
- start: {
1635
- line: 15,
1636
- column: 18
1637
- },
1638
- end: {
1639
- line: 15,
1640
- column: 20
1641
- }
1642
- }],
1643
- line: 15
1644
- },
1645
- "1": {
1646
- loc: {
1647
- start: {
1648
- line: 16,
1649
- column: 2
1650
- },
1651
- end: {
1652
- line: 16,
1653
- column: 17
1654
- }
1655
- },
1656
- type: "default-arg",
1657
- locations: [{
1658
- start: {
1659
- line: 16,
1660
- column: 15
1661
- },
1662
- end: {
1663
- line: 16,
1664
- column: 17
1665
- }
1666
- }],
1667
- line: 16
1668
- },
1669
- "2": {
1670
- loc: {
1671
- start: {
1672
- line: 17,
1673
- column: 2
1674
- },
1675
- end: {
1676
- line: 17,
1677
- column: 20
1678
- }
1679
- },
1680
- type: "default-arg",
1681
- locations: [{
1682
- start: {
1683
- line: 17,
1684
- column: 18
1685
- },
1686
- end: {
1687
- line: 17,
1688
- column: 20
1689
- }
1690
- }],
1691
- line: 17
1692
- },
1693
- "3": {
1694
- loc: {
1695
- start: {
1696
- line: 18,
1697
- column: 2
1698
- },
1699
- end: {
1700
- line: 18,
1701
- column: 19
1702
- }
1703
- },
1704
- type: "default-arg",
1705
- locations: [{
1706
- start: {
1707
- line: 18,
1708
- column: 17
1709
- },
1710
- end: {
1711
- line: 18,
1712
- column: 19
1713
- }
1714
- }],
1715
- line: 18
1716
- },
1717
- "4": {
1718
- loc: {
1719
- start: {
1720
- line: 19,
1721
- column: 2
1722
- },
1723
- end: {
1724
- line: 19,
1725
- column: 22
1726
- }
1727
- },
1728
- type: "default-arg",
1729
- locations: [{
1730
- start: {
1731
- line: 19,
1732
- column: 17
1733
- },
1734
- end: {
1735
- line: 19,
1736
- column: 22
1737
- }
1738
- }],
1739
- line: 19
1740
- },
1741
- "5": {
1742
- loc: {
1743
- start: {
1744
- line: 20,
1745
- column: 2
1746
- },
1747
- end: {
1748
- line: 20,
1749
- column: 22
1750
- }
1751
- },
1752
- type: "default-arg",
1753
- locations: [{
1754
- start: {
1755
- line: 20,
1756
- column: 20
1757
- },
1758
- end: {
1759
- line: 20,
1760
- column: 22
1761
- }
1762
- }],
1763
- line: 20
1764
- },
1765
- "6": {
1766
- loc: {
1767
- start: {
1768
- line: 21,
1769
- column: 2
1770
- },
1771
- end: {
1772
- line: 21,
1773
- column: 65
1774
- }
1775
- },
1776
- type: "default-arg",
1777
- locations: [{
1778
- start: {
1779
- line: 21,
1780
- column: 20
1781
- },
1782
- end: {
1783
- line: 21,
1784
- column: 65
1785
- }
1786
- }],
1787
- line: 21
1788
- },
1789
- "7": {
1790
- loc: {
1791
- start: {
1792
- line: 22,
1793
- column: 2
1794
- },
1795
- end: {
1796
- line: 22,
1797
- column: 21
1798
- }
1799
- },
1800
- type: "default-arg",
1801
- locations: [{
1802
- start: {
1803
- line: 22,
1804
- column: 13
1805
- },
1806
- end: {
1807
- line: 22,
1808
- column: 21
1809
- }
1810
- }],
1811
- line: 22
1812
- },
1813
- "8": {
1814
- loc: {
1815
- start: {
1816
- line: 23,
1817
- column: 2
1818
- },
1819
- end: {
1820
- line: 23,
1821
- column: 18
1822
- }
1823
- },
1824
- type: "default-arg",
1825
- locations: [{
1826
- start: {
1827
- line: 23,
1828
- column: 16
1829
- },
1830
- end: {
1831
- line: 23,
1832
- column: 18
1833
- }
1834
- }],
1835
- line: 23
1836
- },
1837
- "9": {
1838
- loc: {
1839
- start: {
1840
- line: 36,
1841
- column: 4
1842
- },
1843
- end: {
1844
- line: 38,
1845
- column: 58
1846
- }
1847
- },
1848
- type: "cond-expr",
1849
- locations: [{
1850
- start: {
1851
- line: 37,
1852
- column: 8
1853
- },
1854
- end: {
1855
- line: 37,
1856
- column: 61
1857
- }
1858
- }, {
1859
- start: {
1860
- line: 38,
1861
- column: 8
1862
- },
1863
- end: {
1864
- line: 38,
1865
- column: 58
1866
- }
1867
- }],
1868
- line: 36
1869
- },
1870
- "10": {
1871
- loc: {
1872
- start: {
1873
- line: 67,
1874
- column: 13
1875
- },
1876
- end: {
1877
- line: 78,
1878
- column: 13
1879
- }
1880
- },
1881
- type: "binary-expr",
1882
- locations: [{
1883
- start: {
1884
- line: 67,
1885
- column: 13
1886
- },
1887
- end: {
1888
- line: 67,
1889
- column: 25
1890
- }
1891
- }, {
1892
- start: {
1893
- line: 68,
1894
- column: 14
1895
- },
1896
- end: {
1897
- line: 77,
1898
- column: 16
1899
- }
1900
- }],
1901
- line: 67
1902
- },
1903
- "11": {
1904
- loc: {
1905
- start: {
1906
- line: 79,
1907
- column: 13
1908
- },
1909
- end: {
1910
- line: 102,
1911
- column: 13
1912
- }
1913
- },
1914
- type: "cond-expr",
1915
- locations: [{
1916
- start: {
1917
- line: 80,
1918
- column: 14
1919
- },
1920
- end: {
1921
- line: 97,
1922
- column: 16
1923
- }
1924
- }, {
1925
- start: {
1926
- line: 99,
1927
- column: 14
1928
- },
1929
- end: {
1930
- line: 101,
1931
- column: 21
1932
- }
1933
- }],
1934
- line: 79
1935
- },
1936
- "12": {
1937
- loc: {
1938
- start: {
1939
- line: 103,
1940
- column: 13
1941
- },
1942
- end: {
1943
- line: 108,
1944
- column: 13
1945
- }
1946
- },
1947
- type: "binary-expr",
1948
- locations: [{
1949
- start: {
1950
- line: 103,
1951
- column: 13
1952
- },
1953
- end: {
1954
- line: 103,
1955
- column: 26
1956
- }
1957
- }, {
1958
- start: {
1959
- line: 104,
1960
- column: 14
1961
- },
1962
- end: {
1963
- line: 107,
1964
- column: 17
1965
- }
1966
- }],
1967
- line: 103
1968
- }
1969
- },
1970
- s: {
1971
- "0": 0,
1972
- "1": 0,
1973
- "2": 0,
1974
- "3": 0,
1975
- "4": 0,
1976
- "5": 0,
1977
- "6": 0,
1978
- "7": 0,
1979
- "8": 0,
1980
- "9": 0,
1981
- "10": 0,
1982
- "11": 0,
1983
- "12": 0,
1984
- "13": 0,
1985
- "14": 0,
1986
- "15": 0
1987
- },
1988
- f: {
1989
- "0": 0,
1990
- "1": 0,
1991
- "2": 0,
1992
- "3": 0,
1993
- "4": 0,
1994
- "5": 0
1995
- },
1996
- b: {
1997
- "0": [0],
1998
- "1": [0],
1999
- "2": [0],
2000
- "3": [0],
2001
- "4": [0],
2002
- "5": [0],
2003
- "6": [0],
2004
- "7": [0],
2005
- "8": [0],
2006
- "9": [0, 0],
2007
- "10": [0, 0],
2008
- "11": [0, 0],
2009
- "12": [0, 0]
2010
- },
2011
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
2012
- hash: "a073b27c47692599de4a6dea8467014f75c0f886"
2013
- };
2014
- var coverage = global[gcv] || (global[gcv] = {});
2015
- if (!coverage[path] || coverage[path].hash !== hash) {
2016
- coverage[path] = coverageData;
2017
- }
2018
- var actualCoverage = coverage[path];
2019
- {
2020
- // @ts-ignore
2021
- cov_1nk47gzsi8 = function () {
2022
- return actualCoverage;
2023
- };
2024
- }
2025
- return actualCoverage;
2026
- }
2027
- cov_1nk47gzsi8();
2028
- cov_1nk47gzsi8().s[0]++;
2029
- var Columns = function Columns(_ref) {
2030
- var actionBlock = _ref.actionBlock,
2031
- _ref$checkboxProps = _ref.checkboxProps,
2032
- checkboxProps = _ref$checkboxProps === void 0 ? (cov_1nk47gzsi8().b[0][0]++, {}) : _ref$checkboxProps,
2033
- _ref$columnData = _ref.columnData,
2034
- columnData = _ref$columnData === void 0 ? (cov_1nk47gzsi8().b[1][0]++, []) : _ref$columnData,
2035
- _ref$dropdownProps = _ref.dropdownProps,
2036
- dropdownProps = _ref$dropdownProps === void 0 ? (cov_1nk47gzsi8().b[2][0]++, {}) : _ref$dropdownProps,
2037
- _ref$fixedColumns = _ref.fixedColumns,
2038
- fixedColumns = _ref$fixedColumns === void 0 ? (cov_1nk47gzsi8().b[3][0]++, []) : _ref$fixedColumns,
2039
- _ref$isSearchable = _ref.isSearchable,
2040
- isSearchable = _ref$isSearchable === void 0 ? (cov_1nk47gzsi8().b[4][0]++, false) : _ref$isSearchable,
2041
- _ref$localStorageKey = _ref.localStorageKey,
2042
- localStorageKey = _ref$localStorageKey === void 0 ? (cov_1nk47gzsi8().b[5][0]++, "") : _ref$localStorageKey,
2043
- _ref$noColumnMessage = _ref.noColumnMessage,
2044
- noColumnMessage = _ref$noColumnMessage === void 0 ? (cov_1nk47gzsi8().b[6][0]++, i18next__default["default"].t("neetoMolecules.columns.noColumns")) : _ref$noColumnMessage,
2045
- _ref$onChange = _ref.onChange,
2046
- onChange = _ref$onChange === void 0 ? (cov_1nk47gzsi8().b[7][0]++, ramda.identity) : _ref$onChange,
2047
- _ref$searchProps = _ref.searchProps,
2048
- searchProps = _ref$searchProps === void 0 ? (cov_1nk47gzsi8().b[8][0]++, {}) : _ref$searchProps;
2049
- cov_1nk47gzsi8().f[0]++;
2050
- var _ref2 = (cov_1nk47gzsi8().s[1]++, neetoui.Dropdown),
2051
- Divider = _ref2.Divider,
2052
- Menu = _ref2.Menu,
2053
- MenuItem = _ref2.MenuItem;
2054
- var _ref3 = (cov_1nk47gzsi8().s[2]++, reactUtils.useLocalStorage(localStorageKey, [])),
2055
- _ref4 = _slicedToArray(_ref3, 2),
2056
- hiddenColumns = _ref4[0],
2057
- setHiddenColumns = _ref4[1];
2058
- var _ref5 = (cov_1nk47gzsi8().s[3]++, React.useState("")),
2059
- _ref6 = _slicedToArray(_ref5, 2),
2060
- searchTerm = _ref6[0],
2061
- setSearchTerm = _ref6[1];
2062
- var columns = (cov_1nk47gzsi8().s[4]++, removeFixedColumns(fixedColumns, columnData));
2063
- var filteredColumns = (cov_1nk47gzsi8().s[5]++, filterBySearchTerm(searchTerm, columns));
2064
- cov_1nk47gzsi8().s[6]++;
2065
- var handleChange = function handleChange(_ref7) {
2066
- var _ref7$target = _ref7.target,
2067
- dataIndex = _ref7$target.name,
2068
- checked = _ref7$target.checked;
2069
- cov_1nk47gzsi8().f[1]++;
2070
- cov_1nk47gzsi8().s[7]++;
2071
- return checked ? (cov_1nk47gzsi8().b[9][0]++, setHiddenColumns(ramda.without([dataIndex], hiddenColumns))) : (cov_1nk47gzsi8().b[9][1]++, setHiddenColumns(ramda.append(dataIndex, hiddenColumns)));
2072
- };
2073
- cov_1nk47gzsi8().s[8]++;
2074
- var handleSearch = function handleSearch(_ref8) {
2075
- var value = _ref8.target.value;
2076
- cov_1nk47gzsi8().f[2]++;
2077
- cov_1nk47gzsi8().s[9]++;
2078
- return setSearchTerm(value);
2079
- };
2080
- cov_1nk47gzsi8().s[10]++;
2081
- React.useEffect(function () {
2082
- cov_1nk47gzsi8().f[3]++;
2083
- cov_1nk47gzsi8().s[11]++;
2084
- onChange(pure.removeBy({
2085
- dataIndex: ramda.includes(ramda.__, hiddenColumns)
2086
- }, columnData));
2087
- }, [columnData, hiddenColumns]);
2088
- var _ref9 = (cov_1nk47gzsi8().s[12]++, reactI18next.useTranslation()),
2089
- t = _ref9.t;
2090
- cov_1nk47gzsi8().s[13]++;
2091
- return /*#__PURE__*/React__default["default"].createElement("div", {
2092
- className: "neeto-molecules-subheader__columns"
2093
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, _extends({
2094
- buttonStyle: "text",
2095
- closeOnSelect: false,
2096
- position: "bottom-end",
2097
- buttonProps: {
2098
- icon: neetoIcons.Column,
2099
- tooltipProps: {
2100
- content: t("neetoMolecules.columns.columns"),
2101
- position: "bottom"
2102
- },
2103
- "data-testid": "columns-button"
2104
- },
2105
- onClose: function onClose() {
2106
- cov_1nk47gzsi8().f[4]++;
2107
- cov_1nk47gzsi8().s[14]++;
2108
- return setSearchTerm("");
2109
- }
2110
- }, dropdownProps), /*#__PURE__*/React__default["default"].createElement(Menu, null, /*#__PURE__*/React__default["default"].createElement("div", null, (cov_1nk47gzsi8().b[10][0]++, isSearchable) && (cov_1nk47gzsi8().b[10][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends({
2111
- className: "neeto-ui-px-3 neeto-ui-py-2",
2112
- "data-cy": "neeto-ui-columns-search",
2113
- placeholder: t("neetoMolecules.columns.search"),
2114
- prefix: /*#__PURE__*/React__default["default"].createElement(neetoIcons.Search, null),
2115
- type: "search",
2116
- value: searchTerm,
2117
- onChange: handleSearch
2118
- }, searchProps))), pure.isNotEmpty(filteredColumns) ? (cov_1nk47gzsi8().b[11][0]++, filteredColumns.map(function (_ref10) {
2119
- var dataIndex = _ref10.dataIndex,
2120
- key = _ref10.key,
2121
- title = _ref10.title;
2122
- cov_1nk47gzsi8().f[5]++;
2123
- cov_1nk47gzsi8().s[15]++;
2124
- return /*#__PURE__*/React__default["default"].createElement(MenuItem, {
2125
- key: key
2126
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, {
2127
- className: "neeto-ui-w-full neeto-ui-px-3 neeto-ui-py-2 hover:neeto-ui-bg-gray-200 neeto-ui-cursor-pointer",
2128
- htmlFor: dataIndex
2129
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Checkbox, _extends({
2130
- checked: !hiddenColumns.includes(dataIndex),
2131
- "data-cy": "neeto-ui-columns-checkbox",
2132
- id: dataIndex,
2133
- label: title,
2134
- name: dataIndex,
2135
- onChange: handleChange
2136
- }, checkboxProps))));
2137
- })) : (cov_1nk47gzsi8().b[11][1]++, /*#__PURE__*/React__default["default"].createElement("span", {
2138
- className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-p-2"
2139
- }, noColumnMessage)), (cov_1nk47gzsi8().b[12][0]++, !!actionBlock) && (cov_1nk47gzsi8().b[12][1]++, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Divider, null), actionBlock))))));
2140
- };
2141
-
2142
- function cov_td1jpvcmw() {
2143
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Download.jsx";
2144
- var hash = "bfd5034300eaa044c3c9eed37cbd2988c7b9f42b";
2145
- var global = new Function("return this")();
2146
- var gcv = "__coverage__";
2147
- var coverageData = {
2148
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Download.jsx",
2149
- statementMap: {
2150
- "0": {
2151
- start: {
2152
- line: 7,
2153
- column: 23
2154
- },
2155
- end: {
2156
- line: 29,
2157
- column: 1
2158
- }
2159
- },
2160
- "1": {
2161
- start: {
2162
- line: 8,
2163
- column: 16
2164
- },
2165
- end: {
2166
- line: 8,
2167
- column: 32
2168
- }
2169
- },
2170
- "2": {
2171
- start: {
2172
- line: 10,
2173
- column: 2
2174
- },
2175
- end: {
2176
- line: 28,
2177
1362
  column: 4
2178
1363
  }
2179
1364
  }
@@ -2193,50 +1378,74 @@ function cov_td1jpvcmw() {
2193
1378
  },
2194
1379
  loc: {
2195
1380
  start: {
2196
- line: 7,
2197
- column: 47
1381
+ line: 11,
1382
+ column: 6
2198
1383
  },
2199
1384
  end: {
2200
- line: 29,
1385
+ line: 34,
2201
1386
  column: 1
2202
1387
  }
2203
1388
  },
2204
- line: 7
1389
+ line: 11
2205
1390
  }
2206
1391
  },
2207
1392
  branchMap: {
2208
1393
  "0": {
2209
1394
  loc: {
2210
1395
  start: {
2211
- line: 22,
1396
+ line: 10,
1397
+ column: 13
1398
+ },
1399
+ end: {
1400
+ line: 10,
1401
+ column: 39
1402
+ }
1403
+ },
1404
+ type: "default-arg",
1405
+ locations: [{
1406
+ start: {
1407
+ line: 10,
1408
+ column: 22
1409
+ },
1410
+ end: {
1411
+ line: 10,
1412
+ column: 39
1413
+ }
1414
+ }],
1415
+ line: 10
1416
+ },
1417
+ "1": {
1418
+ loc: {
1419
+ start: {
1420
+ line: 27,
2212
1421
  column: 7
2213
1422
  },
2214
1423
  end: {
2215
- line: 26,
1424
+ line: 31,
2216
1425
  column: 7
2217
1426
  }
2218
1427
  },
2219
1428
  type: "binary-expr",
2220
1429
  locations: [{
2221
1430
  start: {
2222
- line: 22,
1431
+ line: 27,
2223
1432
  column: 7
2224
1433
  },
2225
1434
  end: {
2226
- line: 22,
1435
+ line: 27,
2227
1436
  column: 12
2228
1437
  }
2229
1438
  }, {
2230
1439
  start: {
2231
- line: 23,
1440
+ line: 28,
2232
1441
  column: 8
2233
1442
  },
2234
1443
  end: {
2235
- line: 25,
1444
+ line: 30,
2236
1445
  column: 15
2237
1446
  }
2238
1447
  }],
2239
- line: 22
1448
+ line: 27
2240
1449
  }
2241
1450
  },
2242
1451
  s: {
@@ -2248,10 +1457,11 @@ function cov_td1jpvcmw() {
2248
1457
  "0": 0
2249
1458
  },
2250
1459
  b: {
2251
- "0": [0, 0]
1460
+ "0": [0],
1461
+ "1": [0, 0]
2252
1462
  },
2253
1463
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
2254
- hash: "bfd5034300eaa044c3c9eed37cbd2988c7b9f42b"
1464
+ hash: "a2283a341efcaf1ad652751480fdafc6709b57d9"
2255
1465
  };
2256
1466
  var coverage = global[gcv] || (global[gcv] = {});
2257
1467
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -2270,7 +1480,9 @@ cov_td1jpvcmw();
2270
1480
  cov_td1jpvcmw().s[0]++;
2271
1481
  var DownloadButton = function DownloadButton(_ref) {
2272
1482
  var count = _ref.count,
2273
- onClick = _ref.onClick;
1483
+ onClick = _ref.onClick,
1484
+ _ref$dataCy = _ref["data-cy"],
1485
+ dataCy = _ref$dataCy === void 0 ? (cov_td1jpvcmw().b[0][0]++, "download-button") : _ref$dataCy;
2274
1486
  cov_td1jpvcmw().f[0]++;
2275
1487
  var _ref2 = (cov_td1jpvcmw().s[1]++, reactI18next.useTranslation()),
2276
1488
  t = _ref2.t;
@@ -2278,6 +1490,7 @@ var DownloadButton = function DownloadButton(_ref) {
2278
1490
  return /*#__PURE__*/React__default["default"].createElement("div", {
2279
1491
  className: "neeto-molecules-subheader__download"
2280
1492
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
1493
+ "data-cy": dataCy,
2281
1494
  "data-testid": "download-button",
2282
1495
  icon: neetoIcons.Download,
2283
1496
  style: "text",
@@ -2286,56 +1499,15 @@ var DownloadButton = function DownloadButton(_ref) {
2286
1499
  position: "bottom"
2287
1500
  },
2288
1501
  onClick: onClick
2289
- }), (cov_td1jpvcmw().b[0][0]++, count) && (cov_td1jpvcmw().b[0][1]++, /*#__PURE__*/React__default["default"].createElement("span", {
1502
+ }), (cov_td1jpvcmw().b[1][0]++, count) && (cov_td1jpvcmw().b[1][1]++, /*#__PURE__*/React__default["default"].createElement("span", {
2290
1503
  className: "neeto-molecules-subheader__download-count"
2291
1504
  }, count)));
2292
1505
  };
2293
1506
 
2294
- function _typeof(obj) {
2295
- "@babel/helpers - typeof";
2296
-
2297
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
2298
- return typeof obj;
2299
- } : function (obj) {
2300
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2301
- }, _typeof(obj);
2302
- }
2303
-
2304
- function _toPrimitive(input, hint) {
2305
- if (_typeof(input) !== "object" || input === null) return input;
2306
- var prim = input[Symbol.toPrimitive];
2307
- if (prim !== undefined) {
2308
- var res = prim.call(input, hint || "default");
2309
- if (_typeof(res) !== "object") return res;
2310
- throw new TypeError("@@toPrimitive must return a primitive value.");
2311
- }
2312
- return (hint === "string" ? String : Number)(input);
2313
- }
2314
-
2315
- function _toPropertyKey(arg) {
2316
- var key = _toPrimitive(arg, "string");
2317
- return _typeof(key) === "symbol" ? key : String(key);
2318
- }
2319
-
2320
- function _defineProperty(obj, key, value) {
2321
- key = _toPropertyKey(key);
2322
- if (key in obj) {
2323
- Object.defineProperty(obj, key, {
2324
- value: value,
2325
- enumerable: true,
2326
- configurable: true,
2327
- writable: true
2328
- });
2329
- } else {
2330
- obj[key] = value;
2331
- }
2332
- return obj;
2333
- }
2334
-
2335
1507
  var _excluded = ["buttonProps"];
2336
1508
  function cov_m5zh4tynr() {
2337
1509
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Filter.jsx";
2338
- var hash = "ccf07ab7fbe2e20d51a0eb8a8009a0ad5956d118";
1510
+ var hash = "15fd106418316fa8f49263416bc0aea91d893139";
2339
1511
  var global = new Function("return this")();
2340
1512
  var gcv = "__coverage__";
2341
1513
  var coverageData = {
@@ -2347,7 +1519,7 @@ function cov_m5zh4tynr() {
2347
1519
  column: 21
2348
1520
  },
2349
1521
  end: {
2350
- line: 28,
1522
+ line: 29,
2351
1523
  column: 1
2352
1524
  }
2353
1525
  },
@@ -2367,7 +1539,7 @@ function cov_m5zh4tynr() {
2367
1539
  column: 2
2368
1540
  },
2369
1541
  end: {
2370
- line: 27,
1542
+ line: 28,
2371
1543
  column: 4
2372
1544
  }
2373
1545
  }
@@ -2391,7 +1563,7 @@ function cov_m5zh4tynr() {
2391
1563
  column: 52
2392
1564
  },
2393
1565
  end: {
2394
- line: 28,
1566
+ line: 29,
2395
1567
  column: 1
2396
1568
  }
2397
1569
  },
@@ -2409,7 +1581,7 @@ function cov_m5zh4tynr() {
2409
1581
  },
2410
1582
  b: {},
2411
1583
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
2412
- hash: "ccf07ab7fbe2e20d51a0eb8a8009a0ad5956d118"
1584
+ hash: "15fd106418316fa8f49263416bc0aea91d893139"
2413
1585
  };
2414
1586
  var coverage = global[gcv] || (global[gcv] = {});
2415
1587
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -2440,6 +1612,7 @@ var FilterButton = function FilterButton(_ref) {
2440
1612
  }, /*#__PURE__*/React__default["default"].createElement(neetoFiltersFrontend.Filters, _extends({
2441
1613
  buttonProps: _objectSpread$1({
2442
1614
  "data-testid": "filter-button",
1615
+ "data-cy": "neeto-filters-button",
2443
1616
  icon: neetoIcons.Filter,
2444
1617
  style: "text",
2445
1618
  tooltipProps: {