@apia/components 4.0.64 → 4.0.65

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/index.js CHANGED
@@ -1597,7 +1597,7 @@ class ApiaUtilNotifications {
1597
1597
  if (notification.type === "modal") {
1598
1598
  this.util.modals.open({
1599
1599
  size: "flex",
1600
- children: notification.message,
1600
+ html: notification.message,
1601
1601
  title: notification.title || "",
1602
1602
  onConfirm: () => {
1603
1603
  },
@@ -3512,7 +3512,12 @@ const SearchBox = observer((props) => {
3512
3512
  ) : /* @__PURE__ */ jsxs(
3513
3513
  Box,
3514
3514
  {
3515
- sx: { display: "flex", flexDirection: "row", alignItems: "center" },
3515
+ sx: {
3516
+ display: "flex",
3517
+ flexDirection: "row",
3518
+ alignItems: "center",
3519
+ width: "100%"
3520
+ },
3516
3521
  onClick: () => {
3517
3522
  handler.state.width = boxRef.current?.getBoundingClientRect().width ?? handler.state.width;
3518
3523
  handler.toggleOpen();
@@ -5042,7 +5047,6 @@ const DefaultAccordionItemButton = (props) => {
5042
5047
  }
5043
5048
  ),
5044
5049
  (props.label ?? props.title ?? props.ariaLabel).split(" | ").map((content, i) => {
5045
- console.log(props, content, i);
5046
5050
  if (typeof props.isHtml === "boolean" && props.isHtml || Array.isArray(props.isHtml) && props.isHtml[i]) {
5047
5051
  return /* @__PURE__ */ jsx(
5048
5052
  Box,
@@ -9680,9 +9684,6 @@ class TabsController {
9680
9684
  if (tab && tabProps) {
9681
9685
  if (!tabProps.isClosable && !force)
9682
9686
  return false;
9683
- await axios.post(
9684
- window.CONTEXT + "/apia.splash.MenuAction.run?action=removeTab&isAjax=true&tabId=" + tabId + window.TAB_ID_REQUEST
9685
- );
9686
9687
  const { onBeforeClose } = tabProps;
9687
9688
  if (onBeforeClose) {
9688
9689
  const canClose = await onBeforeClose();
@@ -9694,6 +9695,11 @@ class TabsController {
9694
9695
  });
9695
9696
  if (!hasConfirmed)
9696
9697
  return false;
9698
+ else {
9699
+ await axios.post(
9700
+ window.CONTEXT + "/apia.splash.MenuAction.run?action=removeTab&isAjax=true&tabId=" + tabId + window.TAB_ID_REQUEST
9701
+ );
9702
+ }
9697
9703
  }
9698
9704
  }
9699
9705
  this.state.openTabsHistory.delete(tab);