@memobit/libs 3.13.1 → 3.14.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/components/DataView/DataView2.js +39 -39
- package/dist/components/ThemeSettings/getDefaultThemeForApp.js +8 -0
- package/dist/helpers/VersionInfo.js +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +96 -94
- package/dist/version.js +1 -1
- package/dist/version.json +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './DataView.css';
|
|
2
|
-
import { Icon as
|
|
2
|
+
import { Icon as O } from "../Icon/Icon2.js";
|
|
3
3
|
import { Button as ft } from "../Button/Button2.js";
|
|
4
4
|
import { Tooltip as Ee } from "../Tooltip/Tooltip2.js";
|
|
5
5
|
import { Checkbox as re } from "../Checkbox/Checkbox2.js";
|
|
@@ -20,10 +20,10 @@ import { Fragment as Pt, jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
|
20
20
|
function $t({ state: h }) {
|
|
21
21
|
return /* @__PURE__ */ t("span", {
|
|
22
22
|
className: `data-view__sort-icon data-view__sort-icon--${h}`,
|
|
23
|
-
children: /* @__PURE__ */ t(
|
|
23
|
+
children: /* @__PURE__ */ t(O, { name: h === "asc" ? "arrow-up" : h === "desc" ? "arrow-down" : "arrow-bidirectional-vertical" })
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function Xt({ columns: h, data:
|
|
26
|
+
function Xt({ columns: h, data: R, rowKey: le, pinnedIds: y, selectable: w = !1, onSelectionChange: xe, selectedIds: ce, pageSizeOptions: de = Le, initialPageSize: Be = Le[1], showPageSize: $ = !0, card: Fe, actions: C, actionsWidth: z, timeline: N, onRowClick: K, rowHref: he, rowClassName: ue, rowDetail: Ie, empty: S, initialSortKey: Re = null, initialSortDirection: ze = "asc", sortKey: X, sortDirection: me, onSortChange: Ke, miniSort: U, showCardSortControls: Ue = !0, desktopView: fe = "table", cardMaxWidth: We, className: D, onPageChange: je, onPageSizeChange: pe, currentPage: ve, totalItems: _e, group: o, showResultsCount: Oe = !0, totalCount: Xe, itemNoun: Ze, columnSelector: Z }) {
|
|
27
27
|
const { isMobile: we } = vt(), [qe, Je] = P(Re), [Qe, Ye] = P(ze), [He, et] = P([]), f = ce ?? He, [tt, at] = P(1), nt = ve ?? tt, [T, ge] = P(Be), [M, it] = P(() => h.reduce((e, a) => (a.width && (e[a.key] = a.width), e), {})), [be, st] = P(/* @__PURE__ */ new Set()), ke = (e) => {
|
|
28
28
|
st((a) => {
|
|
29
29
|
const s = new Set(a);
|
|
@@ -31,30 +31,30 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
31
31
|
});
|
|
32
32
|
}, g = Mt((e, a) => le?.(e, a) ?? a, [le]), V = (e) => {
|
|
33
33
|
ve === void 0 && at(e), je?.(e);
|
|
34
|
-
}, p =
|
|
35
|
-
|
|
34
|
+
}, p = X !== void 0 ? X : qe, v = me ?? Qe, A = (e, a) => {
|
|
35
|
+
X === void 0 && Je(e), me === void 0 && Ye(a), Ke?.({
|
|
36
36
|
key: e,
|
|
37
37
|
direction: a
|
|
38
38
|
}), V(1);
|
|
39
|
-
},
|
|
40
|
-
let e =
|
|
39
|
+
}, W = L(() => new Set(y ?? []), [y]), q = L(() => {
|
|
40
|
+
let e = R;
|
|
41
41
|
if (p) {
|
|
42
42
|
const n = h.find((i) => i.key === p);
|
|
43
43
|
if (n) {
|
|
44
44
|
const i = n.sortAccessor || n.accessor || ((m) => {
|
|
45
45
|
const u = m[n.key];
|
|
46
46
|
return typeof u == "string" || typeof u == "number" ? u : "";
|
|
47
|
-
}), r = [...
|
|
47
|
+
}), r = [...R].sort((m, u) => {
|
|
48
48
|
const _ = i(m), d = i(u);
|
|
49
49
|
return typeof _ == "number" && typeof d == "number" ? _ - d : String(_).localeCompare(String(d));
|
|
50
50
|
});
|
|
51
51
|
e = v === "asc" ? r : r.reverse();
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
if (
|
|
54
|
+
if (W.size === 0) return e;
|
|
55
55
|
const a = [], s = [];
|
|
56
56
|
if (e.forEach((n, i) => {
|
|
57
|
-
|
|
57
|
+
W.has(g(n, i)) ? a.push(n) : s.push(n);
|
|
58
58
|
}), y && y.length > 1 && a.length > 1) {
|
|
59
59
|
const n = new Map(y.map((i, r) => [i, r]));
|
|
60
60
|
a.sort((i, r) => (n.get(g(i, 0)) ?? 0) - (n.get(g(r, 0)) ?? 0));
|
|
@@ -62,16 +62,16 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
62
62
|
return [...a, ...s];
|
|
63
63
|
}, [
|
|
64
64
|
h,
|
|
65
|
-
|
|
65
|
+
R,
|
|
66
66
|
v,
|
|
67
67
|
p,
|
|
68
|
-
|
|
68
|
+
W,
|
|
69
69
|
y,
|
|
70
70
|
g
|
|
71
71
|
]), j = _e !== void 0, x = L(() => {
|
|
72
|
-
if (!o || j) return
|
|
72
|
+
if (!o || j) return q;
|
|
73
73
|
const e = /* @__PURE__ */ new Map(), a = [];
|
|
74
|
-
|
|
74
|
+
q.forEach((n) => {
|
|
75
75
|
const i = o.groupBy(n), r = e.get(i);
|
|
76
76
|
r ? r.push(n) : (e.set(i, [n]), a.push(i));
|
|
77
77
|
});
|
|
@@ -88,8 +88,8 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
88
88
|
}, [
|
|
89
89
|
o,
|
|
90
90
|
j,
|
|
91
|
-
|
|
92
|
-
]),
|
|
91
|
+
q
|
|
92
|
+
]), B = j ? _e : x.length, J = Math.max(1, Math.ceil(B / T)), F = Math.min(nt, J), b = j ? x : x.slice((F - 1) * T, F * T), Q = Oe ? _t(T, B, Xe ?? B, F, Ze) : null, Y = L(() => {
|
|
93
93
|
if (!o) return null;
|
|
94
94
|
const e = /* @__PURE__ */ new Map();
|
|
95
95
|
return x.forEach((a) => {
|
|
@@ -122,7 +122,7 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
122
122
|
}));
|
|
123
123
|
return wt(e, N.granularity);
|
|
124
124
|
}, [b, N]), E = (e) => {
|
|
125
|
-
ce === void 0 && et(e), xe?.(
|
|
125
|
+
ce === void 0 && et(e), xe?.(R.filter((a, s) => e.includes(g(a, s))));
|
|
126
126
|
}, rt = (e) => {
|
|
127
127
|
e.sortable && (p === e.key ? A(e.key, v === "asc" ? "desc" : "asc") : A(e.key, "asc"));
|
|
128
128
|
}, ot = (e, a) => {
|
|
@@ -140,13 +140,13 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
140
140
|
}, Ce = h.some((e) => e.filter), ee = h.filter((e) => e.sortable), lt = ee.map((e) => ({
|
|
141
141
|
label: bt(e),
|
|
142
142
|
value: e.key
|
|
143
|
-
})), ct = ee.length > 0, te = p ? ee.find((e) => e.key === p) : void 0, dt =
|
|
143
|
+
})), ct = ee.length > 0, te = p ? ee.find((e) => e.key === p) : void 0, dt = U?.align ?? "left", Ne = (U?.columns ?? U?.column ?? []).length > 0 ? /* @__PURE__ */ t(St, {
|
|
144
144
|
columns: h,
|
|
145
|
-
config:
|
|
145
|
+
config: U,
|
|
146
146
|
sortKey: p,
|
|
147
147
|
sortDirection: v,
|
|
148
148
|
onSort: A
|
|
149
|
-
}) : null, Se =
|
|
149
|
+
}) : null, Se = Z && Z.options.length > 0 ? /* @__PURE__ */ t(Nt, { config: Z }) : null, k = b.map(g), ae = k.filter((e) => f.includes(e)).length, ne = !!w && k.length > 0 && ae === k.length, Me = !!w && ae > 0 && ae < k.length, Pe = (e) => {
|
|
150
150
|
E(e ? [...f, ...k.filter((a) => !f.includes(a))] : f.filter((a) => !k.includes(a)));
|
|
151
151
|
}, ht = w && k.length > 0 ? /* @__PURE__ */ c("label", {
|
|
152
152
|
className: "data-view__select-all",
|
|
@@ -211,7 +211,7 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
211
211
|
te && A(te.key, v === "asc" ? "desc" : "asc");
|
|
212
212
|
},
|
|
213
213
|
variant: "ghost",
|
|
214
|
-
children: /* @__PURE__ */ t(
|
|
214
|
+
children: /* @__PURE__ */ t(O, { name: v === "asc" ? "arrow-up" : "arrow-down" })
|
|
215
215
|
})
|
|
216
216
|
})]
|
|
217
217
|
}),
|
|
@@ -229,7 +229,7 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
229
229
|
card: Fe,
|
|
230
230
|
actions: C,
|
|
231
231
|
timeline: N,
|
|
232
|
-
onRowClick:
|
|
232
|
+
onRowClick: K,
|
|
233
233
|
rowHref: he,
|
|
234
234
|
rowClassName: ue,
|
|
235
235
|
empty: S,
|
|
@@ -248,9 +248,9 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
248
248
|
}
|
|
249
249
|
}),
|
|
250
250
|
/* @__PURE__ */ t(Ge, {
|
|
251
|
-
currentPage:
|
|
251
|
+
currentPage: F,
|
|
252
252
|
totalPages: J,
|
|
253
|
-
totalItems:
|
|
253
|
+
totalItems: B,
|
|
254
254
|
onPageChange: V,
|
|
255
255
|
pageSizeOptions: $ ? de : void 0,
|
|
256
256
|
pageSize: $ ? T : void 0,
|
|
@@ -260,7 +260,7 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
260
260
|
})
|
|
261
261
|
]
|
|
262
262
|
});
|
|
263
|
-
const
|
|
263
|
+
const I = h.filter((e) => !e.hideInTable && !(we && e.hideInMobile)), G = N && ye.size > 0, Te = /* @__PURE__ */ c(Pt, { children: [
|
|
264
264
|
De,
|
|
265
265
|
/* @__PURE__ */ t("div", {
|
|
266
266
|
className: "data-view__wrapper",
|
|
@@ -274,7 +274,7 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
274
274
|
onChange: Pe
|
|
275
275
|
})
|
|
276
276
|
}),
|
|
277
|
-
|
|
277
|
+
I.map((e) => {
|
|
278
278
|
const a = {};
|
|
279
279
|
return M[e.key] && (a.width = M[e.key]), e.minWidth && (a.minWidth = e.minWidth), /* @__PURE__ */ c("th", {
|
|
280
280
|
style: Object.keys(a).length > 0 ? a : void 0,
|
|
@@ -292,7 +292,7 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
292
292
|
}),
|
|
293
293
|
C && /* @__PURE__ */ t("th", {
|
|
294
294
|
className: "data-view__actions-header",
|
|
295
|
-
style:
|
|
295
|
+
style: z ? { width: z } : void 0,
|
|
296
296
|
children: "Actions"
|
|
297
297
|
})
|
|
298
298
|
] }), Ce && /* @__PURE__ */ c("tr", {
|
|
@@ -300,7 +300,7 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
300
300
|
children: [
|
|
301
301
|
G && /* @__PURE__ */ t("td", { className: "data-view__filter-cell data-view__filter-cell--spacer" }),
|
|
302
302
|
w && /* @__PURE__ */ t("td", { className: "data-view__filter-cell data-view__filter-cell--spacer" }),
|
|
303
|
-
|
|
303
|
+
I.map((e) => /* @__PURE__ */ t("td", {
|
|
304
304
|
className: "data-view__filter-cell",
|
|
305
305
|
style: M[e.key] ? { width: M[e.key] } : void 0,
|
|
306
306
|
children: e.filter ?? null
|
|
@@ -309,7 +309,7 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
309
309
|
]
|
|
310
310
|
})] }), /* @__PURE__ */ t("tbody", { children: (() => {
|
|
311
311
|
if (b.length === 0) return /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
|
|
312
|
-
colSpan:
|
|
312
|
+
colSpan: I.length + (G ? 1 : 0) + (w ? 1 : 0) + (C ? 1 : 0),
|
|
313
313
|
className: "data-view__empty",
|
|
314
314
|
children: S ? /* @__PURE__ */ t(oe, {
|
|
315
315
|
title: S.title,
|
|
@@ -319,14 +319,14 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
319
319
|
secondary: S.secondary
|
|
320
320
|
}) : /* @__PURE__ */ t(oe, { title: "No data available" })
|
|
321
321
|
}) });
|
|
322
|
-
const e =
|
|
323
|
-
const r = g(n, i), m = f.includes(r), u =
|
|
322
|
+
const e = I.length + (G ? 1 : 0) + (w ? 1 : 0) + (C ? 1 : 0), a = o?.showCount !== !1, s = (n, i) => {
|
|
323
|
+
const r = g(n, i), m = f.includes(r), u = W.has(r), _ = ye.get(i), d = he?.(n), Ae = !!K || !!d, ut = (l) => {
|
|
324
324
|
if (d && (l.metaKey || l.ctrlKey || l.shiftKey)) {
|
|
325
325
|
window.open(d, "_blank", "noopener,noreferrer");
|
|
326
326
|
return;
|
|
327
327
|
}
|
|
328
|
-
if (
|
|
329
|
-
|
|
328
|
+
if (K) {
|
|
329
|
+
K(n, l);
|
|
330
330
|
return;
|
|
331
331
|
}
|
|
332
332
|
d && window.location.assign(d);
|
|
@@ -352,11 +352,11 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
352
352
|
}
|
|
353
353
|
})
|
|
354
354
|
}),
|
|
355
|
-
|
|
355
|
+
I.map((l, se) => /* @__PURE__ */ c("td", {
|
|
356
356
|
style: M[l.key] ? { width: M[l.key] } : void 0,
|
|
357
357
|
children: [se === 0 && u && /* @__PURE__ */ t(Ee, {
|
|
358
358
|
title: "Pinned",
|
|
359
|
-
children: /* @__PURE__ */ t(
|
|
359
|
+
children: /* @__PURE__ */ t(O, {
|
|
360
360
|
className: "data-view__pin-indicator",
|
|
361
361
|
name: "pin",
|
|
362
362
|
size: "sm"
|
|
@@ -365,7 +365,7 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
365
365
|
}, l.key)),
|
|
366
366
|
C && /* @__PURE__ */ t("td", {
|
|
367
367
|
className: "data-view__actions-cell",
|
|
368
|
-
style:
|
|
368
|
+
style: z ? { width: z } : void 0,
|
|
369
369
|
children: /* @__PURE__ */ t("div", {
|
|
370
370
|
className: "data-view__table-actions",
|
|
371
371
|
onClick: (l) => l.stopPropagation(),
|
|
@@ -403,7 +403,7 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
403
403
|
className: "data-view__group-count",
|
|
404
404
|
children: i.items.length === i.totalCount ? i.totalCount : `${i.items.length} of ${i.totalCount}`
|
|
405
405
|
}),
|
|
406
|
-
o?.collapsible && /* @__PURE__ */ t(
|
|
406
|
+
o?.collapsible && /* @__PURE__ */ t(O, {
|
|
407
407
|
className: "data-view__group-chevron",
|
|
408
408
|
name: m ? "caret-down" : "caret-up",
|
|
409
409
|
size: "sm"
|
|
@@ -417,9 +417,9 @@ function Xt({ columns: h, data: I, rowKey: le, pinnedIds: y, selectable: w = !1,
|
|
|
417
417
|
})() })] })
|
|
418
418
|
}),
|
|
419
419
|
/* @__PURE__ */ t(Ge, {
|
|
420
|
-
currentPage:
|
|
420
|
+
currentPage: F,
|
|
421
421
|
totalPages: J,
|
|
422
|
-
totalItems:
|
|
422
|
+
totalItems: B,
|
|
423
423
|
onPageChange: V,
|
|
424
424
|
pageSizeOptions: $ ? de : void 0,
|
|
425
425
|
pageSize: $ ? T : void 0,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { THEME_CONFIGS as a } from "./themeConfig.js";
|
|
2
|
+
var s = (o, r = "luna") => {
|
|
3
|
+
const t = o.trim().toLowerCase(), e = a.find((m) => (m.recommendedApps ?? []).some((p) => p.toLowerCase() === t));
|
|
4
|
+
return e ? e.value : r;
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
s as getDefaultThemeForApp
|
|
8
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1762,6 +1762,14 @@ export declare const getCsrfToken: () => string | null;
|
|
|
1762
1762
|
*/
|
|
1763
1763
|
export declare const getDaysInMonth: (year: number, month: number) => number;
|
|
1764
1764
|
|
|
1765
|
+
/**
|
|
1766
|
+
* The theme an app shows before the user has picked one: the first theme in the picker's
|
|
1767
|
+
* order that is recommended for this app, or the fallback when none is. Match `app` to the
|
|
1768
|
+
* name the app passes to the picker as `currentApp`, so the default and the "For <app>"
|
|
1769
|
+
* filter agree.
|
|
1770
|
+
*/
|
|
1771
|
+
export declare const getDefaultThemeForApp: (app: string, fallback?: Theme) => Theme;
|
|
1772
|
+
|
|
1765
1773
|
export declare const getIndicatorColor: (bmi: number, ranges: BMIRange[]) => string;
|
|
1766
1774
|
|
|
1767
1775
|
export declare const getIndicatorPosition: (bmi: number, ranges: BMIRange[]) => number;
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { AppHeader as E } from "./components/AppHeader/AppHeader2.js";
|
|
|
15
15
|
import { AvatarInitials as L } from "./components/AvatarInitials/AvatarInitials2.js";
|
|
16
16
|
import { Badge as _ } from "./components/Badge/Badge2.js";
|
|
17
17
|
import { Banner as v } from "./components/Banner/Banner2.js";
|
|
18
|
-
import { Blockquote as
|
|
18
|
+
import { Blockquote as F } from "./components/Blockquote/Blockquote2.js";
|
|
19
19
|
import { ADULT_RANGES as N, PEDIATRIC_THRESHOLDS as w, calculateBMI as U, getIndicatorColor as O, getIndicatorPosition as V, getPediatricRanges as W, getRangeLabel as z } from "./components/BMI/bmiUtils.js";
|
|
20
20
|
import { BMI as G } from "./components/BMI/BMI2.js";
|
|
21
21
|
import { Breadcrumb as j } from "./components/Breadcrumb/Breadcrumb2.js";
|
|
@@ -29,7 +29,7 @@ import { Chip as Rr } from "./components/Chip/Chip2.js";
|
|
|
29
29
|
import { CollapsibleSection as yr } from "./components/CollapsibleSection/CollapsibleSection2.js";
|
|
30
30
|
import { InputNumber as br } from "./components/InputNumber/InputNumber2.js";
|
|
31
31
|
import { InputText as xr } from "./components/InputText/InputText2.js";
|
|
32
|
-
import { ColorPicker as
|
|
32
|
+
import { ColorPicker as Hr } from "./components/ColorPicker/ColorPicker2.js";
|
|
33
33
|
import { CommandPalette as wr } from "./components/CommandPalette/CommandPalette2.js";
|
|
34
34
|
import { Confetti as Or } from "./components/Confetti/Confetti2.js";
|
|
35
35
|
import Wr from "./components/ConfirmDialog/ConfirmDialog2.js";
|
|
@@ -53,7 +53,7 @@ import { breakpoints as ko, useBreakpoint as Eo } from "./hooks/useBreakpoint.js
|
|
|
53
53
|
import { ControlPanelProvider as Lo } from "./components/ControlPanel/ControlPanelContext.js";
|
|
54
54
|
import { CopyButton as _o } from "./components/CopyButton/CopyButton2.js";
|
|
55
55
|
import { Flag as vo } from "./components/Flag/Flag2.js";
|
|
56
|
-
import { CountryWithFlag as
|
|
56
|
+
import { CountryWithFlag as Fo } from "./components/CountryWithFlag/CountryWithFlag2.js";
|
|
57
57
|
import { getResultsCount as No } from "./helpers/Pagination.js";
|
|
58
58
|
import { EmptyState as Uo } from "./components/EmptyState/EmptyState2.js";
|
|
59
59
|
import { Pagination as Vo } from "./components/Pagination/Pagination2.js";
|
|
@@ -78,7 +78,7 @@ import { FolderBrowserModal as Bt } from "./components/FolderBrowserModal/Folder
|
|
|
78
78
|
import { Col as Et } from "./components/Grid/Col.js";
|
|
79
79
|
import { Grid as Lt } from "./components/Grid/Grid2.js";
|
|
80
80
|
import { IconPicker as _t } from "./components/IconPicker/IconPicker2.js";
|
|
81
|
-
import { FULL_IMAGE as vt, cropImage as xt, encodeCanvas as
|
|
81
|
+
import { FULL_IMAGE as vt, cropImage as xt, encodeCanvas as Ft, loadImageElement as Ht, renderImageRegion as Nt, rotatedSize as wt } from "./helpers/ImageCrop.js";
|
|
82
82
|
import { ToggleSwitch as Ot } from "./components/ToggleSwitch/ToggleSwitch2.js";
|
|
83
83
|
import { ImageCropper as Wt } from "./components/ImageCropper/ImageCropper2.js";
|
|
84
84
|
import { InfiniteScroll as Qt } from "./components/InfiniteScroll/InfiniteScroll2.js";
|
|
@@ -102,7 +102,7 @@ import { NavBar as Mm } from "./components/NavBar/NavBar2.js";
|
|
|
102
102
|
import { NotificationPanel as km } from "./components/NotificationPanel/NotificationPanel2.js";
|
|
103
103
|
import { PieChart as Rm } from "./components/PieChart/PieChart2.js";
|
|
104
104
|
import { clamp as ym, format2Digits as _m, getPercent as bm, getPercentsOf2Numbers as vm } from "./helpers/Numbers.js";
|
|
105
|
-
import { ProgressBar as
|
|
105
|
+
import { ProgressBar as Fm } from "./components/ProgressBar/ProgressBar2.js";
|
|
106
106
|
import { ProgressRing as Nm } from "./components/ProgressRing/ProgressRing2.js";
|
|
107
107
|
import { QuantitySelector as Um } from "./components/QuantitySelector/QuantitySelector2.js";
|
|
108
108
|
import { QuickAdd as Vm } from "./components/QuickAdd/QuickAdd2.js";
|
|
@@ -126,36 +126,37 @@ import { Stats as Mi } from "./components/Stats/Stats2.js";
|
|
|
126
126
|
import { StickyBar as ki } from "./components/StickyBar/StickyBar2.js";
|
|
127
127
|
import { SuggestionsList as Ri } from "./components/SuggestionsList/SuggestionsList2.js";
|
|
128
128
|
import { THEME_CONFIGS as yi, getThemeConfig as _i } from "./components/ThemeSettings/themeConfig.js";
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
129
|
+
import { getDefaultThemeForApp as vi } from "./components/ThemeSettings/getDefaultThemeForApp.js";
|
|
130
|
+
import { ThemeProvider as Fi } from "./components/ThemeSettings/ThemeContext.js";
|
|
131
|
+
import { ThemeSettings as Ni } from "./components/ThemeSettings/ThemeSettings2.js";
|
|
132
|
+
import { Timeline as Ui } from "./components/Timeline/Timeline2.js";
|
|
133
|
+
import { TipsOfTheDay as Vi } from "./components/TipsOfTheDay/TipsOfTheDay2.js";
|
|
134
|
+
import { Toast as zi } from "./components/Toast/Toast2.js";
|
|
135
|
+
import { Toolbar as Gi } from "./components/Toolbar/Toolbar2.js";
|
|
136
|
+
import { TourHud as ji } from "./components/TourHud/TourHud2.js";
|
|
137
|
+
import { Transition as Ki } from "./components/Transition/Transition2.js";
|
|
138
|
+
import { Tree as Yi } from "./components/Tree/Tree2.js";
|
|
139
|
+
import { VirtualList as $i } from "./components/VirtualList/VirtualList2.js";
|
|
140
|
+
import { WHtR as oe } from "./components/WHtR/WHtR2.js";
|
|
141
|
+
import { ApiError as me, CSRF_HEADER as ie, HttpMethod as ee, HttpStatus as pe, buildRequestHeaders as fe, createApiClient as ae, getCsrfToken as ne, isClientErrorStatus as le, isServerErrorStatus as se, isSuccessStatus as ue, logUnexpectedError as de, readErrorMessage as ge } from "./helpers/Http.js";
|
|
142
|
+
import { AuthContext as Te } from "./contexts/AuthContext/AuthContext.context.js";
|
|
143
|
+
import { AuthProvider as Ie } from "./contexts/AuthContext/AuthContext.js";
|
|
144
|
+
import { useAuth as Ce } from "./hooks/useAuth/useAuth.js";
|
|
145
|
+
import { ChangePasswordModal as Ae } from "./components/Auth/ChangePasswordModal/ChangePasswordModal2.js";
|
|
146
|
+
import { Login as Me } from "./components/Auth/Login/Login2.js";
|
|
147
|
+
import { useAccountMenu as ke } from "./hooks/useAccountMenu.js";
|
|
148
|
+
import { AppPersistenceStorage as Re } from "./helpers/AppPersistenceStorage.js";
|
|
149
|
+
import { useAppPersistence as ye } from "./hooks/useAppPersistence.js";
|
|
150
|
+
import { chartColors as be, chartTooltipStyle as ve } from "./helpers/Charts.js";
|
|
151
|
+
import { formatBigNumber as Fe, formatBytes as He, formatMoney as Ne } from "./helpers/Format.js";
|
|
152
|
+
import { highlightText as Ue } from "./helpers/Highlight.js";
|
|
153
|
+
import { DATA_FILES_PATH as Ve, createImagePaths as We } from "./helpers/Images.js";
|
|
154
|
+
import { matchStringsByLogicalOperator as Qe } from "./helpers/LogicalOperators.js";
|
|
155
|
+
import { shortenText as qe, slugify as je, truncateText as Je } from "./helpers/Strings.js";
|
|
156
|
+
import { extractDomainFromUrl as Xe, stripQueryString as Ye, stripTrackingParams as Ze } from "./helpers/Urls.js";
|
|
157
|
+
import { LIB_BUILD_DATE as rp, LIB_BUILD_ID as op, LIB_BUILD_NUMBER as tp, LIB_COMMIT as mp, LIB_VERSION as ip } from "./version.js";
|
|
158
|
+
import { initVersionInfo as pp } from "./helpers/VersionInfo.js";
|
|
159
|
+
import { validateVin as ap } from "./validators/Vin.js";
|
|
159
160
|
export {
|
|
160
161
|
N as ADULT_RANGES,
|
|
161
162
|
Y as APP_DATE_FORMAT,
|
|
@@ -164,30 +165,30 @@ export {
|
|
|
164
165
|
P as AlertDialog,
|
|
165
166
|
D as AnalogClock,
|
|
166
167
|
h as AngleSlider,
|
|
167
|
-
|
|
168
|
+
me as ApiError,
|
|
168
169
|
E as AppHeader,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
Re as AppPersistenceStorage,
|
|
171
|
+
Te as AuthContext,
|
|
172
|
+
Me as AuthLogin,
|
|
173
|
+
Ie as AuthProvider,
|
|
173
174
|
L as AvatarInitials,
|
|
174
175
|
G as BMI,
|
|
175
176
|
_ as Badge,
|
|
176
177
|
v as Banner,
|
|
177
|
-
|
|
178
|
+
F as Blockquote,
|
|
178
179
|
j as Breadcrumb,
|
|
179
180
|
K as BulkActionBar,
|
|
180
181
|
d as Button,
|
|
181
|
-
|
|
182
|
+
ie as CSRF_HEADER,
|
|
182
183
|
Cr as Calendar,
|
|
183
184
|
Ar as CalendarHeatmap,
|
|
184
185
|
Mr as Card,
|
|
185
|
-
|
|
186
|
+
Ae as ChangePasswordModal,
|
|
186
187
|
kr as Checkbox,
|
|
187
188
|
Rr as Chip,
|
|
188
189
|
Et as Col,
|
|
189
190
|
yr as CollapsibleSection,
|
|
190
|
-
|
|
191
|
+
Hr as ColorPicker,
|
|
191
192
|
wr as CommandPalette,
|
|
192
193
|
Or as Confetti,
|
|
193
194
|
Wr as ConfirmDialog,
|
|
@@ -196,8 +197,8 @@ export {
|
|
|
196
197
|
Mo as ControlPanel,
|
|
197
198
|
Lo as ControlPanelProvider,
|
|
198
199
|
_o as CopyButton,
|
|
199
|
-
|
|
200
|
-
|
|
200
|
+
Fo as CountryWithFlag,
|
|
201
|
+
Ve as DATA_FILES_PATH,
|
|
201
202
|
Yo as DataView,
|
|
202
203
|
eo as DatePicker,
|
|
203
204
|
$o as DateRangePicker,
|
|
@@ -216,8 +217,8 @@ export {
|
|
|
216
217
|
Dt as FloatingWindow,
|
|
217
218
|
Bt as FolderBrowserModal,
|
|
218
219
|
Lt as Grid,
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
ee as HttpMethod,
|
|
221
|
+
pe as HttpStatus,
|
|
221
222
|
o as Icon,
|
|
222
223
|
_t as IconPicker,
|
|
223
224
|
Wt as ImageCropper,
|
|
@@ -237,11 +238,11 @@ export {
|
|
|
237
238
|
lm as InputTime,
|
|
238
239
|
um as InputUrl,
|
|
239
240
|
gm as JourneyWizard,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
241
|
+
rp as LIB_BUILD_DATE,
|
|
242
|
+
op as LIB_BUILD_ID,
|
|
243
|
+
tp as LIB_BUILD_NUMBER,
|
|
244
|
+
mp as LIB_COMMIT,
|
|
245
|
+
ip as LIB_VERSION,
|
|
245
246
|
Tm as List,
|
|
246
247
|
ht as Loading,
|
|
247
248
|
Im as MenuHamburger,
|
|
@@ -255,7 +256,7 @@ export {
|
|
|
255
256
|
Vo as Pagination,
|
|
256
257
|
Rm as PieChart,
|
|
257
258
|
qr as Popover,
|
|
258
|
-
|
|
259
|
+
Fm as ProgressBar,
|
|
259
260
|
Nm as ProgressRing,
|
|
260
261
|
Um as QuantitySelector,
|
|
261
262
|
Vm as QuickAdd,
|
|
@@ -281,57 +282,58 @@ export {
|
|
|
281
282
|
Ri as SuggestionsList,
|
|
282
283
|
yi as THEME_CONFIGS,
|
|
283
284
|
f as ThemeContext,
|
|
284
|
-
|
|
285
|
-
|
|
285
|
+
Fi as ThemeProvider,
|
|
286
|
+
Ni as ThemeSettings,
|
|
286
287
|
mo as TimePicker,
|
|
287
|
-
|
|
288
|
+
Ui as Timeline,
|
|
288
289
|
Go as TimelineMarkerDot,
|
|
289
290
|
qo as TimelineMarkers,
|
|
290
291
|
jo as TimelineMobileSeparator,
|
|
291
|
-
|
|
292
|
-
|
|
292
|
+
Vi as TipsOfTheDay,
|
|
293
|
+
zi as Toast,
|
|
293
294
|
ro as ToastContainer,
|
|
294
295
|
oo as ToastProvider,
|
|
295
296
|
dt as ToggleButtons,
|
|
296
297
|
Ot as ToggleSwitch,
|
|
297
|
-
|
|
298
|
+
Gi as Toolbar,
|
|
298
299
|
c as Tooltip,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
300
|
+
ji as TourHud,
|
|
301
|
+
Ki as Transition,
|
|
302
|
+
Yi as Tree,
|
|
303
|
+
$i as VirtualList,
|
|
304
|
+
oe as WHtR,
|
|
304
305
|
$ as addDays,
|
|
305
306
|
rr as addMonths,
|
|
306
307
|
ko as breakpoints,
|
|
307
|
-
|
|
308
|
+
fe as buildRequestHeaders,
|
|
308
309
|
U as calculateBMI,
|
|
309
310
|
zo as calculateTimelineMarkers,
|
|
310
|
-
|
|
311
|
-
|
|
311
|
+
be as chartColors,
|
|
312
|
+
ve as chartTooltipStyle,
|
|
312
313
|
ym as clamp,
|
|
313
|
-
|
|
314
|
-
|
|
314
|
+
ae as createApiClient,
|
|
315
|
+
We as createImagePaths,
|
|
315
316
|
xt as cropImage,
|
|
316
|
-
|
|
317
|
+
Ft as encodeCanvas,
|
|
317
318
|
Ym as ensureHtml,
|
|
318
|
-
|
|
319
|
+
Xe as extractDomainFromUrl,
|
|
319
320
|
fo as foldDiacritics,
|
|
320
321
|
_m as format2Digits,
|
|
321
322
|
or as formatAppDate,
|
|
322
323
|
tr as formatAppDateTime,
|
|
323
|
-
|
|
324
|
-
|
|
324
|
+
Fe as formatBigNumber,
|
|
325
|
+
He as formatBytes,
|
|
325
326
|
mr as formatDate,
|
|
326
327
|
ir as formatDateLocale,
|
|
327
328
|
er as formatDuration,
|
|
328
|
-
|
|
329
|
+
Ne as formatMoney,
|
|
329
330
|
pr as formatRelativeDuration,
|
|
330
331
|
fr as formatRelativeTime,
|
|
331
332
|
ar as formatSecondsToMediaTime,
|
|
332
333
|
ao as fuzzyMatch,
|
|
333
|
-
|
|
334
|
+
ne as getCsrfToken,
|
|
334
335
|
nr as getDaysInMonth,
|
|
336
|
+
vi as getDefaultThemeForApp,
|
|
335
337
|
O as getIndicatorColor,
|
|
336
338
|
V as getIndicatorPosition,
|
|
337
339
|
lr as getIsoWeek,
|
|
@@ -343,34 +345,34 @@ export {
|
|
|
343
345
|
No as getResultsCount,
|
|
344
346
|
_i as getThemeConfig,
|
|
345
347
|
ur as getTodayDateString,
|
|
346
|
-
|
|
348
|
+
Ue as highlightText,
|
|
347
349
|
Zm as htmlToMarkdown,
|
|
348
350
|
$m as htmlToPlainText,
|
|
349
|
-
|
|
351
|
+
pp as initVersionInfo,
|
|
350
352
|
dr as isAfter,
|
|
351
353
|
gr as isBefore,
|
|
352
|
-
|
|
354
|
+
le as isClientErrorStatus,
|
|
353
355
|
cr as isDateInRange,
|
|
354
356
|
Tr as isSameDay,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
+
se as isServerErrorStatus,
|
|
358
|
+
ue as isSuccessStatus,
|
|
357
359
|
Sr as isToday,
|
|
358
360
|
Ir as isWeekend,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
Ht as loadImageElement,
|
|
362
|
+
de as logUnexpectedError,
|
|
363
|
+
Qe as matchStringsByLogicalOperator,
|
|
364
|
+
ge as readErrorMessage,
|
|
363
365
|
Nt as renderImageRegion,
|
|
364
366
|
wt as rotatedSize,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
+
qe as shortenText,
|
|
368
|
+
je as slugify,
|
|
367
369
|
ri as splitHtmlIntoSteps,
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
370
|
+
Ye as stripQueryString,
|
|
371
|
+
Ze as stripTrackingParams,
|
|
372
|
+
Je as truncateText,
|
|
373
|
+
ke as useAccountMenu,
|
|
374
|
+
ye as useAppPersistence,
|
|
375
|
+
Ce as useAuth,
|
|
374
376
|
e as useBodyScrollLock,
|
|
375
377
|
Eo as useBreakpoint,
|
|
376
378
|
s as useComponentEffect,
|
|
@@ -382,5 +384,5 @@ export {
|
|
|
382
384
|
n as useTheme,
|
|
383
385
|
Zr as useToast,
|
|
384
386
|
qt as validateEmail,
|
|
385
|
-
|
|
387
|
+
ap as validateVin
|
|
386
388
|
};
|
package/dist/version.js
CHANGED
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memobit/libs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.0",
|
|
4
4
|
"description": "React component library powering the Memobit apps — 100+ components, helpers and hooks. Icons ship as @memobit/icons and themes as @memobit/themes. TypeScript-first, ESM-only, React 19.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|