@bigbinary/neetoui 4.4.21 → 4.4.23
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/formik.cjs.js +46275 -6
- package/formik.cjs.js.map +1 -0
- package/formik.js +46238 -6
- package/formik.js.map +1 -0
- package/index.cjs.js +65938 -6
- package/index.cjs.js.map +1 -0
- package/index.d.ts +1 -1
- package/index.js +65878 -6
- package/index.js.map +1 -0
- package/layouts.cjs.js +33753 -6
- package/layouts.cjs.js.map +1 -0
- package/layouts.js +33720 -6
- package/layouts.js.map +1 -0
- package/managers.cjs.js +594 -1
- package/managers.cjs.js.map +1 -0
- package/managers.js +590 -1
- package/managers.js.map +1 -0
- package/package.json +1 -2
package/managers.js
CHANGED
|
@@ -1 +1,590 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _classCallCheck(instance, Constructor) {
|
|
2
|
+
if (!(instance instanceof Constructor)) {
|
|
3
|
+
throw new TypeError("Cannot call a class as a function");
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function _typeof(obj) {
|
|
8
|
+
"@babel/helpers - typeof";
|
|
9
|
+
|
|
10
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
11
|
+
return typeof obj;
|
|
12
|
+
} : function (obj) {
|
|
13
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
14
|
+
}, _typeof(obj);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _toPrimitive(input, hint) {
|
|
18
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
19
|
+
var prim = input[Symbol.toPrimitive];
|
|
20
|
+
if (prim !== undefined) {
|
|
21
|
+
var res = prim.call(input, hint || "default");
|
|
22
|
+
if (_typeof(res) !== "object") return res;
|
|
23
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
24
|
+
}
|
|
25
|
+
return (hint === "string" ? String : Number)(input);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function _toPropertyKey(arg) {
|
|
29
|
+
var key = _toPrimitive(arg, "string");
|
|
30
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function _defineProperties(target, props) {
|
|
34
|
+
for (var i = 0; i < props.length; i++) {
|
|
35
|
+
var descriptor = props[i];
|
|
36
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
37
|
+
descriptor.configurable = true;
|
|
38
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
39
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
43
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
44
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
45
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
46
|
+
writable: false
|
|
47
|
+
});
|
|
48
|
+
return Constructor;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function cov_19k7qxaep7() {
|
|
52
|
+
var path = "/home/runner/work/neeto-ui/neeto-ui/src/managers/OverlayManager.js";
|
|
53
|
+
var hash = "b10a130bc0ca4350f516a8502cb17f2d60c7f052";
|
|
54
|
+
var global = new Function("return this")();
|
|
55
|
+
var gcv = "__coverage__";
|
|
56
|
+
var coverageData = {
|
|
57
|
+
path: "/home/runner/work/neeto-ui/neeto-ui/src/managers/OverlayManager.js",
|
|
58
|
+
statementMap: {
|
|
59
|
+
"0": {
|
|
60
|
+
start: {
|
|
61
|
+
line: 3,
|
|
62
|
+
column: 4
|
|
63
|
+
},
|
|
64
|
+
end: {
|
|
65
|
+
line: 3,
|
|
66
|
+
column: 23
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"1": {
|
|
70
|
+
start: {
|
|
71
|
+
line: 4,
|
|
72
|
+
column: 4
|
|
73
|
+
},
|
|
74
|
+
end: {
|
|
75
|
+
line: 4,
|
|
76
|
+
column: 40
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"2": {
|
|
80
|
+
start: {
|
|
81
|
+
line: 5,
|
|
82
|
+
column: 4
|
|
83
|
+
},
|
|
84
|
+
end: {
|
|
85
|
+
line: 5,
|
|
86
|
+
column: 35
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"3": {
|
|
90
|
+
start: {
|
|
91
|
+
line: 6,
|
|
92
|
+
column: 4
|
|
93
|
+
},
|
|
94
|
+
end: {
|
|
95
|
+
line: 6,
|
|
96
|
+
column: 41
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"4": {
|
|
100
|
+
start: {
|
|
101
|
+
line: 7,
|
|
102
|
+
column: 4
|
|
103
|
+
},
|
|
104
|
+
end: {
|
|
105
|
+
line: 7,
|
|
106
|
+
column: 53
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"5": {
|
|
110
|
+
start: {
|
|
111
|
+
line: 8,
|
|
112
|
+
column: 4
|
|
113
|
+
},
|
|
114
|
+
end: {
|
|
115
|
+
line: 8,
|
|
116
|
+
column: 51
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"6": {
|
|
120
|
+
start: {
|
|
121
|
+
line: 9,
|
|
122
|
+
column: 4
|
|
123
|
+
},
|
|
124
|
+
end: {
|
|
125
|
+
line: 9,
|
|
126
|
+
column: 73
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"7": {
|
|
130
|
+
start: {
|
|
131
|
+
line: 10,
|
|
132
|
+
column: 4
|
|
133
|
+
},
|
|
134
|
+
end: {
|
|
135
|
+
line: 10,
|
|
136
|
+
column: 63
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"8": {
|
|
140
|
+
start: {
|
|
141
|
+
line: 14,
|
|
142
|
+
column: 4
|
|
143
|
+
},
|
|
144
|
+
end: {
|
|
145
|
+
line: 14,
|
|
146
|
+
column: 32
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"9": {
|
|
150
|
+
start: {
|
|
151
|
+
line: 15,
|
|
152
|
+
column: 4
|
|
153
|
+
},
|
|
154
|
+
end: {
|
|
155
|
+
line: 15,
|
|
156
|
+
column: 56
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"10": {
|
|
160
|
+
start: {
|
|
161
|
+
line: 19,
|
|
162
|
+
column: 4
|
|
163
|
+
},
|
|
164
|
+
end: {
|
|
165
|
+
line: 19,
|
|
166
|
+
column: 77
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"11": {
|
|
170
|
+
start: {
|
|
171
|
+
line: 19,
|
|
172
|
+
column: 55
|
|
173
|
+
},
|
|
174
|
+
end: {
|
|
175
|
+
line: 19,
|
|
176
|
+
column: 75
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"12": {
|
|
180
|
+
start: {
|
|
181
|
+
line: 23,
|
|
182
|
+
column: 27
|
|
183
|
+
},
|
|
184
|
+
end: {
|
|
185
|
+
line: 23,
|
|
186
|
+
column: 66
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"13": {
|
|
190
|
+
start: {
|
|
191
|
+
line: 24,
|
|
192
|
+
column: 4
|
|
193
|
+
},
|
|
194
|
+
end: {
|
|
195
|
+
line: 24,
|
|
196
|
+
column: 38
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"14": {
|
|
200
|
+
start: {
|
|
201
|
+
line: 28,
|
|
202
|
+
column: 4
|
|
203
|
+
},
|
|
204
|
+
end: {
|
|
205
|
+
line: 28,
|
|
206
|
+
column: 36
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"15": {
|
|
210
|
+
start: {
|
|
211
|
+
line: 32,
|
|
212
|
+
column: 4
|
|
213
|
+
},
|
|
214
|
+
end: {
|
|
215
|
+
line: 32,
|
|
216
|
+
column: 48
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"16": {
|
|
220
|
+
start: {
|
|
221
|
+
line: 36,
|
|
222
|
+
column: 4
|
|
223
|
+
},
|
|
224
|
+
end: {
|
|
225
|
+
line: 36,
|
|
226
|
+
column: 51
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"17": {
|
|
230
|
+
start: {
|
|
231
|
+
line: 40,
|
|
232
|
+
column: 23
|
|
233
|
+
},
|
|
234
|
+
end: {
|
|
235
|
+
line: 40,
|
|
236
|
+
column: 43
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
fnMap: {
|
|
241
|
+
"0": {
|
|
242
|
+
name: "(anonymous_0)",
|
|
243
|
+
decl: {
|
|
244
|
+
start: {
|
|
245
|
+
line: 2,
|
|
246
|
+
column: 2
|
|
247
|
+
},
|
|
248
|
+
end: {
|
|
249
|
+
line: 2,
|
|
250
|
+
column: 3
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
loc: {
|
|
254
|
+
start: {
|
|
255
|
+
line: 2,
|
|
256
|
+
column: 16
|
|
257
|
+
},
|
|
258
|
+
end: {
|
|
259
|
+
line: 11,
|
|
260
|
+
column: 3
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
line: 2
|
|
264
|
+
},
|
|
265
|
+
"1": {
|
|
266
|
+
name: "(anonymous_1)",
|
|
267
|
+
decl: {
|
|
268
|
+
start: {
|
|
269
|
+
line: 13,
|
|
270
|
+
column: 2
|
|
271
|
+
},
|
|
272
|
+
end: {
|
|
273
|
+
line: 13,
|
|
274
|
+
column: 3
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
loc: {
|
|
278
|
+
start: {
|
|
279
|
+
line: 13,
|
|
280
|
+
column: 31
|
|
281
|
+
},
|
|
282
|
+
end: {
|
|
283
|
+
line: 16,
|
|
284
|
+
column: 3
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
line: 13
|
|
288
|
+
},
|
|
289
|
+
"2": {
|
|
290
|
+
name: "(anonymous_2)",
|
|
291
|
+
decl: {
|
|
292
|
+
start: {
|
|
293
|
+
line: 18,
|
|
294
|
+
column: 2
|
|
295
|
+
},
|
|
296
|
+
end: {
|
|
297
|
+
line: 18,
|
|
298
|
+
column: 3
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
loc: {
|
|
302
|
+
start: {
|
|
303
|
+
line: 18,
|
|
304
|
+
column: 18
|
|
305
|
+
},
|
|
306
|
+
end: {
|
|
307
|
+
line: 20,
|
|
308
|
+
column: 3
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
line: 18
|
|
312
|
+
},
|
|
313
|
+
"3": {
|
|
314
|
+
name: "(anonymous_3)",
|
|
315
|
+
decl: {
|
|
316
|
+
start: {
|
|
317
|
+
line: 19,
|
|
318
|
+
column: 41
|
|
319
|
+
},
|
|
320
|
+
end: {
|
|
321
|
+
line: 19,
|
|
322
|
+
column: 42
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
loc: {
|
|
326
|
+
start: {
|
|
327
|
+
line: 19,
|
|
328
|
+
column: 55
|
|
329
|
+
},
|
|
330
|
+
end: {
|
|
331
|
+
line: 19,
|
|
332
|
+
column: 75
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
line: 19
|
|
336
|
+
},
|
|
337
|
+
"4": {
|
|
338
|
+
name: "(anonymous_4)",
|
|
339
|
+
decl: {
|
|
340
|
+
start: {
|
|
341
|
+
line: 22,
|
|
342
|
+
column: 2
|
|
343
|
+
},
|
|
344
|
+
end: {
|
|
345
|
+
line: 22,
|
|
346
|
+
column: 3
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
loc: {
|
|
350
|
+
start: {
|
|
351
|
+
line: 22,
|
|
352
|
+
column: 24
|
|
353
|
+
},
|
|
354
|
+
end: {
|
|
355
|
+
line: 25,
|
|
356
|
+
column: 3
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
line: 22
|
|
360
|
+
},
|
|
361
|
+
"5": {
|
|
362
|
+
name: "(anonymous_5)",
|
|
363
|
+
decl: {
|
|
364
|
+
start: {
|
|
365
|
+
line: 27,
|
|
366
|
+
column: 2
|
|
367
|
+
},
|
|
368
|
+
end: {
|
|
369
|
+
line: 27,
|
|
370
|
+
column: 3
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
loc: {
|
|
374
|
+
start: {
|
|
375
|
+
line: 27,
|
|
376
|
+
column: 16
|
|
377
|
+
},
|
|
378
|
+
end: {
|
|
379
|
+
line: 29,
|
|
380
|
+
column: 3
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
line: 27
|
|
384
|
+
},
|
|
385
|
+
"6": {
|
|
386
|
+
name: "(anonymous_6)",
|
|
387
|
+
decl: {
|
|
388
|
+
start: {
|
|
389
|
+
line: 31,
|
|
390
|
+
column: 2
|
|
391
|
+
},
|
|
392
|
+
end: {
|
|
393
|
+
line: 31,
|
|
394
|
+
column: 3
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
loc: {
|
|
398
|
+
start: {
|
|
399
|
+
line: 31,
|
|
400
|
+
column: 27
|
|
401
|
+
},
|
|
402
|
+
end: {
|
|
403
|
+
line: 33,
|
|
404
|
+
column: 3
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
line: 31
|
|
408
|
+
},
|
|
409
|
+
"7": {
|
|
410
|
+
name: "(anonymous_7)",
|
|
411
|
+
decl: {
|
|
412
|
+
start: {
|
|
413
|
+
line: 35,
|
|
414
|
+
column: 2
|
|
415
|
+
},
|
|
416
|
+
end: {
|
|
417
|
+
line: 35,
|
|
418
|
+
column: 3
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
loc: {
|
|
422
|
+
start: {
|
|
423
|
+
line: 35,
|
|
424
|
+
column: 22
|
|
425
|
+
},
|
|
426
|
+
end: {
|
|
427
|
+
line: 37,
|
|
428
|
+
column: 3
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
line: 35
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
branchMap: {},
|
|
435
|
+
s: {
|
|
436
|
+
"0": 0,
|
|
437
|
+
"1": 0,
|
|
438
|
+
"2": 0,
|
|
439
|
+
"3": 0,
|
|
440
|
+
"4": 0,
|
|
441
|
+
"5": 0,
|
|
442
|
+
"6": 0,
|
|
443
|
+
"7": 0,
|
|
444
|
+
"8": 0,
|
|
445
|
+
"9": 0,
|
|
446
|
+
"10": 0,
|
|
447
|
+
"11": 0,
|
|
448
|
+
"12": 0,
|
|
449
|
+
"13": 0,
|
|
450
|
+
"14": 0,
|
|
451
|
+
"15": 0,
|
|
452
|
+
"16": 0,
|
|
453
|
+
"17": 0
|
|
454
|
+
},
|
|
455
|
+
f: {
|
|
456
|
+
"0": 0,
|
|
457
|
+
"1": 0,
|
|
458
|
+
"2": 0,
|
|
459
|
+
"3": 0,
|
|
460
|
+
"4": 0,
|
|
461
|
+
"5": 0,
|
|
462
|
+
"6": 0,
|
|
463
|
+
"7": 0
|
|
464
|
+
},
|
|
465
|
+
b: {},
|
|
466
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
467
|
+
hash: "b10a130bc0ca4350f516a8502cb17f2d60c7f052"
|
|
468
|
+
};
|
|
469
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
470
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
471
|
+
coverage[path] = coverageData;
|
|
472
|
+
}
|
|
473
|
+
var actualCoverage = coverage[path];
|
|
474
|
+
{
|
|
475
|
+
// @ts-ignore
|
|
476
|
+
cov_19k7qxaep7 = function () {
|
|
477
|
+
return actualCoverage;
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
return actualCoverage;
|
|
481
|
+
}
|
|
482
|
+
cov_19k7qxaep7();
|
|
483
|
+
var OverlayManager = /*#__PURE__*/function () {
|
|
484
|
+
function OverlayManager() {
|
|
485
|
+
_classCallCheck(this, OverlayManager);
|
|
486
|
+
cov_19k7qxaep7().f[0]++;
|
|
487
|
+
cov_19k7qxaep7().s[0]++;
|
|
488
|
+
this.overlays = [];
|
|
489
|
+
cov_19k7qxaep7().s[1]++;
|
|
490
|
+
this.previouslyFocusedElements = [];
|
|
491
|
+
cov_19k7qxaep7().s[2]++;
|
|
492
|
+
this.add = this.add.bind(this);
|
|
493
|
+
cov_19k7qxaep7().s[3]++;
|
|
494
|
+
this.remove = this.remove.bind(this);
|
|
495
|
+
cov_19k7qxaep7().s[4]++;
|
|
496
|
+
this.isTopOverlay = this.isTopOverlay.bind(this);
|
|
497
|
+
cov_19k7qxaep7().s[5]++;
|
|
498
|
+
this.hasOverlays = this.hasOverlays.bind(this);
|
|
499
|
+
cov_19k7qxaep7().s[6]++;
|
|
500
|
+
this.getFinalFocusInOverlay = this.getFinalFocusInOverlay.bind(this);
|
|
501
|
+
cov_19k7qxaep7().s[7]++;
|
|
502
|
+
this.getTopMostOverlay = this.getTopMostOverlay.bind(this);
|
|
503
|
+
}
|
|
504
|
+
_createClass(OverlayManager, [{
|
|
505
|
+
key: "add",
|
|
506
|
+
value: function add(overlay, elementToFocus) {
|
|
507
|
+
cov_19k7qxaep7().f[1]++;
|
|
508
|
+
cov_19k7qxaep7().s[8]++;
|
|
509
|
+
this.overlays.push(overlay);
|
|
510
|
+
cov_19k7qxaep7().s[9]++;
|
|
511
|
+
this.previouslyFocusedElements.push(elementToFocus);
|
|
512
|
+
}
|
|
513
|
+
}, {
|
|
514
|
+
key: "remove",
|
|
515
|
+
value: function remove(overlay) {
|
|
516
|
+
cov_19k7qxaep7().f[2]++;
|
|
517
|
+
cov_19k7qxaep7().s[10]++;
|
|
518
|
+
this.overlays = this.overlays.filter(function (_overlay) {
|
|
519
|
+
cov_19k7qxaep7().f[3]++;
|
|
520
|
+
cov_19k7qxaep7().s[11]++;
|
|
521
|
+
return _overlay !== overlay;
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
}, {
|
|
525
|
+
key: "isTopOverlay",
|
|
526
|
+
value: function isTopOverlay(overlay) {
|
|
527
|
+
cov_19k7qxaep7().f[4]++;
|
|
528
|
+
var topMostOverlay = (cov_19k7qxaep7().s[12]++, this.overlays[this.overlays.length - 1]);
|
|
529
|
+
cov_19k7qxaep7().s[13]++;
|
|
530
|
+
return topMostOverlay === overlay;
|
|
531
|
+
}
|
|
532
|
+
}, {
|
|
533
|
+
key: "hasOverlays",
|
|
534
|
+
value: function hasOverlays() {
|
|
535
|
+
cov_19k7qxaep7().f[5]++;
|
|
536
|
+
cov_19k7qxaep7().s[14]++;
|
|
537
|
+
return this.overlays.length > 0;
|
|
538
|
+
}
|
|
539
|
+
}, {
|
|
540
|
+
key: "getFinalFocusInOverlay",
|
|
541
|
+
value: function getFinalFocusInOverlay() {
|
|
542
|
+
cov_19k7qxaep7().f[6]++;
|
|
543
|
+
cov_19k7qxaep7().s[15]++;
|
|
544
|
+
return this.previouslyFocusedElements.pop();
|
|
545
|
+
}
|
|
546
|
+
}, {
|
|
547
|
+
key: "getTopMostOverlay",
|
|
548
|
+
value: function getTopMostOverlay() {
|
|
549
|
+
cov_19k7qxaep7().f[7]++;
|
|
550
|
+
cov_19k7qxaep7().s[16]++;
|
|
551
|
+
return this.overlays[this.overlays.length - 1];
|
|
552
|
+
}
|
|
553
|
+
}]);
|
|
554
|
+
return OverlayManager;
|
|
555
|
+
}();
|
|
556
|
+
var manager = (cov_19k7qxaep7().s[17]++, new OverlayManager());
|
|
557
|
+
|
|
558
|
+
function cov_2l5uiompnx() {
|
|
559
|
+
var path = "/home/runner/work/neeto-ui/neeto-ui/src/managers/index.js";
|
|
560
|
+
var hash = "e2dd7861ac22bb8137180c99f122b0d8e672c489";
|
|
561
|
+
var global = new Function("return this")();
|
|
562
|
+
var gcv = "__coverage__";
|
|
563
|
+
var coverageData = {
|
|
564
|
+
path: "/home/runner/work/neeto-ui/neeto-ui/src/managers/index.js",
|
|
565
|
+
statementMap: {},
|
|
566
|
+
fnMap: {},
|
|
567
|
+
branchMap: {},
|
|
568
|
+
s: {},
|
|
569
|
+
f: {},
|
|
570
|
+
b: {},
|
|
571
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
572
|
+
hash: "e2dd7861ac22bb8137180c99f122b0d8e672c489"
|
|
573
|
+
};
|
|
574
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
575
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
576
|
+
coverage[path] = coverageData;
|
|
577
|
+
}
|
|
578
|
+
var actualCoverage = coverage[path];
|
|
579
|
+
{
|
|
580
|
+
// @ts-ignore
|
|
581
|
+
cov_2l5uiompnx = function () {
|
|
582
|
+
return actualCoverage;
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
return actualCoverage;
|
|
586
|
+
}
|
|
587
|
+
cov_2l5uiompnx();
|
|
588
|
+
|
|
589
|
+
export { manager };
|
|
590
|
+
//# sourceMappingURL=managers.js.map
|
package/managers.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managers.js","sources":["node_modules/@babel/runtime/helpers/esm/classCallCheck.js","node_modules/@babel/runtime/helpers/esm/typeof.js","node_modules/@babel/runtime/helpers/esm/toPrimitive.js","node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","node_modules/@babel/runtime/helpers/esm/createClass.js","src/managers/OverlayManager.js","src/managers/index.js"],"sourcesContent":["export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","class OverlayManager {\n constructor() {\n this.overlays = [];\n this.previouslyFocusedElements = [];\n this.add = this.add.bind(this);\n this.remove = this.remove.bind(this);\n this.isTopOverlay = this.isTopOverlay.bind(this);\n this.hasOverlays = this.hasOverlays.bind(this);\n this.getFinalFocusInOverlay = this.getFinalFocusInOverlay.bind(this);\n this.getTopMostOverlay = this.getTopMostOverlay.bind(this);\n }\n\n add(overlay, elementToFocus) {\n this.overlays.push(overlay);\n this.previouslyFocusedElements.push(elementToFocus);\n }\n\n remove(overlay) {\n this.overlays = this.overlays.filter((_overlay) => _overlay !== overlay);\n }\n\n isTopOverlay(overlay) {\n const topMostOverlay = this.overlays[this.overlays.length - 1];\n return topMostOverlay === overlay;\n }\n\n hasOverlays() {\n return this.overlays.length > 0;\n }\n\n getFinalFocusInOverlay() {\n return this.previouslyFocusedElements.pop();\n }\n\n getTopMostOverlay() {\n return this.overlays[this.overlays.length - 1];\n }\n}\n\nexport const manager = new OverlayManager();\n","import { manager } from \"./OverlayManager\";\n\nexport { manager };\n"],"names":["toPrimitive","toPropertyKey","cov_19k7qxaep7","actualCoverage","OverlayManager","_classCallCheck","f","s","overlays","previouslyFocusedElements","add","bind","remove","isTopOverlay","hasOverlays","getFinalFocusInOverlay","getTopMostOverlay","_createClass","key","value","overlay","elementToFocus","push","filter","_overlay","topMostOverlay","length","pop","manager","cov_2l5uiompnx"],"mappings":"AAAe,SAAS,eAAe,CAAC,QAAQ,EAAE,WAAW,EAAE;AAC/D,EAAE,IAAI,EAAE,QAAQ,YAAY,WAAW,CAAC,EAAE;AAC1C,IAAI,MAAM,IAAI,SAAS,CAAC,mCAAmC,CAAC,CAAC;AAC7D,GAAG;AACH;;ACJe,SAAS,OAAO,CAAC,GAAG,EAAE;AACrC,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE;AACtG,IAAI,OAAO,OAAO,GAAG,CAAC;AACtB,GAAG,GAAG,UAAU,GAAG,EAAE;AACrB,IAAI,OAAO,GAAG,IAAI,UAAU,IAAI,OAAO,MAAM,IAAI,GAAG,CAAC,WAAW,KAAK,MAAM,IAAI,GAAG,KAAK,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,CAAC;AAChI,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;AAClB;;ACPe,SAAS,YAAY,CAAC,KAAK,EAAE,IAAI,EAAE;AAClD,EAAE,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,OAAO,KAAK,CAAC;AAClE,EAAE,IAAI,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AACvC,EAAE,IAAI,IAAI,KAAK,SAA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CAAA;AAAA,CAAA;AAAA0B,cAAA,EAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neetoui",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.23",
|
|
4
4
|
"main": "./index.cjs.js",
|
|
5
5
|
"module": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
"@rollup/plugin-json": "^4.1.0",
|
|
75
75
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
76
76
|
"@rollup/plugin-replace": "^4.0.0",
|
|
77
|
-
"@rollup/plugin-terser": "^0.4.0",
|
|
78
77
|
"@storybook/addon-actions": "^6.5.10",
|
|
79
78
|
"@storybook/addon-console": "^1.2.3",
|
|
80
79
|
"@storybook/addon-essentials": "6.5.9",
|