@krosoft/react 0.0.361 → 0.0.363
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-DhI7gUdH.js → AppActions-D8DvzKaE.js} +2 -2
- package/dist/{AppSubTitle-Il_qgP4I.js → AppSubTitle-DjLxfDdQ.js} +2 -2
- package/dist/{AppTitle-Dcz860yY.js → AppTitle-B__uWGg1.js} +1 -1
- package/dist/{ErrorAlert-B6v1MVRR.js → ErrorAlert-BQJ0UYzD.js} +1 -1
- package/dist/{GenericForm-CH6e_xTW.js → GenericForm-D5ULMcUK.js} +6 -6
- package/dist/{ImageInput-Dq4RVy4c.js → ImageInput-D182olAB.js} +2 -2
- package/dist/{MultiSelect-T2G5xVtD.js → MultiSelect-BJjOnkZ0.js} +3 -3
- package/dist/{SearchInput-CjpiwvDs.js → SearchInput-Bi0WZSmj.js} +4 -4
- package/dist/{behavior-CSwLI_GG.js → behavior-D_N16i-G.js} +1 -1
- package/dist/{cards-zcPRJrU_.js → cards-C4JhUCYX.js} +2 -2
- package/dist/{charts-53H0FPPD.js → charts-tlI9yxLJ.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/AboutDialog.d.ts +35 -0
- package/dist/components/core/dialogs/AboutDialog.d.ts.map +1 -0
- package/dist/components/core/dialogs/index.d.ts +2 -0
- package/dist/components/core/dialogs/index.d.ts.map +1 -1
- package/dist/components/core/dialogs/index.js +4 -4
- package/dist/components/core/filters/index.js +6 -6
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.js +24 -24
- 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/index.js +1 -1
- package/dist/components/core/states/index.js +2 -2
- package/dist/components/core/table/index.js +3 -3
- package/dist/components/core/tabs/index.js +5 -5
- package/dist/components/core/theme/index.js +1 -1
- package/dist/components/index.js +24 -24
- package/dist/components/ui/index.js +2 -2
- package/dist/dialogs-CkncdJMe.js +269 -0
- package/dist/hooks/behavior/index.js +1 -1
- package/dist/hooks/index.js +5 -5
- package/dist/hooks/ui/index.js +4 -4
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/krosoftLocales.d.ts +12 -0
- package/dist/i18n/krosoftLocales.d.ts.map +1 -1
- package/dist/{i18n-4vaVzTli.js → i18n-B6Z-r24S.js} +12 -0
- package/dist/{inputs-CCNet0vi.js → inputs-DuVl8rjr.js} +4 -4
- package/dist/{language-DH9zG-XJ.js → language-BCHW6mfD.js} +2 -2
- package/dist/{navbar-a8FGZilA.js → navbar-DhRbdhIn.js} +3 -3
- package/dist/pwa/index.js +1 -1
- package/dist/seasonal/index.js +1 -1
- package/dist/{sheet-DjBA9WGR.js → sheet-CjTPCDbG.js} +1 -1
- package/dist/{states-CaW0ib8X.js → states-D0r5kq-c.js} +2 -2
- package/dist/{theme-h2e-zfkV.js → theme-BSaUAa_E.js} +2 -2
- package/dist/{ui-DgZ6ZX8o.js → ui-CG_w0pia.js} +3 -3
- package/dist/{ui-DdOKgsjM.js → ui-DAspFMMW.js} +1 -1
- package/dist/{useDocumentTitle-BYBTo7Ho.js → useDocumentTitle-DO_aSzZS.js} +1 -1
- package/dist/{useLanguage-CKnwpudX.js → useLanguage-DnpnTn2U.js} +1 -1
- package/dist/{useTheme-8vZc97M6.js → useTheme-CTWEekc0.js} +1 -1
- package/package.json +1 -1
- package/dist/dialogs-Cc0rZDqp.js +0 -216
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
+
import { r as t, t as n } from "./i18n-B6Z-r24S.js";
|
|
3
|
+
import { Bn as r, F as i, Gn as a, Hn as o, Rn as s, Un as c, Vn as l, Wn as u } from "./ui-DAspFMMW.js";
|
|
4
|
+
import { c as d } from "./tooltip-_geGvbS7.js";
|
|
5
|
+
import { E as f, O as p, P as m, j as h, k as g } from "./sheet-CjTPCDbG.js";
|
|
6
|
+
import { t as _ } from "./ErrorAlert-BQJ0UYzD.js";
|
|
7
|
+
import { t as v } from "./GenericForm-D5ULMcUK.js";
|
|
8
|
+
import { useEffect as y, useId as b, useState as x } from "react";
|
|
9
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
10
|
+
import { Pen as T, Save as E, X as D } from "lucide-react";
|
|
11
|
+
import { format as O, isValid as k } from "date-fns";
|
|
12
|
+
//#region src/components/core/dialogs/AppDialog.tsx
|
|
13
|
+
var A = {
|
|
14
|
+
sm: "sm:max-w-sm",
|
|
15
|
+
md: "sm:max-w-md",
|
|
16
|
+
lg: "sm:max-w-lg",
|
|
17
|
+
xl: "sm:max-w-xl",
|
|
18
|
+
"2xl": "sm:max-w-2xl",
|
|
19
|
+
"3xl": "sm:max-w-3xl",
|
|
20
|
+
"4xl": "sm:max-w-4xl",
|
|
21
|
+
full: "sm:max-w-[95vw]"
|
|
22
|
+
};
|
|
23
|
+
function j({ open: t, onOpenChange: r, config: a, isLoading: o, error: s, footer: c, className: l, children: u }) {
|
|
24
|
+
let { t: v } = n(), { title: y, description: b, icon: x, size: S = "xl", maxWidth: T, actions: E, headerClassName: D, footerClassName: O } = a, k = o === !0, j = (e) => typeof e == "string" ? v(e) : e, M = (e) => {
|
|
25
|
+
(e || !k) && r(e);
|
|
26
|
+
}, N = c !== void 0 || E !== void 0 && E.length > 0;
|
|
27
|
+
return /* @__PURE__ */ C(f, {
|
|
28
|
+
open: t,
|
|
29
|
+
onOpenChange: M,
|
|
30
|
+
children: /* @__PURE__ */ w(p, {
|
|
31
|
+
className: e("max-h-[100dvh] sm:max-h-[90vh] border-0 shadow-2xl p-0 flex flex-col overflow-hidden", "[&>button]:text-dialog-header-foreground [&>button]:focus:ring-dialog-header-foreground", k && "[&>button]:pointer-events-none [&>button]:opacity-40", T ?? A[S], l),
|
|
32
|
+
children: [
|
|
33
|
+
k ? /* @__PURE__ */ C("div", {
|
|
34
|
+
className: "absolute top-0 left-0 right-0 z-10",
|
|
35
|
+
children: /* @__PURE__ */ C(i, {
|
|
36
|
+
indeterminate: !0,
|
|
37
|
+
className: "h-1 rounded-none"
|
|
38
|
+
})
|
|
39
|
+
}) : null,
|
|
40
|
+
/* @__PURE__ */ w(h, {
|
|
41
|
+
className: e("bg-gradient-to-r from-dialog-header-from to-dialog-header-to p-4 sm:p-6 pr-12 sm:pr-12 sm:rounded-t-surface shrink-0", D),
|
|
42
|
+
children: [/* @__PURE__ */ w(m, {
|
|
43
|
+
className: "text-xl sm:text-2xl font-bold flex items-center gap-2 text-dialog-header-foreground",
|
|
44
|
+
children: [x === void 0 ? null : /* @__PURE__ */ C("div", {
|
|
45
|
+
className: "p-2 bg-dialog-header-foreground/20 rounded-control",
|
|
46
|
+
children: /* @__PURE__ */ C(x, { className: "size-4 text-dialog-header-foreground" })
|
|
47
|
+
}), j(y)]
|
|
48
|
+
}), b !== void 0 && b !== "" ? /* @__PURE__ */ C(g, {
|
|
49
|
+
className: "text-dialog-header-foreground/80 text-base",
|
|
50
|
+
children: j(b)
|
|
51
|
+
}) : null]
|
|
52
|
+
}),
|
|
53
|
+
s ? /* @__PURE__ */ C("div", {
|
|
54
|
+
className: "px-4 sm:px-6 pt-4",
|
|
55
|
+
children: /* @__PURE__ */ C(_, {
|
|
56
|
+
error: s,
|
|
57
|
+
className: "max-w-full"
|
|
58
|
+
})
|
|
59
|
+
}) : null,
|
|
60
|
+
/* @__PURE__ */ C("div", {
|
|
61
|
+
className: "flex-1 overflow-y-auto px-4 sm:px-6 py-4",
|
|
62
|
+
children: u
|
|
63
|
+
}),
|
|
64
|
+
N ? /* @__PURE__ */ C("div", {
|
|
65
|
+
className: e("sm:rounded-b-surface border-t border-border bg-muted/40 shrink-0 p-4 sm:p-6", O),
|
|
66
|
+
children: c ?? /* @__PURE__ */ C("div", {
|
|
67
|
+
className: "flex justify-end gap-3",
|
|
68
|
+
children: E?.map((e) => /* @__PURE__ */ w(d, {
|
|
69
|
+
type: e.type ?? "button",
|
|
70
|
+
form: e.form,
|
|
71
|
+
variant: e.variant ?? "default",
|
|
72
|
+
onClick: e.onClick,
|
|
73
|
+
disabled: e.disabled === !0 || k && e.disableOnLoading !== !1,
|
|
74
|
+
className: e.className,
|
|
75
|
+
children: [e.icon === void 0 ? null : /* @__PURE__ */ C(e.icon, { className: "size-4" }), v(e.label)]
|
|
76
|
+
}, e.id ?? e.label))
|
|
77
|
+
})
|
|
78
|
+
}) : null
|
|
79
|
+
]
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/components/core/dialogs/FormDialog.tsx
|
|
85
|
+
function M({ open: e, onOpenChange: t, data: r, title: i, headerBadge: a, schema: o, onSave: s, customFooter: c, defaultEditing: l = !1, footerActions: u = !0, saveLabel: f, cancelLabel: p, hideSaveIcon: m = !1, size: h = "4xl", maxWidth: g, isLoading: _ = !1 }) {
|
|
86
|
+
let { t: O } = n(), k = f ?? O("actions.save"), [A, M] = x(l), [N, P] = x(!1), F = b();
|
|
87
|
+
if (y(() => {
|
|
88
|
+
e && M(l);
|
|
89
|
+
}, [e, l]), r == null) return null;
|
|
90
|
+
let I = () => {
|
|
91
|
+
M(!0);
|
|
92
|
+
}, L = () => {
|
|
93
|
+
M(!1);
|
|
94
|
+
}, R = async (e) => {
|
|
95
|
+
if (s) {
|
|
96
|
+
P(!0);
|
|
97
|
+
try {
|
|
98
|
+
await s(e), M(!1);
|
|
99
|
+
} catch (e) {
|
|
100
|
+
console.error(e);
|
|
101
|
+
} finally {
|
|
102
|
+
P(!1);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}, z = [];
|
|
106
|
+
s !== void 0 && (A ? (p !== "" && z.push({
|
|
107
|
+
label: p ?? O("actions.cancel"),
|
|
108
|
+
onClick: L,
|
|
109
|
+
variant: "outline",
|
|
110
|
+
disabled: N || _,
|
|
111
|
+
icon: D
|
|
112
|
+
}), z.push({
|
|
113
|
+
label: N ? O("actions.saving") : k,
|
|
114
|
+
type: "submit",
|
|
115
|
+
form: F,
|
|
116
|
+
variant: "default",
|
|
117
|
+
disabled: N || _,
|
|
118
|
+
icon: m ? void 0 : E
|
|
119
|
+
})) : z.push({
|
|
120
|
+
label: O("actions.edit"),
|
|
121
|
+
onClick: I,
|
|
122
|
+
variant: "outline",
|
|
123
|
+
icon: T
|
|
124
|
+
}));
|
|
125
|
+
let B = {
|
|
126
|
+
title: i(r),
|
|
127
|
+
size: h,
|
|
128
|
+
maxWidth: g,
|
|
129
|
+
actions: u ? z : []
|
|
130
|
+
};
|
|
131
|
+
return /* @__PURE__ */ C(j, {
|
|
132
|
+
open: e,
|
|
133
|
+
onOpenChange: (e) => {
|
|
134
|
+
t(e), e || L();
|
|
135
|
+
},
|
|
136
|
+
config: B,
|
|
137
|
+
isLoading: N || _,
|
|
138
|
+
children: /* @__PURE__ */ w("div", { children: [
|
|
139
|
+
a === void 0 ? null : /* @__PURE__ */ C("div", {
|
|
140
|
+
className: "mb-4",
|
|
141
|
+
children: a(r)
|
|
142
|
+
}),
|
|
143
|
+
/* @__PURE__ */ C(v, {
|
|
144
|
+
id: F,
|
|
145
|
+
schema: o,
|
|
146
|
+
initialData: r,
|
|
147
|
+
disabled: !A,
|
|
148
|
+
onSubmit: (e) => {
|
|
149
|
+
R(e);
|
|
150
|
+
},
|
|
151
|
+
renderActions: !1,
|
|
152
|
+
isLoading: N || _
|
|
153
|
+
}),
|
|
154
|
+
c === void 0 ? null : c(r),
|
|
155
|
+
s !== void 0 && !u ? /* @__PURE__ */ C("div", {
|
|
156
|
+
className: "flex justify-end gap-2 border-t pt-4 mt-6",
|
|
157
|
+
children: A ? /* @__PURE__ */ w(S, { children: [p === "" ? null : /* @__PURE__ */ w(d, {
|
|
158
|
+
onClick: L,
|
|
159
|
+
variant: "outline",
|
|
160
|
+
size: "sm",
|
|
161
|
+
disabled: N || _,
|
|
162
|
+
children: [/* @__PURE__ */ C(D, { className: "size-4 mr-2" }), p ?? O("actions.cancel")]
|
|
163
|
+
}), /* @__PURE__ */ w(d, {
|
|
164
|
+
type: "submit",
|
|
165
|
+
form: F,
|
|
166
|
+
size: "sm",
|
|
167
|
+
disabled: N || _,
|
|
168
|
+
className: "text-white",
|
|
169
|
+
children: [m ? null : /* @__PURE__ */ C(E, { className: "size-4 mr-2" }), N ? O("actions.saving") : k]
|
|
170
|
+
})] }) : /* @__PURE__ */ w(d, {
|
|
171
|
+
onClick: I,
|
|
172
|
+
variant: "outline",
|
|
173
|
+
size: "sm",
|
|
174
|
+
children: [/* @__PURE__ */ C(T, { className: "size-4 mr-2" }), O("actions.edit")]
|
|
175
|
+
})
|
|
176
|
+
}) : null
|
|
177
|
+
] })
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region src/components/core/dialogs/ConfirmationDialog.tsx
|
|
182
|
+
function N({ isLoading: e, error: t, config: i, destructive: f = !1 }) {
|
|
183
|
+
let { t: p } = n();
|
|
184
|
+
return i ? /* @__PURE__ */ C(s, {
|
|
185
|
+
open: i.isOpen,
|
|
186
|
+
onOpenChange: (t) => {
|
|
187
|
+
!t && !e && i.onClose();
|
|
188
|
+
},
|
|
189
|
+
children: /* @__PURE__ */ w(l, { children: [
|
|
190
|
+
/* @__PURE__ */ w(u, { children: [
|
|
191
|
+
/* @__PURE__ */ w(a, {
|
|
192
|
+
className: i.titleClassName,
|
|
193
|
+
children: [i.icon && /* @__PURE__ */ C(i.icon, { className: "size-4" }), p(i.title)]
|
|
194
|
+
}),
|
|
195
|
+
/* @__PURE__ */ C(o, { children: p(i.description) }),
|
|
196
|
+
i.itemName && /* @__PURE__ */ C(o, { children: /* @__PURE__ */ C("span", {
|
|
197
|
+
className: "font-semibold block my-2",
|
|
198
|
+
children: i.itemName
|
|
199
|
+
}) })
|
|
200
|
+
] }),
|
|
201
|
+
/* @__PURE__ */ C(_, { error: t }),
|
|
202
|
+
/* @__PURE__ */ w(c, { children: [/* @__PURE__ */ C(r, {
|
|
203
|
+
disabled: e,
|
|
204
|
+
children: p("actions.cancel")
|
|
205
|
+
}), /* @__PURE__ */ C(d, {
|
|
206
|
+
onClick: (e) => {
|
|
207
|
+
e.preventDefault(), i.onConfirm();
|
|
208
|
+
},
|
|
209
|
+
disabled: e,
|
|
210
|
+
className: f ? "bg-destructive text-destructive-foreground hover:bg-destructive/90" : "",
|
|
211
|
+
children: p(e ? i.loadingKey ?? "states.loading" : i.confirmKey)
|
|
212
|
+
})] })
|
|
213
|
+
] })
|
|
214
|
+
}) : null;
|
|
215
|
+
}
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region src/components/core/dialogs/AboutDialog.tsx
|
|
218
|
+
var P = (e, t) => {
|
|
219
|
+
let n = e instanceof Date ? e : new Date(e);
|
|
220
|
+
return k(n) ? O(n, "Pp", { locale: t }) : String(e);
|
|
221
|
+
}, F = ({ open: r, onOpenChange: i, info: a, logo: o, title: s = "about.title", className: c }) => {
|
|
222
|
+
let { t: l } = n(), u = t(), d = [
|
|
223
|
+
{
|
|
224
|
+
label: l("about.version"),
|
|
225
|
+
value: a.version
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
label: l("about.environment"),
|
|
229
|
+
value: a.environment
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
label: l("about.buildDate"),
|
|
233
|
+
value: a.buildDate ? P(a.buildDate, u) : void 0
|
|
234
|
+
}
|
|
235
|
+
].filter((e) => e.value);
|
|
236
|
+
return /* @__PURE__ */ C(f, {
|
|
237
|
+
open: r,
|
|
238
|
+
onOpenChange: i,
|
|
239
|
+
children: /* @__PURE__ */ w(p, {
|
|
240
|
+
className: e("sm:max-w-sm", c),
|
|
241
|
+
"aria-describedby": void 0,
|
|
242
|
+
children: [
|
|
243
|
+
/* @__PURE__ */ C(h, {
|
|
244
|
+
className: "mb-6",
|
|
245
|
+
children: /* @__PURE__ */ C(m, { children: l(s) })
|
|
246
|
+
}),
|
|
247
|
+
o && /* @__PURE__ */ C("div", {
|
|
248
|
+
className: "flex justify-center",
|
|
249
|
+
children: o
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ C("dl", {
|
|
252
|
+
className: "grid grid-cols-[auto_1fr] gap-x-6 gap-y-2 text-sm",
|
|
253
|
+
children: d.map(({ label: e, value: t }) => /* @__PURE__ */ w("div", {
|
|
254
|
+
className: "contents",
|
|
255
|
+
children: [/* @__PURE__ */ C("dt", {
|
|
256
|
+
className: "text-muted-foreground",
|
|
257
|
+
children: e
|
|
258
|
+
}), /* @__PURE__ */ C("dd", {
|
|
259
|
+
className: "font-mono",
|
|
260
|
+
children: t
|
|
261
|
+
})]
|
|
262
|
+
}, e))
|
|
263
|
+
})
|
|
264
|
+
]
|
|
265
|
+
})
|
|
266
|
+
});
|
|
267
|
+
};
|
|
268
|
+
//#endregion
|
|
269
|
+
export { j as i, N as n, M as r, F as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as URL_DATE_FORMAT, n as parseDateRange, r as serializeDateRange, p as useConfirmDeleteDialog, m as useConfirmationDialog, f as useDebounce, d as useDebouncedValue, h as useDialog, u as usePage, l as useSidebar, c as useTable, i as useUrlArrayState, a as useUrlDateRangeState, o as useUrlNumberState, s as useUrlState } from "../../behavior-
|
|
1
|
+
export { t as URL_DATE_FORMAT, n as parseDateRange, r as serializeDateRange, p as useConfirmDeleteDialog, m as useConfirmationDialog, f as useDebounce, d as useDebouncedValue, h as useDialog, u as usePage, l as useSidebar, c as useTable, i as useUrlArrayState, a as useUrlDateRangeState, o as useUrlNumberState, s as useUrlState } from "../../behavior-D_N16i-G.js";
|
package/dist/hooks/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import { n as t, t as n } from "../useToast-UeDRLovh.js";
|
|
|
3
3
|
import { t as r } from "../useMobile-pTQ8lWvt.js";
|
|
4
4
|
import { t as i } from "../useNotifications-CyhTruIG.js";
|
|
5
5
|
import { n as a, t as o } from "../useFixedColumns-Bo-Az3Hp.js";
|
|
6
|
-
import { t as s } from "../useDocumentTitle-
|
|
7
|
-
import { t as c } from "../useLanguage-
|
|
8
|
-
import { t as l } from "../ui-
|
|
9
|
-
import { t as u } from "../useTheme-
|
|
10
|
-
import { a as d, c as f, d as p, f as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T } from "../behavior-
|
|
6
|
+
import { t as s } from "../useDocumentTitle-DO_aSzZS.js";
|
|
7
|
+
import { t as c } from "../useLanguage-DnpnTn2U.js";
|
|
8
|
+
import { t as l } from "../ui-CG_w0pia.js";
|
|
9
|
+
import { t as u } from "../useTheme-CTWEekc0.js";
|
|
10
|
+
import { a as d, c as f, d as p, f as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T } from "../behavior-D_N16i-G.js";
|
|
11
11
|
export { w as URL_DATE_FORMAT, y as parseDateRange, S as serializeDateRange, n as toast, x as useConfirmDeleteDialog, v as useConfirmationDialog, a as useDataTable, m as useDebounce, p as useDebouncedValue, h as useDialog, s as useDocumentTitle, o as useFixedColumns, c as useLanguage, r as useMobile, i as useNotifications, T as usePage, e as useScrollFade, l as useServerTable, _ as useSidebar, f as useTable, u as useTheme, t as useToast, g as useUrlArrayState, d as useUrlDateRangeState, b as useUrlNumberState, C as useUrlState };
|
package/dist/hooks/ui/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { n as t, t as n } from "../../useToast-UeDRLovh.js";
|
|
|
3
3
|
import { t as r } from "../../useMobile-pTQ8lWvt.js";
|
|
4
4
|
import { t as i } from "../../useNotifications-CyhTruIG.js";
|
|
5
5
|
import { n as a, t as o } from "../../useFixedColumns-Bo-Az3Hp.js";
|
|
6
|
-
import { t as s } from "../../useDocumentTitle-
|
|
7
|
-
import { t as c } from "../../useLanguage-
|
|
8
|
-
import { t as l } from "../../ui-
|
|
9
|
-
import { t as u } from "../../useTheme-
|
|
6
|
+
import { t as s } from "../../useDocumentTitle-DO_aSzZS.js";
|
|
7
|
+
import { t as c } from "../../useLanguage-DnpnTn2U.js";
|
|
8
|
+
import { t as l } from "../../ui-CG_w0pia.js";
|
|
9
|
+
import { t as u } from "../../useTheme-CTWEekc0.js";
|
|
10
10
|
export { n as toast, a as useDataTable, s as useDocumentTitle, o as useFixedColumns, c as useLanguage, r as useMobile, i as useNotifications, e as useScrollFade, l as useServerTable, u as useTheme, t as useToast };
|
package/dist/i18n/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as KROSOFT_NAMESPACE, n as dateFnsLocale, a as krosoftLocales, o as registerKrosoftLocales, r as useDateFnsLocale, t as useKrosoftTranslation } from "../i18n-
|
|
1
|
+
export { i as KROSOFT_NAMESPACE, n as dateFnsLocale, a as krosoftLocales, o as registerKrosoftLocales, r as useDateFnsLocale, t as useKrosoftTranslation } from "../i18n-B6Z-r24S.js";
|
|
@@ -158,6 +158,12 @@ export declare const krosoftLocales: {
|
|
|
158
158
|
messageDisabled: string;
|
|
159
159
|
};
|
|
160
160
|
};
|
|
161
|
+
about: {
|
|
162
|
+
title: string;
|
|
163
|
+
version: string;
|
|
164
|
+
environment: string;
|
|
165
|
+
buildDate: string;
|
|
166
|
+
};
|
|
161
167
|
};
|
|
162
168
|
en: {
|
|
163
169
|
actions: {
|
|
@@ -311,6 +317,12 @@ export declare const krosoftLocales: {
|
|
|
311
317
|
messageDisabled: string;
|
|
312
318
|
};
|
|
313
319
|
};
|
|
320
|
+
about: {
|
|
321
|
+
title: string;
|
|
322
|
+
version: string;
|
|
323
|
+
environment: string;
|
|
324
|
+
buildDate: string;
|
|
325
|
+
};
|
|
314
326
|
};
|
|
315
327
|
};
|
|
316
328
|
/** Sous-ensemble d'i18next dont on a besoin : évite d'imposer le type complet de l'instance. */
|
|
@@ -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"}
|
|
@@ -151,6 +151,12 @@ var r = {
|
|
|
151
151
|
messageEnabled: "The pumpkins are out.",
|
|
152
152
|
messageDisabled: "The pumpkins have been put away."
|
|
153
153
|
}
|
|
154
|
+
},
|
|
155
|
+
about: {
|
|
156
|
+
title: "About",
|
|
157
|
+
version: "Version",
|
|
158
|
+
environment: "Environment",
|
|
159
|
+
buildDate: "Build date"
|
|
154
160
|
}
|
|
155
161
|
}, i = {
|
|
156
162
|
actions: {
|
|
@@ -303,6 +309,12 @@ var r = {
|
|
|
303
309
|
messageEnabled: "Les citrouilles sont de sortie.",
|
|
304
310
|
messageDisabled: "Les citrouilles ont été rangées."
|
|
305
311
|
}
|
|
312
|
+
},
|
|
313
|
+
about: {
|
|
314
|
+
title: "À propos",
|
|
315
|
+
version: "Version",
|
|
316
|
+
environment: "Environnement",
|
|
317
|
+
buildDate: "Date de build"
|
|
306
318
|
}
|
|
307
319
|
}, a = "krosoft", o = {
|
|
308
320
|
fr: i,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { t } from "./i18n-
|
|
3
|
-
import "./ImageInput-
|
|
4
|
-
import "./MultiSelect-
|
|
5
|
-
import "./SearchInput-
|
|
2
|
+
import { t } from "./i18n-B6Z-r24S.js";
|
|
3
|
+
import "./ImageInput-D182olAB.js";
|
|
4
|
+
import "./MultiSelect-BJjOnkZ0.js";
|
|
5
|
+
import "./SearchInput-Bi0WZSmj.js";
|
|
6
6
|
import { useRef as n, useState as r } from "react";
|
|
7
7
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
8
|
import { Heart as s, Loader2 as c, Star as l, UploadIcon as u } from "lucide-react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./i18n-
|
|
1
|
+
import { t as e } from "./i18n-B6Z-r24S.js";
|
|
2
2
|
import { c as t, i as n, n as r, r as i, t as a } from "./tooltip-_geGvbS7.js";
|
|
3
3
|
import { i as o, l as s, n as c, t as l, u } from "./select-KWMg2_7Z.js";
|
|
4
|
-
import { t as d } from "./useLanguage-
|
|
4
|
+
import { t as d } from "./useLanguage-DnpnTn2U.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
7
|
import { LanguagesIcon as m } from "lucide-react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { t } from "./i18n-
|
|
2
|
+
import { t } from "./i18n-B6Z-r24S.js";
|
|
3
3
|
import { c as n, i as r, n as i, r as a, t as o } from "./tooltip-_geGvbS7.js";
|
|
4
|
-
import { C as s, S as c, b as l, d as u, g as d, h as f, i as p, l as m, m as h, p as g, r as _, t as v, v as y, x as b, y as x } from "./sheet-
|
|
4
|
+
import { C as s, S as c, b as l, d as u, g as d, h as f, i as p, l as m, m as h, p as g, r as _, t as v, v as y, x as b, y as x } from "./sheet-CjTPCDbG.js";
|
|
5
5
|
import { t as S } from "./skeleton-D6Ga4BLw.js";
|
|
6
|
-
import { l as C } from "./behavior-
|
|
6
|
+
import { l as C } from "./behavior-D_N16i-G.js";
|
|
7
7
|
import "./hooks/index.js";
|
|
8
8
|
import * as w from "react";
|
|
9
9
|
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
package/dist/pwa/index.js
CHANGED
package/dist/seasonal/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../i18n-
|
|
1
|
+
import { t as e } from "../i18n-B6Z-r24S.js";
|
|
2
2
|
import { n as t, t as n } from "../switch-DzZwmpBG.js";
|
|
3
3
|
import { t as r } from "../useNotifications-CyhTruIG.js";
|
|
4
4
|
import { useCallback as i, useMemo as a, useSyncExternalStore as o } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
2
|
import "./helpers/index.js";
|
|
3
|
-
import { t } from "./i18n-
|
|
3
|
+
import { t } from "./i18n-B6Z-r24S.js";
|
|
4
4
|
import { a as n } from "./tooltip-_geGvbS7.js";
|
|
5
5
|
import * as r from "react";
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./i18n-
|
|
2
|
-
import "./ErrorAlert-
|
|
1
|
+
import { t as e } from "./i18n-B6Z-r24S.js";
|
|
2
|
+
import "./ErrorAlert-BQJ0UYzD.js";
|
|
3
3
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
4
|
import { Loader2Icon as r } from "lucide-react";
|
|
5
5
|
//#region src/components/core/states/ErrorState.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./i18n-
|
|
1
|
+
import { t as e } from "./i18n-B6Z-r24S.js";
|
|
2
2
|
import { c as t, i as n, n as r, r as i, t as a } from "./tooltip-_geGvbS7.js";
|
|
3
3
|
import { i as o, l as s, n as c, t as l, u } from "./select-KWMg2_7Z.js";
|
|
4
|
-
import { t as d } from "./useTheme-
|
|
4
|
+
import { t as d } from "./useTheme-CTWEekc0.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/core/theme/ThemeSelector.tsx
|
|
@@ -3,10 +3,10 @@ import "./useToast-UeDRLovh.js";
|
|
|
3
3
|
import "./useMobile-pTQ8lWvt.js";
|
|
4
4
|
import "./useNotifications-CyhTruIG.js";
|
|
5
5
|
import "./useFixedColumns-Bo-Az3Hp.js";
|
|
6
|
-
import "./useDocumentTitle-
|
|
7
|
-
import "./useLanguage-
|
|
6
|
+
import "./useDocumentTitle-DO_aSzZS.js";
|
|
7
|
+
import "./useLanguage-DnpnTn2U.js";
|
|
8
8
|
import "./constants/index.js";
|
|
9
|
-
import "./useTheme-
|
|
9
|
+
import "./useTheme-CTWEekc0.js";
|
|
10
10
|
import { useCallback as e, useEffect as t, useState as n } from "react";
|
|
11
11
|
//#region src/hooks/ui/useServerTable.ts
|
|
12
12
|
function r(r, i = "nom", a = {}) {
|
|
@@ -3,7 +3,7 @@ import "./helpers/index.js";
|
|
|
3
3
|
import "./chart-Dq3AIrue.js";
|
|
4
4
|
import "./alert-REQGK9bR.js";
|
|
5
5
|
import { c as t, l as n } from "./tooltip-_geGvbS7.js";
|
|
6
|
-
import "./sheet-
|
|
6
|
+
import "./sheet-CjTPCDbG.js";
|
|
7
7
|
import { n as r } from "./switch-DzZwmpBG.js";
|
|
8
8
|
import "./select-KWMg2_7Z.js";
|
|
9
9
|
import "./skeleton-D6Ga4BLw.js";
|