@bigbinary/neeto-molecules 1.0.24 → 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.
@@ -1,19 +1,16 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var i18next = require('i18next');
5
- var pure = require('@bigbinary/neeto-commons-frontend/pure');
6
- var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
7
4
  var neetoIcons = require('@bigbinary/neeto-icons');
8
- var neetoui = require('@bigbinary/neetoui');
9
- var ramda = require('ramda');
5
+ var ManageColumns = require('@bigbinary/neeto-molecules/Columns');
10
6
  var reactI18next = require('react-i18next');
7
+ var neetoui = require('@bigbinary/neetoui');
11
8
  var neetoFiltersFrontend = require('@bigbinary/neeto-filters-frontend');
12
9
 
13
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
11
 
15
12
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
- var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
13
+ var ManageColumns__default = /*#__PURE__*/_interopDefaultLegacy(ManageColumns);
17
14
 
18
15
  var classnames$1 = {exports: {}};
19
16
 
@@ -91,953 +88,193 @@ function _extends() {
91
88
  return _extends.apply(this, arguments);
92
89
  }
93
90
 
94
- function _arrayWithHoles(arr) {
95
- if (Array.isArray(arr)) return arr;
96
- }
91
+ function _typeof(obj) {
92
+ "@babel/helpers - typeof";
97
93
 
98
- function _iterableToArrayLimit(arr, i) {
99
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
100
- if (null != _i) {
101
- var _s,
102
- _e,
103
- _x,
104
- _r,
105
- _arr = [],
106
- _n = !0,
107
- _d = !1;
108
- try {
109
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
110
- if (Object(_i) !== _i) return;
111
- _n = !1;
112
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
113
- } catch (err) {
114
- _d = !0, _e = err;
115
- } finally {
116
- try {
117
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
118
- } finally {
119
- if (_d) throw _e;
120
- }
121
- }
122
- return _arr;
123
- }
94
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
95
+ return typeof obj;
96
+ } : function (obj) {
97
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
98
+ }, _typeof(obj);
124
99
  }
125
100
 
126
- function _arrayLikeToArray(arr, len) {
127
- if (len == null || len > arr.length) len = arr.length;
128
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
129
- return arr2;
101
+ function _toPrimitive(input, hint) {
102
+ if (_typeof(input) !== "object" || input === null) return input;
103
+ var prim = input[Symbol.toPrimitive];
104
+ if (prim !== undefined) {
105
+ var res = prim.call(input, hint || "default");
106
+ if (_typeof(res) !== "object") return res;
107
+ throw new TypeError("@@toPrimitive must return a primitive value.");
108
+ }
109
+ return (hint === "string" ? String : Number)(input);
130
110
  }
131
111
 
132
- function _unsupportedIterableToArray(o, minLen) {
133
- if (!o) return;
134
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
135
- var n = Object.prototype.toString.call(o).slice(8, -1);
136
- if (n === "Object" && o.constructor) n = o.constructor.name;
137
- if (n === "Map" || n === "Set") return Array.from(o);
138
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
112
+ function _toPropertyKey(arg) {
113
+ var key = _toPrimitive(arg, "string");
114
+ return _typeof(key) === "symbol" ? key : String(key);
139
115
  }
140
116
 
141
- function _nonIterableRest() {
142
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
117
+ function _defineProperty(obj, key, value) {
118
+ key = _toPropertyKey(key);
119
+ if (key in obj) {
120
+ Object.defineProperty(obj, key, {
121
+ value: value,
122
+ enumerable: true,
123
+ configurable: true,
124
+ writable: true
125
+ });
126
+ } else {
127
+ obj[key] = value;
128
+ }
129
+ return obj;
143
130
  }
144
131
 
145
- function _slicedToArray(arr, i) {
146
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
132
+ function _objectWithoutPropertiesLoose(source, excluded) {
133
+ if (source == null) return {};
134
+ var target = {};
135
+ var sourceKeys = Object.keys(source);
136
+ var key, i;
137
+ for (i = 0; i < sourceKeys.length; i++) {
138
+ key = sourceKeys[i];
139
+ if (excluded.indexOf(key) >= 0) continue;
140
+ target[key] = source[key];
141
+ }
142
+ return target;
147
143
  }
148
144
 
149
- function cov_1ceek736tr() {
150
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/utils.js";
151
- var hash = "4e99c4492583af7874430eafb0a0c33e80d44e9d";
152
- var global = new Function("return this")();
153
- var gcv = "__coverage__";
154
- var coverageData = {
155
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/utils.js",
156
- statementMap: {
157
- "0": {
158
- start: {
159
- line: 4,
160
- column: 34
161
- },
162
- end: {
163
- line: 5,
164
- column: 65
165
- }
166
- },
167
- "1": {
168
- start: {
169
- line: 5,
170
- column: 2
171
- },
172
- end: {
173
- line: 5,
174
- column: 65
175
- }
176
- },
177
- "2": {
178
- start: {
179
- line: 7,
180
- column: 34
181
- },
182
- end: {
183
- line: 11,
184
- column: 3
185
- }
186
- },
187
- "3": {
188
- start: {
189
- line: 8,
190
- column: 2
191
- },
192
- end: {
193
- line: 11,
194
- column: 3
195
- }
196
- },
197
- "4": {
198
- start: {
199
- line: 9,
200
- column: 19
201
- },
202
- end: {
203
- line: 9,
204
- column: 76
205
- }
206
- }
207
- },
208
- fnMap: {
209
- "0": {
210
- name: "(anonymous_0)",
211
- decl: {
212
- start: {
213
- line: 4,
214
- column: 34
215
- },
216
- end: {
217
- line: 4,
218
- column: 35
219
- }
220
- },
221
- loc: {
222
- start: {
223
- line: 5,
224
- column: 2
225
- },
226
- end: {
227
- line: 5,
228
- column: 65
229
- }
230
- },
231
- line: 5
232
- },
233
- "1": {
234
- name: "(anonymous_1)",
235
- decl: {
236
- start: {
237
- line: 7,
238
- column: 34
239
- },
240
- end: {
241
- line: 7,
242
- column: 35
243
- }
244
- },
245
- loc: {
246
- start: {
247
- line: 8,
248
- column: 2
249
- },
250
- end: {
251
- line: 11,
252
- column: 3
253
- }
254
- },
255
- line: 8
256
- },
257
- "2": {
258
- name: "(anonymous_2)",
259
- decl: {
260
- start: {
261
- line: 9,
262
- column: 4
263
- },
264
- end: {
265
- line: 9,
266
- column: 5
267
- }
268
- },
269
- loc: {
270
- start: {
271
- line: 9,
272
- column: 19
273
- },
274
- end: {
275
- line: 9,
276
- column: 76
277
- }
278
- },
279
- line: 9
280
- }
281
- },
282
- branchMap: {},
283
- s: {
284
- "0": 0,
285
- "1": 0,
286
- "2": 0,
287
- "3": 0,
288
- "4": 0
289
- },
290
- f: {
291
- "0": 0,
292
- "1": 0,
293
- "2": 0
294
- },
295
- b: {},
296
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
297
- hash: "4e99c4492583af7874430eafb0a0c33e80d44e9d"
298
- };
299
- var coverage = global[gcv] || (global[gcv] = {});
300
- if (!coverage[path] || coverage[path].hash !== hash) {
301
- coverage[path] = coverageData;
302
- }
303
- var actualCoverage = coverage[path];
304
- {
305
- // @ts-ignore
306
- cov_1ceek736tr = function () {
307
- return actualCoverage;
308
- };
145
+ function _objectWithoutProperties(source, excluded) {
146
+ if (source == null) return {};
147
+ var target = _objectWithoutPropertiesLoose(source, excluded);
148
+ var key, i;
149
+ if (Object.getOwnPropertySymbols) {
150
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
151
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
152
+ key = sourceSymbolKeys[i];
153
+ if (excluded.indexOf(key) >= 0) continue;
154
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
155
+ target[key] = source[key];
156
+ }
309
157
  }
310
- return actualCoverage;
158
+ return target;
311
159
  }
312
- cov_1ceek736tr();
313
- cov_1ceek736tr().s[0]++;
314
- var removeFixedColumns = function removeFixedColumns(fixedColumns, columnData) {
315
- cov_1ceek736tr().f[0]++;
316
- cov_1ceek736tr().s[1]++;
317
- return pure.removeBy({
318
- dataIndex: ramda.includes(ramda.__, fixedColumns)
319
- }, columnData);
320
- };
321
- cov_1ceek736tr().s[2]++;
322
- var filterBySearchTerm = function filterBySearchTerm(searchTerm, columns) {
323
- cov_1ceek736tr().f[1]++;
324
- cov_1ceek736tr().s[3]++;
325
- return ramda.filter(function (_ref) {
326
- var title = _ref.title;
327
- cov_1ceek736tr().f[2]++;
328
- cov_1ceek736tr().s[4]++;
329
- return ramda.includes(ramda.trim(ramda.toLower(searchTerm)), ramda.trim(ramda.toLower(title)));
330
- }, columns);
331
- };
332
160
 
161
+ var _excluded$1 = ["dropdownProps"],
162
+ _excluded2 = ["buttonProps"];
333
163
  function cov_1nk47gzsi8() {
334
164
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Columns.jsx";
335
- var hash = "a073b27c47692599de4a6dea8467014f75c0f886";
165
+ var hash = "9f901f9bc4d423cb9b0b0b31492fa4192f1d758f";
336
166
  var global = new Function("return this")();
337
167
  var gcv = "__coverage__";
338
168
  var coverageData = {
339
169
  path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Columns.jsx",
340
170
  statementMap: {
341
171
  "0": {
342
- start: {
343
- line: 13,
344
- column: 16
345
- },
346
- end: {
347
- line: 114,
348
- column: 1
349
- }
350
- },
351
- "1": {
352
- start: {
353
- line: 25,
354
- column: 38
355
- },
356
- end: {
357
- line: 25,
358
- column: 46
359
- }
360
- },
361
- "2": {
362
- start: {
363
- line: 26,
364
- column: 44
365
- },
366
- end: {
367
- line: 29,
368
- column: 3
369
- }
370
- },
371
- "3": {
372
- start: {
373
- line: 30,
374
- column: 38
375
- },
376
- end: {
377
- line: 30,
378
- column: 50
379
- }
380
- },
381
- "4": {
382
- start: {
383
- line: 32,
384
- column: 18
385
- },
386
- end: {
387
- line: 32,
388
- column: 62
389
- }
390
- },
391
- "5": {
392
- start: {
393
- line: 33,
394
- column: 26
395
- },
396
- end: {
397
- line: 33,
398
- column: 65
399
- }
400
- },
401
- "6": {
402
- start: {
403
- line: 35,
404
- column: 23
405
- },
406
- end: {
407
- line: 38,
408
- column: 58
409
- }
410
- },
411
- "7": {
412
- start: {
413
- line: 36,
414
- column: 4
415
- },
416
- end: {
417
- line: 38,
418
- column: 58
419
- }
420
- },
421
- "8": {
422
- start: {
423
- line: 40,
424
- column: 23
425
- },
426
- end: {
427
- line: 40,
428
- column: 70
429
- }
430
- },
431
- "9": {
432
- start: {
433
- line: 40,
434
- column: 50
435
- },
436
- end: {
437
- line: 40,
438
- column: 70
439
- }
440
- },
441
- "10": {
442
- start: {
443
- line: 42,
444
- column: 2
445
- },
446
- end: {
447
- line: 44,
448
- column: 34
449
- }
450
- },
451
- "11": {
452
- start: {
453
- line: 43,
454
- column: 4
455
- },
456
- end: {
457
- line: 43,
458
- column: 79
459
- }
460
- },
461
- "12": {
462
- start: {
463
- line: 46,
464
- column: 16
465
- },
466
- end: {
467
- line: 46,
468
- column: 32
469
- }
470
- },
471
- "13": {
472
- start: {
473
- line: 48,
474
- column: 2
475
- },
476
- end: {
477
- line: 113,
478
- column: 4
479
- }
480
- },
481
- "14": {
482
- start: {
483
- line: 62,
484
- column: 23
485
- },
486
- end: {
487
- line: 62,
488
- column: 40
489
- }
490
- },
491
- "15": {
492
- start: {
493
- line: 81,
494
- column: 16
495
- },
496
- end: {
497
- line: 96,
498
- column: 27
499
- }
500
- }
501
- },
502
- fnMap: {
503
- "0": {
504
- name: "(anonymous_0)",
505
- decl: {
506
- start: {
507
- line: 13,
508
- column: 16
509
- },
510
- end: {
511
- line: 13,
512
- column: 17
513
- }
514
- },
515
- loc: {
516
- start: {
517
- line: 24,
518
- column: 6
519
- },
520
- end: {
521
- line: 114,
522
- column: 1
523
- }
524
- },
525
- line: 24
526
- },
527
- "1": {
528
- name: "(anonymous_1)",
529
- decl: {
530
- start: {
531
- line: 35,
532
- column: 23
533
- },
534
- end: {
535
- line: 35,
536
- column: 24
537
- }
538
- },
539
- loc: {
540
- start: {
541
- line: 36,
542
- column: 4
543
- },
544
- end: {
545
- line: 38,
546
- column: 58
547
- }
548
- },
549
- line: 36
550
- },
551
- "2": {
552
- name: "(anonymous_2)",
553
- decl: {
554
- start: {
555
- line: 40,
556
- column: 23
557
- },
558
- end: {
559
- line: 40,
560
- column: 24
561
- }
562
- },
563
- loc: {
564
- start: {
565
- line: 40,
566
- column: 50
567
- },
568
- end: {
569
- line: 40,
570
- column: 70
571
- }
572
- },
573
- line: 40
574
- },
575
- "3": {
576
- name: "(anonymous_3)",
577
- decl: {
578
- start: {
579
- line: 42,
580
- column: 12
581
- },
582
- end: {
583
- line: 42,
584
- column: 13
585
- }
586
- },
587
- loc: {
588
- start: {
589
- line: 42,
590
- column: 18
591
- },
592
- end: {
593
- line: 44,
594
- column: 3
595
- }
596
- },
597
- line: 42
598
- },
599
- "4": {
600
- name: "(anonymous_4)",
601
- decl: {
602
- start: {
603
- line: 62,
604
- column: 17
605
- },
606
- end: {
607
- line: 62,
608
- column: 18
609
- }
610
- },
611
- loc: {
612
- start: {
613
- line: 62,
614
- column: 23
615
- },
616
- end: {
617
- line: 62,
618
- column: 40
619
- }
620
- },
621
- line: 62
622
- },
623
- "5": {
624
- name: "(anonymous_5)",
625
- decl: {
626
- start: {
627
- line: 80,
628
- column: 34
629
- },
630
- end: {
631
- line: 80,
632
- column: 35
633
- }
634
- },
635
- loc: {
636
- start: {
637
- line: 81,
638
- column: 16
639
- },
640
- end: {
641
- line: 96,
642
- column: 27
643
- }
644
- },
645
- line: 81
646
- }
647
- },
648
- branchMap: {
649
- "0": {
650
- loc: {
651
- start: {
652
- line: 15,
653
- column: 2
654
- },
655
- end: {
656
- line: 15,
657
- column: 20
658
- }
659
- },
660
- type: "default-arg",
661
- locations: [{
662
- start: {
663
- line: 15,
664
- column: 18
665
- },
666
- end: {
667
- line: 15,
668
- column: 20
669
- }
670
- }],
671
- line: 15
672
- },
673
- "1": {
674
- loc: {
675
- start: {
676
- line: 16,
677
- column: 2
678
- },
679
- end: {
680
- line: 16,
681
- column: 17
682
- }
683
- },
684
- type: "default-arg",
685
- locations: [{
686
- start: {
687
- line: 16,
688
- column: 15
689
- },
690
- end: {
691
- line: 16,
692
- column: 17
693
- }
694
- }],
695
- line: 16
696
- },
697
- "2": {
698
- loc: {
699
- start: {
700
- line: 17,
701
- column: 2
702
- },
703
- end: {
704
- line: 17,
705
- column: 20
706
- }
707
- },
708
- type: "default-arg",
709
- locations: [{
710
- start: {
711
- line: 17,
712
- column: 18
713
- },
714
- end: {
715
- line: 17,
716
- column: 20
717
- }
718
- }],
719
- line: 17
720
- },
721
- "3": {
722
- loc: {
723
- start: {
724
- line: 18,
725
- column: 2
726
- },
727
- end: {
728
- line: 18,
729
- column: 19
730
- }
731
- },
732
- type: "default-arg",
733
- locations: [{
734
- start: {
735
- line: 18,
736
- column: 17
737
- },
738
- end: {
739
- line: 18,
740
- column: 19
741
- }
742
- }],
743
- line: 18
744
- },
745
- "4": {
746
- loc: {
747
- start: {
748
- line: 19,
749
- column: 2
750
- },
751
- end: {
752
- line: 19,
753
- column: 22
754
- }
755
- },
756
- type: "default-arg",
757
- locations: [{
758
- start: {
759
- line: 19,
760
- column: 17
761
- },
762
- end: {
763
- line: 19,
764
- column: 22
765
- }
766
- }],
767
- line: 19
768
- },
769
- "5": {
770
- loc: {
771
- start: {
772
- line: 20,
773
- column: 2
774
- },
775
- end: {
776
- line: 20,
777
- column: 22
778
- }
779
- },
780
- type: "default-arg",
781
- locations: [{
782
- start: {
783
- line: 20,
784
- column: 20
785
- },
786
- end: {
787
- line: 20,
788
- column: 22
789
- }
790
- }],
791
- line: 20
792
- },
793
- "6": {
794
- loc: {
795
- start: {
796
- line: 21,
797
- column: 2
798
- },
799
- end: {
800
- line: 21,
801
- column: 65
802
- }
803
- },
804
- type: "default-arg",
805
- locations: [{
806
- start: {
807
- line: 21,
808
- column: 20
809
- },
810
- end: {
811
- line: 21,
812
- column: 65
813
- }
814
- }],
815
- line: 21
816
- },
817
- "7": {
818
- loc: {
819
- start: {
820
- line: 22,
821
- column: 2
822
- },
823
- end: {
824
- line: 22,
825
- column: 21
826
- }
827
- },
828
- type: "default-arg",
829
- locations: [{
830
- start: {
831
- line: 22,
832
- column: 13
833
- },
834
- end: {
835
- line: 22,
836
- column: 21
837
- }
838
- }],
839
- line: 22
172
+ start: {
173
+ line: 7,
174
+ column: 16
175
+ },
176
+ end: {
177
+ line: 33,
178
+ column: 1
179
+ }
840
180
  },
841
- "8": {
842
- loc: {
843
- start: {
844
- line: 23,
845
- column: 2
846
- },
847
- end: {
848
- line: 23,
849
- column: 18
850
- }
181
+ "1": {
182
+ start: {
183
+ line: 8,
184
+ column: 16
851
185
  },
852
- type: "default-arg",
853
- locations: [{
854
- start: {
855
- line: 23,
856
- column: 16
857
- },
858
- end: {
859
- line: 23,
860
- column: 18
861
- }
862
- }],
863
- line: 23
186
+ end: {
187
+ line: 8,
188
+ column: 32
189
+ }
864
190
  },
865
- "9": {
866
- loc: {
867
- start: {
868
- line: 36,
869
- column: 4
870
- },
871
- end: {
872
- line: 38,
873
- column: 58
874
- }
191
+ "2": {
192
+ start: {
193
+ line: 10,
194
+ column: 48
875
195
  },
876
- type: "cond-expr",
877
- locations: [{
878
- start: {
879
- line: 37,
880
- column: 8
881
- },
882
- end: {
883
- line: 37,
884
- column: 61
885
- }
886
- }, {
887
- start: {
888
- line: 38,
889
- column: 8
890
- },
891
- end: {
892
- line: 38,
893
- column: 58
894
- }
895
- }],
896
- line: 36
196
+ end: {
197
+ line: 10,
198
+ column: 61
199
+ }
897
200
  },
898
- "10": {
899
- loc: {
900
- start: {
901
- line: 67,
902
- column: 13
903
- },
904
- end: {
905
- line: 78,
906
- column: 13
907
- }
201
+ "3": {
202
+ start: {
203
+ line: 12,
204
+ column: 2
908
205
  },
909
- type: "binary-expr",
910
- locations: [{
911
- start: {
912
- line: 67,
913
- column: 13
914
- },
915
- end: {
916
- line: 67,
917
- column: 25
918
- }
919
- }, {
206
+ end: {
207
+ line: 32,
208
+ column: 4
209
+ }
210
+ }
211
+ },
212
+ fnMap: {
213
+ "0": {
214
+ name: "(anonymous_0)",
215
+ decl: {
920
216
  start: {
921
- line: 68,
922
- column: 14
923
- },
924
- end: {
925
- line: 77,
217
+ line: 7,
926
218
  column: 16
927
- }
928
- }],
929
- line: 67
930
- },
931
- "11": {
932
- loc: {
933
- start: {
934
- line: 79,
935
- column: 13
936
219
  },
937
220
  end: {
938
- line: 102,
939
- column: 13
221
+ line: 7,
222
+ column: 17
940
223
  }
941
224
  },
942
- type: "cond-expr",
943
- locations: [{
944
- start: {
945
- line: 80,
946
- column: 14
947
- },
948
- end: {
949
- line: 97,
950
- column: 16
951
- }
952
- }, {
225
+ loc: {
953
226
  start: {
954
- line: 99,
955
- column: 14
227
+ line: 7,
228
+ column: 54
956
229
  },
957
230
  end: {
958
- line: 101,
959
- column: 21
231
+ line: 33,
232
+ column: 1
960
233
  }
961
- }],
962
- line: 79
963
- },
964
- "12": {
234
+ },
235
+ line: 7
236
+ }
237
+ },
238
+ branchMap: {
239
+ "0": {
965
240
  loc: {
966
241
  start: {
967
- line: 103,
968
- column: 13
242
+ line: 7,
243
+ column: 19
969
244
  },
970
245
  end: {
971
- line: 108,
972
- column: 13
246
+ line: 7,
247
+ column: 37
973
248
  }
974
249
  },
975
- type: "binary-expr",
250
+ type: "default-arg",
976
251
  locations: [{
977
252
  start: {
978
- line: 103,
979
- column: 13
980
- },
981
- end: {
982
- line: 103,
983
- column: 26
984
- }
985
- }, {
986
- start: {
987
- line: 104,
988
- column: 14
253
+ line: 7,
254
+ column: 35
989
255
  },
990
256
  end: {
991
- line: 107,
992
- column: 17
257
+ line: 7,
258
+ column: 37
993
259
  }
994
260
  }],
995
- line: 103
261
+ line: 7
996
262
  }
997
263
  },
998
264
  s: {
999
265
  "0": 0,
1000
266
  "1": 0,
1001
267
  "2": 0,
1002
- "3": 0,
1003
- "4": 0,
1004
- "5": 0,
1005
- "6": 0,
1006
- "7": 0,
1007
- "8": 0,
1008
- "9": 0,
1009
- "10": 0,
1010
- "11": 0,
1011
- "12": 0,
1012
- "13": 0,
1013
- "14": 0,
1014
- "15": 0
268
+ "3": 0
1015
269
  },
1016
270
  f: {
1017
- "0": 0,
1018
- "1": 0,
1019
- "2": 0,
1020
- "3": 0,
1021
- "4": 0,
1022
- "5": 0
271
+ "0": 0
1023
272
  },
1024
273
  b: {
1025
- "0": [0],
1026
- "1": [0],
1027
- "2": [0],
1028
- "3": [0],
1029
- "4": [0],
1030
- "5": [0],
1031
- "6": [0],
1032
- "7": [0],
1033
- "8": [0],
1034
- "9": [0, 0],
1035
- "10": [0, 0],
1036
- "11": [0, 0],
1037
- "12": [0, 0]
274
+ "0": [0]
1038
275
  },
1039
276
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
1040
- hash: "a073b27c47692599de4a6dea8467014f75c0f886"
277
+ hash: "9f901f9bc4d423cb9b0b0b31492fa4192f1d758f"
1041
278
  };
1042
279
  var coverage = global[gcv] || (global[gcv] = {});
1043
280
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -1053,123 +290,41 @@ function cov_1nk47gzsi8() {
1053
290
  return actualCoverage;
1054
291
  }
1055
292
  cov_1nk47gzsi8();
293
+ function ownKeys$1(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; }
294
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1056
295
  cov_1nk47gzsi8().s[0]++;
1057
296
  var Columns = function Columns(_ref) {
1058
- var actionBlock = _ref.actionBlock,
1059
- _ref$checkboxProps = _ref.checkboxProps,
1060
- checkboxProps = _ref$checkboxProps === void 0 ? (cov_1nk47gzsi8().b[0][0]++, {}) : _ref$checkboxProps,
1061
- _ref$columnData = _ref.columnData,
1062
- columnData = _ref$columnData === void 0 ? (cov_1nk47gzsi8().b[1][0]++, []) : _ref$columnData,
1063
- _ref$dropdownProps = _ref.dropdownProps,
1064
- dropdownProps = _ref$dropdownProps === void 0 ? (cov_1nk47gzsi8().b[2][0]++, {}) : _ref$dropdownProps,
1065
- _ref$fixedColumns = _ref.fixedColumns,
1066
- fixedColumns = _ref$fixedColumns === void 0 ? (cov_1nk47gzsi8().b[3][0]++, []) : _ref$fixedColumns,
1067
- _ref$isSearchable = _ref.isSearchable,
1068
- isSearchable = _ref$isSearchable === void 0 ? (cov_1nk47gzsi8().b[4][0]++, false) : _ref$isSearchable,
1069
- _ref$localStorageKey = _ref.localStorageKey,
1070
- localStorageKey = _ref$localStorageKey === void 0 ? (cov_1nk47gzsi8().b[5][0]++, "") : _ref$localStorageKey,
1071
- _ref$noColumnMessage = _ref.noColumnMessage,
1072
- noColumnMessage = _ref$noColumnMessage === void 0 ? (cov_1nk47gzsi8().b[6][0]++, i18next__default["default"].t("neetoMolecules.columns.noColumns")) : _ref$noColumnMessage,
1073
- _ref$onChange = _ref.onChange,
1074
- onChange = _ref$onChange === void 0 ? (cov_1nk47gzsi8().b[7][0]++, ramda.identity) : _ref$onChange,
1075
- _ref$searchProps = _ref.searchProps,
1076
- searchProps = _ref$searchProps === void 0 ? (cov_1nk47gzsi8().b[8][0]++, {}) : _ref$searchProps;
297
+ var _ref$dropdownProps = _ref.dropdownProps,
298
+ dropdownProps = _ref$dropdownProps === void 0 ? (cov_1nk47gzsi8().b[0][0]++, {}) : _ref$dropdownProps,
299
+ props = _objectWithoutProperties(_ref, _excluded$1);
1077
300
  cov_1nk47gzsi8().f[0]++;
1078
- var _ref2 = (cov_1nk47gzsi8().s[1]++, neetoui.Dropdown),
1079
- Divider = _ref2.Divider,
1080
- Menu = _ref2.Menu,
1081
- MenuItem = _ref2.MenuItem;
1082
- var _ref3 = (cov_1nk47gzsi8().s[2]++, reactUtils.useLocalStorage(localStorageKey, [])),
1083
- _ref4 = _slicedToArray(_ref3, 2),
1084
- hiddenColumns = _ref4[0],
1085
- setHiddenColumns = _ref4[1];
1086
- var _ref5 = (cov_1nk47gzsi8().s[3]++, React.useState("")),
1087
- _ref6 = _slicedToArray(_ref5, 2),
1088
- searchTerm = _ref6[0],
1089
- setSearchTerm = _ref6[1];
1090
- var columns = (cov_1nk47gzsi8().s[4]++, removeFixedColumns(fixedColumns, columnData));
1091
- var filteredColumns = (cov_1nk47gzsi8().s[5]++, filterBySearchTerm(searchTerm, columns));
1092
- cov_1nk47gzsi8().s[6]++;
1093
- var handleChange = function handleChange(_ref7) {
1094
- var _ref7$target = _ref7.target,
1095
- dataIndex = _ref7$target.name,
1096
- checked = _ref7$target.checked;
1097
- cov_1nk47gzsi8().f[1]++;
1098
- cov_1nk47gzsi8().s[7]++;
1099
- return checked ? (cov_1nk47gzsi8().b[9][0]++, setHiddenColumns(ramda.without([dataIndex], hiddenColumns))) : (cov_1nk47gzsi8().b[9][1]++, setHiddenColumns(ramda.append(dataIndex, hiddenColumns)));
1100
- };
1101
- cov_1nk47gzsi8().s[8]++;
1102
- var handleSearch = function handleSearch(_ref8) {
1103
- var value = _ref8.target.value;
1104
- cov_1nk47gzsi8().f[2]++;
1105
- cov_1nk47gzsi8().s[9]++;
1106
- return setSearchTerm(value);
1107
- };
1108
- cov_1nk47gzsi8().s[10]++;
1109
- React.useEffect(function () {
1110
- cov_1nk47gzsi8().f[3]++;
1111
- cov_1nk47gzsi8().s[11]++;
1112
- onChange(pure.removeBy({
1113
- dataIndex: ramda.includes(ramda.__, hiddenColumns)
1114
- }, columnData));
1115
- }, [columnData, hiddenColumns]);
1116
- var _ref9 = (cov_1nk47gzsi8().s[12]++, reactI18next.useTranslation()),
1117
- t = _ref9.t;
1118
- cov_1nk47gzsi8().s[13]++;
301
+ var _ref2 = (cov_1nk47gzsi8().s[1]++, reactI18next.useTranslation()),
302
+ t = _ref2.t;
303
+ var _ref3 = (cov_1nk47gzsi8().s[2]++, dropdownProps),
304
+ buttonProps = _ref3.buttonProps,
305
+ restDropdownProps = _objectWithoutProperties(_ref3, _excluded2);
306
+ cov_1nk47gzsi8().s[3]++;
1119
307
  return /*#__PURE__*/React__default["default"].createElement("div", {
1120
308
  className: "neeto-molecules-subheader__columns"
1121
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, _extends({
1122
- buttonStyle: "text",
1123
- closeOnSelect: false,
1124
- position: "bottom-end",
1125
- buttonProps: {
1126
- icon: neetoIcons.Column,
1127
- tooltipProps: {
1128
- content: t("neetoMolecules.columns.columns"),
1129
- position: "bottom"
1130
- },
1131
- "data-testid": "columns-button"
1132
- },
1133
- onClose: function onClose() {
1134
- cov_1nk47gzsi8().f[4]++;
1135
- cov_1nk47gzsi8().s[14]++;
1136
- return setSearchTerm("");
1137
- }
1138
- }, 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({
1139
- className: "neeto-ui-px-3 neeto-ui-py-2",
1140
- "data-cy": "neeto-ui-columns-search",
1141
- placeholder: t("neetoMolecules.columns.search"),
1142
- prefix: /*#__PURE__*/React__default["default"].createElement(neetoIcons.Search, null),
1143
- type: "search",
1144
- value: searchTerm,
1145
- onChange: handleSearch
1146
- }, searchProps))), pure.isNotEmpty(filteredColumns) ? (cov_1nk47gzsi8().b[11][0]++, filteredColumns.map(function (_ref10) {
1147
- var dataIndex = _ref10.dataIndex,
1148
- key = _ref10.key,
1149
- title = _ref10.title;
1150
- cov_1nk47gzsi8().f[5]++;
1151
- cov_1nk47gzsi8().s[15]++;
1152
- return /*#__PURE__*/React__default["default"].createElement(MenuItem, {
1153
- key: key
1154
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, {
1155
- className: "neeto-ui-w-full neeto-ui-px-3 neeto-ui-py-2 hover:neeto-ui-bg-gray-200 neeto-ui-cursor-pointer",
1156
- htmlFor: dataIndex
1157
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Checkbox, _extends({
1158
- checked: !hiddenColumns.includes(dataIndex),
1159
- "data-cy": "neeto-ui-columns-checkbox",
1160
- id: dataIndex,
1161
- label: title,
1162
- name: dataIndex,
1163
- onChange: handleChange
1164
- }, checkboxProps))));
1165
- })) : (cov_1nk47gzsi8().b[11][1]++, /*#__PURE__*/React__default["default"].createElement("span", {
1166
- className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-p-2"
1167
- }, 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))))));
309
+ }, /*#__PURE__*/React__default["default"].createElement(ManageColumns__default["default"], _extends({
310
+ dropdownProps: _objectSpread$1({
311
+ buttonProps: _objectSpread$1({
312
+ icon: neetoIcons.Column,
313
+ label: null,
314
+ tooltipProps: {
315
+ content: t("neetoMolecules.columns.columns"),
316
+ position: "bottom"
317
+ },
318
+ "data-testid": "columns-button",
319
+ "data-cy": "columns-dropdown-button"
320
+ }, buttonProps)
321
+ }, restDropdownProps)
322
+ }, props)));
1168
323
  };
1169
324
 
1170
325
  function cov_td1jpvcmw() {
1171
326
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Download.jsx";
1172
- var hash = "bfd5034300eaa044c3c9eed37cbd2988c7b9f42b";
327
+ var hash = "a2283a341efcaf1ad652751480fdafc6709b57d9";
1173
328
  var global = new Function("return this")();
1174
329
  var gcv = "__coverage__";
1175
330
  var coverageData = {
@@ -1181,27 +336,27 @@ function cov_td1jpvcmw() {
1181
336
  column: 23
1182
337
  },
1183
338
  end: {
1184
- line: 29,
339
+ line: 34,
1185
340
  column: 1
1186
341
  }
1187
342
  },
1188
343
  "1": {
1189
344
  start: {
1190
- line: 8,
345
+ line: 12,
1191
346
  column: 16
1192
347
  },
1193
348
  end: {
1194
- line: 8,
349
+ line: 12,
1195
350
  column: 32
1196
351
  }
1197
352
  },
1198
353
  "2": {
1199
354
  start: {
1200
- line: 10,
355
+ line: 14,
1201
356
  column: 2
1202
357
  },
1203
358
  end: {
1204
- line: 28,
359
+ line: 33,
1205
360
  column: 4
1206
361
  }
1207
362
  }
@@ -1221,50 +376,74 @@ function cov_td1jpvcmw() {
1221
376
  },
1222
377
  loc: {
1223
378
  start: {
1224
- line: 7,
1225
- column: 47
379
+ line: 11,
380
+ column: 6
1226
381
  },
1227
382
  end: {
1228
- line: 29,
383
+ line: 34,
1229
384
  column: 1
1230
385
  }
1231
386
  },
1232
- line: 7
387
+ line: 11
1233
388
  }
1234
389
  },
1235
390
  branchMap: {
1236
391
  "0": {
1237
392
  loc: {
1238
393
  start: {
1239
- line: 22,
394
+ line: 10,
395
+ column: 13
396
+ },
397
+ end: {
398
+ line: 10,
399
+ column: 39
400
+ }
401
+ },
402
+ type: "default-arg",
403
+ locations: [{
404
+ start: {
405
+ line: 10,
406
+ column: 22
407
+ },
408
+ end: {
409
+ line: 10,
410
+ column: 39
411
+ }
412
+ }],
413
+ line: 10
414
+ },
415
+ "1": {
416
+ loc: {
417
+ start: {
418
+ line: 27,
1240
419
  column: 7
1241
420
  },
1242
421
  end: {
1243
- line: 26,
422
+ line: 31,
1244
423
  column: 7
1245
424
  }
1246
425
  },
1247
426
  type: "binary-expr",
1248
427
  locations: [{
1249
428
  start: {
1250
- line: 22,
429
+ line: 27,
1251
430
  column: 7
1252
431
  },
1253
432
  end: {
1254
- line: 22,
433
+ line: 27,
1255
434
  column: 12
1256
435
  }
1257
436
  }, {
1258
437
  start: {
1259
- line: 23,
438
+ line: 28,
1260
439
  column: 8
1261
440
  },
1262
441
  end: {
1263
- line: 25,
442
+ line: 30,
1264
443
  column: 15
1265
444
  }
1266
445
  }],
1267
- line: 22
446
+ line: 27
1268
447
  }
1269
448
  },
1270
449
  s: {
@@ -1276,10 +455,11 @@ function cov_td1jpvcmw() {
1276
455
  "0": 0
1277
456
  },
1278
457
  b: {
1279
- "0": [0, 0]
458
+ "0": [0],
459
+ "1": [0, 0]
1280
460
  },
1281
461
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
1282
- hash: "bfd5034300eaa044c3c9eed37cbd2988c7b9f42b"
462
+ hash: "a2283a341efcaf1ad652751480fdafc6709b57d9"
1283
463
  };
1284
464
  var coverage = global[gcv] || (global[gcv] = {});
1285
465
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -1298,7 +478,9 @@ cov_td1jpvcmw();
1298
478
  cov_td1jpvcmw().s[0]++;
1299
479
  var DownloadButton = function DownloadButton(_ref) {
1300
480
  var count = _ref.count,
1301
- onClick = _ref.onClick;
481
+ onClick = _ref.onClick,
482
+ _ref$dataCy = _ref["data-cy"],
483
+ dataCy = _ref$dataCy === void 0 ? (cov_td1jpvcmw().b[0][0]++, "download-button") : _ref$dataCy;
1302
484
  cov_td1jpvcmw().f[0]++;
1303
485
  var _ref2 = (cov_td1jpvcmw().s[1]++, reactI18next.useTranslation()),
1304
486
  t = _ref2.t;
@@ -1306,6 +488,7 @@ var DownloadButton = function DownloadButton(_ref) {
1306
488
  return /*#__PURE__*/React__default["default"].createElement("div", {
1307
489
  className: "neeto-molecules-subheader__download"
1308
490
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
491
+ "data-cy": dataCy,
1309
492
  "data-testid": "download-button",
1310
493
  icon: neetoIcons.Download,
1311
494
  style: "text",
@@ -1314,85 +497,15 @@ var DownloadButton = function DownloadButton(_ref) {
1314
497
  position: "bottom"
1315
498
  },
1316
499
  onClick: onClick
1317
- }), (cov_td1jpvcmw().b[0][0]++, count) && (cov_td1jpvcmw().b[0][1]++, /*#__PURE__*/React__default["default"].createElement("span", {
500
+ }), (cov_td1jpvcmw().b[1][0]++, count) && (cov_td1jpvcmw().b[1][1]++, /*#__PURE__*/React__default["default"].createElement("span", {
1318
501
  className: "neeto-molecules-subheader__download-count"
1319
502
  }, count)));
1320
503
  };
1321
504
 
1322
- function _typeof(obj) {
1323
- "@babel/helpers - typeof";
1324
-
1325
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1326
- return typeof obj;
1327
- } : function (obj) {
1328
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1329
- }, _typeof(obj);
1330
- }
1331
-
1332
- function _toPrimitive(input, hint) {
1333
- if (_typeof(input) !== "object" || input === null) return input;
1334
- var prim = input[Symbol.toPrimitive];
1335
- if (prim !== undefined) {
1336
- var res = prim.call(input, hint || "default");
1337
- if (_typeof(res) !== "object") return res;
1338
- throw new TypeError("@@toPrimitive must return a primitive value.");
1339
- }
1340
- return (hint === "string" ? String : Number)(input);
1341
- }
1342
-
1343
- function _toPropertyKey(arg) {
1344
- var key = _toPrimitive(arg, "string");
1345
- return _typeof(key) === "symbol" ? key : String(key);
1346
- }
1347
-
1348
- function _defineProperty(obj, key, value) {
1349
- key = _toPropertyKey(key);
1350
- if (key in obj) {
1351
- Object.defineProperty(obj, key, {
1352
- value: value,
1353
- enumerable: true,
1354
- configurable: true,
1355
- writable: true
1356
- });
1357
- } else {
1358
- obj[key] = value;
1359
- }
1360
- return obj;
1361
- }
1362
-
1363
- function _objectWithoutPropertiesLoose(source, excluded) {
1364
- if (source == null) return {};
1365
- var target = {};
1366
- var sourceKeys = Object.keys(source);
1367
- var key, i;
1368
- for (i = 0; i < sourceKeys.length; i++) {
1369
- key = sourceKeys[i];
1370
- if (excluded.indexOf(key) >= 0) continue;
1371
- target[key] = source[key];
1372
- }
1373
- return target;
1374
- }
1375
-
1376
- function _objectWithoutProperties(source, excluded) {
1377
- if (source == null) return {};
1378
- var target = _objectWithoutPropertiesLoose(source, excluded);
1379
- var key, i;
1380
- if (Object.getOwnPropertySymbols) {
1381
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1382
- for (i = 0; i < sourceSymbolKeys.length; i++) {
1383
- key = sourceSymbolKeys[i];
1384
- if (excluded.indexOf(key) >= 0) continue;
1385
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1386
- target[key] = source[key];
1387
- }
1388
- }
1389
- return target;
1390
- }
1391
-
1392
505
  var _excluded = ["buttonProps"];
1393
506
  function cov_m5zh4tynr() {
1394
507
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Filter.jsx";
1395
- var hash = "ccf07ab7fbe2e20d51a0eb8a8009a0ad5956d118";
508
+ var hash = "15fd106418316fa8f49263416bc0aea91d893139";
1396
509
  var global = new Function("return this")();
1397
510
  var gcv = "__coverage__";
1398
511
  var coverageData = {
@@ -1404,7 +517,7 @@ function cov_m5zh4tynr() {
1404
517
  column: 21
1405
518
  },
1406
519
  end: {
1407
- line: 28,
520
+ line: 29,
1408
521
  column: 1
1409
522
  }
1410
523
  },
@@ -1424,7 +537,7 @@ function cov_m5zh4tynr() {
1424
537
  column: 2
1425
538
  },
1426
539
  end: {
1427
- line: 27,
540
+ line: 28,
1428
541
  column: 4
1429
542
  }
1430
543
  }
@@ -1448,7 +561,7 @@ function cov_m5zh4tynr() {
1448
561
  column: 52
1449
562
  },
1450
563
  end: {
1451
- line: 28,
564
+ line: 29,
1452
565
  column: 1
1453
566
  }
1454
567
  },
@@ -1466,7 +579,7 @@ function cov_m5zh4tynr() {
1466
579
  },
1467
580
  b: {},
1468
581
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
1469
- hash: "ccf07ab7fbe2e20d51a0eb8a8009a0ad5956d118"
582
+ hash: "15fd106418316fa8f49263416bc0aea91d893139"
1470
583
  };
1471
584
  var coverage = global[gcv] || (global[gcv] = {});
1472
585
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -1497,6 +610,7 @@ var FilterButton = function FilterButton(_ref) {
1497
610
  }, /*#__PURE__*/React__default["default"].createElement(neetoFiltersFrontend.Filters, _extends({
1498
611
  buttonProps: _objectSpread({
1499
612
  "data-testid": "filter-button",
613
+ "data-cy": "neeto-filters-button",
1500
614
  icon: neetoIcons.Filter,
1501
615
  style: "text",
1502
616
  tooltipProps: {