@krosoft/react 0.0.312 → 0.0.314
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/{AppActions-BSFD13aV.js → AppActions-D4phryLI.js} +2 -2
- package/dist/{AppSubTitle-CVNe5WHv.js → AppSubTitle-C4OXWXqx.js} +2 -2
- package/dist/{AppTitle-DIHE8uen.js → AppTitle-ky6qG29Z.js} +1 -1
- package/dist/{ErrorAlert-D8XnPN0I.js → ErrorAlert-ZflPwfL1.js} +1 -1
- package/dist/{GenericForm-Dcn4Xecn.js → GenericForm-B-HE6wx0.js} +6 -6
- package/dist/{ImageInput-BtV_Ezgp.js → ImageInput-pfEyse5s.js} +2 -2
- package/dist/{MultiSelect-DyHOoUsz.js → MultiSelect-BWpBLiI-.js} +3 -3
- package/dist/{SearchInput-KPozEk_s.js → SearchInput-TWh8dk0Q.js} +4 -4
- package/dist/behavior-DOkq-VaE.js +201 -0
- package/dist/{cards-pQZw-utJ.js → cards-9ND39VtI.js} +2 -2
- package/dist/{charts-Oxpbp_Ii.js → charts-Dqw9_J2o.js} +1 -1
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/charts/index.js +1 -1
- package/dist/components/core/dialogs/index.js +3 -3
- package/dist/components/core/filters/index.js +6 -6
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.js +18 -18
- package/dist/components/core/inputs/index.js +4 -4
- package/dist/components/core/language/index.js +1 -1
- package/dist/components/core/layouts/index.js +8 -8
- package/dist/components/core/navbar/GlobalSearch.d.ts +19 -1
- package/dist/components/core/navbar/GlobalSearch.d.ts.map +1 -1
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/core/states/index.js +2 -2
- package/dist/components/core/table/index.js +2 -2
- package/dist/components/core/tabs/index.js +5 -5
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +18 -18
- package/dist/components/ui/index.js +2 -2
- package/dist/{dialogs-BLrrt68D.js → dialogs-DM3SIHMD.js} +5 -5
- package/dist/hooks/behavior/index.d.ts +2 -0
- package/dist/hooks/behavior/index.d.ts.map +1 -1
- package/dist/hooks/behavior/index.js +2 -2
- package/dist/hooks/behavior/useDebounce.d.ts +7 -0
- package/dist/hooks/behavior/useDebounce.d.ts.map +1 -0
- package/dist/hooks/behavior/useTable.d.ts +31 -0
- package/dist/hooks/behavior/useTable.d.ts.map +1 -0
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/ui/index.js +4 -4
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/krosoftLocales.d.ts +4 -0
- package/dist/i18n/krosoftLocales.d.ts.map +1 -1
- package/dist/{i18n-ClZK4zll.js → i18n-COxm2IKP.js} +6 -2
- package/dist/{inputs-c7vMvV76.js → inputs-BF_gkzmN.js} +3 -3
- package/dist/{language-VKGAsAfF.js → language-CX5k4uX5.js} +2 -2
- package/dist/{navbar-C4WWdADW.js → navbar-Ce8pq_3-.js} +88 -53
- package/dist/pwa/index.js +1 -1
- package/dist/{sheet-BjlRzLnc.js → sheet-B7qGvwk0.js} +1 -1
- package/dist/{states-C3v4BU7N.js → states-14gCg2Sl.js} +2 -2
- package/dist/{theme-Bkamu5J6.js → theme-BUl4fbtL.js} +2 -2
- package/dist/{ui-Bbn7hLKT.js → ui-B648tEnO.js} +3 -3
- package/dist/{ui-BwBUIl5y.js → ui-DjjBjKpZ.js} +1 -1
- package/dist/{useDocumentTitle-Ces2VRou.js → useDocumentTitle-wGdjZMx6.js} +1 -1
- package/dist/{useLanguage-c7lPQ7eh.js → useLanguage-JlBoVxev.js} +1 -1
- package/dist/{useTheme-CU6lGuO4.js → useTheme-DVDPwbQ2.js} +1 -1
- package/package.json +6 -1
- package/dist/behavior-2kM6-wgK.js +0 -116
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { t } from "./i18n-
|
|
3
|
-
import { Bt as n, Ft as r, Gt as i, Nt as a, jt as o } from "./ui-
|
|
2
|
+
import { t } from "./i18n-COxm2IKP.js";
|
|
3
|
+
import { Bt as n, Ft as r, Gt as i, Nt as a, jt as o } from "./ui-DjjBjKpZ.js";
|
|
4
4
|
import { c as s } from "./tooltip-_geGvbS7.js";
|
|
5
5
|
import { t as c } from "./useMobile-pTQ8lWvt.js";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./i18n-
|
|
2
|
-
import { t } from "./AppActions-
|
|
1
|
+
import { t as e } from "./i18n-COxm2IKP.js";
|
|
2
|
+
import { t } from "./AppActions-D4phryLI.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/core/layouts/AppSubTitle.tsx
|
|
5
5
|
function i({ titleKey: i, actions: a, className: o }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { t } from "./i18n-
|
|
2
|
+
import { t } from "./i18n-COxm2IKP.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/core/layouts/AppTitle.tsx
|
|
5
5
|
function i({ titleKey: i, descriptionKey: a, isSubTitle: o, inline: s }) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
2
|
import { c as t, d as n, s as r } from "./chart-Dq3AIrue.js";
|
|
3
|
-
import { t as i } from "./i18n-
|
|
4
|
-
import { Ct as a, Dt as o, Et as s, Ot as c, St as l, Tt as u, bn as d, p as f } from "./ui-
|
|
3
|
+
import { t as i } from "./i18n-COxm2IKP.js";
|
|
4
|
+
import { Ct as a, Dt as o, Et as s, Ot as c, St as l, Tt as u, bn as d, p as f } from "./ui-DjjBjKpZ.js";
|
|
5
5
|
import { c as p } from "./tooltip-_geGvbS7.js";
|
|
6
|
-
import { g as m } from "./sheet-
|
|
6
|
+
import { g as m } from "./sheet-B7qGvwk0.js";
|
|
7
7
|
import { i as h, l as g, n as ee, t as _, u as v } from "./select-KWMg2_7Z.js";
|
|
8
8
|
import { n as y } from "./useToast-UeDRLovh.js";
|
|
9
|
-
import { t as b } from "./ImageInput-
|
|
10
|
-
import { t as x } from "./AppSubTitle-
|
|
11
|
-
import { t as S } from "./MultiSelect-
|
|
9
|
+
import { t as b } from "./ImageInput-pfEyse5s.js";
|
|
10
|
+
import { t as x } from "./AppSubTitle-C4OXWXqx.js";
|
|
11
|
+
import { t as S } from "./MultiSelect-BWpBLiI-.js";
|
|
12
12
|
import { useEffect as C, useRef as w, useState as T } from "react";
|
|
13
13
|
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
14
14
|
import { useForm as O } from "react-hook-form";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { t } from "./i18n-
|
|
3
|
-
import "./ui-
|
|
2
|
+
import { t } from "./i18n-COxm2IKP.js";
|
|
3
|
+
import "./ui-DjjBjKpZ.js";
|
|
4
4
|
import { c as n } from "./tooltip-_geGvbS7.js";
|
|
5
5
|
import { t as r } from "./useNotifications-CyhTruIG.js";
|
|
6
6
|
import { forwardRef as i, useRef as a } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { t } from "./i18n-
|
|
3
|
-
import { Pn as n, bn as r } from "./ui-
|
|
2
|
+
import { t } from "./i18n-COxm2IKP.js";
|
|
3
|
+
import { Pn as n, bn as r } from "./ui-DjjBjKpZ.js";
|
|
4
4
|
import { a as i, o as a, s as o } from "./tooltip-_geGvbS7.js";
|
|
5
|
-
import { h as s, m as c, p as l } from "./sheet-
|
|
5
|
+
import { h as s, m as c, p as l } from "./sheet-B7qGvwk0.js";
|
|
6
6
|
import { useCallback as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
7
7
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
8
8
|
import { ChevronDownIcon as v, SearchIcon as y, XIcon as b } from "lucide-react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { r as t, t as n } from "./i18n-
|
|
3
|
-
import { En as r } from "./ui-
|
|
2
|
+
import { r as t, t as n } from "./i18n-COxm2IKP.js";
|
|
3
|
+
import { En as r } from "./ui-DjjBjKpZ.js";
|
|
4
4
|
import { c as i, o as a, s as o } from "./tooltip-_geGvbS7.js";
|
|
5
|
-
import { g as s, h as c, m as l, p as u } from "./sheet-
|
|
5
|
+
import { g as s, h as c, m as l, p as u } from "./sheet-B7qGvwk0.js";
|
|
6
6
|
import { i as d, l as f, n as p, t as m, u as h } from "./select-KWMg2_7Z.js";
|
|
7
|
-
import { n as g, r as _ } from "./MultiSelect-
|
|
7
|
+
import { n as g, r as _ } from "./MultiSelect-BWpBLiI-.js";
|
|
8
8
|
import * as v from "react";
|
|
9
9
|
import { useEffect as y, useMemo as b, useRef as x, useState as S } from "react";
|
|
10
10
|
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { t as e } from "./i18n-COxm2IKP.js";
|
|
2
|
+
import { n as t } from "./datatable-COQcYUrk.js";
|
|
3
|
+
import "./constants/index.js";
|
|
4
|
+
import { n, t as r } from "./sidebar.context-BahtU6hE.js";
|
|
5
|
+
import * as i from "react";
|
|
6
|
+
import { useCallback as a, useContext as o, useEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
7
|
+
import { TrashIcon as d } from "lucide-react";
|
|
8
|
+
import { format as f, parse as p } from "date-fns";
|
|
9
|
+
import { useQuery as m } from "@tanstack/react-query";
|
|
10
|
+
import { useSearchParams as h } from "react-router-dom";
|
|
11
|
+
//#region src/hooks/behavior/useDialog.ts
|
|
12
|
+
var g = (e) => {
|
|
13
|
+
let [t, n] = u(null);
|
|
14
|
+
return {
|
|
15
|
+
id: t?.id ?? null,
|
|
16
|
+
name: t?.name ?? null,
|
|
17
|
+
isOpen: !!t,
|
|
18
|
+
openDialog: (t, r) => {
|
|
19
|
+
e?.onReset?.(), n({
|
|
20
|
+
id: t,
|
|
21
|
+
name: r
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
onClose: () => {
|
|
25
|
+
n(null);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}, _ = ({ titleKey: e, descriptionKey: t, confirmKey: n = "Confirmer", onConfirm: r, onReset: i }) => {
|
|
29
|
+
let a = g({ onReset: i });
|
|
30
|
+
return {
|
|
31
|
+
isOpen: a.isOpen,
|
|
32
|
+
itemName: a.name,
|
|
33
|
+
title: e,
|
|
34
|
+
description: t,
|
|
35
|
+
confirmKey: n,
|
|
36
|
+
openDialog: a.openDialog,
|
|
37
|
+
onClose: a.onClose,
|
|
38
|
+
onConfirm: async () => {
|
|
39
|
+
if (a.id) try {
|
|
40
|
+
await r(a.id), a.onClose();
|
|
41
|
+
} catch (e) {
|
|
42
|
+
console.error("Error confirming action:", e);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}, v = ({ titleKey: t, descriptionKey: n, confirmKey: r, onConfirm: i, onReset: a }) => {
|
|
47
|
+
let { t: o } = e();
|
|
48
|
+
return {
|
|
49
|
+
..._({
|
|
50
|
+
titleKey: t,
|
|
51
|
+
descriptionKey: n,
|
|
52
|
+
confirmKey: r ?? o("actions.delete"),
|
|
53
|
+
onConfirm: i,
|
|
54
|
+
onReset: a
|
|
55
|
+
}),
|
|
56
|
+
loadingKey: "actions.deleting",
|
|
57
|
+
icon: d,
|
|
58
|
+
titleClassName: "flex items-center gap-2 text-destructive"
|
|
59
|
+
};
|
|
60
|
+
}, y = (e, t) => {
|
|
61
|
+
let [n, r] = u(e), i = l(void 0);
|
|
62
|
+
return s(() => (i.current = setTimeout(() => {
|
|
63
|
+
r(e);
|
|
64
|
+
}, t), () => {
|
|
65
|
+
clearTimeout(i.current);
|
|
66
|
+
}), [e, t]), [n, a((e) => {
|
|
67
|
+
clearTimeout(i.current), r(e);
|
|
68
|
+
}, [])];
|
|
69
|
+
}, b = (e, t = 250) => {
|
|
70
|
+
let [n, r] = i.useState(e);
|
|
71
|
+
return i.useEffect(() => {
|
|
72
|
+
let n = setTimeout(() => {
|
|
73
|
+
r(e);
|
|
74
|
+
}, t);
|
|
75
|
+
return () => {
|
|
76
|
+
clearTimeout(n);
|
|
77
|
+
};
|
|
78
|
+
}, [e, t]), n;
|
|
79
|
+
}, x = () => {
|
|
80
|
+
let e = o(n);
|
|
81
|
+
if (e === void 0) throw Error("usePage must be used within an PageProvider");
|
|
82
|
+
return e;
|
|
83
|
+
}, S = () => {
|
|
84
|
+
let e = o(r);
|
|
85
|
+
if (e === void 0) throw Error("useSidebar must be used within a SidebarProvider");
|
|
86
|
+
return e;
|
|
87
|
+
}, C = ({ queryKey: e, queryFn: n, defaultSortField: r = "", defaultSortDirection: i = "asc", additionalQueryParams: o = {}, resetUrlParams: d = [], onResetFilters: f = () => {}, enabled: p = !0 }) => {
|
|
88
|
+
let [g, _] = h(), v = parseInt(g.get("page") || "1", 10), b = g.get("search") || "", x = g.get("sortField") || r, S = g.get("sortDirection") || i, [C, w] = u(v), [T, E] = u(t), D = a((e) => {
|
|
89
|
+
E(e), w(1);
|
|
90
|
+
}, []), [O, k] = u(b), [A, j] = u(x), [M, N] = u(S), [P, F] = y(O, 300), I = l(P);
|
|
91
|
+
s(() => {
|
|
92
|
+
I.current !== P && C !== 1 && w(1), I.current = P;
|
|
93
|
+
}, [P, C]), s(() => {
|
|
94
|
+
_((e) => (C === 1 ? e.delete("page") : e.set("page", C.toString()), P.trim() ? e.set("search", P.trim()) : e.delete("search"), A && A !== r ? e.set("sortField", A) : e.delete("sortField"), M === i ? e.delete("sortDirection") : e.set("sortDirection", M), e), { replace: !0 });
|
|
95
|
+
}, [
|
|
96
|
+
C,
|
|
97
|
+
P,
|
|
98
|
+
A,
|
|
99
|
+
M,
|
|
100
|
+
r,
|
|
101
|
+
i,
|
|
102
|
+
_
|
|
103
|
+
]);
|
|
104
|
+
let L = c(() => ({
|
|
105
|
+
pageNumber: C,
|
|
106
|
+
pageSize: T,
|
|
107
|
+
text: P.trim() || void 0,
|
|
108
|
+
...o
|
|
109
|
+
}), [
|
|
110
|
+
C,
|
|
111
|
+
T,
|
|
112
|
+
P,
|
|
113
|
+
o
|
|
114
|
+
]), R = c(() => A ? [{
|
|
115
|
+
key: A,
|
|
116
|
+
order: M
|
|
117
|
+
}] : [], [A, M]), z = a((e) => {
|
|
118
|
+
e && (A === e ? N(M === "asc" ? "desc" : "asc") : (j(e), N("asc")));
|
|
119
|
+
}, [A, M]), B = a(() => {
|
|
120
|
+
k(""), F(""), w(1), j(r), N(i), _((e) => (e.delete("page"), e.delete("search"), e.delete("sortField"), e.delete("sortDirection"), d.forEach((t) => {
|
|
121
|
+
e.delete(t);
|
|
122
|
+
}), e), { replace: !0 }), f();
|
|
123
|
+
}, [
|
|
124
|
+
r,
|
|
125
|
+
i,
|
|
126
|
+
F,
|
|
127
|
+
_,
|
|
128
|
+
d,
|
|
129
|
+
f
|
|
130
|
+
]), V = c(() => [
|
|
131
|
+
...e,
|
|
132
|
+
L,
|
|
133
|
+
R
|
|
134
|
+
], [
|
|
135
|
+
e,
|
|
136
|
+
L,
|
|
137
|
+
R
|
|
138
|
+
]), { data: H, isLoading: U, error: W, refetch: G } = m({
|
|
139
|
+
queryKey: V,
|
|
140
|
+
queryFn: () => n(L, R),
|
|
141
|
+
enabled: p
|
|
142
|
+
});
|
|
143
|
+
return {
|
|
144
|
+
paginationResult: H,
|
|
145
|
+
isLoading: U,
|
|
146
|
+
error: W,
|
|
147
|
+
refetch: G,
|
|
148
|
+
pageNumber: C,
|
|
149
|
+
pageSize: T,
|
|
150
|
+
setPageNumber: w,
|
|
151
|
+
setPageSize: D,
|
|
152
|
+
search: O,
|
|
153
|
+
debouncedSearch: P,
|
|
154
|
+
setSearch: k,
|
|
155
|
+
sortField: A,
|
|
156
|
+
sortDirection: M,
|
|
157
|
+
handleSort: z,
|
|
158
|
+
resetFilters: B
|
|
159
|
+
};
|
|
160
|
+
}, w = "yyyy-MM-dd";
|
|
161
|
+
function T(e, t, n, r) {
|
|
162
|
+
let [i, o] = h(), s = i.get(e), c;
|
|
163
|
+
c = s === null ? t : n ? n(s) : s;
|
|
164
|
+
let l = a((n) => {
|
|
165
|
+
o((i) => {
|
|
166
|
+
let a = r ? r(n) : String(n);
|
|
167
|
+
return a === (r ? r(t) : String(t)) || a === "" || a === "undefined" ? i.delete(e) : i.set(e, a), i;
|
|
168
|
+
}, { replace: !0 });
|
|
169
|
+
}, [
|
|
170
|
+
e,
|
|
171
|
+
t,
|
|
172
|
+
r,
|
|
173
|
+
o
|
|
174
|
+
]);
|
|
175
|
+
return [c, l];
|
|
176
|
+
}
|
|
177
|
+
function E(e, t = []) {
|
|
178
|
+
return T(e, t, (e) => e ? e.split(",").filter(Boolean) : [], (e) => e.join(","));
|
|
179
|
+
}
|
|
180
|
+
function D(e, t) {
|
|
181
|
+
return T(e, t, (e) => parseInt(e, 10) || t, (e) => e.toString());
|
|
182
|
+
}
|
|
183
|
+
var O = (e) => {
|
|
184
|
+
if (!e) return;
|
|
185
|
+
let [t, n] = e.split("_"), r = t ? p(t, w, /* @__PURE__ */ new Date()) : void 0;
|
|
186
|
+
if (!r || isNaN(r.getTime())) return;
|
|
187
|
+
let i = n ? p(n, w, /* @__PURE__ */ new Date()) : void 0;
|
|
188
|
+
return {
|
|
189
|
+
from: r,
|
|
190
|
+
to: i && !isNaN(i.getTime()) ? i : void 0
|
|
191
|
+
};
|
|
192
|
+
}, k = (e) => {
|
|
193
|
+
if (!e?.from) return "";
|
|
194
|
+
let t = f(e.from, w), n = e.to ? f(e.to, w) : "";
|
|
195
|
+
return n ? `${t}_${n}` : t;
|
|
196
|
+
};
|
|
197
|
+
function A(e) {
|
|
198
|
+
return T(e, void 0, O, k);
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
201
|
+
export { A as a, C as c, b as d, y as f, g as h, E as i, S as l, _ as m, O as n, D as o, v as p, k as r, T as s, w as t, x as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
2
|
import { c as t, d as n, f as r, s as i } from "./chart-Dq3AIrue.js";
|
|
3
|
-
import { t as a } from "./i18n-
|
|
4
|
-
import "./ui-
|
|
3
|
+
import { t as a } from "./i18n-COxm2IKP.js";
|
|
4
|
+
import "./ui-DjjBjKpZ.js";
|
|
5
5
|
import { t as o } from "./skeleton-D6Ga4BLw.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
2
|
import { a as t, c as n, d as r, f as i, l as a, n as o, o as s, r as c, s as l, t as u } from "./chart-Dq3AIrue.js";
|
|
3
|
-
import { t as d } from "./i18n-
|
|
3
|
+
import { t as d } from "./i18n-COxm2IKP.js";
|
|
4
4
|
import { t as f } from "./skeleton-D6Ga4BLw.js";
|
|
5
5
|
import { t as p } from "./useMobile-pTQ8lWvt.js";
|
|
6
6
|
import * as m from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../cards-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../cards-9ND39VtI.js";
|
|
2
2
|
export { r as DashboardCard, e as KpiCard, t as KpiCards, i as MetricCard, n as SkeletonCard, a as SkeletonCards };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../../../charts-
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../../../charts-Dqw9_J2o.js";
|
|
2
2
|
export { t as BarChartHorizontal, o as BarChartVertical, e as CHART_COLORS, n as ChartCard, a as CircularGauge, r as LineChart, s as PieChart, i as getChartColor };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as e } from "../../../ui-
|
|
2
|
-
import { A as t, D as n, E as r, F as i, M as a, N as o, O as s, P as c, j as l, k as u } from "../../../sheet-
|
|
3
|
-
import { n as d, r as f, t as p } from "../../../dialogs-
|
|
1
|
+
import { I as e } from "../../../ui-DjjBjKpZ.js";
|
|
2
|
+
import { A as t, D as n, E as r, F as i, M as a, N as o, O as s, P as c, j as l, k as u } from "../../../sheet-B7qGvwk0.js";
|
|
3
|
+
import { n as d, r as f, t as p } from "../../../dialogs-DM3SIHMD.js";
|
|
4
4
|
export { f as AppDialog, p as ConfirmationDialog, r as Dialog, n as DialogClose, s as DialogContent, u as DialogDescription, t as DialogFooter, l as DialogHeader, a as DialogOverlay, o as DialogPortal, c as DialogTitle, i as DialogTrigger, d as FormDialog, e as Progress };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "../../../tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { t } from "../../../i18n-
|
|
3
|
-
import { At as n, Jt as r, Kt as i, Pn as a, Xt as o, Zt as s, en as c, qt as l, tn as u } from "../../../ui-
|
|
2
|
+
import { t } from "../../../i18n-COxm2IKP.js";
|
|
3
|
+
import { At as n, Jt as r, Kt as i, Pn as a, Xt as o, Zt as s, en as c, qt as l, tn as u } from "../../../ui-DjjBjKpZ.js";
|
|
4
4
|
import { c as d } from "../../../tooltip-_geGvbS7.js";
|
|
5
|
-
import { a as f, g as p, l as m, o as h, r as g, t as _, u as v } from "../../../sheet-
|
|
5
|
+
import { a as f, g as p, l as m, o as h, r as g, t as _, u as v } from "../../../sheet-B7qGvwk0.js";
|
|
6
6
|
import { t as y } from "../../../useMobile-pTQ8lWvt.js";
|
|
7
|
-
import { t as b } from "../../../MultiSelect-
|
|
8
|
-
import { i as x, n as S, r as C, t as w } from "../../../SearchInput-
|
|
9
|
-
import "../../../ui-
|
|
7
|
+
import { t as b } from "../../../MultiSelect-BWpBLiI-.js";
|
|
8
|
+
import { i as x, n as S, r as C, t as w } from "../../../SearchInput-TWh8dk0Q.js";
|
|
9
|
+
import "../../../ui-B648tEnO.js";
|
|
10
10
|
import { useEffect as T, useMemo as E, useState as D } from "react";
|
|
11
11
|
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
12
12
|
import { getLocale as A } from "@krosoft/core/helpers";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../GenericForm-
|
|
1
|
+
import { t as e } from "../../../GenericForm-B-HE6wx0.js";
|
|
2
2
|
export { e as GenericForm };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../../cards-
|
|
2
|
-
import { I as o } from "../../ui-
|
|
3
|
-
import { A as s, D as c, E as l, F as u, M as d, N as f, O as p, P as m, j as h, k as g } from "../../sheet-
|
|
4
|
-
import { a as _, c as v, i as y, n as b, o as x, r as S, s as C, t as w } from "../../charts-
|
|
5
|
-
import { t as T } from "../../ErrorAlert-
|
|
6
|
-
import { n as E, r as D, t as O } from "../../dialogs-
|
|
7
|
-
import { t as k } from "../../ImageInput-
|
|
8
|
-
import { t as A } from "../../AppActions-
|
|
9
|
-
import { t as j } from "../../AppSubTitle-
|
|
10
|
-
import { t as M } from "../../MultiSelect-
|
|
11
|
-
import { t as N } from "../../GenericForm-
|
|
12
|
-
import { i as P, n as F, r as I, t as L } from "../../SearchInput-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../cards-9ND39VtI.js";
|
|
2
|
+
import { I as o } from "../../ui-DjjBjKpZ.js";
|
|
3
|
+
import { A as s, D as c, E as l, F as u, M as d, N as f, O as p, P as m, j as h, k as g } from "../../sheet-B7qGvwk0.js";
|
|
4
|
+
import { a as _, c as v, i as y, n as b, o as x, r as S, s as C, t as w } from "../../charts-Dqw9_J2o.js";
|
|
5
|
+
import { t as T } from "../../ErrorAlert-ZflPwfL1.js";
|
|
6
|
+
import { n as E, r as D, t as O } from "../../dialogs-DM3SIHMD.js";
|
|
7
|
+
import { t as k } from "../../ImageInput-pfEyse5s.js";
|
|
8
|
+
import { t as A } from "../../AppActions-D4phryLI.js";
|
|
9
|
+
import { t as j } from "../../AppSubTitle-C4OXWXqx.js";
|
|
10
|
+
import { t as M } from "../../MultiSelect-BWpBLiI-.js";
|
|
11
|
+
import { t as N } from "../../GenericForm-B-HE6wx0.js";
|
|
12
|
+
import { i as P, n as F, r as I, t as L } from "../../SearchInput-TWh8dk0Q.js";
|
|
13
13
|
import { ActiveFilters as R, AdvancedFilters as z, FilterField as B, FilterPills as V, FilterPillsGroup as H, FiltersContainer as U, FiltersMobileDrawer as W, TableFilter as G } from "./filters/index.js";
|
|
14
14
|
import "./forms/index.js";
|
|
15
15
|
import { n as K, t as q } from "../../icons-n0m_1w7z.js";
|
|
16
|
-
import { t as J } from "../../inputs-
|
|
17
|
-
import { t as Y } from "../../language-
|
|
18
|
-
import { t as X } from "../../AppTitle-
|
|
19
|
-
import { n as Z, t as Q } from "../../states-
|
|
16
|
+
import { t as J } from "../../inputs-BF_gkzmN.js";
|
|
17
|
+
import { t as Y } from "../../language-CX5k4uX5.js";
|
|
18
|
+
import { t as X } from "../../AppTitle-ky6qG29Z.js";
|
|
19
|
+
import { n as Z, t as Q } from "../../states-14gCg2Sl.js";
|
|
20
20
|
import { AppPageHeader as $, KpiCardsLayout as ee } from "./layouts/index.js";
|
|
21
|
-
import { a as te, i as ne, n as re, o as ie, r as ae, t as oe } from "../../navbar-
|
|
21
|
+
import { a as te, i as ne, n as re, o as ie, r as ae, t as oe } from "../../navbar-Ce8pq_3-.js";
|
|
22
22
|
import { DataTable as se, JsonTableOutput as ce, TableActions as le, TableBody as ue, TableBulkActions as de, TableHeader as fe, TablePagination as pe, TableSettings as me } from "./table/index.js";
|
|
23
23
|
import { AppTabContainer as he, AppTabHeader as ge, AppTabs as _e, AppVerticalTabs as ve } from "./tabs/index.js";
|
|
24
|
-
import { t as ye } from "../../theme-
|
|
24
|
+
import { t as ye } from "../../theme-BUl4fbtL.js";
|
|
25
25
|
export { R as ActiveFilters, z as AdvancedFilters, A as AppActions, D as AppDialog, $ as AppPageHeader, j as AppSubTitle, he as AppTabContainer, ge as AppTabHeader, _e as AppTabs, X as AppTitle, ve as AppVerticalTabs, v as BarChartHorizontal, C as BarChartVertical, _ as CHART_COLORS, y as ChartCard, S as CircularGauge, O as ConfirmationDialog, r as DashboardCard, se as DataTable, P as DatePicker, I as DateRangePicker, l as Dialog, c as DialogClose, p as DialogContent, g as DialogDescription, s as DialogFooter, h as DialogHeader, d as DialogOverlay, f as DialogPortal, m as DialogTitle, u as DialogTrigger, T as ErrorAlert, Z as ErrorState, B as FilterField, V as FilterPills, H as FilterPillsGroup, U as FiltersContainer, W as FiltersMobileDrawer, K as FlagFrIcon, q as FlagGbIcon, E as FormDialog, N as GenericForm, ie as GlobalSearch, k as ImageInput, ce as JsonTableOutput, e as KpiCard, t as KpiCards, ee as KpiCardsLayout, Y as LanguageSelector, b as LineChart, Q as LoadingState, i as MetricCard, M as MultiSelect, te as NotificationsBell, w as PieChart, o as Progress, J as RatingInput, L as SearchInput, ae as Sidebar, re as SidebarHeader, ne as SidebarNavItem, F as SingleSelect, n as SkeletonCard, a as SkeletonCards, le as TableActions, ue as TableBody, de as TableBulkActions, G as TableFilter, fe as TableHeader, pe as TablePagination, me as TableSettings, ye as ThemeSelector, oe as Topbar, x as getChartColor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../../../ImageInput-
|
|
2
|
-
import { t } from "../../../MultiSelect-
|
|
3
|
-
import { i as n, n as r, r as i, t as a } from "../../../SearchInput-
|
|
4
|
-
import { t as o } from "../../../inputs-
|
|
1
|
+
import { t as e } from "../../../ImageInput-pfEyse5s.js";
|
|
2
|
+
import { t } from "../../../MultiSelect-BWpBLiI-.js";
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "../../../SearchInput-TWh8dk0Q.js";
|
|
4
|
+
import { t as o } from "../../../inputs-BF_gkzmN.js";
|
|
5
5
|
export { n as DatePicker, i as DateRangePicker, e as ImageInput, t as MultiSelect, o as RatingInput, a as SearchInput, r as SingleSelect };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../language-
|
|
1
|
+
import { t as e } from "../../../language-CX5k4uX5.js";
|
|
2
2
|
export { e as LanguageSelector };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as e } from "../../../i18n-
|
|
2
|
-
import { i as t, t as n } from "../../../cards-
|
|
3
|
-
import "../../../ui-
|
|
1
|
+
import { t as e } from "../../../i18n-COxm2IKP.js";
|
|
2
|
+
import { i as t, t as n } from "../../../cards-9ND39VtI.js";
|
|
3
|
+
import "../../../ui-DjjBjKpZ.js";
|
|
4
4
|
import { c as r } from "../../../tooltip-_geGvbS7.js";
|
|
5
|
-
import { t as i } from "../../../AppActions-
|
|
6
|
-
import { t as a } from "../../../AppSubTitle-
|
|
7
|
-
import { t as o } from "../../../useDocumentTitle-
|
|
8
|
-
import { t as s } from "../../../AppTitle-
|
|
9
|
-
import { n as c } from "../../../states-
|
|
5
|
+
import { t as i } from "../../../AppActions-D4phryLI.js";
|
|
6
|
+
import { t as a } from "../../../AppSubTitle-C4OXWXqx.js";
|
|
7
|
+
import { t as o } from "../../../useDocumentTitle-wGdjZMx6.js";
|
|
8
|
+
import { t as s } from "../../../AppTitle-ky6qG29Z.js";
|
|
9
|
+
import { n as c } from "../../../states-14gCg2Sl.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
12
12
|
import { ArrowLeftIcon as d } from "lucide-react";
|
|
@@ -35,6 +35,20 @@ export interface GlobalSearchProps {
|
|
|
35
35
|
/** Raccourci ⌘K / Ctrl+K. */
|
|
36
36
|
shortcut?: boolean;
|
|
37
37
|
shortcutLabel?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Termes déjà recherchés, proposés tant que la saisie est vide — la plus récente en premier.
|
|
40
|
+
* La persistance et l'ordre restent à la charge de l'appelant : le composant ne fait que
|
|
41
|
+
* les afficher. Masqué dès qu'une saisie est en cours, pour laisser place aux résultats.
|
|
42
|
+
*/
|
|
43
|
+
history?: string[];
|
|
44
|
+
/** Clic sur une entrée d'historique : à l'appelant de relancer la recherche sur ce terme. */
|
|
45
|
+
onHistorySelect?: (term: string) => void;
|
|
46
|
+
/** Sans ce callback, aucune entrée d'historique n'affiche sa croix de suppression. */
|
|
47
|
+
onHistoryRemove?: (term: string) => void;
|
|
48
|
+
/** Intitulé du groupe d'historique. */
|
|
49
|
+
historyHeading?: string;
|
|
50
|
+
/** Libellé accessible de la croix qui retire une entrée de l'historique. */
|
|
51
|
+
removeFromHistoryLabel?: string;
|
|
38
52
|
placeholder?: string;
|
|
39
53
|
emptyLabel?: string;
|
|
40
54
|
loadingLabel?: string;
|
|
@@ -55,6 +69,10 @@ export interface GlobalSearchProps {
|
|
|
55
69
|
* Le filtrage interne de cmdk est désactivé (`shouldFilter={false}`) : les résultats
|
|
56
70
|
* arrivent déjà filtrés en amont — côté serveur pour les données, sans accents pour
|
|
57
71
|
* les pages — et cmdk en masquerait une partie en refiltrant sur la saisie brute.
|
|
72
|
+
*
|
|
73
|
+
* Tant que la saisie est vide, l'historique (`history`) est proposé : chaque terme
|
|
74
|
+
* relance une recherche (`onHistorySelect`) et peut être retiré via sa croix
|
|
75
|
+
* (`onHistoryRemove`). Sa persistance reste à la charge de l'appelant.
|
|
58
76
|
*/
|
|
59
|
-
export declare const GlobalSearch: ({ groups, search, onSearch, onSelect, loading, open, onOpenChange, trigger, triggerLabel, shortcut, shortcutLabel, placeholder, emptyLabel, loadingLabel, title, description, hint, className, }: GlobalSearchProps) => React.ReactElement;
|
|
77
|
+
export declare const GlobalSearch: ({ groups, search, onSearch, onSelect, loading, open, onOpenChange, trigger, triggerLabel, shortcut, shortcutLabel, history, onHistorySelect, onHistoryRemove, historyHeading, removeFromHistoryLabel, placeholder, emptyLabel, loadingLabel, title, description, hint, className, }: GlobalSearchProps) => React.ReactElement;
|
|
60
78
|
//# sourceMappingURL=GlobalSearch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalSearch.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/GlobalSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,gBAAgB;IAC/B,6EAA6E;IAC7E,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,8EAA8E;IAC9E,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAE3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC,wFAAwF;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gFAAgF;IAChF,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED
|
|
1
|
+
{"version":3,"file":"GlobalSearch.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/GlobalSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,gBAAgB;IAC/B,6EAA6E;IAC7E,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,8EAA8E;IAC9E,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAE3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC,wFAAwF;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,6FAA6F;IAC7F,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,sFAAsF;IACtF,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,uCAAuC;IACvC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gFAAgF;IAChF,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY,GAAI,qRAwB1B,iBAAiB,KAAG,KAAK,CAAC,YAkK5B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-Ce8pq_3-.js";
|
|
2
2
|
export { r as GlobalSearch, e as NotificationsBell, i as Sidebar, n as SidebarHeader, t as SidebarNavItem, a as Topbar };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "../../../ErrorAlert-
|
|
2
|
-
import { n as t, t as n } from "../../../states-
|
|
1
|
+
import { t as e } from "../../../ErrorAlert-ZflPwfL1.js";
|
|
2
|
+
import { n as t, t as n } from "../../../states-14gCg2Sl.js";
|
|
3
3
|
export { e as ErrorAlert, t as ErrorState, n as LoadingState };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ACTIONS_COLUMN_KEY as e, SELECTION_COLUMN_KEY as t, getAlignmentClass as n, getColumnAlignment as r, getFixedCellProps as i } from "../../../helpers/index.js";
|
|
2
|
-
import { t as a } from "../../../i18n-
|
|
3
|
-
import { At as o, C as s, D as c, Ft as l, Gt as u, Mt as d, Nt as f, O as p, S as m, T as h, bn as g, jt as _, k as v, v as y } from "../../../ui-
|
|
2
|
+
import { t as a } from "../../../i18n-COxm2IKP.js";
|
|
3
|
+
import { At as o, C as s, D as c, Ft as l, Gt as u, Mt as d, Nt as f, O as p, S as m, T as h, bn as g, jt as _, k as v, v as y } from "../../../ui-DjjBjKpZ.js";
|
|
4
4
|
import { c as b } from "../../../tooltip-_geGvbS7.js";
|
|
5
5
|
import { i as x, l as S, n as C, t as w, u as T } from "../../../select-KWMg2_7Z.js";
|
|
6
6
|
import { n as E, t as D } from "../../../useFixedColumns-B2yti0Rk.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "../../../tailwind.helper-CJaRYBmL.js";
|
|
2
2
|
import { c as t, d as n, s as r } from "../../../chart-Dq3AIrue.js";
|
|
3
|
-
import { t as i } from "../../../i18n-
|
|
4
|
-
import { _ as a, g as o, h as s, m as c } from "../../../ui-
|
|
5
|
-
import { d as l } from "../../../sheet-
|
|
3
|
+
import { t as i } from "../../../i18n-COxm2IKP.js";
|
|
4
|
+
import { _ as a, g as o, h as s, m as c } from "../../../ui-DjjBjKpZ.js";
|
|
5
|
+
import { d as l } from "../../../sheet-B7qGvwk0.js";
|
|
6
6
|
import { i as u, l as d, n as f, t as p, u as m } from "../../../select-KWMg2_7Z.js";
|
|
7
|
-
import { t as h } from "../../../AppActions-
|
|
8
|
-
import { t as g } from "../../../AppTitle-
|
|
7
|
+
import { t as h } from "../../../AppActions-D4phryLI.js";
|
|
8
|
+
import { t as g } from "../../../AppTitle-ky6qG29Z.js";
|
|
9
9
|
import { useEffect as _, useRef as v } from "react";
|
|
10
10
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
11
11
|
import { ConstructionIcon as x } from "lucide-react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../theme-
|
|
1
|
+
import { t as e } from "../../../theme-BUl4fbtL.js";
|
|
2
2
|
export { e as ThemeSelector };
|
package/dist/components/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../chart-Dq3AIrue.js";
|
|
2
|
-
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "../cards-
|
|
3
|
-
import { $ as v, $t as y, A as b, An as x, At as S, B as C, Bn as w, Bt as T, C as E, Cn as D, Ct as O, D as k, Dn as A, Dt as j, E as M, En as N, Et as P, F, Fn as I, Ft as L, G as R, Gn as z, Gt as B, H as V, Hn as H, Ht as U, I as W, In as G, It as K, J as q, Jn as J, Jt as Y, K as X, Kn as Z, Kt as Q, L as $, Ln as ee, Lt as te, M as ne, Mn as re, Mt as ie, N as ae, Nn as oe, Nt as se, O as ce, On as le, Ot as ue, P as de, Pn as fe, Pt as pe, Q as me, Qn as he, Qt as ge, R as _e, Rn as ve, Rt as ye, S as be, Sn as xe, St as Se, T as Ce, Tn as we, Tt as Te, U as Ee, Un as De, Ut as Oe, V as ke, Vn as Ae, Vt as je, W as Me, Wn as Ne, Wt as Pe, X as Fe, Xn as Ie, Xt as Le, Y as Re, Yn as ze, Yt as Be, Z as Ve, Zn as He, Zt as Ue, _ as We, _n as Ge, _t as Ke, a as qe, an as Je, at as Ye, b as Xe, bn as Ze, bt as Qe, c as $e, cn as et, ct as tt, d as nt, dn as rt, dt as it, en as at, et as ot, f as st, fn as ct, ft as lt, g as ut, gn as dt, gt as ft, h as pt, hn as mt, ht, i as gt, in as _t, it as vt, j as yt, jn as bt, jt as xt, k as St, kn as Ct, kt as wt, l as Tt, ln as Et, lt as Dt, m as Ot, mn as kt, mt as At, n as jt, nn as Mt, nt as Nt, o as Pt, on as Ft, ot as It, p as Lt, pn as Rt, pt as zt, q as Bt, qn as Vt, qt as Ht, r as Ut, rn as Wt, rt as Gt, s as Kt, sn as qt, st as Jt, t as Yt, tn as Xt, tt as Zt, u as Qt, un as $t, ut as en, v as tn, vn as nn, vt as rn, w as an, wn as on, wt as sn, x as cn, xn as ln, xt as un, y as dn, yn as fn, yt as pn, z as mn, zn as hn, zt as gn } from "../ui-
|
|
2
|
+
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "../cards-9ND39VtI.js";
|
|
3
|
+
import { $ as v, $t as y, A as b, An as x, At as S, B as C, Bn as w, Bt as T, C as E, Cn as D, Ct as O, D as k, Dn as A, Dt as j, E as M, En as N, Et as P, F, Fn as I, Ft as L, G as R, Gn as z, Gt as B, H as V, Hn as H, Ht as U, I as W, In as G, It as K, J as q, Jn as J, Jt as Y, K as X, Kn as Z, Kt as Q, L as $, Ln as ee, Lt as te, M as ne, Mn as re, Mt as ie, N as ae, Nn as oe, Nt as se, O as ce, On as le, Ot as ue, P as de, Pn as fe, Pt as pe, Q as me, Qn as he, Qt as ge, R as _e, Rn as ve, Rt as ye, S as be, Sn as xe, St as Se, T as Ce, Tn as we, Tt as Te, U as Ee, Un as De, Ut as Oe, V as ke, Vn as Ae, Vt as je, W as Me, Wn as Ne, Wt as Pe, X as Fe, Xn as Ie, Xt as Le, Y as Re, Yn as ze, Yt as Be, Z as Ve, Zn as He, Zt as Ue, _ as We, _n as Ge, _t as Ke, a as qe, an as Je, at as Ye, b as Xe, bn as Ze, bt as Qe, c as $e, cn as et, ct as tt, d as nt, dn as rt, dt as it, en as at, et as ot, f as st, fn as ct, ft as lt, g as ut, gn as dt, gt as ft, h as pt, hn as mt, ht, i as gt, in as _t, it as vt, j as yt, jn as bt, jt as xt, k as St, kn as Ct, kt as wt, l as Tt, ln as Et, lt as Dt, m as Ot, mn as kt, mt as At, n as jt, nn as Mt, nt as Nt, o as Pt, on as Ft, ot as It, p as Lt, pn as Rt, pt as zt, q as Bt, qn as Vt, qt as Ht, r as Ut, rn as Wt, rt as Gt, s as Kt, sn as qt, st as Jt, t as Yt, tn as Xt, tt as Zt, u as Qt, un as $t, ut as en, v as tn, vn as nn, vt as rn, w as an, wn as on, wt as sn, x as cn, xn as ln, xt as un, y as dn, yn as fn, yt as pn, z as mn, zn as hn, zt as gn } from "../ui-DjjBjKpZ.js";
|
|
4
4
|
import { n as _n, r as vn, t as yn } from "../alert-REQGK9bR.js";
|
|
5
5
|
import { a as bn, c as xn, i as Sn, l as Cn, n as wn, o as Tn, r as En, s as Dn, t as On } from "../tooltip-_geGvbS7.js";
|
|
6
|
-
import { A as kn, C as An, D as jn, E as Mn, F as Nn, M as Pn, N as Fn, O as In, P as Ln, S as Rn, T as zn, _ as Bn, a as Vn, b as Hn, c as Un, d as Wn, f as Gn, g as Kn, h as qn, i as Jn, j as Yn, k as Xn, l as Zn, m as Qn, n as $n, o as er, p as tr, r as nr, s as rr, t as ir, u as ar, v as or, w as sr, x as cr, y as lr } from "../sheet-
|
|
6
|
+
import { A as kn, C as An, D as jn, E as Mn, F as Nn, M as Pn, N as Fn, O as In, P as Ln, S as Rn, T as zn, _ as Bn, a as Vn, b as Hn, c as Un, d as Wn, f as Gn, g as Kn, h as qn, i as Jn, j as Yn, k as Xn, l as Zn, m as Qn, n as $n, o as er, p as tr, r as nr, s as rr, t as ir, u as ar, v as or, w as sr, x as cr, y as lr } from "../sheet-B7qGvwk0.js";
|
|
7
7
|
import { a as ur, c as dr, i as fr, l as pr, n as mr, o as hr, r as gr, s as _r, t as vr, u as yr } from "../select-KWMg2_7Z.js";
|
|
8
8
|
import { t as br } from "../skeleton-D6Ga4BLw.js";
|
|
9
|
-
import { a as xr, c as Sr, i as Cr, n as wr, o as Tr, r as Er, s as Dr, t as Or } from "../charts-
|
|
10
|
-
import { t as kr } from "../ErrorAlert-
|
|
11
|
-
import { n as Ar, r as jr, t as Mr } from "../dialogs-
|
|
12
|
-
import { t as Nr } from "../ImageInput-
|
|
13
|
-
import { t as Pr } from "../AppActions-
|
|
14
|
-
import { t as Fr } from "../AppSubTitle-
|
|
15
|
-
import { t as Ir } from "../MultiSelect-
|
|
16
|
-
import { t as Lr } from "../GenericForm-
|
|
17
|
-
import { i as Rr, n as zr, r as Br, t as Vr } from "../SearchInput-
|
|
9
|
+
import { a as xr, c as Sr, i as Cr, n as wr, o as Tr, r as Er, s as Dr, t as Or } from "../charts-Dqw9_J2o.js";
|
|
10
|
+
import { t as kr } from "../ErrorAlert-ZflPwfL1.js";
|
|
11
|
+
import { n as Ar, r as jr, t as Mr } from "../dialogs-DM3SIHMD.js";
|
|
12
|
+
import { t as Nr } from "../ImageInput-pfEyse5s.js";
|
|
13
|
+
import { t as Pr } from "../AppActions-D4phryLI.js";
|
|
14
|
+
import { t as Fr } from "../AppSubTitle-C4OXWXqx.js";
|
|
15
|
+
import { t as Ir } from "../MultiSelect-BWpBLiI-.js";
|
|
16
|
+
import { t as Lr } from "../GenericForm-B-HE6wx0.js";
|
|
17
|
+
import { i as Rr, n as zr, r as Br, t as Vr } from "../SearchInput-TWh8dk0Q.js";
|
|
18
18
|
import { ActiveFilters as Hr, AdvancedFilters as Ur, FilterField as Wr, FilterPills as Gr, FilterPillsGroup as Kr, FiltersContainer as qr, FiltersMobileDrawer as Jr, TableFilter as Yr } from "./core/filters/index.js";
|
|
19
19
|
import { n as Xr, t as Zr } from "../icons-n0m_1w7z.js";
|
|
20
|
-
import { t as Qr } from "../inputs-
|
|
21
|
-
import { t as $r } from "../language-
|
|
22
|
-
import { t as ei } from "../AppTitle-
|
|
23
|
-
import { n as ti, t as ni } from "../states-
|
|
20
|
+
import { t as Qr } from "../inputs-BF_gkzmN.js";
|
|
21
|
+
import { t as $r } from "../language-CX5k4uX5.js";
|
|
22
|
+
import { t as ei } from "../AppTitle-ky6qG29Z.js";
|
|
23
|
+
import { n as ti, t as ni } from "../states-14gCg2Sl.js";
|
|
24
24
|
import { AppPageHeader as ri, KpiCardsLayout as ii } from "./core/layouts/index.js";
|
|
25
|
-
import { a as ai, i as oi, n as si, o as ci, r as li, t as ui } from "../navbar-
|
|
25
|
+
import { a as ai, i as oi, n as si, o as ci, r as li, t as ui } from "../navbar-Ce8pq_3-.js";
|
|
26
26
|
import { DataTable as di, JsonTableOutput as fi, TableActions as pi, TableBody as mi, TableBulkActions as hi, TableHeader as gi, TablePagination as _i, TableSettings as vi } from "./core/table/index.js";
|
|
27
27
|
import { AppTabContainer as yi, AppTabHeader as bi, AppTabs as xi, AppVerticalTabs as Si } from "./core/tabs/index.js";
|
|
28
|
-
import { t as Ci } from "../theme-
|
|
28
|
+
import { t as Ci } from "../theme-BUl4fbtL.js";
|
|
29
29
|
import "./core/index.js";
|
|
30
30
|
export { ze as Accordion, Ie as AccordionContent, He as AccordionItem, he as AccordionTrigger, Hr as ActiveFilters, Ur as AdvancedFilters, yn as Alert, _n as AlertDescription, w as AlertDialog, Ae as AlertDialogAction, H as AlertDialogCancel, De as AlertDialogContent, Ne as AlertDialogDescription, z as AlertDialogFooter, Z as AlertDialogHeader, Vt as AlertDialogTitle, J as AlertDialogTrigger, vn as AlertTitle, Pr as AppActions, jr as AppDialog, ri as AppPageHeader, Fr as AppSubTitle, yi as AppTabContainer, bi as AppTabHeader, xi as AppTabs, ei as AppTitle, Si as AppVerticalTabs, hn as AspectRatio, G as Avatar, ee as AvatarFallback, ve as AvatarImage, fe as Badge, Sr as BarChartHorizontal, Dr as BarChartVertical, A as Breadcrumb, le as BreadcrumbEllipsis, Ct as BreadcrumbItem, x as BreadcrumbLink, bt as BreadcrumbList, re as BreadcrumbPage, oe as BreadcrumbSeparator, xn as Button, xr as CHART_COLORS, N as Calendar, l as Card, t as CardContent, a as CardDescription, d as CardFooter, n as CardHeader, r as CardTitle, ln as Carousel, xe as CarouselContent, D as CarouselItem, on as CarouselNext, we as CarouselPrevious, Cr as ChartCard, u as ChartContainer, o as ChartLegend, c as ChartLegendContent, i as ChartStyle, e as ChartTooltip, s as ChartTooltipContent, Ze as Checkbox, Er as CircularGauge, Ge as Collapsible, nn as CollapsibleContent, fn as CollapsibleTrigger, Bn as Command, or as CommandDialog, lr as CommandEmpty, Hn as CommandGroup, cr as CommandInput, Rn as CommandItem, An as CommandList, sr as CommandSeparator, zn as CommandShortcut, Mr as ConfirmationDialog, Mt as ContextMenu, Wt as ContextMenuCheckboxItem, _t as ContextMenuContent, Je as ContextMenuGroup, Ft as ContextMenuItem, qt as ContextMenuLabel, et as ContextMenuPortal, Et as ContextMenuRadioGroup, $t as ContextMenuRadioItem, rt as ContextMenuSeparator, ct as ContextMenuShortcut, Rt as ContextMenuSub, kt as ContextMenuSubContent, mt as ContextMenuSubTrigger, dt as ContextMenuTrigger, h as DashboardCard, di as DataTable, Rr as DatePicker, Br as DateRangePicker, Mn as Dialog, jn as DialogClose, In as DialogContent, Xn as DialogDescription, kn as DialogFooter, Yn as DialogHeader, Pn as DialogOverlay, Fn as DialogPortal, Ln as DialogTitle, Nn as DialogTrigger, Q as Drawer, Ht as DrawerClose, Y as DrawerContent, Be as DrawerDescription, Le as DrawerFooter, Ue as DrawerHeader, ge as DrawerOverlay, y as DrawerPortal, at as DrawerTitle, Xt as DrawerTrigger, xt as DropdownMenu, ie as DropdownMenuCheckboxItem, se as DropdownMenuContent, pe as DropdownMenuGroup, L as DropdownMenuItem, K as DropdownMenuLabel, te as DropdownMenuPortal, ye as DropdownMenuRadioGroup, gn as DropdownMenuRadioItem, T as DropdownMenuSeparator, je as DropdownMenuShortcut, U as DropdownMenuSub, Oe as DropdownMenuSubContent, Pe as DropdownMenuSubTrigger, B as DropdownMenuTrigger, kr as ErrorAlert, ti as ErrorState, Wr as FilterField, Gr as FilterPills, Kr as FilterPillsGroup, qr as FiltersContainer, Jr as FiltersMobileDrawer, Xr as FlagFrIcon, Zr as FlagGbIcon, Se as Form, O as FormControl, sn as FormDescription, Ar as FormDialog, Te as FormField, P as FormItem, j as FormLabel, ue as FormMessage, Lr as GenericForm, ci as GlobalSearch, pn as HoverCard, Qe as HoverCardContent, un as HoverCardTrigger, Nr as ImageInput, Kn as Input, ht as InputOTP, ft as InputOTPGroup, Ke as InputOTPSeparator, rn as InputOTPSlot, fi as JsonTableOutput, f as KpiCard, p as KpiCards, ii as KpiCardsLayout, S as Label, $r as LanguageSelector, wr as LineChart, ni as LoadingState, v as Menubar, ot as MenubarCheckboxItem, Zt as MenubarContent, Nt as MenubarGroup, Gt as MenubarItem, vt as MenubarLabel, Ye as MenubarMenu, It as MenubarPortal, Jt as MenubarRadioGroup, tt as MenubarRadioItem, Dt as MenubarSeparator, en as MenubarShortcut, it as MenubarSub, lt as MenubarSubContent, zt as MenubarSubTrigger, At as MenubarTrigger, g as MetricCard, Ir as MultiSelect, Me as NavigationMenu, R as NavigationMenuContent, X as NavigationMenuIndicator, Bt as NavigationMenuItem, q as NavigationMenuLink, Re as NavigationMenuList, Fe as NavigationMenuTrigger, Ve as NavigationMenuViewport, ai as NotificationsBell, $ as Pagination, _e as PaginationContent, mn as PaginationEllipsis, C as PaginationItem, ke as PaginationLink, V as PaginationNext, Ee as PaginationPrevious, Or as PieChart, tr as Popover, Qn as PopoverContent, qn as PopoverTrigger, W as Progress, de as RadioGroup, F as RadioGroupItem, Qr as RatingInput, yt as ResizableHandle, ne as ResizablePanel, ae as ResizablePanelGroup, Wn as ScrollArea, Gn as ScrollBar, Vr as SearchInput, vr as Select, mr as SelectContent, gr as SelectGroup, fr as SelectItem, ur as SelectLabel, hr as SelectScrollDownButton, _r as SelectScrollUpButton, dr as SelectSeparator, pr as SelectTrigger, yr as SelectValue, b as Separator, ir as Sheet, $n as SheetClose, nr as SheetContent, Jn as SheetDescription, Vn as SheetFooter, er as SheetHeader, rr as SheetOverlay, Un as SheetPortal, Zn as SheetTitle, ar as SheetTrigger, li as Sidebar, si as SidebarHeader, oi as SidebarNavItem, be as SimpleTable, E as SimpleTableBody, an as SimpleTableCaption, Ce as SimpleTableCell, M as SimpleTableFooter, k as SimpleTableHead, ce as SimpleTableHeader, St as SimpleTableRow, zr as SingleSelect, br as Skeleton, m as SkeletonCard, _ as SkeletonCards, cn as Slider, dn as Sonner, tn as Switch, pi as TableActions, mi as TableBody, hi as TableBulkActions, Yr as TableFilter, gi as TableHeader, _i as TablePagination, vi as TableSettings, Ot as Tabs, pt as TabsContent, ut as TabsList, We as TabsTrigger, Lt as Textarea, Ci as ThemeSelector, Pt as Toast, Kt as ToastAction, $e as ToastClose, Tt as ToastDescription, Qt as ToastProvider, nt as ToastTitle, st as ToastViewport, qe as Toaster, Ut as Toggle, Yt as ToggleGroup, jt as ToggleGroupItem, On as Tooltip, wn as TooltipContent, En as TooltipProvider, Sn as TooltipTrigger, ui as Topbar, I as badgeVariants, Cn as buttonVariants, bn as controlBaseClass, Tn as controlFilterWidthClass, Dn as controlTriggerClass, Tr as getChartColor, me as navigationMenuTriggerStyle, Xe as toast, gt as toggleVariants, wt as useFormField };
|