@krosoft/react 0.0.395 → 0.0.396
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/core/cards/KpiCard.d.ts.map +1 -1
- package/dist/components/core/cards/KpiCard.js +20 -26
- package/dist/components/core/cards/KpiCardValue.d.ts +13 -0
- package/dist/components/core/cards/KpiCardValue.d.ts.map +1 -0
- package/dist/components/core/cards/KpiCardValue.js +20 -0
- package/dist/components/core/cards/KpiMultiCard.d.ts +21 -0
- package/dist/components/core/cards/KpiMultiCard.d.ts.map +1 -0
- package/dist/components/core/cards/KpiMultiCard.js +48 -0
- package/dist/components/core/cards/index.d.ts +2 -0
- package/dist/components/core/cards/index.d.ts.map +1 -1
- package/dist/components/core/cards/index.js +5 -4
- package/dist/components/core/filters/ActiveFilters.js +15 -15
- package/dist/components/core/index.js +67 -66
- package/dist/components/index.js +67 -66
- package/dist/query/createQueryClient.js +5 -5
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KpiCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/KpiCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KpiCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/KpiCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,OAAO,GAAI,+HAWrB,YAAY,KAAG,KAAK,CAAC,YAqBvB,CAAC"}
|
|
@@ -1,35 +1,29 @@
|
|
|
1
1
|
import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
|
|
2
2
|
import { cn as t } from "../../../helpers/tailwind.helper.js";
|
|
3
3
|
import { Card as n, CardContent as r, CardHeader as i, CardTitle as a } from "../../ui/card.js";
|
|
4
|
-
import {
|
|
4
|
+
import { KpiCardValue as o } from "./KpiCardValue.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import {
|
|
7
|
-
import { formatNumber as u } from "@krosoft/core/helpers";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
7
|
// src/components/core/cards/KpiCard.tsx
|
|
9
|
-
var
|
|
10
|
-
let { t:
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
className: t(
|
|
13
|
-
onClick:
|
|
14
|
-
children: [/* @__PURE__ */
|
|
8
|
+
var l = ({ titleKey: l, value: u, valueClassName: d, icon: f, iconClassName: p, description: m, descriptionClassName: h, onClick: g, isLoading: _, error: v }) => {
|
|
9
|
+
let { t: y } = e();
|
|
10
|
+
return /* @__PURE__ */ c(n, {
|
|
11
|
+
className: t(g === void 0 ? "" : "hover:border-primary cursor-pointer"),
|
|
12
|
+
onClick: g,
|
|
13
|
+
children: [/* @__PURE__ */ c(i, {
|
|
15
14
|
className: "flex flex-row items-center justify-between space-y-0 pb-2",
|
|
16
|
-
children: [/* @__PURE__ */
|
|
15
|
+
children: [/* @__PURE__ */ s(a, {
|
|
17
16
|
className: "text-sm font-medium",
|
|
18
|
-
children:
|
|
19
|
-
}), /* @__PURE__ */
|
|
20
|
-
}), /* @__PURE__ */
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
children: typeof f == "number" ? u(f) : f instanceof Date ? f.toLocaleDateString() : f
|
|
29
|
-
}), /* @__PURE__ */ c("p", {
|
|
30
|
-
className: t("text-xs text-muted-foreground", _),
|
|
31
|
-
children: g
|
|
32
|
-
})] }) })]
|
|
17
|
+
children: y(l)
|
|
18
|
+
}), /* @__PURE__ */ s(f, { className: t("size-6 text-muted-foreground", p) })]
|
|
19
|
+
}), /* @__PURE__ */ s(r, { children: /* @__PURE__ */ s(o, {
|
|
20
|
+
value: u,
|
|
21
|
+
valueClassName: d,
|
|
22
|
+
description: m,
|
|
23
|
+
descriptionClassName: h,
|
|
24
|
+
isLoading: _,
|
|
25
|
+
error: v
|
|
26
|
+
}) })]
|
|
33
27
|
});
|
|
34
28
|
};
|
|
35
|
-
export {
|
|
29
|
+
export { l as KpiCard };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface KpiCardValueProps {
|
|
3
|
+
value: number | string | Date;
|
|
4
|
+
valueClassName?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
descriptionClassName?: string;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
error?: string | null;
|
|
9
|
+
}
|
|
10
|
+
/** Valeur et description d'un KPI, avec ses états de chargement et d'erreur. Partagé par `KpiCard` et `KpiMultiCard`. */
|
|
11
|
+
export declare const KpiCardValue: ({ value, valueClassName, description, descriptionClassName, isLoading, error }: KpiCardValueProps) => React.ReactElement;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=KpiCardValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KpiCardValue.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/KpiCardValue.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,yHAAyH;AACzH,eAAO,MAAM,YAAY,GAAI,gFAAgF,iBAAiB,KAAG,KAAK,CAAC,YA2BtI,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { cn as e } from "../../../helpers/tailwind.helper.js";
|
|
2
|
+
import { Skeleton as t } from "../../ui/skeleton.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { formatNumber as a } from "@krosoft/core/helpers";
|
|
6
|
+
// src/components/core/cards/KpiCardValue.tsx
|
|
7
|
+
var o = ({ value: o, valueClassName: s, description: c, descriptionClassName: l, isLoading: u, error: d }) => u ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r(t, { className: "h-8 w-24 mb-1" }), /* @__PURE__ */ r(t, { className: "h-3 w-32" })] }) : d ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("div", {
|
|
8
|
+
className: "text-2xl font-bold text-destructive",
|
|
9
|
+
children: "—"
|
|
10
|
+
}), /* @__PURE__ */ r("p", {
|
|
11
|
+
className: "text-xs text-destructive",
|
|
12
|
+
children: d
|
|
13
|
+
})] }) : /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("div", {
|
|
14
|
+
className: e("text-2xl font-bold", s),
|
|
15
|
+
children: typeof o == "number" ? a(o) : o instanceof Date ? o.toLocaleDateString() : o
|
|
16
|
+
}), /* @__PURE__ */ r("p", {
|
|
17
|
+
className: e("text-xs text-muted-foreground", l),
|
|
18
|
+
children: c
|
|
19
|
+
})] });
|
|
20
|
+
export { o as KpiCardValue };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { KpiCardProps } from "./KpiCard";
|
|
3
|
+
type P = KpiCardProps;
|
|
4
|
+
/** 2, 4, 6 ou 8 compteurs : le nombre pilote la grille. */
|
|
5
|
+
export type KpiMultiCardItems = [P, P] | [P, P, P, P] | [P, P, P, P, P, P] | [P, P, P, P, P, P, P, P];
|
|
6
|
+
export interface KpiMultiCardProps {
|
|
7
|
+
/** Les compteurs liés, dans l'ordre d'affichage. Chacun garde son propre clic, chargement et erreur. */
|
|
8
|
+
items: KpiMultiCardItems;
|
|
9
|
+
/** Chargement commun, appliqué aux compteurs qui ne précisent pas le leur. */
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
/** Erreur commune, appliquée aux compteurs qui ne précisent pas la leur. */
|
|
12
|
+
error?: string | null;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Plusieurs KPI liés (2, 4, 6 ou 8) dans une même carte, séparés par un trait fin. Chaque case reprend le rendu de `KpiCard`.
|
|
17
|
+
* Les traits sont l'espace d'un pixel entre les cases sur fond de bordure : ils restent justes quand la grille passe à la ligne.
|
|
18
|
+
*/
|
|
19
|
+
export declare const KpiMultiCard: ({ items, isLoading, error, className }: KpiMultiCardProps) => React.ReactElement;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=KpiMultiCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KpiMultiCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/KpiMultiCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,KAAK,CAAC,GAAG,YAAY,CAAC;AAEtB,2DAA2D;AAC3D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAatG,MAAM,WAAW,iBAAiB;IAChC,wGAAwG;IACxG,KAAK,EAAE,iBAAiB,CAAC;IACzB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,wCAAwC,iBAAiB,KAAG,KAAK,CAAC,YA4C9F,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
|
|
2
|
+
import { cn as t } from "../../../helpers/tailwind.helper.js";
|
|
3
|
+
import { Card as n, CardTitle as r } from "../../ui/card.js";
|
|
4
|
+
import { KpiCardValue as i } from "./KpiCardValue.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
// src/components/core/cards/KpiMultiCard.tsx
|
|
8
|
+
var s = {
|
|
9
|
+
2: "grid-cols-2",
|
|
10
|
+
4: "grid-cols-2 lg:grid-cols-4",
|
|
11
|
+
6: "grid-cols-2 md:grid-cols-3 xl:grid-cols-6",
|
|
12
|
+
8: "grid-cols-2 md:grid-cols-4"
|
|
13
|
+
}, c = ({ items: c, isLoading: l, error: u, className: d }) => {
|
|
14
|
+
let { t: f } = e();
|
|
15
|
+
return /* @__PURE__ */ a(n, {
|
|
16
|
+
className: t("grid gap-px overflow-hidden bg-border", s[c.length], d),
|
|
17
|
+
children: c.map(({ titleKey: e, value: n, valueClassName: s, icon: c, iconClassName: d, description: p, descriptionClassName: m, onClick: h, ...g }) => {
|
|
18
|
+
let _ = h !== void 0;
|
|
19
|
+
return /* @__PURE__ */ o("div", {
|
|
20
|
+
className: t("min-w-0 bg-card", _ ? "hover:bg-muted cursor-pointer" : ""),
|
|
21
|
+
onClick: h,
|
|
22
|
+
onKeyDown: _ ? (e) => {
|
|
23
|
+
e.key === "Enter" && h();
|
|
24
|
+
} : void 0,
|
|
25
|
+
role: _ ? "button" : void 0,
|
|
26
|
+
tabIndex: _ ? 0 : void 0,
|
|
27
|
+
children: [/* @__PURE__ */ o("div", {
|
|
28
|
+
className: "flex flex-row items-center justify-between gap-2 p-6 pb-2",
|
|
29
|
+
children: [/* @__PURE__ */ a(r, {
|
|
30
|
+
className: "truncate text-sm font-medium",
|
|
31
|
+
children: f(e)
|
|
32
|
+
}), /* @__PURE__ */ a(c, { className: t("size-6 shrink-0 text-muted-foreground", d) })]
|
|
33
|
+
}), /* @__PURE__ */ a("div", {
|
|
34
|
+
className: "p-6 pt-0",
|
|
35
|
+
children: /* @__PURE__ */ a(i, {
|
|
36
|
+
value: n,
|
|
37
|
+
valueClassName: s,
|
|
38
|
+
description: p,
|
|
39
|
+
descriptionClassName: m,
|
|
40
|
+
isLoading: g.isLoading ?? l,
|
|
41
|
+
error: g.error === void 0 ? u : g.error
|
|
42
|
+
})
|
|
43
|
+
})]
|
|
44
|
+
}, e);
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
export { c as KpiMultiCard };
|
|
@@ -2,6 +2,8 @@ export { DashboardCard } from "./DashboardCard";
|
|
|
2
2
|
export { KpiCard } from "./KpiCard";
|
|
3
3
|
export type { KpiCardProps } from "./KpiCard";
|
|
4
4
|
export { KpiCards } from "./KpiCards";
|
|
5
|
+
export { KpiMultiCard } from "./KpiMultiCard";
|
|
6
|
+
export type { KpiMultiCardItems, KpiMultiCardProps } from "./KpiMultiCard";
|
|
5
7
|
export { MetricCard } from "./MetricCard";
|
|
6
8
|
export type { MetricCardColor, MetricCardProps } from "./MetricCard";
|
|
7
9
|
export { SkeletonCard } from "./SkeletonCard";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/cards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DashboardCard as e } from "./DashboardCard.js";
|
|
2
2
|
import { KpiCard as t } from "./KpiCard.js";
|
|
3
3
|
import { KpiCards as n } from "./KpiCards.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
4
|
+
import { KpiMultiCard as r } from "./KpiMultiCard.js";
|
|
5
|
+
import { MetricCard as i } from "./MetricCard.js";
|
|
6
|
+
import { SkeletonCard as a } from "./SkeletonCard.js";
|
|
7
|
+
import { SkeletonCards as o } from "./SkeletonCards.js";
|
|
8
|
+
export { e as DashboardCard, t as KpiCard, n as KpiCards, r as KpiMultiCard, i as MetricCard, a as SkeletonCard, o as SkeletonCards };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useKrosoftTranslation as e } from "../../../i18n/useKrosoftTranslation.js";
|
|
2
2
|
import { Badge as t } from "../../ui/badge.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { XIcon as i } from "lucide-react";
|
|
5
|
+
import { getLocale as a } from "@krosoft/core/helpers";
|
|
6
6
|
// src/components/core/filters/ActiveFilters.tsx
|
|
7
7
|
var o = (e, t, n, r = {}) => {
|
|
8
|
-
if (t instanceof Date) return t.toLocaleDateString(
|
|
9
|
-
let
|
|
10
|
-
return o === void 0 ? e.includes("ok") || t === "true" || t === "false" ? n(t === "true" ? "filters.yes" : "filters.no") :
|
|
8
|
+
if (t instanceof Date) return t.toLocaleDateString(a());
|
|
9
|
+
let i = String(t), o = r[`${e}_${i}`];
|
|
10
|
+
return o === void 0 ? e.includes("ok") || t === "true" || t === "false" ? n(t === "true" ? "filters.yes" : "filters.no") : i : o;
|
|
11
11
|
};
|
|
12
|
-
function s({ filters:
|
|
13
|
-
let { t: d } = e(), f = Object.entries(
|
|
12
|
+
function s({ filters: a, onRemoveFilter: s, onClearAll: c, filterLabelKeys: l = {}, optionLabels: u = {} }) {
|
|
13
|
+
let { t: d } = e(), f = Object.entries(a).filter(([e, t]) => !(t == null || t === "" || Array.isArray(t) && t.length === 0));
|
|
14
14
|
return f.length === 0 ? null : /* @__PURE__ */ r("div", {
|
|
15
15
|
className: "flex flex-wrap items-center gap-2 mb-4",
|
|
16
16
|
children: [
|
|
@@ -18,10 +18,10 @@ function s({ filters: i, onRemoveFilter: s, onClearAll: c, filterLabelKeys: l =
|
|
|
18
18
|
className: "text-sm text-muted-foreground font-medium",
|
|
19
19
|
children: d("filters.active")
|
|
20
20
|
}),
|
|
21
|
-
f.flatMap(([e,
|
|
21
|
+
f.flatMap(([e, a]) => {
|
|
22
22
|
let c = l[e], f = c === void 0 ? e : d(c);
|
|
23
|
-
if (Array.isArray(
|
|
24
|
-
let c = o(e,
|
|
23
|
+
if (Array.isArray(a)) return a.map((a) => {
|
|
24
|
+
let c = o(e, a, d, u);
|
|
25
25
|
return /* @__PURE__ */ r(t, {
|
|
26
26
|
variant: "secondary",
|
|
27
27
|
className: "flex items-center gap-1 px-3 py-1 bg-primary/10 text-primary border border-primary/20 hover:bg-primary/20",
|
|
@@ -31,15 +31,15 @@ function s({ filters: i, onRemoveFilter: s, onClearAll: c, filterLabelKeys: l =
|
|
|
31
31
|
c,
|
|
32
32
|
/* @__PURE__ */ n("button", {
|
|
33
33
|
onClick: () => {
|
|
34
|
-
s(e,
|
|
34
|
+
s(e, a);
|
|
35
35
|
},
|
|
36
36
|
className: "ml-1 hover:bg-primary/20 rounded-full p-0.5",
|
|
37
|
-
children: /* @__PURE__ */ n(
|
|
37
|
+
children: /* @__PURE__ */ n(i, { className: "size-4" })
|
|
38
38
|
})
|
|
39
39
|
]
|
|
40
|
-
}, `${e}_${String(
|
|
40
|
+
}, `${e}_${String(a)}`);
|
|
41
41
|
});
|
|
42
|
-
let p = o(e,
|
|
42
|
+
let p = o(e, a, d, u);
|
|
43
43
|
return /* @__PURE__ */ r(t, {
|
|
44
44
|
variant: "secondary",
|
|
45
45
|
className: "flex items-center gap-1 px-3 py-1 bg-primary/10 text-primary border border-primary/20 hover:bg-primary/20",
|
|
@@ -52,7 +52,7 @@ function s({ filters: i, onRemoveFilter: s, onClearAll: c, filterLabelKeys: l =
|
|
|
52
52
|
s(e);
|
|
53
53
|
},
|
|
54
54
|
className: "ml-1 hover:bg-primary/20 rounded-full p-0.5",
|
|
55
|
-
children: /* @__PURE__ */ n(
|
|
55
|
+
children: /* @__PURE__ */ n(i, { className: "size-4" })
|
|
56
56
|
})
|
|
57
57
|
]
|
|
58
58
|
}, e);
|
|
@@ -3,69 +3,70 @@ import { Dialog as t, DialogClose as n, DialogContent as r, DialogDescription as
|
|
|
3
3
|
import { Progress as d } from "../ui/progress.js";
|
|
4
4
|
import { KpiCard as f } from "./cards/KpiCard.js";
|
|
5
5
|
import { KpiCards as p } from "./cards/KpiCards.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import F from "./
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
|
|
6
|
+
import { KpiMultiCard as m } from "./cards/KpiMultiCard.js";
|
|
7
|
+
import { MetricCard as h } from "./cards/MetricCard.js";
|
|
8
|
+
import { SkeletonCard as g } from "./cards/SkeletonCard.js";
|
|
9
|
+
import { SkeletonCards as _ } from "./cards/SkeletonCards.js";
|
|
10
|
+
import { SearchInput as v } from "./inputs/SearchInput.js";
|
|
11
|
+
import { AppMarkdown as y } from "./markdown/AppMarkdown.js";
|
|
12
|
+
import { AppChangelog as b } from "./changelog/AppChangelog.js";
|
|
13
|
+
import { BarChartHorizontal as x } from "./charts/BarChartHorizontal.js";
|
|
14
|
+
import { BarChartVertical as S } from "./charts/BarChartVertical.js";
|
|
15
|
+
import { CHART_COLORS as C, getChartColor as w } from "./charts/chartColors.js";
|
|
16
|
+
import { ChartCard as T } from "./charts/ChartCard.js";
|
|
17
|
+
import { CircularGauge as E } from "./charts/CircularGauge.js";
|
|
18
|
+
import { LineChart as D } from "./charts/LineChart.js";
|
|
19
|
+
import { PieChart as O } from "./charts/PieChart.js";
|
|
20
|
+
import { ErrorAlert as k } from "./states/ErrorAlert.js";
|
|
21
|
+
import { AppDialog as A } from "./dialogs/AppDialog.js";
|
|
22
|
+
import { ImageInput as j } from "./inputs/ImageInput.js";
|
|
23
|
+
import { AppActions as M } from "./layouts/AppActions.js";
|
|
24
|
+
import { AppSubTitle as N } from "./layouts/AppSubTitle.js";
|
|
25
|
+
import { MultiSelect as P } from "./inputs/MultiSelect.js";
|
|
26
|
+
import { GenericForm as F } from "./forms/GenericForm.js";
|
|
27
|
+
import I from "./dialogs/FormDialog.js";
|
|
28
|
+
import { ConfirmationDialog as L } from "./dialogs/ConfirmationDialog.js";
|
|
29
|
+
import { AboutDialog as R } from "./dialogs/AboutDialog.js";
|
|
30
|
+
import { ActiveFilters as z } from "./filters/ActiveFilters.js";
|
|
31
|
+
import { DatePicker as B } from "./inputs/DatePicker.js";
|
|
32
|
+
import { DateRangePicker as V } from "./inputs/DateRangePicker.js";
|
|
33
|
+
import { SingleSelect as H } from "./inputs/SingleSelect.js";
|
|
34
|
+
import { FilterField as U } from "./filters/FilterField.js";
|
|
35
|
+
import { AdvancedFilters as W } from "./filters/AdvancedFilters.js";
|
|
36
|
+
import { FilterPillsGroup as G } from "./filters/FilterPillsGroup.js";
|
|
37
|
+
import { FilterPills as K } from "./filters/FilterPills.js";
|
|
38
|
+
import { FiltersMobileDrawer as q } from "./filters/FiltersMobileDrawer.js";
|
|
39
|
+
import { FiltersContainer as J } from "./filters/FiltersContainer.js";
|
|
40
|
+
import { TableFilter as Y } from "./filters/TableFilter.js";
|
|
41
|
+
import { ConditionFilter as X } from "./filters/ConditionFilter.js";
|
|
42
|
+
import { ConditionFilterGroup as Z } from "./filters/ConditionFilterGroup.js";
|
|
43
|
+
import { FlagFrIcon as Q } from "./icons/FlagFrIcon.js";
|
|
44
|
+
import { FlagGbIcon as $ } from "./icons/FlagGbIcon.js";
|
|
45
|
+
import { FileDropzone as ee } from "./inputs/FileDropzone.js";
|
|
46
|
+
import { RatingInput as te } from "./inputs/RatingInput.js";
|
|
47
|
+
import { LanguageSelector as ne } from "./language/LanguageSelector.js";
|
|
48
|
+
import { AppTitle as re } from "./layouts/AppTitle.js";
|
|
49
|
+
import { AppPageHeader as ie } from "./layouts/AppPageHeader.js";
|
|
50
|
+
import { ErrorState as ae } from "./states/ErrorState.js";
|
|
51
|
+
import { LoadingState as oe } from "./states/LoadingState.js";
|
|
52
|
+
import { KpiCardsLayout as se } from "./layouts/KpiCardsLayout.js";
|
|
53
|
+
import { GlobalSearch as ce } from "./navbar/GlobalSearch.js";
|
|
54
|
+
import { NotificationsBell as le } from "./navbar/NotificationsBell.js";
|
|
55
|
+
import { SidebarNavItem as ue } from "./navbar/SidebarNavItem.js";
|
|
56
|
+
import { Sidebar as de } from "./navbar/Sidebar.js";
|
|
57
|
+
import { SidebarHeader as fe } from "./navbar/SidebarHeader.js";
|
|
58
|
+
import { Topbar as pe } from "./navbar/Topbar.js";
|
|
59
|
+
import { TableActions as me } from "./table/TableActions.js";
|
|
60
|
+
import { TableBody as he } from "./table/TableBody.js";
|
|
61
|
+
import { TableBulkActions as ge } from "./table/TableBulkActions.js";
|
|
62
|
+
import { TableHeader as _e } from "./table/TableHeader.js";
|
|
63
|
+
import { TablePagination as ve } from "./table/TablePagination.js";
|
|
64
|
+
import { TableSettings as ye } from "./table/TableSettings.js";
|
|
65
|
+
import { DataTable as be } from "./table/DataTable.js";
|
|
66
|
+
import { JsonTableOutput as xe } from "./table/JsonTableOutput.js";
|
|
67
|
+
import { AppTabHeader as Se } from "./tabs/AppTabHeader.js";
|
|
68
|
+
import { AppTabContainer as Ce } from "./tabs/AppTabContainer.js";
|
|
69
|
+
import { AppTabs as we } from "./tabs/AppTabs.js";
|
|
70
|
+
import { AppVerticalTabs as Te } from "./tabs/AppVerticalTabs.js";
|
|
71
|
+
import { ThemeSelector as Ee } from "./theme/ThemeSelector.js";
|
|
72
|
+
export { R as AboutDialog, z as ActiveFilters, W as AdvancedFilters, M as AppActions, b as AppChangelog, A as AppDialog, y as AppMarkdown, ie as AppPageHeader, N as AppSubTitle, Ce as AppTabContainer, Se as AppTabHeader, we as AppTabs, re as AppTitle, Te as AppVerticalTabs, x as BarChartHorizontal, S as BarChartVertical, C as CHART_COLORS, T as ChartCard, E as CircularGauge, X as ConditionFilter, Z as ConditionFilterGroup, L as ConfirmationDialog, e as DashboardCard, be as DataTable, B as DatePicker, V as DateRangePicker, t as Dialog, n as DialogClose, r as DialogContent, i as DialogDescription, a as DialogFooter, o as DialogHeader, s as DialogOverlay, c as DialogPortal, l as DialogTitle, u as DialogTrigger, k as ErrorAlert, ae as ErrorState, ee as FileDropzone, U as FilterField, K as FilterPills, G as FilterPillsGroup, J as FiltersContainer, q as FiltersMobileDrawer, Q as FlagFrIcon, $ as FlagGbIcon, I as FormDialog, F as GenericForm, ce as GlobalSearch, j as ImageInput, xe as JsonTableOutput, f as KpiCard, p as KpiCards, se as KpiCardsLayout, m as KpiMultiCard, ne as LanguageSelector, D as LineChart, oe as LoadingState, h as MetricCard, P as MultiSelect, le as NotificationsBell, O as PieChart, d as Progress, te as RatingInput, v as SearchInput, de as Sidebar, fe as SidebarHeader, ue as SidebarNavItem, H as SingleSelect, g as SkeletonCard, _ as SkeletonCards, me as TableActions, he as TableBody, ge as TableBulkActions, Y as TableFilter, _e as TableHeader, ve as TablePagination, ye as TableSettings, Ee as ThemeSelector, pe as Topbar, w as getChartColor };
|
package/dist/components/index.js
CHANGED
|
@@ -49,69 +49,70 @@ import { ToggleGroup as ur, ToggleGroupItem as dr } from "./ui/toggle-group.js";
|
|
|
49
49
|
import { Tooltip as fr, TooltipContent as pr, TooltipProvider as mr, TooltipTrigger as hr } from "./ui/tooltip.js";
|
|
50
50
|
import { KpiCard as gr } from "./core/cards/KpiCard.js";
|
|
51
51
|
import { KpiCards as _r } from "./core/cards/KpiCards.js";
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import zr from "./core/
|
|
73
|
-
import
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
|
|
52
|
+
import { KpiMultiCard as vr } from "./core/cards/KpiMultiCard.js";
|
|
53
|
+
import { MetricCard as yr } from "./core/cards/MetricCard.js";
|
|
54
|
+
import { SkeletonCard as br } from "./core/cards/SkeletonCard.js";
|
|
55
|
+
import { SkeletonCards as xr } from "./core/cards/SkeletonCards.js";
|
|
56
|
+
import { SearchInput as Sr } from "./core/inputs/SearchInput.js";
|
|
57
|
+
import { AppMarkdown as Cr } from "./core/markdown/AppMarkdown.js";
|
|
58
|
+
import { AppChangelog as wr } from "./core/changelog/AppChangelog.js";
|
|
59
|
+
import { BarChartHorizontal as Tr } from "./core/charts/BarChartHorizontal.js";
|
|
60
|
+
import { BarChartVertical as Er } from "./core/charts/BarChartVertical.js";
|
|
61
|
+
import { CHART_COLORS as Dr, getChartColor as Or } from "./core/charts/chartColors.js";
|
|
62
|
+
import { ChartCard as kr } from "./core/charts/ChartCard.js";
|
|
63
|
+
import { CircularGauge as Ar } from "./core/charts/CircularGauge.js";
|
|
64
|
+
import { LineChart as jr } from "./core/charts/LineChart.js";
|
|
65
|
+
import { PieChart as Mr } from "./core/charts/PieChart.js";
|
|
66
|
+
import { ErrorAlert as Nr } from "./core/states/ErrorAlert.js";
|
|
67
|
+
import { AppDialog as Pr } from "./core/dialogs/AppDialog.js";
|
|
68
|
+
import { ImageInput as Fr } from "./core/inputs/ImageInput.js";
|
|
69
|
+
import { AppActions as Ir } from "./core/layouts/AppActions.js";
|
|
70
|
+
import { AppSubTitle as Lr } from "./core/layouts/AppSubTitle.js";
|
|
71
|
+
import { MultiSelect as Rr } from "./core/inputs/MultiSelect.js";
|
|
72
|
+
import { GenericForm as zr } from "./core/forms/GenericForm.js";
|
|
73
|
+
import Br from "./core/dialogs/FormDialog.js";
|
|
74
|
+
import { ConfirmationDialog as Vr } from "./core/dialogs/ConfirmationDialog.js";
|
|
75
|
+
import { AboutDialog as Hr } from "./core/dialogs/AboutDialog.js";
|
|
76
|
+
import { ActiveFilters as Ur } from "./core/filters/ActiveFilters.js";
|
|
77
|
+
import { DatePicker as Wr } from "./core/inputs/DatePicker.js";
|
|
78
|
+
import { DateRangePicker as Gr } from "./core/inputs/DateRangePicker.js";
|
|
79
|
+
import { SingleSelect as Kr } from "./core/inputs/SingleSelect.js";
|
|
80
|
+
import { FilterField as qr } from "./core/filters/FilterField.js";
|
|
81
|
+
import { AdvancedFilters as Jr } from "./core/filters/AdvancedFilters.js";
|
|
82
|
+
import { FilterPillsGroup as Yr } from "./core/filters/FilterPillsGroup.js";
|
|
83
|
+
import { FilterPills as Xr } from "./core/filters/FilterPills.js";
|
|
84
|
+
import { FiltersMobileDrawer as Zr } from "./core/filters/FiltersMobileDrawer.js";
|
|
85
|
+
import { FiltersContainer as Qr } from "./core/filters/FiltersContainer.js";
|
|
86
|
+
import { TableFilter as $r } from "./core/filters/TableFilter.js";
|
|
87
|
+
import { ConditionFilter as ei } from "./core/filters/ConditionFilter.js";
|
|
88
|
+
import { ConditionFilterGroup as ti } from "./core/filters/ConditionFilterGroup.js";
|
|
89
|
+
import { FlagFrIcon as ni } from "./core/icons/FlagFrIcon.js";
|
|
90
|
+
import { FlagGbIcon as ri } from "./core/icons/FlagGbIcon.js";
|
|
91
|
+
import { FileDropzone as ii } from "./core/inputs/FileDropzone.js";
|
|
92
|
+
import { RatingInput as ai } from "./core/inputs/RatingInput.js";
|
|
93
|
+
import { LanguageSelector as oi } from "./core/language/LanguageSelector.js";
|
|
94
|
+
import { AppTitle as si } from "./core/layouts/AppTitle.js";
|
|
95
|
+
import { AppPageHeader as ci } from "./core/layouts/AppPageHeader.js";
|
|
96
|
+
import { ErrorState as li } from "./core/states/ErrorState.js";
|
|
97
|
+
import { LoadingState as ui } from "./core/states/LoadingState.js";
|
|
98
|
+
import { KpiCardsLayout as di } from "./core/layouts/KpiCardsLayout.js";
|
|
99
|
+
import { GlobalSearch as fi } from "./core/navbar/GlobalSearch.js";
|
|
100
|
+
import { NotificationsBell as pi } from "./core/navbar/NotificationsBell.js";
|
|
101
|
+
import { SidebarNavItem as mi } from "./core/navbar/SidebarNavItem.js";
|
|
102
|
+
import { Sidebar as hi } from "./core/navbar/Sidebar.js";
|
|
103
|
+
import { SidebarHeader as gi } from "./core/navbar/SidebarHeader.js";
|
|
104
|
+
import { Topbar as _i } from "./core/navbar/Topbar.js";
|
|
105
|
+
import { TableActions as vi } from "./core/table/TableActions.js";
|
|
106
|
+
import { TableBody as yi } from "./core/table/TableBody.js";
|
|
107
|
+
import { TableBulkActions as bi } from "./core/table/TableBulkActions.js";
|
|
108
|
+
import { TableHeader as xi } from "./core/table/TableHeader.js";
|
|
109
|
+
import { TablePagination as Si } from "./core/table/TablePagination.js";
|
|
110
|
+
import { TableSettings as Ci } from "./core/table/TableSettings.js";
|
|
111
|
+
import { DataTable as wi } from "./core/table/DataTable.js";
|
|
112
|
+
import { JsonTableOutput as Ti } from "./core/table/JsonTableOutput.js";
|
|
113
|
+
import { AppTabHeader as Ei } from "./core/tabs/AppTabHeader.js";
|
|
114
|
+
import { AppTabContainer as Di } from "./core/tabs/AppTabContainer.js";
|
|
115
|
+
import { AppTabs as Oi } from "./core/tabs/AppTabs.js";
|
|
116
|
+
import { AppVerticalTabs as ki } from "./core/tabs/AppVerticalTabs.js";
|
|
117
|
+
import { ThemeSelector as Ai } from "./core/theme/ThemeSelector.js";
|
|
118
|
+
export { Hr as AboutDialog, s as Accordion, c as AccordionContent, l as AccordionItem, u as AccordionTrigger, Ur as ActiveFilters, Jr as AdvancedFilters, d as Alert, f as AlertDescription, g as AlertDialog, _ as AlertDialogAction, v as AlertDialogCancel, y as AlertDialogContent, b as AlertDialogDescription, x as AlertDialogFooter, S as AlertDialogHeader, C as AlertDialogTitle, w as AlertDialogTrigger, p as AlertTitle, Ir as AppActions, wr as AppChangelog, Pr as AppDialog, Cr as AppMarkdown, ci as AppPageHeader, Lr as AppSubTitle, Di as AppTabContainer, Ei as AppTabHeader, Oi as AppTabs, si as AppTitle, ki as AppVerticalTabs, T as AspectRatio, E as Avatar, D as AvatarFallback, O as AvatarImage, k as Badge, Tr as BarChartHorizontal, Er as BarChartVertical, j as Breadcrumb, M as BreadcrumbEllipsis, N as BreadcrumbItem, P as BreadcrumbLink, F as BreadcrumbList, I as BreadcrumbPage, L as BreadcrumbSeparator, m as Button, Dr as CHART_COLORS, R as Calendar, e as Card, t as CardContent, n as CardDescription, r as CardFooter, i as CardHeader, a as CardTitle, z as Carousel, B as CarouselContent, V as CarouselItem, H as CarouselNext, U as CarouselPrevious, kr as ChartCard, W as ChartContainer, G as ChartLegend, K as ChartLegendContent, q as ChartStyle, J as ChartTooltip, Y as ChartTooltipContent, X as Checkbox, Ar as CircularGauge, Z as Collapsible, Q as CollapsibleContent, $ as CollapsibleTrigger, pe as Command, me as CommandDialog, he as CommandEmpty, ge as CommandGroup, _e as CommandInput, ve as CommandItem, ye as CommandList, be as CommandSeparator, xe as CommandShortcut, ei as ConditionFilter, ti as ConditionFilterGroup, Vr as ConfirmationDialog, Se as ContextMenu, Ce as ContextMenuCheckboxItem, we as ContextMenuContent, Te as ContextMenuGroup, Ee as ContextMenuItem, De as ContextMenuLabel, Oe as ContextMenuPortal, ke as ContextMenuRadioGroup, Ae as ContextMenuRadioItem, je as ContextMenuSeparator, Me as ContextMenuShortcut, Ne as ContextMenuSub, Pe as ContextMenuSubContent, Fe as ContextMenuSubTrigger, Ie as ContextMenuTrigger, o as DashboardCard, wi as DataTable, Wr as DatePicker, Gr as DateRangePicker, re as Dialog, ie as DialogClose, ae as DialogContent, oe as DialogDescription, se as DialogFooter, ce as DialogHeader, le as DialogOverlay, ue as DialogPortal, de as DialogTitle, fe as DialogTrigger, Le as Drawer, Re as DrawerClose, ze as DrawerContent, Be as DrawerDescription, Ve as DrawerFooter, He as DrawerHeader, Ue as DrawerOverlay, We as DrawerPortal, Ge as DrawerTitle, Ke as DrawerTrigger, qe as DropdownMenu, Je as DropdownMenuCheckboxItem, Ye as DropdownMenuContent, Xe as DropdownMenuGroup, Ze as DropdownMenuItem, Qe as DropdownMenuLabel, $e as DropdownMenuPortal, et as DropdownMenuRadioGroup, tt as DropdownMenuRadioItem, nt as DropdownMenuSeparator, rt as DropdownMenuShortcut, it as DropdownMenuSub, at as DropdownMenuSubContent, ot as DropdownMenuSubTrigger, st as DropdownMenuTrigger, Nr as ErrorAlert, li as ErrorState, ii as FileDropzone, qr as FilterField, Xr as FilterPills, Yr as FilterPillsGroup, Qr as FiltersContainer, Zr as FiltersMobileDrawer, ni as FlagFrIcon, ri as FlagGbIcon, lt as Form, ut as FormControl, dt as FormDescription, Br as FormDialog, ft as FormField, pt as FormItem, mt as FormLabel, ht as FormMessage, zr as GenericForm, fi as GlobalSearch, _t as HoverCard, vt as HoverCardContent, yt as HoverCardTrigger, Fr as ImageInput, bt as Input, xt as InputOTP, St as InputOTPGroup, Ct as InputOTPSeparator, wt as InputOTPSlot, Ti as JsonTableOutput, gr as KpiCard, _r as KpiCards, di as KpiCardsLayout, vr as KpiMultiCard, ct as Label, oi as LanguageSelector, jr as LineChart, ui as LoadingState, Tt as Menubar, Et as MenubarCheckboxItem, Dt as MenubarContent, Ot as MenubarGroup, kt as MenubarItem, At as MenubarLabel, jt as MenubarMenu, Mt as MenubarPortal, Nt as MenubarRadioGroup, Pt as MenubarRadioItem, Ft as MenubarSeparator, It as MenubarShortcut, Lt as MenubarSub, Rt as MenubarSubContent, zt as MenubarSubTrigger, Bt as MenubarTrigger, yr as MetricCard, Rr as MultiSelect, Vt as NavigationMenu, Ht as NavigationMenuContent, Ut as NavigationMenuIndicator, Wt as NavigationMenuItem, Gt as NavigationMenuLink, Kt as NavigationMenuList, qt as NavigationMenuTrigger, Jt as NavigationMenuViewport, pi as NotificationsBell, Xt as Pagination, Zt as PaginationContent, Qt as PaginationEllipsis, $t as PaginationItem, en as PaginationLink, tn as PaginationNext, nn as PaginationPrevious, Mr as PieChart, rn as Popover, an as PopoverContent, on as PopoverTrigger, sn as Progress, cn as RadioGroup, ln as RadioGroupItem, ai as RatingInput, un as ResizableHandle, dn as ResizablePanel, fn as ResizablePanelGroup, pn as ScrollArea, mn as ScrollBar, Sr as SearchInput, hn as Select, gn as SelectContent, _n as SelectGroup, vn as SelectItem, yn as SelectLabel, bn as SelectScrollDownButton, xn as SelectScrollUpButton, Sn as SelectSeparator, Cn as SelectTrigger, wn as SelectValue, Tn as Separator, En as Sheet, Dn as SheetClose, On as SheetContent, kn as SheetDescription, An as SheetFooter, jn as SheetHeader, Mn as SheetOverlay, Nn as SheetPortal, Pn as SheetTitle, Fn as SheetTrigger, hi as Sidebar, gi as SidebarHeader, mi as SidebarNavItem, In as SimpleTable, Ln as SimpleTableBody, Rn as SimpleTableCaption, zn as SimpleTableCell, Bn as SimpleTableFooter, Vn as SimpleTableHead, Hn as SimpleTableHeader, Un as SimpleTableRow, Kr as SingleSelect, Wn as Skeleton, br as SkeletonCard, xr as SkeletonCards, Gn as Slider, Kn as Sonner, Jn as Switch, vi as TableActions, yi as TableBody, bi as TableBulkActions, $r as TableFilter, xi as TableHeader, Si as TablePagination, Ci as TableSettings, Yn as Tabs, Xn as TabsContent, Zn as TabsList, Qn as TabsTrigger, $n as Textarea, Ai as ThemeSelector, er as Toast, tr as ToastAction, nr as ToastClose, rr as ToastDescription, ir as ToastProvider, ar as ToastTitle, or as ToastViewport, sr as Toaster, cr as Toggle, ur as ToggleGroup, dr as ToggleGroupItem, fr as Tooltip, pr as TooltipContent, mr as TooltipProvider, hr as TooltipTrigger, _i as Topbar, A as badgeVariants, h as buttonVariants, ee as controlBaseClass, te as controlFilterWidthClass, ne as controlTriggerClass, Or as getChartColor, Yt as navigationMenuTriggerStyle, qn as toast, lr as toggleVariants, gt as useFormField };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { translateKrosoft as e } from "../i18n/translateKrosoft.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { toast as t } from "sonner";
|
|
3
|
+
import { getErrorMessage as n } from "@krosoft/core/helpers";
|
|
4
4
|
import { MutationCache as r, QueryCache as i, QueryClient as a } from "@tanstack/react-query";
|
|
5
5
|
// src/query/createQueryClient.ts
|
|
6
6
|
var o = {
|
|
@@ -21,13 +21,13 @@ var o = {
|
|
|
21
21
|
return l ? new a({
|
|
22
22
|
defaultOptions: d,
|
|
23
23
|
queryCache: new i({ onError: (r, i) => {
|
|
24
|
-
s(i.meta) ||
|
|
24
|
+
s(i.meta) || t.error(e(u, "query.errorTitle"), {
|
|
25
25
|
id: i.queryHash,
|
|
26
|
-
description:
|
|
26
|
+
description: n(r)
|
|
27
27
|
});
|
|
28
28
|
} }),
|
|
29
29
|
mutationCache: new r({ onError: (r, i, a, o) => {
|
|
30
|
-
o.options.onError || s(o.meta) ||
|
|
30
|
+
o.options.onError || s(o.meta) || t.error(e(u, "query.mutationErrorTitle"), { description: n(r) });
|
|
31
31
|
} })
|
|
32
32
|
}) : new a({ defaultOptions: d });
|
|
33
33
|
};
|