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