@mx-cartographer/experiences 9.0.8-alpha.al1 → 9.0.9-alpha.al0

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.
@@ -1479,7 +1479,7 @@ class Gs {
1479
1479
  this.onStoreUpdate?.(t);
1480
1480
  };
1481
1481
  loadConfigData = async () => {
1482
- await Promise.all([
1482
+ console.log("StyleConfig:", this.appConfig.clientConfig?.master?.style), console.log("ClientStyleProfile:", this.appConfig.clientStyleProfile), await Promise.all([
1483
1483
  // Load copy, config and user data
1484
1484
  this.copyStore.loadCopy(),
1485
1485
  this.appDataStore.loadAppData(),
@@ -1,4 +1,4 @@
1
- import { l as V } from "../UserStore-DzWku3t0.mjs";
1
+ import { l as V } from "../UserStore-DIYXueGr.mjs";
2
2
  import { b as Z, a as z } from "../Localization-DnoVyBNK.mjs";
3
3
  import { f as X, b as rr, a as or, c as er, g as tr, d as ar } from "../NumberFormatting--XMeeBfr.mjs";
4
4
  import { C as nr, a as ir, b as ur } from "../CurrencyDialog-DumQCTPO.mjs";
@@ -8,15 +8,15 @@ import { D as gr, W as yr, u as _r } from "../WidgetContainer-DJnp6t6c.mjs";
8
8
  import { D as xr } from "../Dialog-Bvd2n8hz.mjs";
9
9
  import { D as Cr } from "../Donut-SzzfZDHF.mjs";
10
10
  import { D as br } from "../Drawer-DsnW2o0v.mjs";
11
- import { E as Sr } from "../ErrorBoundary-CsdOcnJ9.mjs";
11
+ import { E as Or } from "../ErrorBoundary-CsdOcnJ9.mjs";
12
12
  import { I as Dr } from "../IconBacking-DgT8DCeh.mjs";
13
13
  import { I as Ir } from "../InformationTooltip-4su8bn1e.mjs";
14
14
  import { L as Nr } from "../Loader-CxeBwuPG.mjs";
15
15
  import { M as Mr } from "../MicroWidgetContainer-B2NnKBgW.mjs";
16
16
  import { M as Pr } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
17
17
  import { jsxs as h, jsx as _ } from "react/jsx-runtime";
18
- import { css as v } from "@mxenabled/cssinjs";
19
- import { D as b, a as O } from "../SingleSegmentDonut-7Uy6VEld.mjs";
18
+ import { css as k } from "@mxenabled/cssinjs";
19
+ import { D as O, a as S } from "../SingleSegmentDonut-7Uy6VEld.mjs";
20
20
  import { S as Gr } from "../SingleSegmentDonut-7Uy6VEld.mjs";
21
21
  import { R as Ur } from "../ResponsiveButton-CC9F_Ezk.mjs";
22
22
  import { S as Br } from "../SelectionBox-B4xELRgp.mjs";
@@ -29,7 +29,7 @@ import { C as eo } from "../CurrencyText-CCbE6MmF.mjs";
29
29
  import { E as ao } from "../EmptyState-CJUDc3kD.mjs";
30
30
  import { E as no } from "../Error-Dtw6yxkf.mjs";
31
31
  import { G as uo } from "../GlobalAccountFilter-BhzR5Vb1.mjs";
32
- import { G as lo, m as mo, n as po, W as fo, c as go, i as yo, o as _o, p as ho, l as xo, q as Eo, r as Co, f as vo, s as bo, u as Oo, e as So, a as ko, k as Do, t as To, v as Io, w as Ao, b as No, x as wo, y as Mo, z as Lo, h as Po, A as Wo, g as Go, B as Ro, C as Uo, D as Fo } from "../hooks-97sNJ_lf.mjs";
32
+ import { G as lo, m as mo, n as po, W as fo, c as go, i as yo, o as _o, p as ho, l as xo, q as Eo, r as Co, f as vo, s as bo, u as ko, e as Oo, a as So, k as Do, t as To, v as Io, w as Ao, b as No, x as wo, y as Mo, z as Lo, h as Po, A as Wo, g as Go, B as Ro, C as Uo, D as Fo } from "../hooks-97sNJ_lf.mjs";
33
33
  import { L as qo } from "../ListItemAction-BqUCLj_w.mjs";
34
34
  import { L as $o } from "../ListItemRow-kH1rn8Xu.mjs";
35
35
  import { L as jo } from "../ListItemWrapper-BHIbqx7E.mjs";
@@ -37,7 +37,7 @@ import { S as Vo } from "../SearchBox-Cpgu_gdO.mjs";
37
37
  import { S as Zo, T as zo } from "../Sizes-DISGrlUg.mjs";
38
38
  import { T as Xo, a as re } from "../ToggleListItem-Dl1lXNwj.mjs";
39
39
  import { a as ee, u as te, b as ae } from "../Analytics-CkYXKvco.mjs";
40
- import { alpha as S, darken as k, lighten as D } from "@mui/material";
40
+ import { alpha as D, darken as x, lighten as E } from "@mui/material";
41
41
  import { u as ne } from "../useAccountDisplayName-BsiXA0qf.mjs";
42
42
  import { u as ue } from "../useInsightsEnabled-D5Sdm0TJ.mjs";
43
43
  import { useRef as T, useEffect as I } from "react";
@@ -65,11 +65,11 @@ const F = (r) => {
65
65
  }, Y = ({
66
66
  hasGap: r = !1,
67
67
  segments: o,
68
- size: a = b,
69
- strokeWidth: m = O,
70
- children: s
68
+ size: a = O,
69
+ strokeWidth: m = S,
70
+ children: i
71
71
  }) => {
72
- const c = A(a), i = (a - m) / 2, e = a / 2;
72
+ const c = A(a), u = (a - m) / 2, e = a / 2;
73
73
  let p = -90 - (r ? 1 : 0), l = 0;
74
74
  return /* @__PURE__ */ h("div", { className: `mx-cmn-multi-segment-donut ${c}`, children: [
75
75
  /* @__PURE__ */ h("svg", { height: a, width: a, children: [
@@ -79,30 +79,30 @@ const F = (r) => {
79
79
  cx: e,
80
80
  cy: e,
81
81
  fill: "none",
82
- r: i,
82
+ r: u,
83
83
  stroke: "#E4E8EE",
84
84
  strokeWidth: m
85
85
  }
86
86
  ),
87
- o.map((n, t) => (p += 360 * l + (r ? 1 : 0), l = (n.percent - (r ? 0.3 : 0)) / 100, /* @__PURE__ */ _(
87
+ o.map((s, t) => (p += 360 * l + (r ? 1 : 0), l = (s.percent - (r ? 0.3 : 0)) / 100, /* @__PURE__ */ _(
88
88
  "circle",
89
89
  {
90
90
  cx: e,
91
91
  cy: e,
92
92
  fill: "none",
93
- r: i,
94
- stroke: n.color,
95
- strokeDasharray: 2 * Math.PI * i,
96
- strokeDashoffset: 2 * Math.PI * i * (1 - l),
93
+ r: u,
94
+ stroke: s.color,
95
+ strokeDasharray: 2 * Math.PI * u,
96
+ strokeDashoffset: 2 * Math.PI * u * (1 - l),
97
97
  strokeWidth: m,
98
98
  transform: `rotate(${p}, ${e}, ${e})`
99
99
  },
100
100
  t
101
101
  )))
102
102
  ] }),
103
- /* @__PURE__ */ _("div", { className: "mx-cmn-multi-segment-donut-children", children: s })
103
+ /* @__PURE__ */ _("div", { className: "mx-cmn-multi-segment-donut-children", children: i })
104
104
  ] });
105
- }, A = (r) => v({
105
+ }, A = (r) => k({
106
106
  height: r,
107
107
  marginTop: "-8px",
108
108
  position: "relative",
@@ -128,7 +128,7 @@ const F = (r) => {
128
128
  "tiny"
129
129
  ], w = [
130
130
  { key: "primary", light: "primary_color", dark: "primary_color_dark" },
131
- { key: "secondary", light: "neutral_color", dark: "neutral_color_dark" },
131
+ { key: "secondary", light: "secondary_color", dark: "secondary_color_dark" },
132
132
  { key: "error", light: "error_color", dark: "error_color_dark" },
133
133
  { key: "warning", light: "warning_color", dark: "warning_color_dark" },
134
134
  { key: "info", light: "info_color", dark: "info_color_dark" },
@@ -145,37 +145,42 @@ const F = (r) => {
145
145
  { source: "background_color", target: "default" },
146
146
  { source: "paper_color", target: "paper" }
147
147
  ], $ = (r, o, a) => {
148
- const m = (t) => r?.[t] || o?.[t], s = {}, c = {};
148
+ const m = (t) => r?.[t] ?? o?.[t], i = {}, c = {};
149
149
  for (const { source: t, target: g } of M) {
150
150
  const f = m(t);
151
151
  f && (c[g] = f);
152
152
  }
153
- const i = {};
153
+ const u = {};
154
154
  for (const { source: t, target: g } of L) {
155
155
  const f = m(t);
156
- f && (i[g] = { [a]: f });
156
+ f && (u[g] = {
157
+ light: a === "light" ? f : "",
158
+ dark: a === "dark" ? f : ""
159
+ });
157
160
  }
158
- Object.keys(i).length > 0 && (c.background = i), Object.keys(c).length > 0 && (s.paletteOptions = c);
161
+ Object.keys(u).length > 0 && (c.background = u), Object.keys(c).length > 0 && (i.paletteOptions = c);
159
162
  const e = r?.use_glass ?? o?.use_glass;
160
- e !== void 0 && (s.styleOptions = { useGlass: e });
161
- const p = o?.body_font_name, l = r?.header_font_name || o?.header_font_name;
162
- (p || l) && (s.typographyOptions = {}, p && (s.typographyOptions.fontFamily = p), l && (s.typographyOptions.headerFontFamily = l));
163
- const n = r?.corner_radius || o?.card_corner_radius;
164
- return n !== void 0 && (s.shapeOptions = { borderRadius: n }), s;
163
+ e !== void 0 && (i.styleOptions = { useGlass: e });
164
+ const p = r?.font_name ?? o?.body_font_name, l = r?.header_font_name ?? o?.header_font_name;
165
+ (p || l) && (i.typographyOptions = {}, p && (i.typographyOptions.fontFamily = p), l && (i.typographyOptions.headerFontFamily = l));
166
+ const s = r?.corner_radius ?? o?.card_corner_radius;
167
+ return s !== void 0 && (i.shapeOptions = { borderRadius: s }), i;
165
168
  }, H = (r, o, a, m) => {
166
- const s = r.palette.mode === "dark", c = (a?.font_name || m?.master?.style?.font_name || o?.system_font) ?? r.typography.fontFamily, i = (u, y) => u ? {
167
- light: D(u, 0.25),
168
- main: u,
169
- dark: k(u, 0.25)
169
+ const i = r.palette.mode === "dark", c = a?.font_name ?? m?.master?.style?.font_name ?? o?.system_font ?? r.typography.fontFamily, u = (n, y) => n ? {
170
+ lighter: E(n, 0.5),
171
+ light: E(n, 0.25),
172
+ main: n,
173
+ dark: x(n, 0.25),
174
+ darker: x(n, 0.5)
170
175
  } : y, e = Object.fromEntries(
171
- w.map(({ key: u, light: y, dark: x }) => {
172
- const E = o?.[s ? x : y], C = s ? void 0 : a?.[y];
173
- return [u, i(C || E, r.palette[u])];
176
+ w.map(({ key: n, light: y, dark: C }) => {
177
+ const v = o?.[i ? C : y], b = a?.[y];
178
+ return [n, u(b ?? v, r.palette[n])];
174
179
  })
175
180
  ), p = Object.fromEntries(
176
- N.map((u) => [
177
- u,
178
- u === "fontFamily" ? c : { fontFamily: c }
181
+ N.map((n) => [
182
+ n,
183
+ n === "fontFamily" ? c : { fontFamily: c }
179
184
  ])
180
185
  ), l = {
181
186
  MuiTabs: {
@@ -186,43 +191,43 @@ const F = (r) => {
186
191
  MuiPickersCalendarHeader: {
187
192
  styleOverrides: {
188
193
  switchViewButton: {
189
- color: e.primary.light,
190
- "&:hover": { backgroundColor: S(e.primary.light, 0.1) }
194
+ color: e.primary.lighter,
195
+ "&:hover": { backgroundColor: D(e.primary.light, 0.1) }
191
196
  }
192
197
  }
193
198
  }
194
- }, n = o?.button_corner_radius, t = a?.corner_radius || o?.card_corner_radius, g = a?.use_glass ?? o?.use_glass, f = {
199
+ }, s = o?.button_corner_radius, t = a?.corner_radius ?? o?.card_corner_radius, g = a?.use_glass ?? o?.use_glass, f = {
195
200
  ...l,
196
- ...n && {
201
+ ...s != null && {
197
202
  MuiButton: {
198
203
  styleOverrides: {
199
- root: { borderRadius: `${n}px`, textTransform: "none" }
204
+ root: { borderRadius: `${s}px`, textTransform: "none" }
200
205
  }
201
206
  },
202
207
  MuiIconButton: {
203
208
  styleOverrides: {
204
209
  root: {
205
- borderRadius: `${n}px`,
206
- minWidth: n,
207
- minHeight: n
210
+ borderRadius: `${s}px`,
211
+ minWidth: s,
212
+ minHeight: s
208
213
  }
209
214
  }
210
215
  },
211
216
  MuiToggleButton: {
212
217
  styleOverrides: {
213
- root: { borderRadius: `${n}px`, textTransform: "none" }
218
+ root: { borderRadius: `${s}px`, textTransform: "none" }
214
219
  }
215
220
  }
216
221
  },
217
- ...t && {
222
+ ...t != null && {
218
223
  MuiCard: {
219
224
  styleOverrides: { root: { borderRadius: `${t}px` } }
220
225
  }
221
226
  },
222
- ...(t || g) && {
227
+ ...(t != null || g) && {
223
228
  MuiPaper: {
224
229
  styleOverrides: {
225
- ...t && { rounded: { borderRadius: `${t}px` } },
230
+ ...t != null && { rounded: { borderRadius: `${t}px` } },
226
231
  ...g && {
227
232
  root: {
228
233
  backgroundColor: "rgba(255, 255, 255, 0.1)",
@@ -245,8 +250,8 @@ export {
245
250
  ur as CurrencyDialog,
246
251
  lr as CurrencyInput,
247
252
  eo as CurrencyText,
248
- b as DEFAULT_DONUT_SIZE,
249
- O as DEFAULT_STROKE_WIDTH,
253
+ O as DEFAULT_DONUT_SIZE,
254
+ S as DEFAULT_STROKE_WIDTH,
250
255
  mr as DataRow,
251
256
  gr as DateRangeSelector,
252
257
  xr as Dialog,
@@ -254,7 +259,7 @@ export {
254
259
  br as Drawer,
255
260
  ao as EmptyState,
256
261
  no as Error,
257
- Sr as ErrorBoundary,
262
+ Or as ErrorBoundary,
258
263
  uo as GlobalAccountFilter,
259
264
  lo as GlobalDataContext,
260
265
  mo as GlobalDataProvider,
@@ -310,9 +315,9 @@ export {
310
315
  Co as useError,
311
316
  vo as useEvent,
312
317
  bo as useFinstrongStore,
313
- Oo as useGlobalCopyStore,
314
- So as useGlobalStore,
315
- ko as useGlobalUiStore,
318
+ ko as useGlobalCopyStore,
319
+ Oo as useGlobalStore,
320
+ So as useGlobalUiStore,
316
321
  Do as useGoalStore,
317
322
  To as useHelpStore,
318
323
  Io as useHoldingStore,
@@ -10,9 +10,11 @@ export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientSt
10
10
  };
11
11
  palette: {
12
12
  [k: string]: PaletteColor | {
13
+ lighter: string;
13
14
  light: string;
14
15
  main: string;
15
16
  dark: string;
17
+ darker: string;
16
18
  };
17
19
  };
18
20
  components: {
@@ -70,7 +72,7 @@ export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientSt
70
72
  MuiPickersCalendarHeader: {
71
73
  styleOverrides: {
72
74
  switchViewButton: {
73
- color: string;
75
+ color: string | undefined;
74
76
  '&:hover': {
75
77
  backgroundColor: string;
76
78
  };
@@ -1,4 +1,4 @@
1
- import { A as g, a as m, b as C, c as N, d as h, B as f, e as E, f as D, g as b, C as I, h as M, i as R, j as B, D as L, F as G, k as _, G as H, l as P, m as U, n as x, o as O, H as F, p as k, q as v, r as w, M as W, s as Y, N as $, t as q, u as K, R as j, v as z, S as J, w as Q, T as X, x as Z, y as V, U as tt, z as at, W as st } from "../UserStore-DzWku3t0.mjs";
1
+ import { A as g, a as m, b as C, c as N, d as h, B as f, e as E, f as D, g as b, C as I, h as M, i as R, j as B, D as L, F as G, k as _, G as H, l as P, m as U, n as x, o as O, H as F, p as k, q as v, r as w, M as W, s as Y, N as $, t as q, u as K, R as j, v as z, S as J, w as Q, T as X, x as Z, y as V, U as tt, z as at, W as st } from "../UserStore-DIYXueGr.mjs";
2
2
  import { b as ot, a as nt, d as rt, c as it, A as ct, C as pt, e as At, E as St, M as ut, N as lt, P as Tt, f as yt, g as dt, S as gt } from "../Account-DR7Plrqy.mjs";
3
3
  import { A as Ct, B as Nt, I as ht, N as ft } from "../Notification-DTNYSd8P.mjs";
4
4
  import { F as n } from "../GlobalCopyApi-wcnDUzMV.mjs";
@@ -806,7 +806,7 @@ const z2 = ({
806
806
  },
807
807
  sx: {
808
808
  ".MuiChartsAxis-line": {
809
- stroke: "border.darker"
809
+ stroke: "neutral.darker"
810
810
  }
811
811
  },
812
812
  tickLabelStyle: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.0.8-alpha.al1",
3
+ "version": "9.0.9-alpha.al0",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",