@cfxjs/sirius-next-common 0.5.0 → 0.6.1
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/{chunk-ODPPKXIV.js → chunk-2PHHS2RO.js} +2 -2
- package/dist/{chunk-IVE75CAC.js → chunk-33FSTL4O.js} +5 -5
- package/dist/{chunk-HTRUONHE.js → chunk-3NZH5WQ5.js} +2 -2
- package/dist/{chunk-QBF7EJFY.js → chunk-5X4PEJBK.js} +7 -7
- package/dist/{chunk-TTMMIWXR.js → chunk-6B2K5TEW.js} +3 -3
- package/dist/{chunk-LUHISU5F.js → chunk-6CSKHPNW.js} +2 -2
- package/dist/{chunk-CPSXYQJ7.js → chunk-6R34R4GT.js} +6 -3
- package/dist/{chunk-CPSXYQJ7.js.map → chunk-6R34R4GT.js.map} +1 -1
- package/dist/{chunk-4MVQ3JTN.js → chunk-7XTWMLAL.js} +2 -2
- package/dist/{chunk-M7G2HHUU.js → chunk-A66ETOJQ.js} +12 -10
- package/dist/{chunk-M7G2HHUU.js.map → chunk-A66ETOJQ.js.map} +1 -1
- package/dist/chunk-ATKGS22K.js +22 -0
- package/dist/chunk-ATKGS22K.js.map +1 -0
- package/dist/{chunk-4MEAKY73.js → chunk-BE7ARWED.js} +2 -2
- package/dist/{chunk-TAEXZ5LI.js → chunk-BVUDZX7G.js} +2 -2
- package/dist/{chunk-EGXD2GDI.js → chunk-DG5UBEHF.js} +2 -2
- package/dist/{chunk-S2C6VOUJ.js → chunk-DH2BQ7HL.js} +54 -53
- package/dist/chunk-DH2BQ7HL.js.map +1 -0
- package/dist/{chunk-7FIPVSHQ.js → chunk-DYXED7QQ.js} +2 -2
- package/dist/{chunk-WYM7FWXA.js → chunk-ESZKQ6TN.js} +2 -2
- package/dist/{chunk-NBMABBMG.js → chunk-EXHT4Z5W.js} +5 -5
- package/dist/{chunk-XGSBVC7P.js → chunk-FDTENXEV.js} +2 -2
- package/dist/{chunk-OAUFBUYV.js → chunk-G5X35MKG.js} +5 -5
- package/dist/{chunk-XIQH26WA.js → chunk-IGKHPUYH.js} +2 -2
- package/dist/{chunk-B74PZXOZ.js → chunk-IZPVE2KL.js} +6 -6
- package/dist/{chunk-QCA4QRD4.js → chunk-KEXEB4J3.js} +5 -3
- package/dist/chunk-KEXEB4J3.js.map +1 -0
- package/dist/{chunk-LMY5VYFP.js → chunk-KJGWBTHN.js} +2 -2
- package/dist/{chunk-2WY3J56A.js → chunk-KTHEE74W.js} +2 -2
- package/dist/{chunk-CTCBKNSN.js → chunk-LG4QDJAZ.js} +3 -3
- package/dist/{chunk-3XNQKM2D.js → chunk-LOWSXRES.js} +2 -2
- package/dist/{chunk-H26P76N6.js → chunk-MD7Z3RQW.js} +7 -7
- package/dist/{chunk-UBHTXZWS.js → chunk-OJKUPTS6.js} +2 -2
- package/dist/{chunk-2RVLHSYV.js → chunk-P56G5URI.js} +4 -4
- package/dist/{chunk-LZF26HB6.js → chunk-R6M4UPAP.js} +2 -2
- package/dist/chunk-RJGR6YQY.js +9 -0
- package/dist/chunk-RJGR6YQY.js.map +1 -0
- package/dist/{chunk-RK632STC.js → chunk-SW7XEZSP.js} +4 -4
- package/dist/{chunk-YLBHOAH5.js → chunk-SWXU6RIW.js} +3 -3
- package/dist/{chunk-OGZSZDXL.js → chunk-TLB3MT66.js} +4 -4
- package/dist/{chunk-XJPWKT2J.js → chunk-URGXFUYM.js} +3 -3
- package/dist/{chunk-36EB4LRH.js → chunk-V63T5THG.js} +4 -4
- package/dist/{chunk-D5HJCIRL.js → chunk-VHVK63XA.js} +2 -2
- package/dist/{chunk-2T3VTZXW.js → chunk-VTQN4OFN.js} +3 -3
- package/dist/{chunk-2BLHJLZO.js → chunk-VYC4H34V.js} +6 -6
- package/dist/{chunk-B7IDVT2B.js → chunk-WOL4GXHM.js} +4 -4
- package/dist/{chunk-TIWELXT7.js → chunk-WZNI2XMX.js} +7 -7
- package/dist/chunk-X6IIYPI2.js +5801 -0
- package/dist/chunk-X6IIYPI2.js.map +1 -0
- package/dist/{chunk-OUQEXLFQ.js → chunk-XD4ERIC5.js} +3 -3
- package/dist/{chunk-QL4NKKTA.js → chunk-XF3VAJAR.js} +2 -2
- package/dist/components/AAFailedReason/index.js +6 -5
- package/dist/components/AAFailedReason/index.js.map +1 -1
- package/dist/components/AceEditor/index.js +6 -4
- package/dist/components/AddressContainer/CoreAddressContainer.js +12 -10
- package/dist/components/AddressContainer/EVMAddressContainer.js +11 -9
- package/dist/components/AddressContainer/addressSwitcher.js +9 -7
- package/dist/components/AddressContainer/addressView.js +8 -6
- package/dist/components/AddressContainer/label.js +5 -3
- package/dist/components/AddressContainer/label.js.map +1 -1
- package/dist/components/AddressContainer/utils.js +4 -3
- package/dist/components/Age/index.js +6 -4
- package/dist/components/Age/index.js.map +1 -1
- package/dist/components/AutoComplete/index.js +4 -3
- package/dist/components/AutoComplete/index.js.map +1 -1
- package/dist/components/Charts/HighchartsReact.d.ts +7 -0
- package/dist/components/Charts/HighchartsReact.js +8 -0
- package/dist/components/Charts/HighchartsReact.js.map +1 -0
- package/dist/components/Charts/PreviewChartTemplate.js +6 -3
- package/dist/components/Charts/PreviewChartTemplate.js.map +1 -1
- package/dist/components/Charts/StockChartTemplate.js +9 -6
- package/dist/components/Charts/StockChartTemplate.js.map +1 -1
- package/dist/components/Charts/config.d.ts +2 -2
- package/dist/components/ContractAbi/IntValueFormatter.js +6 -5
- package/dist/components/ContractAbi/ParamTitle.js +7 -5
- package/dist/components/ContractAbi/index.js +13 -11
- package/dist/components/ContractAbi/utils.js +4 -3
- package/dist/components/CopyButton/index.js +5 -3
- package/dist/components/CopyButton/index.js.map +1 -1
- package/dist/components/DecimalsSelect/index.js +5 -4
- package/dist/components/DownloadCSV/index.js +6 -4
- package/dist/components/DownloadCSV/index.js.map +1 -1
- package/dist/components/Dropdown/index.js +9 -5
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/GasPriceDropdown/index.js +3 -2
- package/dist/components/GasPriceDropdown/index.js.map +1 -1
- package/dist/components/IncreasePercent/index.js +3 -2
- package/dist/components/IncreasePercent/index.js.map +1 -1
- package/dist/components/InfoIconWithTooltip/index.js +6 -4
- package/dist/components/InputData/AddressLabel.js +10 -8
- package/dist/components/InputData/ContractDetail.js +6 -5
- package/dist/components/InputData/JsonDecode.js +7 -5
- package/dist/components/InputData/OptimizationDecode.js +14 -12
- package/dist/components/InputData/Original.js +4 -3
- package/dist/components/InputData/UTF8.js +4 -3
- package/dist/components/InputData/index.js +20 -18
- package/dist/components/Modal/index.js +4 -3
- package/dist/components/NetworkIcon/index.js +3 -2
- package/dist/components/NetworkIcon/index.js.map +1 -1
- package/dist/components/OutputData/ErrorDecode.js +19 -17
- package/dist/components/OutputData/index.js +22 -20
- package/dist/components/PhishingAddressContainer/index.js +6 -4
- package/dist/components/PhishingAddressContainer/index.js.map +1 -1
- package/dist/components/Popover/index.js +4 -3
- package/dist/components/Price/index.js +5 -3
- package/dist/components/Price/index.js.map +1 -1
- package/dist/components/ProxyContractAddress/index.js +8 -6
- package/dist/components/ProxyContractAddress/index.js.map +1 -1
- package/dist/components/Radio/index.js +3 -2
- package/dist/components/Radio/index.js.map +1 -1
- package/dist/components/SearchInput/index.js +6 -4
- package/dist/components/SearchInput/index.js.map +1 -1
- package/dist/components/Select/index.js +5 -4
- package/dist/components/Select/select.js +4 -3
- package/dist/components/SmartAccountAddress/index.js +8 -6
- package/dist/components/SmartAccountAddress/index.js.map +1 -1
- package/dist/components/Text/index.js +6 -4
- package/dist/components/Tooltip/index.js +5 -3
- package/dist/components/TransactionAction/coreTransactionAction.js +12 -10
- package/dist/components/TransactionAction/coreTransactionAction.js.map +1 -1
- package/dist/components/TransactionAction/evmTransactionAction.js +11 -9
- package/dist/components/TransactionAction/evmTransactionAction.js.map +1 -1
- package/dist/components/TransactionTrace/TraceDetail.js +30 -28
- package/dist/components/TransactionTrace/TreeTraceTable.js +31 -29
- package/dist/components/TransactionTrace/index.js +31 -29
- package/dist/utils/address.js +3 -2
- package/dist/utils/contractManagerTool.js +3 -2
- package/dist/utils/contractManagerTool.js.map +1 -1
- package/dist/utils/hooks/useAbiItemById.js +3 -2
- package/dist/utils/hooks/useAddressLabel.js +4 -3
- package/dist/utils/hooks/useAddressNameMap.js +3 -2
- package/dist/utils/hooks/useAutoSetHolderFilterParams.js +8 -6
- package/dist/utils/hooks/useAutoSetHolderFilterParams.js.map +1 -1
- package/dist/utils/hooks/useClickAway.d.ts +5 -0
- package/dist/utils/hooks/useClickAway.js +8 -0
- package/dist/utils/hooks/useClickAway.js.map +1 -0
- package/dist/utils/hooks/useContractDetail.js +3 -2
- package/dist/utils/hooks/useContractsStatistics.js +2 -1
- package/dist/utils/hooks/useContractsStatistics.js.map +1 -1
- package/dist/utils/hooks/useDecodeFunctionData.js +6 -5
- package/dist/utils/hooks/useDecodeFunctionError.js +6 -5
- package/dist/utils/hooks/useENS.js +4 -3
- package/dist/utils/hooks/useEnhanceDataWithNameMap.js +3 -2
- package/dist/utils/hooks/useEnhanceDataWithNameMap.js.map +1 -1
- package/dist/utils/hooks/useMethodAbi.js +3 -2
- package/dist/utils/hooks/useSearchParams.js +2 -1
- package/dist/utils/hooks/useSimulateTrace.js +5 -4
- package/dist/utils/hooks/useSimulateTrace.js.map +1 -1
- package/dist/utils/hooks/useTableData.js +7 -5
- package/dist/utils/hooks/useTableData.js.map +1 -1
- package/dist/utils/hooks/useTxTrace.js +5 -4
- package/dist/utils/index.js +3 -2
- package/dist/utils/request.js +2 -1
- package/package.json +11 -4
- package/dist/chunk-QCA4QRD4.js.map +0 -1
- package/dist/chunk-S2C6VOUJ.js.map +0 -1
- /package/dist/{chunk-ODPPKXIV.js.map → chunk-2PHHS2RO.js.map} +0 -0
- /package/dist/{chunk-IVE75CAC.js.map → chunk-33FSTL4O.js.map} +0 -0
- /package/dist/{chunk-HTRUONHE.js.map → chunk-3NZH5WQ5.js.map} +0 -0
- /package/dist/{chunk-QBF7EJFY.js.map → chunk-5X4PEJBK.js.map} +0 -0
- /package/dist/{chunk-TTMMIWXR.js.map → chunk-6B2K5TEW.js.map} +0 -0
- /package/dist/{chunk-LUHISU5F.js.map → chunk-6CSKHPNW.js.map} +0 -0
- /package/dist/{chunk-4MVQ3JTN.js.map → chunk-7XTWMLAL.js.map} +0 -0
- /package/dist/{chunk-4MEAKY73.js.map → chunk-BE7ARWED.js.map} +0 -0
- /package/dist/{chunk-TAEXZ5LI.js.map → chunk-BVUDZX7G.js.map} +0 -0
- /package/dist/{chunk-EGXD2GDI.js.map → chunk-DG5UBEHF.js.map} +0 -0
- /package/dist/{chunk-7FIPVSHQ.js.map → chunk-DYXED7QQ.js.map} +0 -0
- /package/dist/{chunk-WYM7FWXA.js.map → chunk-ESZKQ6TN.js.map} +0 -0
- /package/dist/{chunk-NBMABBMG.js.map → chunk-EXHT4Z5W.js.map} +0 -0
- /package/dist/{chunk-XGSBVC7P.js.map → chunk-FDTENXEV.js.map} +0 -0
- /package/dist/{chunk-OAUFBUYV.js.map → chunk-G5X35MKG.js.map} +0 -0
- /package/dist/{chunk-XIQH26WA.js.map → chunk-IGKHPUYH.js.map} +0 -0
- /package/dist/{chunk-B74PZXOZ.js.map → chunk-IZPVE2KL.js.map} +0 -0
- /package/dist/{chunk-LMY5VYFP.js.map → chunk-KJGWBTHN.js.map} +0 -0
- /package/dist/{chunk-2WY3J56A.js.map → chunk-KTHEE74W.js.map} +0 -0
- /package/dist/{chunk-CTCBKNSN.js.map → chunk-LG4QDJAZ.js.map} +0 -0
- /package/dist/{chunk-3XNQKM2D.js.map → chunk-LOWSXRES.js.map} +0 -0
- /package/dist/{chunk-H26P76N6.js.map → chunk-MD7Z3RQW.js.map} +0 -0
- /package/dist/{chunk-UBHTXZWS.js.map → chunk-OJKUPTS6.js.map} +0 -0
- /package/dist/{chunk-2RVLHSYV.js.map → chunk-P56G5URI.js.map} +0 -0
- /package/dist/{chunk-LZF26HB6.js.map → chunk-R6M4UPAP.js.map} +0 -0
- /package/dist/{chunk-RK632STC.js.map → chunk-SW7XEZSP.js.map} +0 -0
- /package/dist/{chunk-YLBHOAH5.js.map → chunk-SWXU6RIW.js.map} +0 -0
- /package/dist/{chunk-OGZSZDXL.js.map → chunk-TLB3MT66.js.map} +0 -0
- /package/dist/{chunk-XJPWKT2J.js.map → chunk-URGXFUYM.js.map} +0 -0
- /package/dist/{chunk-36EB4LRH.js.map → chunk-V63T5THG.js.map} +0 -0
- /package/dist/{chunk-D5HJCIRL.js.map → chunk-VHVK63XA.js.map} +0 -0
- /package/dist/{chunk-2T3VTZXW.js.map → chunk-VTQN4OFN.js.map} +0 -0
- /package/dist/{chunk-2BLHJLZO.js.map → chunk-VYC4H34V.js.map} +0 -0
- /package/dist/{chunk-B7IDVT2B.js.map → chunk-WOL4GXHM.js.map} +0 -0
- /package/dist/{chunk-TIWELXT7.js.map → chunk-WZNI2XMX.js.map} +0 -0
- /package/dist/{chunk-OUQEXLFQ.js.map → chunk-XD4ERIC5.js.map} +0 -0
- /package/dist/{chunk-QL4NKKTA.js.map → chunk-XF3VAJAR.js.map} +0 -0
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-BMO4IZHV.js";
|
|
30
30
|
import {
|
|
31
31
|
cn
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-DG5UBEHF.js";
|
|
33
33
|
|
|
34
34
|
// src/components/Popover/index.tsx
|
|
35
35
|
import { useRef } from "react";
|
|
@@ -682,35 +682,35 @@ function preventBodyScroll(_document) {
|
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
684
|
|
|
685
|
-
// ../../node_modules/.pnpm/tabbable@6.2
|
|
686
|
-
var candidateSelectors = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"];
|
|
685
|
+
// ../../node_modules/.pnpm/tabbable@6.5.2/node_modules/tabbable/dist/index.esm.js
|
|
686
|
+
var candidateSelectors = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "area[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"];
|
|
687
687
|
var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
|
|
688
688
|
var NoElement = typeof Element === "undefined";
|
|
689
689
|
var matches = NoElement ? function() {
|
|
690
690
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
691
691
|
var getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {
|
|
692
|
-
|
|
693
|
-
return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
|
|
692
|
+
return element == null || element.getRootNode == null ? void 0 : element.getRootNode();
|
|
694
693
|
} : function(element) {
|
|
695
|
-
return element
|
|
694
|
+
return element == null ? void 0 : element.ownerDocument;
|
|
696
695
|
};
|
|
697
|
-
var
|
|
698
|
-
var _node$getAttribute;
|
|
696
|
+
var _isInert = function isInert(node, lookUp) {
|
|
699
697
|
if (lookUp === void 0) {
|
|
700
698
|
lookUp = true;
|
|
701
699
|
}
|
|
702
|
-
var inertAtt = node
|
|
700
|
+
var inertAtt = node == null || node.getAttribute == null ? void 0 : node.getAttribute("inert");
|
|
703
701
|
var inert = inertAtt === "" || inertAtt === "true";
|
|
704
|
-
var result = inert || lookUp && node &&
|
|
702
|
+
var result = inert || lookUp && node && // closest does not exist on shadow roots, so we fall back to a manual
|
|
703
|
+
// lookup upward, in case it is not defined.
|
|
704
|
+
(typeof node.closest === "function" ? node.closest("[inert]") : _isInert(node.parentNode));
|
|
705
705
|
return result;
|
|
706
706
|
};
|
|
707
707
|
var isContentEditable = function isContentEditable2(node) {
|
|
708
|
-
var _node$
|
|
709
|
-
var attValue = node
|
|
710
|
-
return attValue === "" || attValue === "true";
|
|
708
|
+
var _node$getAttribute;
|
|
709
|
+
var attValue = node == null || node.getAttribute == null || (_node$getAttribute = node.getAttribute("contenteditable")) == null ? void 0 : _node$getAttribute.toLowerCase();
|
|
710
|
+
return attValue === "" || attValue === "true" || attValue === "plaintext-only";
|
|
711
711
|
};
|
|
712
712
|
var getCandidates = function getCandidates2(el, includeContainer, filter) {
|
|
713
|
-
if (
|
|
713
|
+
if (_isInert(el)) {
|
|
714
714
|
return [];
|
|
715
715
|
}
|
|
716
716
|
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
@@ -720,18 +720,18 @@ var getCandidates = function getCandidates2(el, includeContainer, filter) {
|
|
|
720
720
|
candidates = candidates.filter(filter);
|
|
721
721
|
return candidates;
|
|
722
722
|
};
|
|
723
|
-
var
|
|
723
|
+
var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
724
724
|
var candidates = [];
|
|
725
725
|
var elementsToCheck = Array.from(elements);
|
|
726
726
|
while (elementsToCheck.length) {
|
|
727
727
|
var element = elementsToCheck.shift();
|
|
728
|
-
if (
|
|
728
|
+
if (_isInert(element, false)) {
|
|
729
729
|
continue;
|
|
730
730
|
}
|
|
731
731
|
if (element.tagName === "SLOT") {
|
|
732
732
|
var assigned = element.assignedElements();
|
|
733
733
|
var content = assigned.length ? assigned : element.children;
|
|
734
|
-
var nestedCandidates =
|
|
734
|
+
var nestedCandidates = _getCandidatesIteratively(content, true, options);
|
|
735
735
|
if (options.flatten) {
|
|
736
736
|
candidates.push.apply(candidates, nestedCandidates);
|
|
737
737
|
} else {
|
|
@@ -747,9 +747,9 @@ var getCandidatesIteratively = function getCandidatesIteratively2(elements, incl
|
|
|
747
747
|
}
|
|
748
748
|
var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
|
|
749
749
|
typeof options.getShadowRoot === "function" && options.getShadowRoot(element);
|
|
750
|
-
var validShadowRoot = !
|
|
750
|
+
var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
|
|
751
751
|
if (shadowRoot && validShadowRoot) {
|
|
752
|
-
var _nestedCandidates =
|
|
752
|
+
var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
753
753
|
if (options.flatten) {
|
|
754
754
|
candidates.push.apply(candidates, _nestedCandidates);
|
|
755
755
|
} else {
|
|
@@ -836,30 +836,32 @@ var isRadio = function isRadio2(node) {
|
|
|
836
836
|
var isNonTabbableRadio = function isNonTabbableRadio2(node) {
|
|
837
837
|
return isRadio(node) && !isTabbableRadio(node);
|
|
838
838
|
};
|
|
839
|
-
var isNodeAttached = function isNodeAttached2(node) {
|
|
840
|
-
var _nodeRoot;
|
|
841
|
-
var nodeRoot = node && getRootNode(node);
|
|
842
|
-
var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
|
|
843
|
-
var attached = false;
|
|
844
|
-
if (nodeRoot && nodeRoot !== node) {
|
|
845
|
-
var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
|
|
846
|
-
attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
|
|
847
|
-
while (!attached && nodeRootHost) {
|
|
848
|
-
var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
|
|
849
|
-
nodeRoot = getRootNode(nodeRootHost);
|
|
850
|
-
nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
|
|
851
|
-
attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
return attached;
|
|
855
|
-
};
|
|
856
839
|
var isZeroArea = function isZeroArea2(node) {
|
|
857
840
|
var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
|
|
858
841
|
return width === 0 && height === 0;
|
|
859
842
|
};
|
|
860
843
|
var isHidden = function isHidden2(node, _ref) {
|
|
861
844
|
var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
|
|
862
|
-
if (
|
|
845
|
+
if (displayCheck === "full-native") {
|
|
846
|
+
if ("checkVisibility" in node) {
|
|
847
|
+
var visible = node.checkVisibility({
|
|
848
|
+
// Checking opacity might be desirable for some use cases, but natively,
|
|
849
|
+
// opacity zero elements _are_ focusable and tabbable.
|
|
850
|
+
checkOpacity: false,
|
|
851
|
+
opacityProperty: false,
|
|
852
|
+
contentVisibilityAuto: true,
|
|
853
|
+
visibilityProperty: true,
|
|
854
|
+
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
855
|
+
// support both. However, this alias has wider browser support (Chrome
|
|
856
|
+
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
857
|
+
// we include it anyway.
|
|
858
|
+
checkVisibilityCSS: true
|
|
859
|
+
});
|
|
860
|
+
return !visible;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
var _getComputedStyle = getComputedStyle(node), visibility = _getComputedStyle.visibility;
|
|
864
|
+
if (visibility === "hidden" || visibility === "collapse") {
|
|
863
865
|
return true;
|
|
864
866
|
}
|
|
865
867
|
var isDirectSummary = matches.call(node, "details>summary:first-of-type");
|
|
@@ -867,7 +869,9 @@ var isHidden = function isHidden2(node, _ref) {
|
|
|
867
869
|
if (matches.call(nodeUnderDetails, "details:not([open]) *")) {
|
|
868
870
|
return true;
|
|
869
871
|
}
|
|
870
|
-
if (!displayCheck || displayCheck === "full" ||
|
|
872
|
+
if (!displayCheck || displayCheck === "full" || // full-native can run this branch when it falls through in case
|
|
873
|
+
// Element#checkVisibility is unsupported
|
|
874
|
+
displayCheck === "full-native" || displayCheck === "legacy-full") {
|
|
871
875
|
if (typeof getShadowRoot === "function") {
|
|
872
876
|
var originalNode = node;
|
|
873
877
|
while (node) {
|
|
@@ -885,7 +889,7 @@ var isHidden = function isHidden2(node, _ref) {
|
|
|
885
889
|
}
|
|
886
890
|
node = originalNode;
|
|
887
891
|
}
|
|
888
|
-
if (
|
|
892
|
+
if (node.isConnected) {
|
|
889
893
|
return !node.getClientRects().length;
|
|
890
894
|
}
|
|
891
895
|
if (displayCheck !== "legacy-full") {
|
|
@@ -915,10 +919,7 @@ var isDisabledFromFieldset = function isDisabledFromFieldset2(node) {
|
|
|
915
919
|
return false;
|
|
916
920
|
};
|
|
917
921
|
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(options, node) {
|
|
918
|
-
if (node.disabled ||
|
|
919
|
-
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
920
|
-
// note related to `candidateSelectors`)
|
|
921
|
-
isInert(node) || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
|
|
922
|
+
if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
|
|
922
923
|
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
923
924
|
return false;
|
|
924
925
|
}
|
|
@@ -930,21 +931,21 @@ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(op
|
|
|
930
931
|
}
|
|
931
932
|
return true;
|
|
932
933
|
};
|
|
933
|
-
var
|
|
934
|
+
var isShadowRootTabbable = function isShadowRootTabbable2(shadowHostNode) {
|
|
934
935
|
var tabIndex = parseInt(shadowHostNode.getAttribute("tabindex"), 10);
|
|
935
936
|
if (isNaN(tabIndex) || tabIndex >= 0) {
|
|
936
937
|
return true;
|
|
937
938
|
}
|
|
938
939
|
return false;
|
|
939
940
|
};
|
|
940
|
-
var
|
|
941
|
+
var _sortByOrder = function sortByOrder(candidates) {
|
|
941
942
|
var regularTabbables = [];
|
|
942
943
|
var orderedTabbables = [];
|
|
943
944
|
candidates.forEach(function(item, i) {
|
|
944
945
|
var isScope = !!item.scopeParent;
|
|
945
946
|
var element = isScope ? item.scopeParent : item;
|
|
946
947
|
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
947
|
-
var elements = isScope ?
|
|
948
|
+
var elements = isScope ? _sortByOrder(item.candidates) : element;
|
|
948
949
|
if (candidateTabindex === 0) {
|
|
949
950
|
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
950
951
|
} else {
|
|
@@ -966,22 +967,22 @@ var tabbable = function tabbable2(container, options) {
|
|
|
966
967
|
options = options || {};
|
|
967
968
|
var candidates;
|
|
968
969
|
if (options.getShadowRoot) {
|
|
969
|
-
candidates =
|
|
970
|
+
candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
970
971
|
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
971
972
|
flatten: false,
|
|
972
973
|
getShadowRoot: options.getShadowRoot,
|
|
973
|
-
shadowRootFilter:
|
|
974
|
+
shadowRootFilter: isShadowRootTabbable
|
|
974
975
|
});
|
|
975
976
|
} else {
|
|
976
977
|
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
977
978
|
}
|
|
978
|
-
return
|
|
979
|
+
return _sortByOrder(candidates);
|
|
979
980
|
};
|
|
980
981
|
var focusable = function focusable2(container, options) {
|
|
981
982
|
options = options || {};
|
|
982
983
|
var candidates;
|
|
983
984
|
if (options.getShadowRoot) {
|
|
984
|
-
candidates =
|
|
985
|
+
candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
985
986
|
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
986
987
|
flatten: true,
|
|
987
988
|
getShadowRoot: options.getShadowRoot
|
|
@@ -1001,7 +1002,7 @@ var isTabbable2 = function isTabbable3(node, options) {
|
|
|
1001
1002
|
}
|
|
1002
1003
|
return isNodeMatchingSelectorTabbable(options, node);
|
|
1003
1004
|
};
|
|
1004
|
-
var focusableCandidateSelector = /* @__PURE__ */ candidateSelectors.concat("iframe").join(",");
|
|
1005
|
+
var focusableCandidateSelector = /* @__PURE__ */ candidateSelectors.concat("iframe:not([inert]):not([inert] *)").join(",");
|
|
1005
1006
|
var isFocusable2 = function isFocusable3(node, options) {
|
|
1006
1007
|
options = options || {};
|
|
1007
1008
|
if (!node) {
|
|
@@ -2136,7 +2137,7 @@ export {
|
|
|
2136
2137
|
|
|
2137
2138
|
tabbable/dist/index.esm.js:
|
|
2138
2139
|
(*!
|
|
2139
|
-
* tabbable 6.2
|
|
2140
|
+
* tabbable 6.5.2
|
|
2140
2141
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2141
2142
|
*)
|
|
2142
2143
|
|
|
@@ -2146,4 +2147,4 @@ focus-trap/dist/focus-trap.esm.js:
|
|
|
2146
2147
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
2147
2148
|
*)
|
|
2148
2149
|
*/
|
|
2149
|
-
//# sourceMappingURL=chunk-
|
|
2150
|
+
//# sourceMappingURL=chunk-DH2BQ7HL.js.map
|