@mx-cartographer/experiences 5.1.6-alpha.al0 → 5.2.0
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.es.js +15 -15
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -13902,7 +13902,7 @@ class Iv {
|
|
|
13902
13902
|
};
|
|
13903
13903
|
deleteTransactionRule = async () => {
|
|
13904
13904
|
this.selectedRule && this.transactionApi.removeTransactionRule(this.selectedRule?.guid).then(() => {
|
|
13905
|
-
this.setAlert(this.copy.delete_rule_success, "success");
|
|
13905
|
+
this.setAlert(this.copy.delete_rule_success, "success"), this.loadTransactionRules();
|
|
13906
13906
|
}).catch(() => {
|
|
13907
13907
|
this.setAlert(this.copy.delete_rule_error, "error");
|
|
13908
13908
|
});
|
|
@@ -13984,7 +13984,7 @@ class Iv {
|
|
|
13984
13984
|
};
|
|
13985
13985
|
updateTransactionRule = async (t) => {
|
|
13986
13986
|
this.transactionApi.updateTransactionRule(t).then(() => {
|
|
13987
|
-
this.setAlert(this.copy.edit_payee_success, "success");
|
|
13987
|
+
this.setAlert(this.copy.edit_payee_success, "success"), this.loadTransactionRules();
|
|
13988
13988
|
}).catch(() => {
|
|
13989
13989
|
this.setAlert(this.copy.edit_payee_error, "error");
|
|
13990
13990
|
});
|
|
@@ -17992,31 +17992,31 @@ const Ql = ({
|
|
|
17992
17992
|
);
|
|
17993
17993
|
}
|
|
17994
17994
|
), Sl = X(({ rule: A }) => {
|
|
17995
|
-
const { categories: t } = qA(), { setSelectedGuid: i } = ot(), { deleteTransactionRule: n,
|
|
17996
|
-
|
|
17997
|
-
},
|
|
17998
|
-
await n(),
|
|
17999
|
-
},
|
|
18000
|
-
|
|
18001
|
-
},
|
|
17995
|
+
const { categories: t } = qA(), { setSelectedGuid: i } = ot(), { deleteTransactionRule: n, setSelectedRule: r } = ze(), { isDesktop: o, isTablet: I } = XA(), [a, c] = h.useState(!1), E = () => {
|
|
17996
|
+
c(!1), i(null), r(void 0);
|
|
17997
|
+
}, f = async () => {
|
|
17998
|
+
await n(), E();
|
|
17999
|
+
}, d = () => {
|
|
18000
|
+
c(!0), r(A);
|
|
18001
|
+
}, v = (l) => t.find((u) => u.guid === l)?.name;
|
|
18002
18002
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
18003
18003
|
/* @__PURE__ */ e(
|
|
18004
18004
|
Ar,
|
|
18005
18005
|
{
|
|
18006
|
-
onClick:
|
|
18006
|
+
onClick: d,
|
|
18007
18007
|
primaryText: A.description ? A.description : A.match_description,
|
|
18008
|
-
secondaryText: A.category_guid ?
|
|
18009
|
-
sx: { px:
|
|
18008
|
+
secondaryText: A.category_guid ? v(A.category_guid) : "",
|
|
18009
|
+
sx: { px: I || o ? 0 : 24 }
|
|
18010
18010
|
}
|
|
18011
18011
|
),
|
|
18012
|
-
/* @__PURE__ */ e(q, { sx: { ml:
|
|
18013
|
-
/* @__PURE__ */ e(Bl, { isOpen:
|
|
18012
|
+
/* @__PURE__ */ e(q, { sx: { ml: I || o ? 0 : 24 } }),
|
|
18013
|
+
/* @__PURE__ */ e(Bl, { isOpen: a, onClose: E, onDelete: f })
|
|
18014
18014
|
] });
|
|
18015
18015
|
}), Ul = X(() => {
|
|
18016
18016
|
const { settings: A } = g(), { loadTransactionRules: t, transactionRules: i } = ze(), { isDesktop: n, isTablet: r } = XA();
|
|
18017
18017
|
return h.useEffect(() => {
|
|
18018
18018
|
t();
|
|
18019
|
-
}), /* @__PURE__ */ s(H, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
|
|
18019
|
+
}, []), /* @__PURE__ */ s(H, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
|
|
18020
18020
|
/* @__PURE__ */ s(H, { sx: { px: r || n ? 0 : 24 }, children: [
|
|
18021
18021
|
/* @__PURE__ */ e(te, { children: A.transaction_rules_label }),
|
|
18022
18022
|
/* @__PURE__ */ e(bA, { variant: "Body", children: A.transaction_rules_description })
|