@cfxjs/sirius-next-common 0.6.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.
Files changed (39) hide show
  1. package/dist/{chunk-ROINL4AD.js → chunk-33FSTL4O.js} +3 -3
  2. package/dist/{chunk-OZQ7HC6E.js → chunk-3NZH5WQ5.js} +2 -2
  3. package/dist/{chunk-RPJ6QLNG.js → chunk-5X4PEJBK.js} +5 -5
  4. package/dist/{chunk-ONKMQT55.js → chunk-DH2BQ7HL.js} +53 -52
  5. package/dist/chunk-DH2BQ7HL.js.map +1 -0
  6. package/dist/{chunk-JY3EDI6L.js → chunk-LG4QDJAZ.js} +2 -2
  7. package/dist/{chunk-OBAIINAG.js → chunk-LOWSXRES.js} +2 -2
  8. package/dist/{chunk-NQXQI7SA.js → chunk-MD7Z3RQW.js} +4 -4
  9. package/dist/chunk-RJGR6YQY.js +9 -0
  10. package/dist/chunk-RJGR6YQY.js.map +1 -0
  11. package/dist/{chunk-I2P6ZCOL.js → chunk-WZNI2XMX.js} +4 -4
  12. package/dist/components/AutoComplete/index.js +1 -1
  13. package/dist/components/Charts/HighchartsReact.d.ts +7 -0
  14. package/dist/components/Charts/HighchartsReact.js +8 -0
  15. package/dist/components/Charts/HighchartsReact.js.map +1 -0
  16. package/dist/components/Charts/PreviewChartTemplate.js +4 -2
  17. package/dist/components/Charts/PreviewChartTemplate.js.map +1 -1
  18. package/dist/components/Charts/StockChartTemplate.js +7 -5
  19. package/dist/components/Charts/StockChartTemplate.js.map +1 -1
  20. package/dist/components/Charts/config.d.ts +2 -2
  21. package/dist/components/ContractAbi/IntValueFormatter.js +3 -3
  22. package/dist/components/ContractAbi/index.js +5 -5
  23. package/dist/components/DecimalsSelect/index.js +2 -2
  24. package/dist/components/InputData/index.js +4 -4
  25. package/dist/components/OutputData/ErrorDecode.js +2 -2
  26. package/dist/components/OutputData/index.js +4 -4
  27. package/dist/components/Popover/index.js +1 -1
  28. package/dist/components/TransactionTrace/TraceDetail.js +7 -7
  29. package/dist/components/TransactionTrace/TreeTraceTable.js +8 -8
  30. package/dist/components/TransactionTrace/index.js +8 -8
  31. package/package.json +4 -4
  32. package/dist/chunk-ONKMQT55.js.map +0 -1
  33. /package/dist/{chunk-ROINL4AD.js.map → chunk-33FSTL4O.js.map} +0 -0
  34. /package/dist/{chunk-OZQ7HC6E.js.map → chunk-3NZH5WQ5.js.map} +0 -0
  35. /package/dist/{chunk-RPJ6QLNG.js.map → chunk-5X4PEJBK.js.map} +0 -0
  36. /package/dist/{chunk-JY3EDI6L.js.map → chunk-LG4QDJAZ.js.map} +0 -0
  37. /package/dist/{chunk-OBAIINAG.js.map → chunk-LOWSXRES.js.map} +0 -0
  38. /package/dist/{chunk-NQXQI7SA.js.map → chunk-MD7Z3RQW.js.map} +0 -0
  39. /package/dist/{chunk-I2P6ZCOL.js.map → chunk-WZNI2XMX.js.map} +0 -0
@@ -9,10 +9,10 @@ import {
9
9
  } from "./chunk-URGXFUYM.js";
10
10
  import {
11
11
  OutputData
12
- } from "./chunk-RPJ6QLNG.js";
12
+ } from "./chunk-5X4PEJBK.js";
13
13
  import {
14
14
  InputData
15
- } from "./chunk-I2P6ZCOL.js";
15
+ } from "./chunk-WZNI2XMX.js";
16
16
  import {
17
17
  AbiWarning
18
18
  } from "./chunk-GPHUCEN2.js";
@@ -189,4 +189,4 @@ var TraceDetail = (props) => {
189
189
  export {
190
190
  TraceDetail
191
191
  };
192
- //# sourceMappingURL=chunk-ROINL4AD.js.map
192
+ //# sourceMappingURL=chunk-33FSTL4O.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TraceDetail
3
- } from "./chunk-ROINL4AD.js";
3
+ } from "./chunk-33FSTL4O.js";
4
4
  import {
5
5
  Table
6
6
  } from "./chunk-4WLXG7ZY.js";
@@ -81,4 +81,4 @@ var TreeTraceTable = ({
81
81
  export {
82
82
  TreeTraceTable
83
83
  };
84
- //# sourceMappingURL=chunk-OZQ7HC6E.js.map
84
+ //# sourceMappingURL=chunk-3NZH5WQ5.js.map
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  ErrorDecode
3
- } from "./chunk-NQXQI7SA.js";
3
+ } from "./chunk-MD7Z3RQW.js";
4
+ import {
5
+ DecodedParameters
6
+ } from "./chunk-IZPVE2KL.js";
4
7
  import {
5
8
  Original
6
9
  } from "./chunk-FDTENXEV.js";
@@ -10,9 +13,6 @@ import {
10
13
  import {
11
14
  GeneralDecode
12
15
  } from "./chunk-JVCFVNGV.js";
13
- import {
14
- DecodedParameters
15
- } from "./chunk-IZPVE2KL.js";
16
16
 
17
17
  // src/components/OutputData/index.tsx
18
18
  import { jsx } from "react/jsx-runtime";
@@ -69,4 +69,4 @@ var OutputData = ({
69
69
  export {
70
70
  OutputData
71
71
  };
72
- //# sourceMappingURL=chunk-RPJ6QLNG.js.map
72
+ //# sourceMappingURL=chunk-5X4PEJBK.js.map
@@ -682,35 +682,35 @@ function preventBodyScroll(_document) {
682
682
  };
683
683
  }
684
684
 
685
- // ../../node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.js
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
- var _element$getRootNode;
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 === null || element === void 0 ? void 0 : element.ownerDocument;
694
+ return element == null ? void 0 : element.ownerDocument;
696
695
  };
697
- var isInert = function isInert2(node, lookUp) {
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 === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, "inert");
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 && isInert2(node.parentNode);
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$getAttribute2;
709
- var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, "contenteditable");
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 (isInert(el)) {
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 getCandidatesIteratively = function getCandidatesIteratively2(elements, includeContainer, options) {
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 (isInert(element, false)) {
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 = getCandidatesIteratively2(content, true, options);
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 = !isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
750
+ var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
751
751
  if (shadowRoot && validShadowRoot) {
752
- var _nestedCandidates = getCandidatesIteratively2(shadowRoot === true ? element.children : shadowRoot.children, true, options);
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 (getComputedStyle(node).visibility === "hidden") {
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" || displayCheck === "legacy-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 (isNodeAttached(node)) {
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 || // we must do an inert look up to filter out any elements inside an inert ancestor
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 isValidShadowRootTabbable = function isValidShadowRootTabbable2(shadowHostNode) {
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 sortByOrder = function sortByOrder2(candidates) {
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 ? sortByOrder2(item.candidates) : element;
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 = getCandidatesIteratively([container], options.includeContainer, {
970
+ candidates = _getCandidatesIteratively([container], options.includeContainer, {
970
971
  filter: isNodeMatchingSelectorTabbable.bind(null, options),
971
972
  flatten: false,
972
973
  getShadowRoot: options.getShadowRoot,
973
- shadowRootFilter: isValidShadowRootTabbable
974
+ shadowRootFilter: isShadowRootTabbable
974
975
  });
975
976
  } else {
976
977
  candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
977
978
  }
978
- return sortByOrder(candidates);
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 = getCandidatesIteratively([container], options.includeContainer, {
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.0
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-ONKMQT55.js.map
2150
+ //# sourceMappingURL=chunk-DH2BQ7HL.js.map