@apia/components 4.0.65 → 4.0.68
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 +5 -12
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
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
|
-
|
|
1600
|
+
children: notification.message,
|
|
1601
1601
|
title: notification.title || "",
|
|
1602
1602
|
onConfirm: () => {
|
|
1603
1603
|
},
|
|
@@ -3512,12 +3512,7 @@ const SearchBox = observer((props) => {
|
|
|
3512
3512
|
) : /* @__PURE__ */ jsxs(
|
|
3513
3513
|
Box,
|
|
3514
3514
|
{
|
|
3515
|
-
sx: {
|
|
3516
|
-
display: "flex",
|
|
3517
|
-
flexDirection: "row",
|
|
3518
|
-
alignItems: "center",
|
|
3519
|
-
width: "100%"
|
|
3520
|
-
},
|
|
3515
|
+
sx: { display: "flex", flexDirection: "row", alignItems: "center" },
|
|
3521
3516
|
onClick: () => {
|
|
3522
3517
|
handler.state.width = boxRef.current?.getBoundingClientRect().width ?? handler.state.width;
|
|
3523
3518
|
handler.toggleOpen();
|
|
@@ -9684,6 +9679,9 @@ class TabsController {
|
|
|
9684
9679
|
if (tab && tabProps) {
|
|
9685
9680
|
if (!tabProps.isClosable && !force)
|
|
9686
9681
|
return false;
|
|
9682
|
+
await axios.post(
|
|
9683
|
+
window.CONTEXT + "/apia.splash.MenuAction.run?action=removeTab&isAjax=true&tabId=" + tabId + window.TAB_ID_REQUEST
|
|
9684
|
+
);
|
|
9687
9685
|
const { onBeforeClose } = tabProps;
|
|
9688
9686
|
if (onBeforeClose) {
|
|
9689
9687
|
const canClose = await onBeforeClose();
|
|
@@ -9695,11 +9693,6 @@ class TabsController {
|
|
|
9695
9693
|
});
|
|
9696
9694
|
if (!hasConfirmed)
|
|
9697
9695
|
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
|
-
}
|
|
9703
9696
|
}
|
|
9704
9697
|
}
|
|
9705
9698
|
this.state.openTabsHistory.delete(tab);
|