@mx-cartographer/experiences 7.8.2-alpha.bb3 → 7.8.2-alpha.bb4

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.
@@ -124,12 +124,12 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
124
124
  ...r
125
125
  })),
126
126
  [c]
127
- ), d = ({ row: { id: r, guid: g, has_been_split: v }, field: n }) => v ? C(r) : n === "category" ? i?.(g) : o?.(g), D = (r, g) => {
128
- g.key !== "Enter" && g.key !== " " || d(r);
127
+ ), d = ({ row: { id: r, guid: p, has_been_split: v }, field: n }) => v ? C(r) : n === "category" ? i?.(p) : o?.(p), D = (r, p) => {
128
+ p.key !== "Enter" && p.key !== " " || d(r);
129
129
  };
130
130
  if (!l)
131
131
  return /* @__PURE__ */ e(j, {});
132
- const p = [
132
+ const g = [
133
133
  {
134
134
  field: "flag",
135
135
  headerName: "",
@@ -186,7 +186,7 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
186
186
  return /* @__PURE__ */ e(Ge, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
187
187
  Fe,
188
188
  {
189
- columns: p,
189
+ columns: g,
190
190
  disableColumnFilter: !0,
191
191
  disableColumnMenu: !0,
192
192
  getCellClassName: (r) => r.row.parent_guid ? "split-row" : "",
@@ -235,11 +235,11 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
235
235
  error_amount_must_be_equal_to: i.currency_input.error_amount_must_be_equal_to,
236
236
  error_amount_must_be_less_than_or_equal_to: i.currency_input.error_amount_must_be_less_than_or_equal_to,
237
237
  enter_amount: i.currency_input.enter_amount
238
- }, p = (n) => {
238
+ }, g = (n) => {
239
239
  h(n), s({ ...a, amount: Number(n) });
240
240
  }, r = (n, H) => {
241
241
  s({ ...a, transaction_type: Number(H) });
242
- }, g = (n) => {
242
+ }, p = (n) => {
243
243
  y(n), s({ ...a, payee: n, description: n });
244
244
  }, v = (n) => {
245
245
  s({ ...a, account_guid: n });
@@ -263,7 +263,7 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
263
263
  noValidate: !0
264
264
  },
265
265
  label: o.amount_title,
266
- setAmount: p,
266
+ setAmount: g,
267
267
  setHasValidInput: l,
268
268
  sx: { bgcolor: "background.paper" },
269
269
  type: "number"
@@ -298,7 +298,7 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
298
298
  {
299
299
  label: o.payee_title,
300
300
  name: "payee",
301
- onChange: (n) => g(n.target.value),
301
+ onChange: (n) => p(n.target.value),
302
302
  sx: { bgcolor: "background.paper" },
303
303
  value: C
304
304
  }
@@ -372,9 +372,9 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
372
372
  showInsights: o = !1,
373
373
  sx: a = {}
374
374
  }) => {
375
- const { manualAccounts: l, refreshAccounts: s } = oe(), { is_mobile_webview: c, clientConfig: h, config: C } = je(), { setSearchValue: y } = ut(), { onEvent: d } = Xe(), { common: D, transactions: p } = I(), {
375
+ const { manualAccounts: l, refreshAccounts: s } = oe(), { is_mobile_webview: c, clientConfig: h, config: C } = je(), { setSearchValue: y } = ut(), { onEvent: d } = Xe(), { common: D, transactions: g } = I(), {
376
376
  displayedDateRange: r,
377
- isInitialized: g,
377
+ isInitialized: p,
378
378
  selectedAccountGuids: v,
379
379
  setDisplayedDate: n
380
380
  } = q(), { isDesktop: H, isTablet: se } = ht(), O = nt(), {
@@ -409,19 +409,19 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
409
409
  dateRange: { start: u, end: Z }
410
410
  }), d(S.TRANSACTIONS_VIEW);
411
411
  }, []), m.useEffect(() => {
412
- g && (V({
412
+ p && (V({
413
413
  ...P,
414
414
  accounts: F ? [F] : v,
415
415
  dateRange: { start: r.start, end: r.end }
416
416
  }), le(r.start).finally());
417
- }, [g, r, v]), m.useEffect(() => {
418
- g && xe(
417
+ }, [p, r, v]), m.useEffect(() => {
418
+ p && xe(
419
419
  z(
420
- p.showing_transactions_count,
420
+ g.showing_transactions_count,
421
421
  X.length
422
422
  )
423
423
  );
424
- }, [g, X]);
424
+ }, [p, X]);
425
425
  const b = Y ? _e.find((u) => u.guid === Y) : void 0, Q = he && !!k.payee && !!k.account_guid && !!k.category_guid, Ie = (u) => {
426
426
  ge(), n(u[0], u[1]);
427
427
  }, De = (u) => {
@@ -449,16 +449,16 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
449
449
  }, Le = async () => {
450
450
  b && !b.has_been_viewed && await pe({ ...b, has_been_viewed: !0 }), T("");
451
451
  };
452
- if (!g)
452
+ if (!p)
453
453
  return /* @__PURE__ */ e(j, {});
454
454
  const U = [];
455
455
  return !c && (H || se) && U.push({
456
456
  iconName: "open_in_new",
457
- label: p.export_csv_btn,
457
+ label: g.export_csv_btn,
458
458
  onClick: ve
459
459
  }), C.show_connections_widget_in_master && U.push({
460
460
  iconName: "add",
461
- label: p.add_transaction_btn,
461
+ label: g.add_transaction_btn,
462
462
  onClick: Ne
463
463
  }), /* @__PURE__ */ _(
464
464
  gt,
@@ -471,7 +471,7 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
471
471
  onBackClick: t,
472
472
  showAccountFilter: !F,
473
473
  sx: a,
474
- title: p.transactions_title,
474
+ title: "Testing",
475
475
  children: [
476
476
  $ ? /* @__PURE__ */ _(x, { children: [
477
477
  we,
@@ -479,7 +479,7 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
479
479
  Ct,
480
480
  {
481
481
  onChange: De,
482
- placeholder: p.action_bar_search_placeholder,
482
+ placeholder: g.action_bar_search_placeholder,
483
483
  searchValue: fe
484
484
  }
485
485
  ) }),
@@ -541,7 +541,7 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
541
541
  ariaLabelClose: D.close_aria,
542
542
  isOpen: W === "transaction" && !!b,
543
543
  onClose: Le,
544
- title: p.details_title,
544
+ title: g.details_title,
545
545
  children: b && /* @__PURE__ */ e($e, { transaction: b })
546
546
  }
547
547
  ),
@@ -562,14 +562,14 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
562
562
  isPrimaryDisabled: !Q,
563
563
  onClose: () => T(""),
564
564
  onPrimaryAction: Ee,
565
- title: p.add_transaction_title,
565
+ title: g.add_transaction_title,
566
566
  children: /* @__PURE__ */ e(kt, {})
567
567
  }
568
568
  ),
569
569
  /* @__PURE__ */ e(
570
570
  Et,
571
571
  {
572
- copy: { title: p.add_manual_account },
572
+ copy: { title: g.add_manual_account },
573
573
  isOpen: Ae,
574
574
  onClose: () => {
575
575
  G(!1);
@@ -582,7 +582,7 @@ const yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small",
582
582
  {
583
583
  onClose: ke,
584
584
  showConnectWidget: Se,
585
- title: p.add_manual_account
585
+ title: g.add_manual_account
586
586
  }
587
587
  )
588
588
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.8.2-alpha.bb3",
3
+ "version": "7.8.2-alpha.bb4",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",