@mx-cartographer/experiences 7.0.23-alpha.al9 → 7.0.24-alpha.sms1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.0.23-alpha.al9",
3
+ "version": "7.0.24-alpha.sms1",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -186,7 +186,7 @@
186
186
  "@mui/x-date-pickers-pro": "^7.29.4",
187
187
  "@mxenabled/cssinjs": "^0.6.0",
188
188
  "@mxenabled/mx-icons": "^1.5.1",
189
- "@mxenabled/mxui": "^1.5.6",
189
+ "@mxenabled/mxui": "1.5.7-alpha.sms1",
190
190
  "@mxenabled/web-widget-sdk": "^0.0.13",
191
191
  "@tanstack/react-virtual": "^3.13.2",
192
192
  "bowser": "^2.11.0",
@@ -259,7 +259,6 @@
259
259
  },
260
260
  "peerDependencies": {
261
261
  "@mui/material": "^5",
262
- "@mxenabled/mxui": "^1",
263
262
  "d3": "^7",
264
263
  "date-fns": "^3",
265
264
  "mobx": "^6",
@@ -1,47 +0,0 @@
1
- import { fromUnixTime as c } from "date-fns/fromUnixTime";
2
- import { c as u } from "./Category-CevNQ03n.mjs";
3
- import { f as p, D as m } from "./Dialog-CWW597AF.mjs";
4
- import { T as g } from "./User-Dq9Qj764.mjs";
5
- function f(n) {
6
- return new Set(
7
- n.filter((e) => e.parent_guid !== void 0).map((e) => e.parent_guid)
8
- );
9
- }
10
- function T(n) {
11
- return n.reduce((e, t) => (t.parent_guid && (e[t.parent_guid] || (e[t.parent_guid] = []), e[t.parent_guid].push(t)), e), {});
12
- }
13
- function E(n, e) {
14
- const t = f(e), i = T(e), o = /* @__PURE__ */ new Set(), a = [];
15
- for (const r of n)
16
- t.has(r.guid) ? (i[r.guid] ?? []).slice().sort((s, d) => Math.abs(d.amount) - Math.abs(s.amount)).forEach((s) => {
17
- o.has(s.guid) || (a.push(s), o.add(s.guid));
18
- }) : o.has(r.guid) || (a.push(r), o.add(r.guid));
19
- return a;
20
- }
21
- const j = (n, e) => {
22
- const t = h(l(n, e)), i = encodeURIComponent(t), o = document.createElement("a");
23
- o.href = `data:attachment/csv;charset=utf-8,${i}`, o.download = "transactions.csv", document.body.appendChild(o), o.click(), document.body.removeChild(o);
24
- }, l = (n, e) => n.map((t) => ({
25
- Date: p(c(t.date), m.YEAR_MONTH_DAY),
26
- Description: _(t),
27
- "Original Description": t.feed_description,
28
- Amount: `${t.amount}`,
29
- Type: t.transaction_type === g.CREDIT ? "Credit" : "Debit",
30
- "Parent Category": u[t.top_level_category_guid || ""],
31
- Category: t.category,
32
- Account: t.account,
33
- Tags: C(t, e),
34
- Memo: t.memo
35
- })), h = (n) => {
36
- const e = Object.keys(n[0]).join(",").concat(`\r
37
- `), t = n.map((i) => Object.values(i).join(",")).join(`\r
38
- `);
39
- return e + t;
40
- }, _ = (n) => {
41
- let e = n.parent_guid ? "Split: " : "";
42
- return e += n.is_hidden ? "(Excluded) " : "", e += n.description, e;
43
- }, C = (n, e) => n.tags.map((t) => e.filter((o) => o.guid === t)[0]?.name ?? "").join(" ");
44
- export {
45
- j as e,
46
- E as f
47
- };