@nanoporetech-digital/components 1.15.4 → 1.15.5
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/CHANGELOG.md +11 -0
- package/dist/cjs/{algoliasearch.umd-da1e6f0c.js → algoliasearch.umd-0ccd70ce.js} +3 -3
- package/dist/cjs/{algoliasearch.umd-da1e6f0c.js.map → algoliasearch.umd-0ccd70ce.js.map} +1 -1
- package/dist/cjs/{component-store-1aa64afb.js → component-store-bda9b645.js} +107 -36
- package/dist/cjs/component-store-bda9b645.js.map +1 -0
- package/dist/cjs/nano-algolia-filter.cjs.entry.js +1 -1
- package/dist/cjs/nano-algolia-input.cjs.entry.js +2 -2
- package/dist/cjs/nano-algolia.cjs.entry.js +2 -2
- package/dist/cjs/nano-date-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/nano-dialog.cjs.entry.js +1 -1
- package/dist/cjs/nano-global-nav.cjs.entry.js +4 -2
- package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-search-results.cjs.entry.js +3 -2
- package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-nav-item_2.cjs.entry.js +1 -1
- package/dist/cjs/nano-slides.cjs.entry.js +7 -6
- package/dist/cjs/nano-slides.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/nano-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/{popover-04a39914.js → popover-d033efa2.js} +29 -10
- package/dist/cjs/popover-d033efa2.js.map +1 -0
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/algolia/algolia-filter.js +2 -2
- package/dist/collection/components/algolia/algolia-input.js +5 -5
- package/dist/collection/components/algolia/algolia-results.js +1 -1
- package/dist/collection/components/algolia/algolia.js +6 -6
- package/dist/collection/components/checkbox/checkbox-group.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/date-input/date-input.js +7 -7
- package/dist/collection/components/date-picker/date-picker.js +5 -5
- package/dist/collection/components/details/details.js +1 -1
- package/dist/collection/components/dialog/dialog.js +1 -1
- package/dist/collection/components/file-upload/file-upload.js +4 -4
- package/dist/collection/components/global-nav/global-nav.js +6 -4
- package/dist/collection/components/global-nav/global-nav.js.map +1 -1
- package/dist/collection/components/global-search-results/global-search-results.js +3 -2
- package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
- package/dist/collection/components/grid/grid-item.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/input/input.js +5 -5
- package/dist/collection/components/nav-item/nav-item.js +4 -4
- package/dist/collection/components/range/range.js +4 -4
- package/dist/collection/components/resize-observe/resize-observe.js +1 -1
- package/dist/collection/components/select/select.js +5 -5
- package/dist/collection/components/slides/slides.js +7 -7
- package/dist/collection/components/tabs/tab-group.js +2 -2
- package/dist/collection/utils/testing/index.js +3 -2
- package/dist/collection/utils/testing/index.js.map +1 -1
- package/dist/custom-elements/index.js +147 -54
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{algoliasearch.umd-1bf96913.js → algoliasearch.umd-8e5aff52.js} +3 -3
- package/dist/esm/{algoliasearch.umd-1bf96913.js.map → algoliasearch.umd-8e5aff52.js.map} +1 -1
- package/dist/esm/{component-store-f0e6cb24.js → component-store-08f430dd.js} +107 -36
- package/dist/esm/component-store-08f430dd.js.map +1 -0
- package/dist/esm/nano-algolia-filter.entry.js +1 -1
- package/dist/esm/nano-algolia-input.entry.js +2 -2
- package/dist/esm/nano-algolia.entry.js +2 -2
- package/dist/esm/nano-date-picker_2.entry.js +1 -1
- package/dist/esm/nano-dialog.entry.js +1 -1
- package/dist/esm/nano-global-nav.entry.js +4 -2
- package/dist/esm/nano-global-nav.entry.js.map +1 -1
- package/dist/esm/nano-global-search-results.entry.js +3 -2
- package/dist/esm/nano-global-search-results.entry.js.map +1 -1
- package/dist/esm/nano-nav-item_2.entry.js +1 -1
- package/dist/esm/nano-slides.entry.js +7 -6
- package/dist/esm/nano-slides.entry.js.map +1 -1
- package/dist/esm/nano-tab-group.entry.js +1 -1
- package/dist/esm/nano-tooltip.entry.js +1 -1
- package/dist/esm/{popover-9169205e.js → popover-2c7b2326.js} +29 -10
- package/dist/esm/popover-2c7b2326.js.map +1 -0
- package/dist/esm-es5/{algoliasearch.umd-1bf96913.js → algoliasearch.umd-8e5aff52.js} +3 -3
- package/dist/esm-es5/{algoliasearch.umd-1bf96913.js.map → algoliasearch.umd-8e5aff52.js.map} +1 -1
- package/dist/esm-es5/component-store-08f430dd.js +5 -0
- package/dist/esm-es5/component-store-08f430dd.js.map +1 -0
- package/dist/esm-es5/nano-algolia-filter.entry.js +1 -1
- package/dist/esm-es5/nano-algolia-input.entry.js +1 -1
- package/dist/esm-es5/nano-algolia.entry.js +1 -1
- package/dist/esm-es5/nano-date-picker_2.entry.js +1 -1
- package/dist/esm-es5/nano-dialog.entry.js +1 -1
- package/dist/esm-es5/nano-global-nav.entry.js +1 -1
- package/dist/esm-es5/nano-global-nav.entry.js.map +1 -1
- package/dist/esm-es5/nano-global-search-results.entry.js +1 -1
- package/dist/esm-es5/nano-global-search-results.entry.js.map +1 -1
- package/dist/esm-es5/nano-nav-item_2.entry.js +1 -1
- package/dist/esm-es5/nano-slides.entry.js +3 -3
- package/dist/esm-es5/nano-slides.entry.js.map +1 -1
- package/dist/esm-es5/nano-tab-group.entry.js +1 -1
- package/dist/esm-es5/nano-tooltip.entry.js +1 -1
- package/dist/esm-es5/popover-2c7b2326.js +5 -0
- package/dist/esm-es5/popover-2c7b2326.js.map +1 -0
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/{p-89dc184e.system.entry.js → p-014f62dc.system.entry.js} +2 -2
- package/dist/nano-components/{p-89dc184e.system.entry.js.map → p-014f62dc.system.entry.js.map} +0 -0
- package/dist/nano-components/{p-beee3c85.system.entry.js → p-03104b3a.system.entry.js} +2 -2
- package/dist/nano-components/{p-beee3c85.system.entry.js.map → p-03104b3a.system.entry.js.map} +0 -0
- package/dist/nano-components/{p-26dcb670.system.entry.js → p-12ad4144.system.entry.js} +2 -2
- package/dist/nano-components/{p-26dcb670.system.entry.js.map → p-12ad4144.system.entry.js.map} +0 -0
- package/dist/nano-components/{p-7b0c0c51.entry.js → p-2bf707e3.entry.js} +4 -4
- package/dist/nano-components/{p-7b0c0c51.entry.js.map → p-2bf707e3.entry.js.map} +1 -1
- package/dist/nano-components/{p-22a51b34.system.entry.js → p-2c34907c.system.entry.js} +2 -2
- package/dist/nano-components/{p-22a51b34.system.entry.js.map → p-2c34907c.system.entry.js.map} +0 -0
- package/dist/nano-components/p-2df9e977.system.entry.js +5 -0
- package/dist/nano-components/p-2df9e977.system.entry.js.map +1 -0
- package/dist/nano-components/{p-dbbf7b9d.system.entry.js → p-31ade697.system.entry.js} +2 -2
- package/dist/nano-components/{p-dbbf7b9d.system.entry.js.map → p-31ade697.system.entry.js.map} +0 -0
- package/dist/nano-components/{p-81248be1.entry.js → p-3d1328a2.entry.js} +2 -2
- package/dist/nano-components/{p-81248be1.entry.js.map → p-3d1328a2.entry.js.map} +0 -0
- package/dist/nano-components/p-3f00179c.js +5 -0
- package/dist/nano-components/p-3f00179c.js.map +1 -0
- package/dist/nano-components/{p-78c2b685.entry.js → p-457864f2.entry.js} +2 -2
- package/dist/nano-components/{p-78c2b685.entry.js.map → p-457864f2.entry.js.map} +0 -0
- package/dist/nano-components/{p-b499e206.system.entry.js → p-568b607c.system.entry.js} +2 -2
- package/dist/nano-components/{p-b499e206.system.entry.js.map → p-568b607c.system.entry.js.map} +0 -0
- package/dist/nano-components/{p-7dc55b56.system.entry.js → p-5dbb9fb7.system.entry.js} +4 -4
- package/dist/nano-components/{p-7dc55b56.system.entry.js.map → p-5dbb9fb7.system.entry.js.map} +1 -1
- package/dist/nano-components/p-7154bfd9.system.js +1 -1
- package/dist/nano-components/p-71b5ba7f.system.js +5 -0
- package/dist/nano-components/p-71b5ba7f.system.js.map +1 -0
- package/dist/nano-components/{p-6e2cc669.entry.js → p-75f1499e.entry.js} +2 -2
- package/dist/nano-components/{p-6e2cc669.entry.js.map → p-75f1499e.entry.js.map} +0 -0
- package/dist/nano-components/p-7dd28543.js +5 -0
- package/dist/nano-components/p-7dd28543.js.map +1 -0
- package/dist/nano-components/{p-d79e5a9b.entry.js → p-8387377a.entry.js} +2 -2
- package/dist/nano-components/{p-d79e5a9b.entry.js.map → p-8387377a.entry.js.map} +0 -0
- package/dist/nano-components/{p-3bbdfb96.js → p-8757b4eb.js} +3 -3
- package/dist/nano-components/{p-3bbdfb96.js.map → p-8757b4eb.js.map} +1 -1
- package/dist/nano-components/{p-a32b6a4a.entry.js → p-95c8e898.entry.js} +2 -2
- package/dist/nano-components/{p-a32b6a4a.entry.js.map → p-95c8e898.entry.js.map} +0 -0
- package/dist/nano-components/{p-5e8e5fc0.system.entry.js → p-9d38cc3e.system.entry.js} +2 -2
- package/dist/nano-components/{p-5e8e5fc0.system.entry.js.map → p-9d38cc3e.system.entry.js.map} +0 -0
- package/dist/nano-components/{p-25c9fb70.system.js → p-a16651a6.system.js} +3 -3
- package/dist/nano-components/{p-25c9fb70.system.js.map → p-a16651a6.system.js.map} +1 -1
- package/dist/nano-components/{p-d82e941d.system.entry.js → p-b15362c6.system.entry.js} +2 -2
- package/dist/nano-components/p-b15362c6.system.entry.js.map +1 -0
- package/dist/nano-components/{p-80573547.entry.js → p-b198296f.entry.js} +2 -2
- package/dist/nano-components/{p-80573547.entry.js.map → p-b198296f.entry.js.map} +0 -0
- package/dist/nano-components/p-d31761c8.system.js +5 -0
- package/dist/nano-components/p-d31761c8.system.js.map +1 -0
- package/dist/nano-components/{p-4948b950.entry.js → p-d6d1a8c2.entry.js} +2 -2
- package/dist/nano-components/{p-4948b950.entry.js.map → p-d6d1a8c2.entry.js.map} +0 -0
- package/dist/nano-components/{p-fb75dd54.entry.js → p-d99e661e.entry.js} +2 -2
- package/dist/nano-components/p-d99e661e.entry.js.map +1 -0
- package/dist/nano-components/{p-43d1b037.entry.js → p-e53a485b.entry.js} +2 -2
- package/dist/nano-components/{p-43d1b037.entry.js.map → p-e53a485b.entry.js.map} +0 -0
- package/dist/nano-components/p-e669e7d5.entry.js +5 -0
- package/dist/nano-components/p-e669e7d5.entry.js.map +1 -0
- package/dist/nano-components/{p-980231d8.system.entry.js → p-f4b06615.system.entry.js} +2 -2
- package/dist/nano-components/{p-980231d8.system.entry.js.map → p-f4b06615.system.entry.js.map} +0 -0
- package/dist/types/utils/testing/index.d.ts +3 -1
- package/docs-json.json +1 -1
- package/package.json +4 -4
- package/dist/cjs/component-store-1aa64afb.js.map +0 -1
- package/dist/cjs/popover-04a39914.js.map +0 -1
- package/dist/esm/component-store-f0e6cb24.js.map +0 -1
- package/dist/esm/popover-9169205e.js.map +0 -1
- package/dist/esm-es5/component-store-f0e6cb24.js +0 -5
- package/dist/esm-es5/component-store-f0e6cb24.js.map +0 -1
- package/dist/esm-es5/popover-9169205e.js +0 -5
- package/dist/esm-es5/popover-9169205e.js.map +0 -1
- package/dist/nano-components/p-0c6ab963.system.js +0 -5
- package/dist/nano-components/p-0c6ab963.system.js.map +0 -1
- package/dist/nano-components/p-42498146.js +0 -5
- package/dist/nano-components/p-42498146.js.map +0 -1
- package/dist/nano-components/p-4ee6f8e7.entry.js +0 -5
- package/dist/nano-components/p-4ee6f8e7.entry.js.map +0 -1
- package/dist/nano-components/p-8766e262.js +0 -5
- package/dist/nano-components/p-8766e262.js.map +0 -1
- package/dist/nano-components/p-d82e941d.system.entry.js.map +0 -1
- package/dist/nano-components/p-f1f2a010.system.entry.js +0 -5
- package/dist/nano-components/p-f1f2a010.system.entry.js.map +0 -1
- package/dist/nano-components/p-f65a1ff4.system.js +0 -5
- package/dist/nano-components/p-f65a1ff4.system.js.map +0 -1
- package/dist/nano-components/p-fb75dd54.entry.js.map +0 -1
@@ -304,9 +304,9 @@ var LEGACY_ALIASES = {
|
|
304
304
|
|
305
305
|
|
306
306
|
|
307
|
-
var $concat = functionBind.call(Function.call, Array.prototype.concat);
|
307
|
+
var $concat$1 = functionBind.call(Function.call, Array.prototype.concat);
|
308
308
|
var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
|
309
|
-
var $replace = functionBind.call(Function.call, String.prototype.replace);
|
309
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
310
310
|
var $strSlice = functionBind.call(Function.call, String.prototype.slice);
|
311
311
|
|
312
312
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
@@ -321,8 +321,8 @@ var stringToPath = function stringToPath(string) {
|
|
321
321
|
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
322
322
|
}
|
323
323
|
var result = [];
|
324
|
-
$replace(string, rePropName, function (match, number, quote, subString) {
|
325
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
324
|
+
$replace$1(string, rePropName, function (match, number, quote, subString) {
|
325
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
|
326
326
|
});
|
327
327
|
return result;
|
328
328
|
};
|
@@ -374,7 +374,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
374
374
|
var alias = intrinsic.alias;
|
375
375
|
if (alias) {
|
376
376
|
intrinsicBaseName = alias[0];
|
377
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
377
|
+
$spliceApply(parts, $concat$1([0, 1], alias));
|
378
378
|
}
|
379
379
|
|
380
380
|
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
@@ -520,11 +520,24 @@ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
520
520
|
var booleanValueOf = Boolean.prototype.valueOf;
|
521
521
|
var objectToString = Object.prototype.toString;
|
522
522
|
var functionToString = Function.prototype.toString;
|
523
|
-
var match = String.prototype.match;
|
523
|
+
var $match = String.prototype.match;
|
524
|
+
var $slice = String.prototype.slice;
|
525
|
+
var $replace = String.prototype.replace;
|
526
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
527
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
528
|
+
var $test = RegExp.prototype.test;
|
529
|
+
var $concat = Array.prototype.concat;
|
530
|
+
var $join = Array.prototype.join;
|
531
|
+
var $arrSlice = Array.prototype.slice;
|
532
|
+
var $floor = Math.floor;
|
524
533
|
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
525
534
|
var gOPS = Object.getOwnPropertySymbols;
|
526
535
|
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
527
536
|
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
537
|
+
// ie, `has-tostringtag/shams
|
538
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
539
|
+
? Symbol.toStringTag
|
540
|
+
: null;
|
528
541
|
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
529
542
|
|
530
543
|
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
@@ -535,9 +548,30 @@ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPr
|
|
535
548
|
: null
|
536
549
|
);
|
537
550
|
|
551
|
+
function addNumericSeparator(num, str) {
|
552
|
+
if (
|
553
|
+
num === Infinity
|
554
|
+
|| num === -Infinity
|
555
|
+
|| num !== num
|
556
|
+
|| (num && num > -1000 && num < 1000)
|
557
|
+
|| $test.call(/e/, str)
|
558
|
+
) {
|
559
|
+
return str;
|
560
|
+
}
|
561
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
562
|
+
if (typeof num === 'number') {
|
563
|
+
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
564
|
+
if (int !== num) {
|
565
|
+
var intStr = String(int);
|
566
|
+
var dec = $slice.call(str, intStr.length + 1);
|
567
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
568
|
+
}
|
569
|
+
}
|
570
|
+
return $replace.call(str, sepRegex, '$&_');
|
571
|
+
}
|
572
|
+
|
538
573
|
var inspectCustom = require$$0.custom;
|
539
574
|
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
|
540
|
-
var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
|
541
575
|
|
542
576
|
var objectInspect = function inspect_(obj, options, depth, seen) {
|
543
577
|
var opts = options || {};
|
@@ -564,8 +598,12 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
564
598
|
&& opts.indent !== '\t'
|
565
599
|
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
566
600
|
) {
|
567
|
-
throw new TypeError('
|
601
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
568
602
|
}
|
603
|
+
if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
604
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
605
|
+
}
|
606
|
+
var numericSeparator = opts.numericSeparator;
|
569
607
|
|
570
608
|
if (typeof obj === 'undefined') {
|
571
609
|
return 'undefined';
|
@@ -584,10 +622,12 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
584
622
|
if (obj === 0) {
|
585
623
|
return Infinity / obj > 0 ? '0' : '-0';
|
586
624
|
}
|
587
|
-
|
625
|
+
var str = String(obj);
|
626
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
588
627
|
}
|
589
628
|
if (typeof obj === 'bigint') {
|
590
|
-
|
629
|
+
var bigIntStr = String(obj) + 'n';
|
630
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
591
631
|
}
|
592
632
|
|
593
633
|
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
@@ -606,7 +646,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
606
646
|
|
607
647
|
function inspect(value, from, noIndent) {
|
608
648
|
if (from) {
|
609
|
-
seen =
|
649
|
+
seen = $arrSlice.call(seen);
|
610
650
|
seen.push(from);
|
611
651
|
}
|
612
652
|
if (noIndent) {
|
@@ -624,21 +664,21 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
624
664
|
if (typeof obj === 'function') {
|
625
665
|
var name = nameOf(obj);
|
626
666
|
var keys = arrObjKeys(obj, inspect);
|
627
|
-
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' +
|
667
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
628
668
|
}
|
629
669
|
if (isSymbol(obj)) {
|
630
|
-
var symString = hasShammedSymbols ? String(obj)
|
670
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
631
671
|
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
632
672
|
}
|
633
673
|
if (isElement(obj)) {
|
634
|
-
var s = '<' + String(obj.nodeName)
|
674
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
635
675
|
var attrs = obj.attributes || [];
|
636
676
|
for (var i = 0; i < attrs.length; i++) {
|
637
677
|
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
638
678
|
}
|
639
679
|
s += '>';
|
640
680
|
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
641
|
-
s += '</' + String(obj.nodeName)
|
681
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
642
682
|
return s;
|
643
683
|
}
|
644
684
|
if (isArray$3(obj)) {
|
@@ -647,12 +687,15 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
647
687
|
if (indent && !singleLineValues(xs)) {
|
648
688
|
return '[' + indentedJoin(xs, indent) + ']';
|
649
689
|
}
|
650
|
-
return '[ ' +
|
690
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
651
691
|
}
|
652
692
|
if (isError(obj)) {
|
653
693
|
var parts = arrObjKeys(obj, inspect);
|
694
|
+
if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
695
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
696
|
+
}
|
654
697
|
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
655
|
-
return '{ [' + String(obj) + '] ' +
|
698
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
656
699
|
}
|
657
700
|
if (typeof obj === 'object' && customInspect) {
|
658
701
|
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
|
@@ -700,14 +743,14 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
700
743
|
var ys = arrObjKeys(obj, inspect);
|
701
744
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
702
745
|
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
703
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj)
|
746
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
704
747
|
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
705
|
-
var tag = constructorTag + (stringTag || protoTag ? '[' +
|
748
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
706
749
|
if (ys.length === 0) { return tag + '{}'; }
|
707
750
|
if (indent) {
|
708
751
|
return tag + '{' + indentedJoin(ys, indent) + '}';
|
709
752
|
}
|
710
|
-
return tag + '{ ' +
|
753
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
711
754
|
}
|
712
755
|
return String(obj);
|
713
756
|
};
|
@@ -718,7 +761,7 @@ function wrapQuotes(s, defaultStyle, opts) {
|
|
718
761
|
}
|
719
762
|
|
720
763
|
function quote(s) {
|
721
|
-
return String(s)
|
764
|
+
return $replace.call(String(s), /"/g, '"');
|
722
765
|
}
|
723
766
|
|
724
767
|
function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
@@ -769,7 +812,7 @@ function toStr(obj) {
|
|
769
812
|
|
770
813
|
function nameOf(f) {
|
771
814
|
if (f.name) { return f.name; }
|
772
|
-
var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
815
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
773
816
|
if (m) { return m[1]; }
|
774
817
|
return null;
|
775
818
|
}
|
@@ -869,10 +912,10 @@ function inspectString(str, opts) {
|
|
869
912
|
if (str.length > opts.maxStringLength) {
|
870
913
|
var remaining = str.length - opts.maxStringLength;
|
871
914
|
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
872
|
-
return inspectString(
|
915
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
873
916
|
}
|
874
917
|
// eslint-disable-next-line no-control-regex
|
875
|
-
var s =
|
918
|
+
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
876
919
|
return wrapQuotes(s, 'single', opts);
|
877
920
|
}
|
878
921
|
|
@@ -886,7 +929,7 @@ function lowbyte(c) {
|
|
886
929
|
13: 'r'
|
887
930
|
}[n];
|
888
931
|
if (x) { return '\\' + x; }
|
889
|
-
return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16)
|
932
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
890
933
|
}
|
891
934
|
|
892
935
|
function markBoxed(str) {
|
@@ -898,7 +941,7 @@ function weakCollectionOf(type) {
|
|
898
941
|
}
|
899
942
|
|
900
943
|
function collectionOf(type, size, entries, indent) {
|
901
|
-
var joinedEntries = indent ? indentedJoin(entries, indent) :
|
944
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
902
945
|
return type + ' (' + size + ') {' + joinedEntries + '}';
|
903
946
|
}
|
904
947
|
|
@@ -916,20 +959,20 @@ function getIndent(opts, depth) {
|
|
916
959
|
if (opts.indent === '\t') {
|
917
960
|
baseIndent = '\t';
|
918
961
|
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
919
|
-
baseIndent = Array(opts.indent + 1)
|
962
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
920
963
|
} else {
|
921
964
|
return null;
|
922
965
|
}
|
923
966
|
return {
|
924
967
|
base: baseIndent,
|
925
|
-
prev: Array(depth + 1)
|
968
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
926
969
|
};
|
927
970
|
}
|
928
971
|
|
929
972
|
function indentedJoin(xs, indent) {
|
930
973
|
if (xs.length === 0) { return ''; }
|
931
974
|
var lineJoiner = '\n' + indent.prev + indent.base;
|
932
|
-
return lineJoiner +
|
975
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
933
976
|
}
|
934
977
|
|
935
978
|
function arrObjKeys(obj, inspect) {
|
@@ -956,7 +999,7 @@ function arrObjKeys(obj, inspect) {
|
|
956
999
|
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
957
1000
|
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
958
1001
|
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
959
|
-
} else if ((/[^\w$]
|
1002
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
960
1003
|
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
961
1004
|
} else {
|
962
1005
|
xs.push(key + ': ' + inspect(obj[key], obj));
|
@@ -1288,6 +1331,7 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
1288
1331
|
|
1289
1332
|
i += 1;
|
1290
1333
|
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
1334
|
+
/* eslint operator-linebreak: [2, "before"] */
|
1291
1335
|
out += hexTable[0xF0 | (c >> 18)]
|
1292
1336
|
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
1293
1337
|
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
@@ -1377,6 +1421,7 @@ var arrayPrefixGenerators = {
|
|
1377
1421
|
};
|
1378
1422
|
|
1379
1423
|
var isArray$1 = Array.isArray;
|
1424
|
+
var split = String.prototype.split;
|
1380
1425
|
var push = Array.prototype.push;
|
1381
1426
|
var pushToArray = function (arr, valueOrArray) {
|
1382
1427
|
push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
|
@@ -1413,6 +1458,8 @@ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
1413
1458
|
|| typeof v === 'bigint';
|
1414
1459
|
};
|
1415
1460
|
|
1461
|
+
var sentinel = {};
|
1462
|
+
|
1416
1463
|
var stringify = function stringify(
|
1417
1464
|
object,
|
1418
1465
|
prefix,
|
@@ -1432,8 +1479,23 @@ var stringify = function stringify(
|
|
1432
1479
|
) {
|
1433
1480
|
var obj = object;
|
1434
1481
|
|
1435
|
-
|
1436
|
-
|
1482
|
+
var tmpSc = sideChannel$1;
|
1483
|
+
var step = 0;
|
1484
|
+
var findFlag = false;
|
1485
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== undefined && !findFlag) {
|
1486
|
+
// Where object last appeared in the ref tree
|
1487
|
+
var pos = tmpSc.get(object);
|
1488
|
+
step += 1;
|
1489
|
+
if (typeof pos !== 'undefined') {
|
1490
|
+
if (pos === step) {
|
1491
|
+
throw new RangeError('Cyclic object value');
|
1492
|
+
} else {
|
1493
|
+
findFlag = true; // Break while
|
1494
|
+
}
|
1495
|
+
}
|
1496
|
+
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
1497
|
+
step = 0;
|
1498
|
+
}
|
1437
1499
|
}
|
1438
1500
|
|
1439
1501
|
if (typeof filter === 'function') {
|
@@ -1460,6 +1522,14 @@ var stringify = function stringify(
|
|
1460
1522
|
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
1461
1523
|
if (encoder) {
|
1462
1524
|
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
|
1525
|
+
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
|
1526
|
+
var valuesArray = split.call(String(obj), ',');
|
1527
|
+
var valuesJoined = '';
|
1528
|
+
for (var i = 0; i < valuesArray.length; ++i) {
|
1529
|
+
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults$1.encoder, charset, 'value', format));
|
1530
|
+
}
|
1531
|
+
return [formatter(keyValue) + '=' + valuesJoined];
|
1532
|
+
}
|
1463
1533
|
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
|
1464
1534
|
}
|
1465
1535
|
return [formatter(prefix) + '=' + formatter(String(obj))];
|
@@ -1482,8 +1552,8 @@ var stringify = function stringify(
|
|
1482
1552
|
objKeys = sort ? keys.sort(sort) : keys;
|
1483
1553
|
}
|
1484
1554
|
|
1485
|
-
for (var
|
1486
|
-
var key = objKeys[
|
1555
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
1556
|
+
var key = objKeys[j];
|
1487
1557
|
var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
|
1488
1558
|
|
1489
1559
|
if (skipNulls && value === null) {
|
@@ -1494,8 +1564,9 @@ var stringify = function stringify(
|
|
1494
1564
|
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
|
1495
1565
|
: prefix + (allowDots ? '.' + key : '[' + key + ']');
|
1496
1566
|
|
1497
|
-
sideChannel$1.set(object,
|
1567
|
+
sideChannel$1.set(object, step);
|
1498
1568
|
var valueSideChannel = sideChannel();
|
1569
|
+
valueSideChannel.set(sentinel, sideChannel$1);
|
1499
1570
|
pushToArray(values, stringify(
|
1500
1571
|
value,
|
1501
1572
|
keyPrefix,
|
@@ -2162,4 +2233,4 @@ class Store {
|
|
2162
2233
|
|
2163
2234
|
exports.ComponentStore = ComponentStore;
|
2164
2235
|
|
2165
|
-
//# sourceMappingURL=component-store-
|
2236
|
+
//# sourceMappingURL=component-store-bda9b645.js.map
|