@mx-cartographer/experiences 7.2.22-alpha.sms2 → 7.2.23-alpha.sab1

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/CHANGELOG.md CHANGED
@@ -1,8 +1,13 @@
1
- ## [7.2.22] - 12-03-2025
1
+ ## [7.2.23] - 12-03-2025
2
2
 
3
+ - **UPDATED** - `GlobalStore` emits an update when a subscribed-to variable changes. Good for external libraries like Pulse.
4
+ - **UPDATED** - Ability to hide flag with prop `canFlagTransactions` in `TransactionDetails`
3
5
  - **FIXED** - Lonely `Actions` header if no bottom actions in `TransactionDetails`
4
- - **FIXED** - Uses transaction `description` so that a user's text update will be reflected in `TransactionDetails`
5
- - **UPDATE** - `GlobalStore` emits an update when a subscribed-to variable changes. Good for external libraries like Pulse.
6
+
7
+ ## [7.2.22] - 12-03-2025
8
+
9
+ - **FIXED** - Aria annoounce for split row error messages
10
+ - **FIXED** - Aria label for add subcategory modal
6
11
 
7
12
  ## [7.2.21] - 12-03-2025
8
13
 
@@ -44,7 +44,7 @@ import yt from "@mui/material/AlertTitle";
44
44
  import xt from "@mui/material/Link";
45
45
  import wt from "@mui/material/Paper";
46
46
  import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
47
- import { T as vt, a as Lt } from "./TransactionDetails-D9ycDgYU.mjs";
47
+ import { T as vt, a as Lt } from "./TransactionDetails-Cscyr17P.mjs";
48
48
  import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
49
49
  const U = ({
50
50
  children: e,
@@ -23,7 +23,7 @@ import I from "@mui/material/IconButton";
23
23
  import { S as oe } from "./SearchBox-B2_zLv8-.mjs";
24
24
  import { L as k } from "./Loader-DUaFpDGv.mjs";
25
25
  import { D as ae } from "./Drawer-kEE73B87.mjs";
26
- const h = () => {
26
+ const p = () => {
27
27
  if (!C.useContext(K))
28
28
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
29
29
  return y().uiStore;
@@ -48,7 +48,7 @@ const re = ({
48
48
  isOpen: c,
49
49
  type: s
50
50
  }) => {
51
- const [a, i] = C.useState(e), { categories: n } = b(), { setShouldDisableDrawerScroll: l } = h();
51
+ const [a, i] = C.useState(e), { categories: n } = b(), { setShouldDisableDrawerScroll: l } = p();
52
52
  let u = "", d = [];
53
53
  const _ = s === "delete";
54
54
  switch (s) {
@@ -82,9 +82,11 @@ const re = ({
82
82
  children: /* @__PURE__ */ t(Q, { children: _ ? /* @__PURE__ */ t(B, { children: d }) : /* @__PURE__ */ t(
83
83
  q,
84
84
  {
85
- "aria-label": s === "edit" ? n.edit_subcategory_aria : n.add_subcategory_aria,
85
+ inputProps: {
86
+ "aria-label": s === "edit" ? n.edit_subcategory_aria : n.add_subcategory_aria
87
+ },
86
88
  name: "modify-subcategory",
87
- onChange: (p) => i(p.target.value),
89
+ onChange: (h) => i(h.target.value),
88
90
  placeholder: n.input_placeholder,
89
91
  sx: { width: "100%" },
90
92
  value: a
@@ -93,7 +95,7 @@ const re = ({
93
95
  }
94
96
  );
95
97
  }, R = g(re), ne = ({ parentCategory: e }) => {
96
- const [o, r] = C.useState(!1), { addCategory: c } = y(), { categories: s } = b(), { onEvent: a } = D(), { setShouldDisableDrawerScroll: i } = h(), n = async (d) => {
98
+ const [o, r] = C.useState(!1), { addCategory: c } = y(), { categories: s } = b(), { onEvent: a } = D(), { setShouldDisableDrawerScroll: i } = p(), n = async (d) => {
97
99
  await c(d.trim(), e.guid), a(m.ON_SUBCATEGORY_ADDED), r(!1);
98
100
  }, l = async () => {
99
101
  a(m.ON_SUBCATEGORY_ADD_CLICK), i(!0), r(!0);
@@ -168,7 +170,7 @@ const re = ({
168
170
  showSelected: i,
169
171
  unselectable: n,
170
172
  unselectableText: l
171
- } = h(), { categories: u } = b(), { onEvent: d } = D(), [_, p] = C.useState(!1), [f, O] = C.useState(!1), T = !!o.revision, A = o.guid === c, w = !n.some((P) => P === o.guid);
173
+ } = p(), { categories: u } = b(), { onEvent: d } = D(), [_, h] = C.useState(!1), [f, O] = C.useState(!1), T = !!o.revision, A = o.guid === c, w = !n.some((P) => P === o.guid);
172
174
  return /* @__PURE__ */ E(
173
175
  x,
174
176
  {
@@ -205,7 +207,7 @@ const re = ({
205
207
  {
206
208
  "aria-label": S(u.edit_subcategory_aria, o.name),
207
209
  onClick: () => {
208
- p(!0), a(!0), d(m.ON_SUBCATEGORY_EDIT_CLICK);
210
+ h(!0), a(!0), d(m.ON_SUBCATEGORY_EDIT_CLICK);
209
211
  },
210
212
  children: /* @__PURE__ */ t(j, { color: "secondary" })
211
213
  }
@@ -234,7 +236,7 @@ const re = ({
234
236
  _ && /* @__PURE__ */ t(
235
237
  ce,
236
238
  {
237
- setShowRename: p,
239
+ setShowRename: h,
238
240
  showRename: _,
239
241
  subCategory: o
240
242
  }
@@ -243,7 +245,7 @@ const re = ({
243
245
  }
244
246
  );
245
247
  }, me = g(ue), Ce = ({ categories: e, parentCategory: o }) => {
246
- const { expandedGuid: r, searchValue: c } = h(), s = o.guid === r, a = !!c;
248
+ const { expandedGuid: r, searchValue: c } = p(), s = o.guid === r, a = !!c;
247
249
  return /* @__PURE__ */ t(
248
250
  J,
249
251
  {
@@ -269,7 +271,7 @@ const re = ({
269
271
  }
270
272
  );
271
273
  }, ge = g(Ce), _e = ({ category: e, subCategories: o }) => {
272
- const { expandedGuid: r, searchValue: c, setExpandedGuid: s } = h(), { onEvent: a } = D(), i = e.guid === r, n = () => {
274
+ const { expandedGuid: r, searchValue: c, setExpandedGuid: s } = p(), { onEvent: a } = D(), i = e.guid === r, n = () => {
273
275
  const l = e.guid !== r ? e.guid : null;
274
276
  s(l), a(l ? m.ON_CATEGORY_EXPANDED : m.ON_CATEGORY_COLLAPSED);
275
277
  };
@@ -307,8 +309,8 @@ const re = ({
307
309
  /* @__PURE__ */ t(v, { sx: { ml: 58 } }),
308
310
  /* @__PURE__ */ t(ge, { categories: o, parentCategory: e })
309
311
  ] });
310
- }, Ee = g(_e), he = () => {
311
- const { categories: e } = y(), { searchValue: o } = h(), { categories: r } = b(), s = ((a, i = "") => a.reduce((n, l) => {
312
+ }, Ee = g(_e), pe = () => {
313
+ const { categories: e } = y(), { searchValue: o } = p(), { categories: r } = b(), s = ((a, i = "") => a.reduce((n, l) => {
312
314
  if (l.parent_guid === null) {
313
315
  const d = [
314
316
  {
@@ -333,7 +335,7 @@ const re = ({
333
335
  },
334
336
  a.category.guid
335
337
  )) }) });
336
- }, pe = g(he), Se = ({
338
+ }, he = g(pe), Se = ({
337
339
  initialSelected: e,
338
340
  onSelect: o = void 0,
339
341
  showSelected: r = !0,
@@ -344,17 +346,17 @@ const re = ({
344
346
  searchValue: u,
345
347
  setOnSelect: d,
346
348
  setSearchValue: _,
347
- setSelectedGuid: p,
349
+ setSelectedGuid: h,
348
350
  setShowSelected: f,
349
351
  setUnselectable: O,
350
352
  setUnselectableText: T
351
- } = h();
353
+ } = p();
352
354
  return C.useEffect(() => {
353
355
  o && d(o);
354
356
  }), C.useEffect(() => {
355
357
  a.length || i();
356
358
  }, []), C.useEffect(() => {
357
- e && p(e), f(r), O(c), T(s);
359
+ e && h(e), f(r), O(c), T(s);
358
360
  }, [e, r, c, s]), l ? /* @__PURE__ */ E($, { className: "mx-cat-category-selector", sx: { width: "100%" }, children: [
359
361
  /* @__PURE__ */ t(
360
362
  oe,
@@ -366,7 +368,7 @@ const re = ({
366
368
  searchValue: u
367
369
  }
368
370
  ),
369
- /* @__PURE__ */ t(pe, {})
371
+ /* @__PURE__ */ t(he, {})
370
372
  ] }) : /* @__PURE__ */ t(k, {});
371
373
  }, ye = g(Se), be = ({
372
374
  id: e,
@@ -393,5 +395,5 @@ export {
393
395
  ye as C,
394
396
  ze as a,
395
397
  Ee as b,
396
- h as u
398
+ p as u
397
399
  };
@@ -17,7 +17,7 @@ import { endOfMonth as _e } from "date-fns/endOfMonth";
17
17
  import { parseISO as me } from "date-fns/parseISO";
18
18
  import $ from "@mui/material/Button";
19
19
  import { Delete as pe, Add as he, ReceiptLong as ye } from "@mxenabled/mx-icons";
20
- import { T as X, a as ge, u as fe, S as Ce, b as be } from "./TransactionDetails-D9ycDgYU.mjs";
20
+ import { T as X, a as ge, u as fe, S as Ce, b as be } from "./TransactionDetails-Cscyr17P.mjs";
21
21
  import { getDayOfYear as xe } from "date-fns/getDayOfYear";
22
22
  import { setDayOfYear as Se } from "date-fns/setDayOfYear";
23
23
  import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
@@ -7,7 +7,7 @@ import b from "@mui/material/Tabs";
7
7
  import d from "@mui/material/Divider";
8
8
  import R from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-CGYYCOFR.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-CXeJPfjE.mjs";
11
11
  import { u as _, j as A, g as f } from "./hooks-D6XlXHf4.mjs";
12
12
  import { R as y, F as N } from "./RecurringTransactions-ej39mgA6.mjs";
13
13
  import { A as m } from "./WidgetContainer-EbrN1oIo.mjs";