@krosoft/react 0.0.231 → 0.0.233
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-BFwztl-1.js} +2 -2
- package/dist/{AppSubTitle-BlwAxtMX.js → AppSubTitle-BTN0YAc7.js} +1 -1
- package/dist/{AppVerticalTabs-C6MH4a0M.js → AppVerticalTabs-B7XXtAVj.js} +19 -18
- package/dist/{ConfirmationDialog-CK65nSle.js → ConfirmationDialog-Dj4WdnHg.js} +5 -5
- package/dist/{DataTable-DYp_uFEn.js → DataTable-CjrR27Di.js} +3 -3
- package/dist/{ErrorAlert-BIQ2Te6B.js → ErrorAlert-B99Xb_Hg.js} +1 -1
- package/dist/{ErrorState-ZtWe5C0s.js → ErrorState-CkeS_IBT.js} +1 -1
- package/dist/{GenericForm-B7L7NkrE.js → GenericForm-CydibLHU.js} +6 -6
- package/dist/{ImageInput-CBDkCEho.js → ImageInput-DoOOvvth.js} +3 -3
- package/dist/{KpiCardsLayout-CUDfA-AP.js → KpiCardsLayout-Ca6otKVw.js} +5 -5
- package/dist/LanguageSelector-D5Ly1SFC.js +46 -0
- package/dist/{MultiSelect-DWNOCqe1.js → MultiSelect-DbH7LrsD.js} +3 -3
- package/dist/{PieChart-gP2QNrAQ.js → PieChart-uozNJtEx.js} +1 -1
- package/dist/{SearchInput-Dkvaei9K.js → SearchInput-DIZ5Yt6L.js} +4 -4
- package/dist/{SkeletonCards-CQKcSQW3.js → SkeletonCards-B9C4cNMr.js} +2 -2
- package/dist/{TableFilter-BXD7Es8j.js → TableFilter-CmEVF5Bo.js} +25 -25
- package/dist/{ThemeSelector-BtQNjlYA.js → ThemeSelector-DKhn02V2.js} +2 -2
- package/dist/Topbar-CPWjqOBF.js +429 -0
- 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 +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 +68 -65
- 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/NotificationsBell.d.ts +64 -0
- package/dist/components/core/navbar/NotificationsBell.d.ts.map +1 -0
- package/dist/components/core/navbar/index.d.ts +2 -0
- package/dist/components/core/navbar/index.d.ts.map +1 -1
- package/dist/components/core/navbar/index.js +5 -4
- 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 +248 -245
- package/dist/components/ui/index.js +104 -104
- 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 +26 -0
- package/dist/i18n/krosoftLocales.d.ts.map +1 -1
- package/dist/sheet-XYI-ezvY.js +292 -0
- package/dist/{toaster-B1J0puB_.js → toaster-CyzB1m5z.js} +26 -26
- package/dist/{toggle-group-DLLrEwv2.js → toggle-group-iZqnrTj7.js} +519 -566
- package/dist/{useDateFnsLocale-C4oFFUWO.js → useDateFnsLocale-D6VExZ8U.js} +1 -1
- package/dist/useKrosoftTranslation-BTp46G94.js +47 -0
- package/dist/useLanguage-C9jI2nwn.js +19 -0
- package/dist/{usePage-D3WXYmjl.js → usePage-BQm6tdJD.js} +1 -1
- package/dist/{useTheme-DyeQyPDL.js → useTheme-DS6ZjdzM.js} +1 -1
- package/package.json +1 -1
- package/dist/Topbar-DYim779_.js +0 -319
- package/dist/sheet-tuC_C3M3.js +0 -245
- package/dist/useKrosoftTranslation-DtdbUewZ.js +0 -43
package/dist/sheet-tuC_C3M3.js
DELETED
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import "date-fns/locale";
|
|
3
|
-
import "react-i18next";
|
|
4
|
-
import { u as b } from "./useKrosoftTranslation-DtdbUewZ.js";
|
|
5
|
-
import { c as d } from "./tailwind.helper-B6yFEsav.js";
|
|
6
|
-
import { Command as r } from "cmdk";
|
|
7
|
-
import { X as p, SearchIcon as w } from "lucide-react";
|
|
8
|
-
import * as n from "react";
|
|
9
|
-
import * as s from "@radix-ui/react-dialog";
|
|
10
|
-
import { e as v } from "./tooltip-DVeqVwqV.js";
|
|
11
|
-
import { cva as k } from "class-variance-authority";
|
|
12
|
-
const C = s.Root, Z = s.Trigger, D = s.Portal, ee = s.Close, f = n.forwardRef(
|
|
13
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
14
|
-
s.Overlay,
|
|
15
|
-
{
|
|
16
|
-
ref: t,
|
|
17
|
-
className: d(
|
|
18
|
-
"fixed inset-0 z-[70] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
19
|
-
e
|
|
20
|
-
),
|
|
21
|
-
...a
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
);
|
|
25
|
-
f.displayName = s.Overlay.displayName;
|
|
26
|
-
const _ = "w-full max-w-none h-[100dvh] max-h-[100dvh] content-start rounded-none sm:h-auto sm:max-h-[95vh] sm:max-w-lg sm:rounded-surface", u = n.forwardRef(
|
|
27
|
-
({ className: e, children: a, ...t }, l) => /* @__PURE__ */ i(D, { children: [
|
|
28
|
-
/* @__PURE__ */ o(f, {}),
|
|
29
|
-
/* @__PURE__ */ i(
|
|
30
|
-
s.Content,
|
|
31
|
-
{
|
|
32
|
-
ref: l,
|
|
33
|
-
className: d(
|
|
34
|
-
"fixed left-[50%] top-[50%] z-[70] grid overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
|
|
35
|
-
_,
|
|
36
|
-
e
|
|
37
|
-
),
|
|
38
|
-
...t,
|
|
39
|
-
children: [
|
|
40
|
-
a,
|
|
41
|
-
/* @__PURE__ */ i(s.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
42
|
-
/* @__PURE__ */ o(p, { className: "size-4" }),
|
|
43
|
-
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
44
|
-
] })
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
] })
|
|
49
|
-
);
|
|
50
|
-
u.displayName = s.Content.displayName;
|
|
51
|
-
const S = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: d("flex flex-col space-y-1.5 text-center sm:text-left", e), ...a });
|
|
52
|
-
S.displayName = "DialogHeader";
|
|
53
|
-
const R = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
|
|
54
|
-
R.displayName = "DialogFooter";
|
|
55
|
-
const g = n.forwardRef(
|
|
56
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Title, { ref: t, className: d("text-lg font-semibold leading-none tracking-tight", e), ...a })
|
|
57
|
-
);
|
|
58
|
-
g.displayName = s.Title.displayName;
|
|
59
|
-
const x = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Description, { ref: t, className: d("text-sm text-muted-foreground", e), ...a }));
|
|
60
|
-
x.displayName = s.Description.displayName;
|
|
61
|
-
const h = n.forwardRef(
|
|
62
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
63
|
-
r,
|
|
64
|
-
{
|
|
65
|
-
ref: t,
|
|
66
|
-
className: d("flex h-full w-full flex-col overflow-hidden rounded-surface bg-popover text-popover-foreground", e),
|
|
67
|
-
...a
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
);
|
|
71
|
-
h.displayName = r.displayName;
|
|
72
|
-
const ae = ({ title: e, description: a, shouldFilter: t, className: l, children: m, ...N }) => {
|
|
73
|
-
const { t: c } = b();
|
|
74
|
-
return /* @__PURE__ */ o(C, { ...N, children: /* @__PURE__ */ i(u, { className: "flex flex-col overflow-hidden p-0 shadow-lg", children: [
|
|
75
|
-
/* @__PURE__ */ o(g, { className: "sr-only", children: e ?? c("search.commandTitle") }),
|
|
76
|
-
/* @__PURE__ */ o(x, { className: "sr-only", children: a ?? c("search.commandDescription") }),
|
|
77
|
-
/* @__PURE__ */ o(
|
|
78
|
-
h,
|
|
79
|
-
{
|
|
80
|
-
shouldFilter: t,
|
|
81
|
-
className: d(
|
|
82
|
-
"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3",
|
|
83
|
-
"[&_[cmdk-list]]:max-h-none [&_[cmdk-list]]:min-h-0 [&_[cmdk-list]]:flex-1 sm:[&_[cmdk-list]]:max-h-[300px] sm:[&_[cmdk-list]]:flex-none",
|
|
84
|
-
l
|
|
85
|
-
),
|
|
86
|
-
children: m
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
] }) });
|
|
90
|
-
}, z = n.forwardRef(
|
|
91
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ i("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
92
|
-
/* @__PURE__ */ o(w, { className: "mr-2 size-4 shrink-0 opacity-50" }),
|
|
93
|
-
/* @__PURE__ */ o(
|
|
94
|
-
r.Input,
|
|
95
|
-
{
|
|
96
|
-
ref: t,
|
|
97
|
-
className: d(
|
|
98
|
-
"flex h-11 w-full rounded-control bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
99
|
-
e
|
|
100
|
-
),
|
|
101
|
-
...a
|
|
102
|
-
}
|
|
103
|
-
)
|
|
104
|
-
] })
|
|
105
|
-
);
|
|
106
|
-
z.displayName = r.Input.displayName;
|
|
107
|
-
const T = n.forwardRef(
|
|
108
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o(r.List, { ref: t, className: d("max-h-[300px] overflow-y-auto overflow-x-hidden", e), ...a })
|
|
109
|
-
);
|
|
110
|
-
T.displayName = r.List.displayName;
|
|
111
|
-
const I = n.forwardRef(
|
|
112
|
-
(e, a) => /* @__PURE__ */ o(r.Empty, { ref: a, className: "py-6 text-center text-sm", ...e })
|
|
113
|
-
);
|
|
114
|
-
I.displayName = r.Empty.displayName;
|
|
115
|
-
const O = n.forwardRef(
|
|
116
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
117
|
-
r.Group,
|
|
118
|
-
{
|
|
119
|
-
ref: t,
|
|
120
|
-
className: d(
|
|
121
|
-
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
122
|
-
e
|
|
123
|
-
),
|
|
124
|
-
...a
|
|
125
|
-
}
|
|
126
|
-
)
|
|
127
|
-
);
|
|
128
|
-
O.displayName = r.Group.displayName;
|
|
129
|
-
const j = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(r.Separator, { ref: t, className: d("-mx-1 h-px bg-border", e), ...a }));
|
|
130
|
-
j.displayName = r.Separator.displayName;
|
|
131
|
-
const P = n.forwardRef(
|
|
132
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
133
|
-
r.Item,
|
|
134
|
-
{
|
|
135
|
-
ref: t,
|
|
136
|
-
className: d(
|
|
137
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
|
|
138
|
-
e
|
|
139
|
-
),
|
|
140
|
-
...a
|
|
141
|
-
}
|
|
142
|
-
)
|
|
143
|
-
);
|
|
144
|
-
P.displayName = r.Item.displayName;
|
|
145
|
-
const F = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: d("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
|
|
146
|
-
F.displayName = "CommandShortcut";
|
|
147
|
-
const H = n.forwardRef(({ className: e, type: a, ...t }, l) => /* @__PURE__ */ o(
|
|
148
|
-
"input",
|
|
149
|
-
{
|
|
150
|
-
type: a,
|
|
151
|
-
className: d(
|
|
152
|
-
v,
|
|
153
|
-
// text-base sur mobile : évite le zoom automatique d'iOS à la prise de focus.
|
|
154
|
-
"flex w-full text-base file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 md:text-sm",
|
|
155
|
-
e
|
|
156
|
-
),
|
|
157
|
-
ref: l,
|
|
158
|
-
...t
|
|
159
|
-
}
|
|
160
|
-
));
|
|
161
|
-
H.displayName = "Input";
|
|
162
|
-
const te = s.Root, oe = s.Trigger, se = s.Close, E = s.Portal, y = n.forwardRef(
|
|
163
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
164
|
-
s.Overlay,
|
|
165
|
-
{
|
|
166
|
-
className: d(
|
|
167
|
-
"fixed inset-0 z-[70] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
168
|
-
e
|
|
169
|
-
),
|
|
170
|
-
...a,
|
|
171
|
-
ref: t
|
|
172
|
-
}
|
|
173
|
-
)
|
|
174
|
-
);
|
|
175
|
-
y.displayName = s.Overlay.displayName;
|
|
176
|
-
const G = k(
|
|
177
|
-
"fixed z-[70] gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
178
|
-
{
|
|
179
|
-
variants: {
|
|
180
|
-
side: {
|
|
181
|
-
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
182
|
-
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
183
|
-
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
184
|
-
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
defaultVariants: {
|
|
188
|
-
side: "right"
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
), L = n.forwardRef(
|
|
192
|
-
({ side: e = "right", className: a, children: t, ...l }, m) => /* @__PURE__ */ i(E, { children: [
|
|
193
|
-
/* @__PURE__ */ o(y, {}),
|
|
194
|
-
/* @__PURE__ */ i(s.Content, { ref: m, className: d(G({ side: e }), a), ...l, children: [
|
|
195
|
-
t,
|
|
196
|
-
/* @__PURE__ */ i(s.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
197
|
-
/* @__PURE__ */ o(p, { className: "size-4" }),
|
|
198
|
-
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
199
|
-
] })
|
|
200
|
-
] })
|
|
201
|
-
] })
|
|
202
|
-
);
|
|
203
|
-
L.displayName = s.Content.displayName;
|
|
204
|
-
const V = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: d("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
|
|
205
|
-
V.displayName = "SheetHeader";
|
|
206
|
-
const q = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
|
|
207
|
-
q.displayName = "SheetFooter";
|
|
208
|
-
const B = n.forwardRef(
|
|
209
|
-
({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Title, { ref: t, className: d("text-lg font-semibold text-foreground", e), ...a })
|
|
210
|
-
);
|
|
211
|
-
B.displayName = s.Title.displayName;
|
|
212
|
-
const K = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(s.Description, { ref: t, className: d("text-sm text-muted-foreground", e), ...a }));
|
|
213
|
-
K.displayName = s.Description.displayName;
|
|
214
|
-
export {
|
|
215
|
-
h as C,
|
|
216
|
-
C as D,
|
|
217
|
-
H as I,
|
|
218
|
-
te as S,
|
|
219
|
-
ee as a,
|
|
220
|
-
u as b,
|
|
221
|
-
x as c,
|
|
222
|
-
R as d,
|
|
223
|
-
S as e,
|
|
224
|
-
f,
|
|
225
|
-
D as g,
|
|
226
|
-
g as h,
|
|
227
|
-
Z as i,
|
|
228
|
-
ae as j,
|
|
229
|
-
I as k,
|
|
230
|
-
O as l,
|
|
231
|
-
z as m,
|
|
232
|
-
P as n,
|
|
233
|
-
T as o,
|
|
234
|
-
j as p,
|
|
235
|
-
F as q,
|
|
236
|
-
se as r,
|
|
237
|
-
L as s,
|
|
238
|
-
K as t,
|
|
239
|
-
q as u,
|
|
240
|
-
V as v,
|
|
241
|
-
y as w,
|
|
242
|
-
E as x,
|
|
243
|
-
B as y,
|
|
244
|
-
oe as z
|
|
245
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
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..." }, p = { placeholder: "Select...", create: "Create “{{search}}”", section: "Select a section", theme: "Select a theme" }, m = { pickDate: "Select a date", pickPeriod: "Select a period", clearPeriod: "Clear the selected period" }, g = { advanced: "Advanced filters", more: "More filters", yes: "Yes", no: "No" }, h = { 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 = { updatedTitle: "Theme updated", updatedMessage: "The theme has been changed to {{theme}}." }, T = {
|
|
3
|
-
actions: l,
|
|
4
|
-
states: d,
|
|
5
|
-
search: u,
|
|
6
|
-
select: p,
|
|
7
|
-
date: m,
|
|
8
|
-
filters: g,
|
|
9
|
-
form: h,
|
|
10
|
-
image: f,
|
|
11
|
-
table: v,
|
|
12
|
-
sidebar: S,
|
|
13
|
-
theme: b
|
|
14
|
-
}, P = { 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..." }, C = { placeholder: "Sélectionner...", create: "Créer « {{search}} »", section: "Sélectionner une section", theme: "Sélectionner un thème" }, R = { 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" }, $ = { 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 = { updatedTitle: "Thème mis à jour", updatedMessage: "Le thème a été changé vers {{theme}}." }, s = {
|
|
15
|
-
actions: P,
|
|
16
|
-
states: E,
|
|
17
|
-
search: y,
|
|
18
|
-
select: C,
|
|
19
|
-
date: R,
|
|
20
|
-
filters: D,
|
|
21
|
-
form: M,
|
|
22
|
-
image: $,
|
|
23
|
-
table: A,
|
|
24
|
-
sidebar: N,
|
|
25
|
-
theme: x
|
|
26
|
-
}, n = "krosoft", w = { fr: s, en: T }, O = (e, { overwrite: t = !1 } = {}) => {
|
|
27
|
-
typeof e.addResourceBundle == "function" && Object.entries(w).forEach(([r, o]) => {
|
|
28
|
-
var a;
|
|
29
|
-
(a = e.addResourceBundle) == null || a.call(e, r, n, o, !0, t);
|
|
30
|
-
});
|
|
31
|
-
}, L = (e) => {
|
|
32
|
-
const t = e.split(".").reduce((r, o) => typeof r == "object" && r !== null ? r[o] : void 0, s);
|
|
33
|
-
return typeof t == "string" ? t : void 0;
|
|
34
|
-
}, k = (e, t) => t === void 0 ? e : e.replace(/\{\{(\w+)\}\}/g, (r, o) => o in t ? String(t[o]) : r), K = () => {
|
|
35
|
-
const { t: e, i18n: t, ready: r } = c(n, { useSuspense: !1 });
|
|
36
|
-
return { t: (a, i) => r && t.exists(a, { ns: n }) ? e(a, i ?? {}) : k(L(a) ?? a, i) };
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
n as K,
|
|
40
|
-
w as k,
|
|
41
|
-
O as r,
|
|
42
|
-
K as u
|
|
43
|
-
};
|