@krosoft/react 0.0.231 → 0.0.232
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-QHJ6CP5w.js → AppActions-BG2sgghh.js} +1 -1
- package/dist/{AppSubTitle-BlwAxtMX.js → AppSubTitle-C3K23xXb.js} +1 -1
- package/dist/{AppVerticalTabs-C6MH4a0M.js → AppVerticalTabs-B05oTb_4.js} +2 -2
- package/dist/{ConfirmationDialog-CK65nSle.js → ConfirmationDialog-JR14pbWt.js} +4 -4
- package/dist/{DataTable-DYp_uFEn.js → DataTable-BHcadDqz.js} +2 -2
- package/dist/{ErrorAlert-BIQ2Te6B.js → ErrorAlert-BZGt1hH3.js} +1 -1
- package/dist/{ErrorState-ZtWe5C0s.js → ErrorState-0Op-bIn7.js} +1 -1
- package/dist/{GenericForm-B7L7NkrE.js → GenericForm-C6iW17Kx.js} +5 -5
- package/dist/{ImageInput-CBDkCEho.js → ImageInput-XRiPLRM6.js} +2 -2
- package/dist/{KpiCardsLayout-CUDfA-AP.js → KpiCardsLayout-Be1LHbN7.js} +4 -4
- package/dist/LanguageSelector-C3WSlVQx.js +46 -0
- package/dist/{MultiSelect-DWNOCqe1.js → MultiSelect-DCocjZB4.js} +2 -2
- package/dist/{PieChart-gP2QNrAQ.js → PieChart-Cf6q_Pxe.js} +1 -1
- package/dist/{SearchInput-Dkvaei9K.js → SearchInput-rza2llpC.js} +3 -3
- package/dist/{SkeletonCards-CQKcSQW3.js → SkeletonCards-vsneHkXf.js} +1 -1
- package/dist/{TableFilter-BXD7Es8j.js → TableFilter-CBNO2K6p.js} +4 -4
- package/dist/{ThemeSelector-BtQNjlYA.js → ThemeSelector-J-ZsBnI8.js} +2 -2
- package/dist/{Topbar-DYim779_.js → Topbar-Dkgmpwp8.js} +2 -2
- 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 +2 -2
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.d.ts +1 -0
- package/dist/components/core/index.d.ts.map +1 -1
- package/dist/components/core/index.js +63 -61
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/language/LanguageSelector.d.ts +9 -0
- package/dist/components/core/language/LanguageSelector.d.ts.map +1 -0
- package/dist/components/core/language/index.d.ts +3 -0
- package/dist/components/core/language/index.d.ts.map +1 -0
- package/dist/components/core/language/index.js +4 -0
- package/dist/components/core/layouts/index.js +3 -3
- 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 +1 -1
- package/dist/components/core/tabs/index.js +1 -1
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +103 -101
- package/dist/components/ui/index.js +1 -1
- package/dist/hooks/behavior/index.js +1 -1
- package/dist/hooks/index.js +16 -14
- package/dist/hooks/ui/index.d.ts +2 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/index.js +17 -15
- package/dist/hooks/ui/useLanguage.d.ts +29 -0
- package/dist/hooks/ui/useLanguage.d.ts.map +1 -0
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/krosoftLocales.d.ts +12 -0
- package/dist/i18n/krosoftLocales.d.ts.map +1 -1
- package/dist/{sheet-tuC_C3M3.js → sheet-DUrRR7MT.js} +1 -1
- package/dist/{useDateFnsLocale-C4oFFUWO.js → useDateFnsLocale-gHocxHFa.js} +1 -1
- package/dist/useKrosoftTranslation-DRD49kc-.js +45 -0
- package/dist/useLanguage-C9jI2nwn.js +19 -0
- package/dist/{usePage-D3WXYmjl.js → usePage-CLeciGbD.js} +1 -1
- package/dist/{useTheme-DyeQyPDL.js → useTheme-Bs43Wf48.js} +1 -1
- package/package.json +1 -1
- package/dist/useKrosoftTranslation-DtdbUewZ.js +0 -43
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as t } from "../../../ErrorAlert-
|
|
2
|
-
import { E as e } from "../../../ErrorState-
|
|
1
|
+
import { E as t } from "../../../ErrorAlert-BZGt1hH3.js";
|
|
2
|
+
import { E as e } from "../../../ErrorState-0Op-bIn7.js";
|
|
3
3
|
import { L as f } from "../../../LoadingState-BN0YaPSs.js";
|
|
4
4
|
export {
|
|
5
5
|
t as ErrorAlert,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, D as l, S as t, T as n, a as T, b, c as g, d as i, e as o, g as C, f as A, h as d } from "../../../DataTable-
|
|
1
|
+
import { A as s, D as l, S as t, T as n, a as T, b, c as g, d as i, e as o, g as C, f as A, h as d } from "../../../DataTable-BHcadDqz.js";
|
|
2
2
|
export {
|
|
3
3
|
s as ACTIONS_COLUMN_KEY,
|
|
4
4
|
l as DataTable,
|
package/dist/components/index.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { D as r, M as s } from "../MetricCard-B0xnFyim.js";
|
|
2
|
-
import { K as t, a as n, S as i, b as l } from "../SkeletonCards-
|
|
3
|
-
import { B as b, a as u, C, b as g, c as m, L as d, P as S, g as T } from "../PieChart-
|
|
4
|
-
import { A as D, C as M, F as x } from "../ConfirmationDialog-
|
|
5
|
-
import { C as h, j as f, k as P, l as I, m as w, n as v, o as F, p as L, q as B, D as G, a as k, b as H, c as R, d as N, e as O, f as y, g as E, h as V, i as K, I as z, S as _, r as j, s as U, t as q, u as Y, v as J, w as Q, x as W, y as X, z as Z } from "../sheet-
|
|
2
|
+
import { K as t, a as n, S as i, b as l } from "../SkeletonCards-vsneHkXf.js";
|
|
3
|
+
import { B as b, a as u, C, b as g, c as m, L as d, P as S, g as T } from "../PieChart-Cf6q_Pxe.js";
|
|
4
|
+
import { A as D, C as M, F as x } from "../ConfirmationDialog-JR14pbWt.js";
|
|
5
|
+
import { C as h, j as f, k as P, l as I, m as w, n as v, o as F, p as L, q as B, D as G, a as k, b as H, c as R, d as N, e as O, f as y, g as E, h as V, i as K, I as z, S as _, r as j, s as U, t as q, u as Y, v as J, w as Q, x as W, y as X, z as Z } from "../sheet-DUrRR7MT.js";
|
|
6
6
|
import { A as aa, a as ea, b as ra, c as sa, d as oa, e as ta, f as na, g as ia, h as la, i as pa, j as ba, k as ua, l as Ca, m as ga, n as ma, o as da, B as Sa, p as Ta, q as ca, r as Da, s as Ma, t as xa, u as Aa, v as ha, C as fa, w as Pa, x as Ia, y as wa, z as va, D as Fa, E as La, F as Ba, G as Ga, H as ka, I as Ha, J as Ra, K as Na, L as Oa, M as ya, N as Ea, O as Va, Q as Ka, R as za, S as _a, T as ja, U as Ua, V as qa, W as Ya, X as Ja, Y as Qa, Z as Wa, _ as Xa, $ as Za, a0 as $a, a1 as ae, a2 as ee, a3 as re, a4 as se, a5 as oe, a6 as te, a7 as ne, a8 as ie, a9 as le, aa as pe, ab as be, ac as ue, ad as Ce, ae as ge, af as me, ag as de, ah as Se, ai as Te, aj as ce, ak as De, al as Me, am as xe, an as Ae, ao as he, ap as fe, aq as Pe, ar as Ie, as as we, at as ve, au as Fe, av as Le, aw as Be, ax as Ge, ay as ke, az as He, aA as Re, aB as Ne, aC as Oe, aD as ye, aE as Ee, aF as Ve, aG as Ke, aH as ze, aI as _e, aJ as je, aK as Ue, aL as qe, aM as Ye, aN as Je, aO as Qe, aP as We, aQ as Xe, aR as Ze, aS as $e, aT as ar, aU as er, aV as rr, aW as sr, aX as or, aY as tr, aZ as nr, a_ as ir, a$ as lr, b0 as pr, b1 as br, b2 as ur, P as Cr, b3 as gr, b4 as mr, b5 as dr, b6 as Sr, b7 as Tr, b8 as cr, b9 as Dr, ba as Mr, bb as xr, bc as Ar, bd as hr, be as fr, bf as Pr, bg as Ir, bh as wr, bi as vr, bj as Fr, bk as Lr, bl as Br, bm as Gr, bn as kr, bo as Hr, bp as Rr, bq as Nr, br as Or, bs as yr, bt as Er, bu as Vr, bv as Kr, bw as zr, bx as _r, by as jr, bz as Ur, bA as qr } from "../toggle-group-DLLrEwv2.js";
|
|
7
|
-
import { A as Jr, a as Qr, F as Wr, S as Xr, T as Zr } from "../TableFilter-
|
|
8
|
-
import { G as as } from "../GenericForm-
|
|
9
|
-
import { I as rs } from "../ImageInput-
|
|
10
|
-
import { D as os, a as ts, S as ns, b as is } from "../SearchInput-
|
|
11
|
-
import { M as ps } from "../MultiSelect-
|
|
12
|
-
import {
|
|
13
|
-
import { A as gs
|
|
14
|
-
import { A as Ss } from "../
|
|
15
|
-
import { A as cs } from "../
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { E as vs } from "../
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { A as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { A as
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { S as qo } from "../
|
|
29
|
-
import {
|
|
7
|
+
import { A as Jr, a as Qr, F as Wr, S as Xr, T as Zr } from "../TableFilter-CBNO2K6p.js";
|
|
8
|
+
import { G as as } from "../GenericForm-C6iW17Kx.js";
|
|
9
|
+
import { I as rs } from "../ImageInput-XRiPLRM6.js";
|
|
10
|
+
import { D as os, a as ts, S as ns, b as is } from "../SearchInput-rza2llpC.js";
|
|
11
|
+
import { M as ps } from "../MultiSelect-DCocjZB4.js";
|
|
12
|
+
import { L as us } from "../LanguageSelector-C3WSlVQx.js";
|
|
13
|
+
import { A as gs } from "../AppActions-BG2sgghh.js";
|
|
14
|
+
import { A as ds, K as Ss } from "../KpiCardsLayout-Be1LHbN7.js";
|
|
15
|
+
import { A as cs } from "../AppSubTitle-C3K23xXb.js";
|
|
16
|
+
import { A as Ms } from "../AppTitle-D15YXeMx.js";
|
|
17
|
+
import { G as As, S as hs, a as fs, b as Ps, T as Is } from "../Topbar-Dkgmpwp8.js";
|
|
18
|
+
import { E as vs } from "../ErrorAlert-BZGt1hH3.js";
|
|
19
|
+
import { E as Ls } from "../ErrorState-0Op-bIn7.js";
|
|
20
|
+
import { L as Gs } from "../LoadingState-BN0YaPSs.js";
|
|
21
|
+
import { A as Hs, D as Rs, S as Ns, T as Os, a as ys, b as Es, c as Vs, d as Ks, e as zs, g as _s, f as js, h as Us } from "../DataTable-BHcadDqz.js";
|
|
22
|
+
import { A as Ys, a as Js, b as Qs, c as Ws } from "../AppVerticalTabs-B05oTb_4.js";
|
|
23
|
+
import { T as Zs } from "../ThemeSelector-J-ZsBnI8.js";
|
|
24
|
+
import { A as ao, a as eo, b as ro } from "../alert-B9F1N9Qk.js";
|
|
25
|
+
import { A as oo, C as to, a as no, b as io, R as lo, c as po, d as bo, T as uo, e as Co } from "../toaster-B1J0puB_.js";
|
|
26
|
+
import { B as mo, T as So, a as To, b as co, c as Do, d as Mo, e as xo, f as Ao } from "../tooltip-DVeqVwqV.js";
|
|
27
|
+
import { C as fo, a as Po, b as Io, c as wo, d as vo, e as Fo, f as Lo, g as Bo, h as Go, i as ko, j as Ho, k as Ro } from "../chart-DntJZGxB.js";
|
|
28
|
+
import { S as Oo, a as yo, b as Eo, c as Vo, d as Ko, e as zo, f as _o, g as jo, h as Uo, i as qo } from "../select-BpjFWqAY.js";
|
|
29
|
+
import { S as Jo } from "../skeleton-BX4RcsiK.js";
|
|
30
|
+
import { toast as Wo } from "sonner";
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
Hs as ACTIONS_COLUMN_KEY,
|
|
32
33
|
aa as Accordion,
|
|
33
34
|
ea as AccordionContent,
|
|
34
35
|
ra as AccordionItem,
|
|
35
36
|
sa as AccordionTrigger,
|
|
36
37
|
Jr as ActiveFilters,
|
|
37
38
|
Qr as AdvancedFilters,
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
ao as Alert,
|
|
40
|
+
eo as AlertDescription,
|
|
40
41
|
oa as AlertDialog,
|
|
41
42
|
ta as AlertDialogAction,
|
|
42
43
|
na as AlertDialogCancel,
|
|
@@ -46,17 +47,17 @@ export {
|
|
|
46
47
|
ba as AlertDialogHeader,
|
|
47
48
|
ua as AlertDialogTitle,
|
|
48
49
|
Ca as AlertDialogTrigger,
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
ro as AlertTitle,
|
|
51
|
+
gs as AppActions,
|
|
51
52
|
D as AppDialog,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
ds as AppPageHeader,
|
|
54
|
+
cs as AppSubTitle,
|
|
55
|
+
Ys as AppTabContainer,
|
|
56
|
+
Js as AppTabHeader,
|
|
57
|
+
Qs as AppTabs,
|
|
58
|
+
Ms as AppTitle,
|
|
59
|
+
Ws as AppVerticalTabs,
|
|
60
|
+
oo as AspectRatio,
|
|
60
61
|
ga as Avatar,
|
|
61
62
|
ma as AvatarFallback,
|
|
62
63
|
da as AvatarImage,
|
|
@@ -70,32 +71,32 @@ export {
|
|
|
70
71
|
xa as BreadcrumbList,
|
|
71
72
|
Aa as BreadcrumbPage,
|
|
72
73
|
ha as BreadcrumbSeparator,
|
|
73
|
-
|
|
74
|
+
mo as Button,
|
|
74
75
|
C as CHART_COLORS,
|
|
75
76
|
fa as Calendar,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
fo as Card,
|
|
78
|
+
Po as CardContent,
|
|
79
|
+
Io as CardDescription,
|
|
80
|
+
wo as CardFooter,
|
|
81
|
+
vo as CardHeader,
|
|
82
|
+
Fo as CardTitle,
|
|
82
83
|
Pa as Carousel,
|
|
83
84
|
Ia as CarouselContent,
|
|
84
85
|
wa as CarouselItem,
|
|
85
86
|
va as CarouselNext,
|
|
86
87
|
Fa as CarouselPrevious,
|
|
87
88
|
g as ChartCard,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
Lo as ChartContainer,
|
|
90
|
+
Bo as ChartLegend,
|
|
91
|
+
Go as ChartLegendContent,
|
|
92
|
+
ko as ChartStyle,
|
|
93
|
+
Ho as ChartTooltip,
|
|
94
|
+
Ro as ChartTooltipContent,
|
|
94
95
|
La as Checkbox,
|
|
95
96
|
m as CircularGauge,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
to as Collapsible,
|
|
98
|
+
no as CollapsibleContent,
|
|
99
|
+
io as CollapsibleTrigger,
|
|
99
100
|
h as Command,
|
|
100
101
|
f as CommandDialog,
|
|
101
102
|
P as CommandEmpty,
|
|
@@ -122,7 +123,7 @@ export {
|
|
|
122
123
|
ja as ContextMenuSubTrigger,
|
|
123
124
|
Ua as ContextMenuTrigger,
|
|
124
125
|
r as DashboardCard,
|
|
125
|
-
|
|
126
|
+
Rs as DataTable,
|
|
126
127
|
os as DatePicker,
|
|
127
128
|
ts as DateRangePicker,
|
|
128
129
|
G as Dialog,
|
|
@@ -160,8 +161,8 @@ export {
|
|
|
160
161
|
me as DropdownMenuSubContent,
|
|
161
162
|
de as DropdownMenuSubTrigger,
|
|
162
163
|
Se as DropdownMenuTrigger,
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
vs as ErrorAlert,
|
|
165
|
+
Ls as ErrorState,
|
|
165
166
|
Wr as FilterField,
|
|
166
167
|
Te as Form,
|
|
167
168
|
ce as FormControl,
|
|
@@ -172,7 +173,7 @@ export {
|
|
|
172
173
|
Ae as FormLabel,
|
|
173
174
|
he as FormMessage,
|
|
174
175
|
as as GenericForm,
|
|
175
|
-
|
|
176
|
+
As as GlobalSearch,
|
|
176
177
|
fe as HoverCard,
|
|
177
178
|
Pe as HoverCardContent,
|
|
178
179
|
Ie as HoverCardTrigger,
|
|
@@ -184,10 +185,11 @@ export {
|
|
|
184
185
|
Le as InputOTPSlot,
|
|
185
186
|
t as KpiCard,
|
|
186
187
|
n as KpiCards,
|
|
187
|
-
|
|
188
|
+
Ss as KpiCardsLayout,
|
|
188
189
|
Be as Label,
|
|
190
|
+
us as LanguageSelector,
|
|
189
191
|
d as LineChart,
|
|
190
|
-
|
|
192
|
+
Gs as LoadingState,
|
|
191
193
|
Ge as Menubar,
|
|
192
194
|
ke as MenubarCheckboxItem,
|
|
193
195
|
He as MenubarContent,
|
|
@@ -228,25 +230,25 @@ export {
|
|
|
228
230
|
Cr as Progress,
|
|
229
231
|
gr as RadioGroup,
|
|
230
232
|
mr as RadioGroupItem,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
lo as ResizableHandle,
|
|
234
|
+
po as ResizablePanel,
|
|
235
|
+
bo as ResizablePanelGroup,
|
|
236
|
+
Ns as SELECTION_COLUMN_KEY,
|
|
235
237
|
dr as ScrollArea,
|
|
236
238
|
Sr as ScrollBar,
|
|
237
239
|
ns as SearchInput,
|
|
238
240
|
Xr as SearchableFilterPill,
|
|
239
241
|
is as SearchableSelect,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
242
|
+
Oo as Select,
|
|
243
|
+
yo as SelectContent,
|
|
244
|
+
Eo as SelectGroup,
|
|
245
|
+
Vo as SelectItem,
|
|
246
|
+
Ko as SelectLabel,
|
|
247
|
+
zo as SelectScrollDownButton,
|
|
248
|
+
_o as SelectScrollUpButton,
|
|
249
|
+
jo as SelectSeparator,
|
|
250
|
+
Uo as SelectTrigger,
|
|
251
|
+
qo as SelectValue,
|
|
250
252
|
Tr as Separator,
|
|
251
253
|
_ as Sheet,
|
|
252
254
|
j as SheetClose,
|
|
@@ -258,9 +260,9 @@ export {
|
|
|
258
260
|
W as SheetPortal,
|
|
259
261
|
X as SheetTitle,
|
|
260
262
|
Z as SheetTrigger,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
263
|
+
hs as Sidebar,
|
|
264
|
+
fs as SidebarHeader,
|
|
265
|
+
Ps as SidebarNavItem,
|
|
264
266
|
cr as SimpleTable,
|
|
265
267
|
Dr as SimpleTableBody,
|
|
266
268
|
Mr as SimpleTableCaption,
|
|
@@ -269,25 +271,25 @@ export {
|
|
|
269
271
|
hr as SimpleTableHead,
|
|
270
272
|
fr as SimpleTableHeader,
|
|
271
273
|
Pr as SimpleTableRow,
|
|
272
|
-
|
|
274
|
+
Jo as Skeleton,
|
|
273
275
|
i as SkeletonCard,
|
|
274
276
|
l as SkeletonCards,
|
|
275
277
|
Ir as Slider,
|
|
276
|
-
|
|
278
|
+
uo as Sonner,
|
|
277
279
|
wr as Switch,
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
280
|
+
Os as TableActions,
|
|
281
|
+
ys as TableBody,
|
|
282
|
+
Es as TableBulkActions,
|
|
281
283
|
Zr as TableFilter,
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
284
|
+
Vs as TableHeader,
|
|
285
|
+
Ks as TablePagination,
|
|
286
|
+
zs as TableSettings,
|
|
285
287
|
vr as Tabs,
|
|
286
288
|
Fr as TabsContent,
|
|
287
289
|
Lr as TabsList,
|
|
288
290
|
Br as TabsTrigger,
|
|
289
291
|
Gr as Textarea,
|
|
290
|
-
|
|
292
|
+
Zs as ThemeSelector,
|
|
291
293
|
kr as Toast,
|
|
292
294
|
Hr as ToastAction,
|
|
293
295
|
Rr as ToastClose,
|
|
@@ -295,25 +297,25 @@ export {
|
|
|
295
297
|
Or as ToastProvider,
|
|
296
298
|
yr as ToastTitle,
|
|
297
299
|
Er as ToastViewport,
|
|
298
|
-
|
|
300
|
+
Co as Toaster,
|
|
299
301
|
Vr as Toggle,
|
|
300
302
|
Kr as ToggleGroup,
|
|
301
303
|
zr as ToggleGroupItem,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
304
|
+
So as Tooltip,
|
|
305
|
+
To as TooltipContent,
|
|
306
|
+
co as TooltipProvider,
|
|
307
|
+
Do as TooltipTrigger,
|
|
308
|
+
Is as Topbar,
|
|
307
309
|
_r as badgeVariants,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
Mo as buttonVariants,
|
|
311
|
+
xo as controlBaseClass,
|
|
312
|
+
Ao as controlTriggerClass,
|
|
313
|
+
_s as getAlignmentClass,
|
|
312
314
|
T as getChartColor,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
+
js as getColumnAlignment,
|
|
316
|
+
Us as getFixedCellProps,
|
|
315
317
|
jr as navigationMenuTriggerStyle,
|
|
316
|
-
|
|
318
|
+
Wo as toast,
|
|
317
319
|
Ur as toggleVariants,
|
|
318
320
|
qr as useFormField
|
|
319
321
|
};
|
|
@@ -3,7 +3,7 @@ import { A as Ye, a as Ze, b as _e } from "../../alert-B9F1N9Qk.js";
|
|
|
3
3
|
import { A as ao, C as eo, a as oo, b as so, R as ro, c as to, d as no, T as io, e as lo } from "../../toaster-B1J0puB_.js";
|
|
4
4
|
import { B as bo, T as go, a as po, b as Co, c as mo, d as So, e as To, f as co } from "../../tooltip-DVeqVwqV.js";
|
|
5
5
|
import { C as Do, a as xo, b as wo, c as ho, d as Io, e as Po, f as vo, g as Ao, h as Fo, i as Bo, j as Lo, k as fo } from "../../chart-DntJZGxB.js";
|
|
6
|
-
import { C as Ro, j as ko, k as Ho, l as No, m as yo, n as Oo, o as Vo, p as zo, q as jo, D as Eo, a as qo, b as Uo, c as Jo, d as Ko, e as Qo, f as Wo, g as Xo, h as Yo, i as Zo, I as _o, S as $o, r as as, s as es, t as os, u as ss, v as rs, w as ts, x as ns, y as is, z as ls } from "../../sheet-
|
|
6
|
+
import { C as Ro, j as ko, k as Ho, l as No, m as yo, n as Oo, o as Vo, p as zo, q as jo, D as Eo, a as qo, b as Uo, c as Jo, d as Ko, e as Qo, f as Wo, g as Xo, h as Yo, i as Zo, I as _o, S as $o, r as as, s as es, t as os, u as ss, v as rs, w as ts, x as ns, y as is, z as ls } from "../../sheet-DUrRR7MT.js";
|
|
7
7
|
import { S as bs, a as gs, b as ps, c as Cs, d as ds, e as ms, f as Ss, g as Ts, h as cs, i as Ms } from "../../select-BpjFWqAY.js";
|
|
8
8
|
import { S as xs } from "../../skeleton-BX4RcsiK.js";
|
|
9
9
|
import { toast as hs } from "sonner";
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { u as s, a, b as u, c as r, d as t } from "../usePage-
|
|
1
|
+
import { u as s, a, b as u, c as r, d as t } from "../usePage-CLeciGbD.js";
|
|
2
2
|
import { u as f } from "../useSidebar-BJuALHqQ.js";
|
|
3
3
|
import { u as l, a as x } from "../useFixedColumns-CKZyu4PD.js";
|
|
4
4
|
import { u as n } from "../useDocumentTitle-WNwdPz-I.js";
|
|
5
|
-
import { u as b } from "../
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as S } from "../
|
|
9
|
-
import { u as h } from "../
|
|
10
|
-
import {
|
|
5
|
+
import { u as b } from "../useLanguage-C9jI2nwn.js";
|
|
6
|
+
import { u as c } from "../useMobile-DN1_OMDB.js";
|
|
7
|
+
import { u as T } from "../useNotifications-zbUhCvF_.js";
|
|
8
|
+
import { u as S } from "../useScrollFade-BA4KqJYp.js";
|
|
9
|
+
import { u as h } from "../useServerTable-UvTY6L1N.js";
|
|
10
|
+
import { u as L } from "../useTheme-Bs43Wf48.js";
|
|
11
|
+
import { t as N, u as P } from "../useToast-BFTk4lWz.js";
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
N as toast,
|
|
13
14
|
s as useConfirmDeleteDialog,
|
|
14
15
|
a as useConfirmationDialog,
|
|
15
16
|
l as useDataTable,
|
|
@@ -17,12 +18,13 @@ export {
|
|
|
17
18
|
r as useDialog,
|
|
18
19
|
n as useDocumentTitle,
|
|
19
20
|
x as useFixedColumns,
|
|
20
|
-
b as
|
|
21
|
-
|
|
21
|
+
b as useLanguage,
|
|
22
|
+
c as useMobile,
|
|
23
|
+
T as useNotifications,
|
|
22
24
|
t as usePage,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
S as useScrollFade,
|
|
26
|
+
h as useServerTable,
|
|
25
27
|
f as useSidebar,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
L as useTheme,
|
|
29
|
+
P as useToast
|
|
28
30
|
};
|
package/dist/hooks/ui/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export { useDataTable } from "./useDataTable";
|
|
|
2
2
|
export { useDocumentTitle } from "./useDocumentTitle";
|
|
3
3
|
export { useFixedColumns } from "./useFixedColumns";
|
|
4
4
|
export type { FixedColumnOffset } from "./useFixedColumns";
|
|
5
|
+
export { useLanguage } from "./useLanguage";
|
|
6
|
+
export type { LanguageOption } from "./useLanguage";
|
|
5
7
|
export { useMobile } from "./useMobile";
|
|
6
8
|
export { useNotifications } from "./useNotifications";
|
|
7
9
|
export type { UseNotificationsResult } from "./useNotifications";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/hooks/ui/index.js
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { u as s, a } from "../../useFixedColumns-CKZyu4PD.js";
|
|
2
|
-
import { u } from "../../useDocumentTitle-WNwdPz-I.js";
|
|
3
|
-
import { u as m } from "../../
|
|
4
|
-
import { u as x } from "../../
|
|
5
|
-
import { u as l } from "../../
|
|
6
|
-
import { u as T } from "../../
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
2
|
+
import { u as r } from "../../useDocumentTitle-WNwdPz-I.js";
|
|
3
|
+
import { u as m } from "../../useLanguage-C9jI2nwn.js";
|
|
4
|
+
import { u as x } from "../../useMobile-DN1_OMDB.js";
|
|
5
|
+
import { u as l } from "../../useNotifications-zbUhCvF_.js";
|
|
6
|
+
import { u as T } from "../../useScrollFade-BA4KqJYp.js";
|
|
7
|
+
import { u as b } from "../../useServerTable-UvTY6L1N.js";
|
|
8
|
+
import { u as d } from "../../useTheme-Bs43Wf48.js";
|
|
9
|
+
import { t as D, u as F } from "../../useToast-BFTk4lWz.js";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
D as toast,
|
|
11
12
|
s as useDataTable,
|
|
12
|
-
|
|
13
|
+
r as useDocumentTitle,
|
|
13
14
|
a as useFixedColumns,
|
|
14
|
-
m as
|
|
15
|
-
x as
|
|
16
|
-
l as
|
|
17
|
-
T as
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
m as useLanguage,
|
|
16
|
+
x as useMobile,
|
|
17
|
+
l as useNotifications,
|
|
18
|
+
T as useScrollFade,
|
|
19
|
+
b as useServerTable,
|
|
20
|
+
d as useTheme,
|
|
21
|
+
F as useToast
|
|
20
22
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface LanguageOption {
|
|
3
|
+
/** Code i18next de la langue (« fr », « en »). */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Libellé affiché, écrit dans sa propre langue : « Français », « English ». */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Icône du menu déroulant. Sans elle, le sélecteur affiche la même icône pour toutes les langues. */
|
|
8
|
+
icon?: React.ComponentType<{
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
export interface UseLanguageResult {
|
|
13
|
+
/** Langue d'i18next, telle quelle : elle peut être régionalisée (« en-GB »). */
|
|
14
|
+
language: string;
|
|
15
|
+
languageOptions: readonly LanguageOption[];
|
|
16
|
+
currentLanguageOption: LanguageOption | undefined;
|
|
17
|
+
nextLanguageOption: LanguageOption | undefined;
|
|
18
|
+
changeLanguage: (language: string) => void;
|
|
19
|
+
cycleLanguage: () => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Langue courante et bascule, sur le modèle de `useTheme`.
|
|
23
|
+
*
|
|
24
|
+
* La langue d'i18next peut être régionalisée — un détecteur qui lit le navigateur
|
|
25
|
+
* remonte « en-GB » là où l'application déclare « en » : on retombe donc sur la
|
|
26
|
+
* langue de base avant de chercher l'option correspondante.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useLanguage(languageOptions: readonly LanguageOption[]): UseLanguageResult;
|
|
29
|
+
//# sourceMappingURL=useLanguage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLanguage.d.ts","sourceRoot":"","sources":["../../../src/hooks/ui/useLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,sGAAsG;IACtG,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,iBAAiB;IAChC,gFAAgF;IAChF,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,SAAS,cAAc,EAAE,CAAC;IAC3C,qBAAqB,EAAE,cAAc,GAAG,SAAS,CAAC;IAClD,kBAAkB,EAAE,cAAc,GAAG,SAAS,CAAC;IAC/C,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,eAAe,EAAE,SAAS,cAAc,EAAE,GAAG,iBAAiB,CA6BzF"}
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as a, k as e, r, u as t } from "../useKrosoftTranslation-
|
|
2
|
-
import { d as l, u as c } from "../useDateFnsLocale-
|
|
1
|
+
import { K as a, k as e, r, u as t } from "../useKrosoftTranslation-DRD49kc-.js";
|
|
2
|
+
import { d as l, u as c } from "../useDateFnsLocale-gHocxHFa.js";
|
|
3
3
|
export {
|
|
4
4
|
a as KROSOFT_NAMESPACE,
|
|
5
5
|
l as dateFnsLocale,
|
|
@@ -41,6 +41,7 @@ export declare const krosoftLocales: {
|
|
|
41
41
|
create: string;
|
|
42
42
|
section: string;
|
|
43
43
|
theme: string;
|
|
44
|
+
language: string;
|
|
44
45
|
};
|
|
45
46
|
date: {
|
|
46
47
|
pickDate: string;
|
|
@@ -72,6 +73,11 @@ export declare const krosoftLocales: {
|
|
|
72
73
|
menu: string;
|
|
73
74
|
description: string;
|
|
74
75
|
};
|
|
76
|
+
language: {
|
|
77
|
+
description: string;
|
|
78
|
+
current: string;
|
|
79
|
+
switchTo: string;
|
|
80
|
+
};
|
|
75
81
|
theme: {
|
|
76
82
|
updatedTitle: string;
|
|
77
83
|
updatedMessage: string;
|
|
@@ -112,6 +118,7 @@ export declare const krosoftLocales: {
|
|
|
112
118
|
create: string;
|
|
113
119
|
section: string;
|
|
114
120
|
theme: string;
|
|
121
|
+
language: string;
|
|
115
122
|
};
|
|
116
123
|
date: {
|
|
117
124
|
pickDate: string;
|
|
@@ -143,6 +150,11 @@ export declare const krosoftLocales: {
|
|
|
143
150
|
menu: string;
|
|
144
151
|
description: string;
|
|
145
152
|
};
|
|
153
|
+
language: {
|
|
154
|
+
description: string;
|
|
155
|
+
current: string;
|
|
156
|
+
switchTo: string;
|
|
157
|
+
};
|
|
146
158
|
theme: {
|
|
147
159
|
updatedTitle: string;
|
|
148
160
|
updatedMessage: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"krosoftLocales.d.ts","sourceRoot":"","sources":["../../src/i18n/krosoftLocales.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C,8FAA8F;AAC9F,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"krosoftLocales.d.ts","sourceRoot":"","sources":["../../src/i18n/krosoftLocales.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C,8FAA8F;AAC9F,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAC;AAEzC,gGAAgG;AAChG,UAAU,QAAQ;IAChB,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IACjH,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;CAC1D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sBAAsB,GAAI,MAAM,QAAQ,EAAE,gBAAuB;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,KAAG,IAM5G,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import "date-fns/locale";
|
|
3
3
|
import "react-i18next";
|
|
4
|
-
import { u as b } from "./useKrosoftTranslation-
|
|
4
|
+
import { u as b } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
5
5
|
import { c as d } from "./tailwind.helper-B6yFEsav.js";
|
|
6
6
|
import { Command as r } from "cmdk";
|
|
7
7
|
import { X as p, SearchIcon as w } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fr as o, enGB as t } from "date-fns/locale";
|
|
2
2
|
import { useTranslation as a } from "react-i18next";
|
|
3
|
-
import { K as r } from "./useKrosoftTranslation-
|
|
3
|
+
import { K as r } from "./useKrosoftTranslation-DRD49kc-.js";
|
|
4
4
|
const L = { fr: o, en: t }, e = o, i = (s) => s === void 0 ? e : L[s.split("-")[0]] ?? e, l = () => {
|
|
5
5
|
const { i18n: s, ready: n } = a(r, { useSuspense: !1 });
|
|
6
6
|
return i(n ? s.resolvedLanguage ?? s.language : void 0);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { useTranslation as c } from "react-i18next";
|
|
2
|
+
const l = { cancel: "Cancel", save: "Save", saving: "Saving...", edit: "Edit", delete: "Delete", clear: "Clear", apply: "Apply" }, d = { loading: "Loading...", error: "Something went wrong.", errorPrefix: "Error:", errorTitle: "Error", noResult: "No result", noResultDot: "No result.", noData: "No data available", underConstruction: "Section under development", comingSoon: "This feature will be available soon" }, u = { trigger: "Search", placeholder: "Search...", globalTitle: "Global search", globalDescription: "Search for a page or a record across the application.", commandTitle: "Command palette", commandDescription: "Search for a command to run.", loading: "Searching..." }, g = { placeholder: "Select...", create: "Create “{{search}}”", section: "Select a section", theme: "Select a theme", language: "Select a language" }, p = { pickDate: "Select a date", pickPeriod: "Select a period", clearPeriod: "Clear the selected period" }, h = { advanced: "Advanced filters", more: "More filters", yes: "Yes", no: "No" }, m = { validationTitle: "Validation error", validationMessage: "Please check the form fields", submitError: "Something went wrong while saving" }, f = { empty: "No image", upload: "Click to upload", invalidType: "Only {{types}} files are accepted", tooLarge: "The file must not exceed {{size}}MB" }, v = { previousPage: "Previous page", nextPage: "Next page" }, S = { menu: "Navigation menu", description: "Main navigation of the application" }, b = { description: "Choose the interface language", current: "Current language: {{language}}", switchTo: "Switch to {{language}}" }, T = { updatedTitle: "Theme updated", updatedMessage: "The theme has been changed to {{theme}}." }, P = {
|
|
3
|
+
actions: l,
|
|
4
|
+
states: d,
|
|
5
|
+
search: u,
|
|
6
|
+
select: g,
|
|
7
|
+
date: p,
|
|
8
|
+
filters: h,
|
|
9
|
+
form: m,
|
|
10
|
+
image: f,
|
|
11
|
+
table: v,
|
|
12
|
+
sidebar: S,
|
|
13
|
+
language: b,
|
|
14
|
+
theme: T
|
|
15
|
+
}, C = { cancel: "Annuler", save: "Enregistrer", saving: "Enregistrement...", edit: "Modifier", delete: "Supprimer", clear: "Effacer", apply: "Appliquer" }, E = { loading: "Chargement...", error: "Une erreur est survenue.", errorPrefix: "Erreur :", errorTitle: "Erreur", noResult: "Aucun résultat", noResultDot: "Aucun résultat.", noData: "Aucune donnée disponible", underConstruction: "Section en cours de développement", comingSoon: "Cette fonctionnalité sera bientôt disponible" }, y = { trigger: "Rechercher", placeholder: "Rechercher...", globalTitle: "Recherche globale", globalDescription: "Rechercher une page ou une donnée dans l'application.", commandTitle: "Palette de commandes", commandDescription: "Rechercher une commande à exécuter.", loading: "Recherche..." }, R = { placeholder: "Sélectionner...", create: "Créer « {{search}} »", section: "Sélectionner une section", theme: "Sélectionner un thème", language: "Sélectionner une langue" }, $ = { pickDate: "Sélectionner une date", pickPeriod: "Sélectionner une période", clearPeriod: "Effacer la période sélectionnée" }, D = { advanced: "Filtres avancés", more: "Plus de filtres", yes: "Oui", no: "Non" }, M = { validationTitle: "Erreur de validation", validationMessage: "Veuillez vérifier les champs du formulaire", submitError: "Une erreur est survenue lors de l'enregistrement" }, w = { empty: "Aucune image", upload: "Cliquer pour uploader", invalidType: "Seuls les fichiers {{types}} sont acceptés", tooLarge: "Le fichier ne doit pas dépasser {{size}}MB" }, A = { previousPage: "Page précédente", nextPage: "Page suivante" }, N = { menu: "Menu de navigation", description: "Navigation principale de l'application" }, x = { description: "Choisissez la langue de l'interface", current: "Langue actuelle : {{language}}", switchTo: "Passer en {{language}}" }, L = { updatedTitle: "Thème mis à jour", updatedMessage: "Le thème a été changé vers {{theme}}." }, s = {
|
|
16
|
+
actions: C,
|
|
17
|
+
states: E,
|
|
18
|
+
search: y,
|
|
19
|
+
select: R,
|
|
20
|
+
date: $,
|
|
21
|
+
filters: D,
|
|
22
|
+
form: M,
|
|
23
|
+
image: w,
|
|
24
|
+
table: A,
|
|
25
|
+
sidebar: N,
|
|
26
|
+
language: x,
|
|
27
|
+
theme: L
|
|
28
|
+
}, o = "krosoft", k = { fr: s, en: P }, K = (e, { overwrite: t = !1 } = {}) => {
|
|
29
|
+
typeof e.addResourceBundle == "function" && Object.entries(k).forEach(([a, r]) => {
|
|
30
|
+
var n;
|
|
31
|
+
(n = e.addResourceBundle) == null || n.call(e, a, o, r, !0, t);
|
|
32
|
+
});
|
|
33
|
+
}, B = (e) => {
|
|
34
|
+
const t = e.split(".").reduce((a, r) => typeof a == "object" && a !== null ? a[r] : void 0, s);
|
|
35
|
+
return typeof t == "string" ? t : void 0;
|
|
36
|
+
}, O = (e, t) => t === void 0 ? e : e.replace(/\{\{(\w+)\}\}/g, (a, r) => r in t ? String(t[r]) : a), j = () => {
|
|
37
|
+
const { t: e, i18n: t, ready: a } = c(o, { useSuspense: !1 });
|
|
38
|
+
return { t: (n, i) => a && t.exists(n, { ns: o }) ? e(n, i ?? {}) : O(B(n) ?? n, i) };
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
o as K,
|
|
42
|
+
k,
|
|
43
|
+
K as r,
|
|
44
|
+
j as u
|
|
45
|
+
};
|